/* =========================================================
   healpresence – review fixes (loaded last, after custom_style.css)
   ========================================================= */

/* 1. Home > About: list text in black (was white on light background) */
.about_homepage .choosetickbefore,
.about_homepage .choosetickbefore *,
.about_homepage .choosetickbefore ul li,
.about_homepage .choosetickbefore p,
.about_homepage .choosetickbefore strong,
.about_homepage .choosetickbefore span,
.whytochoosehome .choosetickbefore,
.whytochoosehome .choosetickbefore * {
    color: #000000 !important;
}

/* 2. Home > Blogs: equal, aligned images */
.blog_homepage_design .blog-card {
    margin: 0 0 20px 0;
    height: 370px;
}
.blog_homepage_design .blog-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.blog_homepage_design .blog-scroll-wrapper {
    padding-top: 0;
}
.blog_homepage_design .blog-list-item {
    align-items: flex-start;
    margin-bottom: 18px;
}
.blog_homepage_design .blog-list-item .blog-img {
    flex: 0 0 119px;
    width: 119px;
    height: 106px;
    overflow: hidden;
    border-radius: 6px;
}
.blog_homepage_design .blog-list-item .blog-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog_homepage_design .blog-list-item .content {
    flex: 1;
    min-width: 0;
}
.blog_homepage_design .blog-list-item h6 {
    margin-top: 0;
}

/* 3. Home > Testimonials: no owl pagination dots */
.testimonials_homepage .owl-pagination,
.testimonials_homepage .owl-controls .owl-pagination,
#testimonials_slider .owl-pagination,
.testimonials_homepage .owl-dots {
    display: none !important;
}

/* 4. Awards + Events: equal card heights, titles clamped */
#awards_slider .owl-wrapper,
#event_slider .owl-wrapper {
    display: flex;
}
#awards_slider .owl-item,
#event_slider .owl-item {
    display: flex;
    float: none;
}
#awards_slider .owl-item > div,
#event_slider .owl-item > div {
    width: 100%;
    display: flex;
}
.awa-card,
.evf-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.evf-card > a {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.awa-body,
.evf-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.awa-award-title,
.evf-event-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(2 * 1.4em);
    line-height: 1.4;
}
.awa-readmore {
    margin-top: auto;
}
.awa-grid,
.evf-grid {
    align-items: stretch;
}

/* 5. Doctors section: remove title margin-top, reduce top spacing */
#doctors .news-title-text,
.doctor-card .news-title-text {
    margin-top: 0 !important;
    padding-top: 12px !important;
}
#doctors.news-section {
    padding-top: 30px;
}
#doctors .news-header {
    margin-top: 0;
}

/* 6. Cards (Treatments, Photo/Video gallery, Services, Treatments page):
      spacing below the title */
.news-card .news-title-text {
    margin-bottom: 14px !important;
}
.news-card .news-content .news-desc {
    margin-top: 0;
}
.news-card .news-content,
.news-card .news-content1 {
    height: auto !important;
    min-height: 0;
    padding-bottom: 20px !important;
}
.news-card .news-content.text-center .news-title-text {
    margin-bottom: 0 !important;
}

/* 7. Footer: contact module + CMS HTML text readable on dark background */
.medico-footer,
.medico-footer p,
.medico-footer li,
.medico-footer span,
.medico-footer div,
.medico-footer strong,
.medico-footer h1,
.medico-footer h2,
.medico-footer h3,
.medico-footer h4,
.medico-footer h5,
.medico-footer h6,
.medico-footer a,
.medico-footer .footerparai,
.medico-footer .footerparai a,
.medico-footer .contact_email,
.medico-footer .contact_email * {
    color: #ffffff !important;
}
.medico-footer a:hover {
    color: #e6c3c3 !important;
}
.medico-footer [style*="color"] {
    color: #ffffff !important;
}

/* 8. Blog inner page: space between breadcrumb banner and content */
.blog-details-section {
    padding-top: 50px;
    margin-top: 0;
}
.about-banner + .blog-details-section {
    margin-top: 30px;
}
.blog-details-section .blog-layout {
    margin-top: 10px;
}

/* 9. Testimonials page: video testimonials */
.testimonial-video-card {
    background: #ffffff;
    border: 1px solid #e6dede;
    border-radius: 14px;
    overflow: hidden;
}
.testimonial-video-card .testimonial-video-media {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    background: #000;
    object-fit: cover;
}
.testimonial-video-card .testimonial-video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}
.testimonial-video-card .testimonial-video-insta {
    padding-top: 0;
    height: 520px;
}
.testimonial-video-card .testimonial-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.testimonial-video-card .testimonial-user-info,
.testimonial-video-card .testimonial-user-info.text-white {
    color: #2d2d2d !important;
    font-weight: 600;
}

/* 10. Book appointment: datepicker layout + time slot hidden until date picked */
.ui-datepicker {
    width: 300px !important;
    max-width: calc(100vw - 24px);
    padding: 12px !important;
    box-sizing: border-box;
}
.ui-datepicker table {
    width: 100% !important;
    table-layout: fixed;
    border-collapse: separate !important;
    border-spacing: 3px !important;
    margin: 0 !important;
}
.ui-datepicker th {
    padding: 6px 0 !important;
    text-align: center !important;
    border: 0 !important;
}
.ui-datepicker td {
    padding: 0 !important;
    border: 0 !important;
    text-align: center !important;
    width: auto !important;
}
.ui-datepicker td span,
.ui-datepicker td a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    padding: 8px 0 !important;
    margin: 0 !important;
    text-align: center !important;
    line-height: 1.2;
}
.ui-datepicker td.ui-state-disabled,
.ui-datepicker td.ui-datepicker-unselectable {
    opacity: 1;
}
.ui-datepicker td.ui-state-disabled span,
.ui-datepicker td.ui-datepicker-unselectable span {
    color: #c4c4c4 !important;
    background: #f7f7f7 !important;
    border: 1px solid #eee !important;
}
.ui-datepicker td a {
    background: #fdf1f1 !important;
    color: #732424 !important;
    border: 1px solid #e6c3c3 !important;
}
.ui-datepicker td a.ui-state-active,
.ui-datepicker td a.ui-state-hover {
    background: #732424 !important;
    color: #fff !important;
}
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    width: 28px;
    height: 28px;
}
#slot_form_group {
    display: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .blog_homepage_design .blog-card { height: 300px; }
    .blog_homepage_design .blog-list-item .blog-img { flex-basis: 100px; width: 100px; height: 90px; }
    .blog-details-section { padding-top: 30px; }
    .testimonial-video-card .testimonial-video-insta { height: 460px; }
    .awa-card, .evf-card { width: 100%; }
    .ui-datepicker { width: 280px !important; }
}

/* Services (home + page) card: spacing below title */
.service-card > a > p.fs-20,
.service-card p.fs-20 {
    margin-bottom: 10px;
}
.service-card .readmore {
    margin-bottom: 12px;
}

/* Equal-height slider cards (owl v1 sets inline display on the wrapper) */
#awards_slider .owl-wrapper,
#event_slider .owl-wrapper,
#treatments_slider .owl-wrapper {
    display: flex !important;
}
#awards_slider .owl-item,
#event_slider .owl-item,
#treatments_slider .owl-item {
    display: flex !important;
    float: none !important;
    flex: 0 0 auto;
}
#treatments_slider .owl-item > .item1 {
    width: 100%;
    display: flex;
}
#treatments_slider .news-card {
    width: 100%;
}
.news-card .news-content {
    flex: 1 1 auto;
}

/* =========================================================
   Round 2 – card overlap, equal heights, book-appointment strip
   Deterministic card layout: image is a fixed height, the bordered
   content box overlaps it by --hp-ov and its padding-top clears the
   overlap, so text can never sit under the image.
   ========================================================= */
:root { --hp-img-h: 300px; --hp-ov: 110px; }

.news-card .news-img-wrap img,
.news-card .news-img-wrap a img {
    height: var(--hp-img-h) !important;
    width: 100%;
    object-fit: cover;
    display: block;
}
.news-card .news-content,
.news-card .news-content1 {
    margin-top: calc(-1 * var(--hp-ov)) !important;
    padding: calc(var(--hp-ov) + 22px) 20px 20px !important;
    height: auto !important;
    min-height: 0;
    flex: 1 1 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.news-card .news-title-text,
.doctor-card .news-title-text,
#doctors .news-title-text {
    padding-top: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    line-height: 1.35;
}
.news-card .news-content .overelipsis2,
.news-card .news-content1 .overelipsis2 {
    min-height: calc(2 * 1.35em);   /* keep 1-line and 2-line titles aligned */
}
.news-card .doctor-speciality {
    align-self: flex-start;
    margin-bottom: 10px;
}
.news-card .news-desc {
    margin-bottom: 14px;
}
/* video / photo gallery cards: title-only box, no empty space */
.news-card .news-content.text-center .news-title-text {
    min-height: 0;
    margin-bottom: 0 !important;
}

/* equal heights: bootstrap rows */
.row > [class*="col-"] > .news-card,
.row > [class*="col-"] > .service,
.row > [class*="col-"] > .service > .service-card {
    height: 100%;
}
.news-card { height: 100%; }

/* equal heights: owl sliders (v1 sets inline display on the wrapper) */
#departments_slider .owl-wrapper, #doctors_slider .owl-wrapper, #photo_slider .owl-wrapper,
#video_slider .owl-wrapper, #news_slider .owl-wrapper, #press_release_slider .owl-wrapper,
#visionmission_slider .owl-wrapper, #services_slider .owl-wrapper,
#blog_slider .owl-wrapper {
    display: flex !important;
}
#departments_slider .owl-item, #doctors_slider .owl-item, #photo_slider .owl-item,
#video_slider .owl-item, #news_slider .owl-item, #press_release_slider .owl-item,
#visionmission_slider .owl-item, #services_slider .owl-item,
#blog_slider .owl-item {
    display: flex !important;
    float: none !important;
    flex: 0 0 auto;
}
.owl-item > .item1 {
    width: 100%;
    display: flex;
}
.owl-item > .news-card { width: 100%; }
.owl-item > div > .news-card,
.owl-item > div > .service,
.owl-item > div > .service > .service-card {
    width: 100%;
}

/* Book-appointment strip above the footer: readable even if the bg image is missing */
.bookappfooter {
    background-color: #732424 !important;
}
.bookappfooter,
.bookappfooter p,
.bookappfooter .book-apt-bar,
.bookappfooter .book-apt-bar * {
    color: #ffffff !important;
}
.bookappfooter .book-apt-bar {
    border-left-color: #c28a8a;
}

@media (max-width: 767px) {
    :root { --hp-img-h: 240px; --hp-ov: 90px; }
}

/* appointment strip button: contrast against the maroon strip */
.bookappfooter .btn.btnsecondary,
.bookappfooter .btnsecondary {
    background: #ffffff !important;
    color: #732424 !important;
    border: 1px solid #ffffff !important;
    font-weight: 600;
}
.bookappfooter .btnsecondary:hover {
    background: #f3dede !important;
    color: #732424 !important;
}
.bookappfooter .btnsecondary i { color: #732424 !important; }

/* =========================================================
   Round 3 – Figma match
   ========================================================= */

/* Articles list: left-aligned list items; second row of items */
.blog-page-custom .blog-list-item,
.blog-page-custom .blog-list-item * {
    text-align: left;
}
.blog-page-custom .blog-more-row {
    margin-top: 24px;
}
.blog-page-custom .blog-more-row .blog-list-item {
    margin-bottom: 24px;
}
.blog-page-custom .blog-list-item .badge2 {
    background: #2d2d2d;
    color: #fff;
    border-radius: 6px;
    padding: 4px 14px;
}

/* Contact page: three coloured info cards (light / rose / pink) */
.contact-box { border-radius: 4px; }
.contact-box h4, .contact-box h5, .contact-box p, .contact-box a { color: #2d2d2d; }
.row > .col-md-4:nth-child(3n+2) .contact-box { background: #a85c5c; }
.row > .col-md-4:nth-child(3n) .contact-box { background: #c28a8a; }
.row > .col-md-4:nth-child(3n+2) .contact-box h4,
.row > .col-md-4:nth-child(3n+2) .contact-box h5,
.row > .col-md-4:nth-child(3n+2) .contact-box p,
.row > .col-md-4:nth-child(3n+2) .contact-box a,
.row > .col-md-4:nth-child(3n) .contact-box h4,
.row > .col-md-4:nth-child(3n) .contact-box h5,
.row > .col-md-4:nth-child(3n) .contact-box p,
.row > .col-md-4:nth-child(3n) .contact-box a { color: #ffffff; }
.row > .col-md-4:nth-child(3n+2) .contact-box .icon-box,
.row > .col-md-4:nth-child(3n) .contact-box .icon-box { background: #ffffff; color: #2d2d2d; }
.contact-box:hover { transform: none; filter: brightness(0.97); }

/* Play button on video cards: my fixed card-image height must not stretch it */
.news-card .news-img-wrap img.playbtnimgvideo,
.news-card .news-img-wrap a img.playbtnimgvideo {
    width: 56px !important;
    height: 56px !important;
    object-fit: contain !important;
    border-radius: 50%;
    display: block;
}

/* Footer: CMS-entered HTML (headings, mixed font sizes) normalised to one scale */
.medico-footer .footer-html-module {
    font-size: 16px !important;
    line-height: 1.6;
    font-weight: 400;
    margin: 6px 0 0;
    word-break: break-word;
}
.medico-footer .footer-html-module * {
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-weight: 400;
    margin: 0 0 6px !important;
    font-family: inherit !important;
    background: transparent !important;
}
.medico-footer .footer-html-module h1,
.medico-footer .footer-html-module h2,
.medico-footer .footer-html-module h3,
.medico-footer .footer-html-module h4,
.medico-footer .footer-html-module h5,
.medico-footer .footer-html-module h6,
.medico-footer .footer-html-module strong,
.medico-footer .footer-html-module b {
    font-size: 18px !important;
    font-weight: 600 !important;
}
.medico-footer .footer-html-module ul,
.medico-footer .footer-html-module ol { padding-left: 18px; }
.medico-footer .footer-html-module img { max-width: 100%; height: auto; }
.medico-footer .c_info > p.fs-20 { font-size: 18px !important; margin-bottom: 4px !important; }

/* ---- Round 4 ---- */
/* All "View All" / primary pill buttons: same size */
.btnthird,
a.btnthird,
input.btnthird {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 48px;
    padding: 0 30px !important;
    line-height: 1 !important;
    box-sizing: border-box;
    white-space: nowrap;
    border-radius: 30px;
}
/* Read more links on cards: same height, pinned to the card bottom */
.news-card .news-read,
.news-card .news-content a.news-read {
    display: inline-flex;
    align-items: center;
    height: 32px;
    line-height: 1;
    margin-top: auto;
    padding: 0;
}
.news-card .news-content .news-desc { flex: 0 0 auto; }
/* case studies cards */
.casestudies_homepage .casestudies { display: block; }
.casestudies_homepage .casestudies .casestudies-img img { height: 280px; object-fit: cover; width: 100%; }
.casestudies_homepage .casestudies .dat_desc .btnthird { min-width: 130px; height: 42px; }

.service-card { min-height: 340px; }
/* About: specialties text */
.specialty-text, .specialty-text * { font-size: 16px; line-height: 1.6; }
.specialty-text p { margin: 0 0 8px; }
.wc-features ul, .wc-features li { list-style: none; padding-left: 0; margin: 0; }
.wc-feature-item { color: #2d2d2d; font-size: 16px; line-height: 1.5; }
.wc-feature-item * { color: inherit !important; }

/* ---- Testimonial video cards + player modal (ported from carefusionx) ---- */
.testimonial-video-card .tvc-thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #000;
}
.testimonial-video-card .tvc-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.testimonial-video-card .tvc-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.30);
}
.testimonial-video-card .tvc-play {
    width: 56px !important;
    height: 56px !important;
    cursor: pointer;
    border-radius: 50%;
    background: #fff;
    padding: 0;
    object-fit: contain;
}
.tsvid-modal {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1080;
    padding: 20px;
    overflow: hidden;
}
.tsvid-modal.tsvid-open { display: flex; align-items: center; justify-content: center; }
.tsvid-modal .tsvid-box { position: relative; width: 100%; max-width: 900px; margin: 0; padding: 10px; }
.tsvid-modal .tsvid-close { font-size: 30px; line-height: 1; cursor: pointer; padding: 0 10px 6px; color: #000; text-align: right; align-self: flex-end; }
.tsvid-modal .tsvid-player { display: block; width: 100%; height: auto; max-height: calc(100vh - 140px); object-fit: contain; background: #000; outline: none; }
@media (max-width: 768px) {
    .tsvid-modal { padding: 12px; }
    .tsvid-modal .tsvid-box { max-width: 100%; padding: 6px; }
    .testimonial-video-card .tvc-thumb { height: 220px; }
}

/* Recent / more-blog thumbnails: identical size everywhere */
.recent-item > a,
.blog-list-item .blog-img {
    flex: 0 0 110px;
    width: 110px;
    height: 100px;
    display: block;
    overflow: hidden;
    border-radius: 8px;
}
.recent-item > a img,
.recent-item img,
.blog-list-item .blog-img img {
    width: 110px !important;
    height: 100px !important;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.recent-item { align-items: flex-start; gap: 14px; }
.news-read, .news-card .news-read { height: 32px !important; min-height: 32px; box-sizing: border-box; }

/* =========================================================
   Round 5 – restore the reference card design (pixel match)
   Reference: image at 88% width with radius 40/40/40/0, the bordered
   box tucked 162px behind it, title ~21px under the image, "Read more >"
   at the bottom. Geometry is variable-driven so text never sits under
   the image and every card in a row ends at the same line.
   ========================================================= */
:root { --hp-img-h: 333px; --hp-ov: 162px; }
.news-card .news-img-wrap img,
.news-card .news-img-wrap a img {
    width: 88% !important;
    height: var(--hp-img-h) !important;
    border-radius: 40px 40px 40px 0 !important;
    object-fit: cover;
    object-position: center;
    display: block;
}
.news-card .news-content,
.news-card .news-content1 {
    margin-top: calc(-1 * var(--hp-ov)) !important;
    padding: calc(var(--hp-ov) + 21px) 20px 20px !important;
    border: 1px solid #000;
    border-radius: 9px;
    margin-bottom: 20px;
}
.news-card .news-title-text { font-size: 22px; font-weight: 600; }
.news-card .news-meta { min-height: 24px; margin-bottom: 8px; }
.news-card .news-desc { margin-bottom: 14px; }
/* press release clippings are portrait newspaper scans: keep the top of the clip */
#pressrelease .news-img-wrap img,
.news-section .news-img-wrap.gallery img { object-position: top center; }
@media (max-width: 767px) {
    :root { --hp-img-h: 260px; --hp-ov: 130px; }
}

/* Services cards: icon, title, text, and Read more pinned to the card end */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 340px;
}
.service-card .testimoimg { flex: 0 0 auto; }
.service-card > a,
.service-card > p { width: 100%; }
.service-card p.fs-20 { margin-bottom: 10px; }
.service-card .overelipsis,
.service-card .peoplereview {
    height: auto !important;
    max-height: 7.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    margin-bottom: 18px;
}
.service-card .service-readmore {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    text-decoration: none;
}
.service-card .service-readmore .readmore { margin: 0; }
.service-card .service-readmore:hover .readmore { color: #732424; }

/* Case studies: equal cards, equal buttons pinned to the bottom */
#casestudies_slider .owl-wrapper { display: flex !important; }
#casestudies_slider .owl-item { display: flex !important; float: none !important; flex: 0 0 auto; }
#casestudies_slider .owl-item > .casestudies { width: 100%; }
.casestudies_homepage .casestudies,
.row > [class*="col-"] > .casestudies {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.casestudies .dat_desc {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.casestudies .dat_desc .btn,
.casestudies .dat_desc .btnthird {
    margin-top: auto;
    align-self: flex-start;
    min-width: 140px;
    height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 26px !important;
    line-height: 1 !important;
    box-sizing: border-box;
}
.casestudies .dat_desc > p:last-of-type { margin-bottom: 16px; }

/* Services inner page: sidebar stays in view while the article scrolls */
.services .blogpage > .row { align-items: flex-start; }
.services .blogpage > .row > .col-md-4 {
    position: sticky;
    top: 110px;
    align-self: flex-start;
}
@media (max-width: 767px) {
    .services .blogpage > .row > .col-md-4 { position: static; }
}

/* =========================================================
   Round 6
   ========================================================= */

/* ---- Services grid (Figma): thin outer border + hairlines between cells ---- */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e3e3e3;
    border: 1px solid #e3e3e3;
}
.svc-cell {
    background: #fff;
    padding: 26px;
    display: flex;
}
.svc-cell.svc-empty { padding: 0; }
.svc-card {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    min-height: 150px;
    padding: 22px 16px 18px;
    border: 1px solid #efefef;
    background: #fff;
    color: #2d2d2d;
    text-decoration: none;
    overflow: hidden;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.svc-card::before {              /* hover photo */
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--svc-hover, none);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .35s ease;
    z-index: 0;
}
.svc-card::after {               /* maroon notch at the top on hover */
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 56px solid transparent;
    border-right: 56px solid transparent;
    border-top: 34px solid #732424;
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 1;
}
.svc-card > * { position: relative; z-index: 2; }
.svc-card:hover { border-color: #c28a8a; text-decoration: none; color: #2d2d2d; }
.svc-card:hover::before { opacity: .22; }
.svc-card:hover::after { opacity: 1; }
.svc-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #2d2d2d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}
.svc-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.svc-more {
    margin-top: auto;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2d2d2d;
}
.svc-more i { color: #2d2d2d; font-size: 16px; }
.svc-page-grid { margin-top: 10px; }
/* slider chrome */
.svc-slider .owl-pagination { text-align: center; margin-top: 22px; }
.svc-slider .owl-page { display: inline-block; }
.svc-slider .owl-page span {
    display: block; width: 10px; height: 10px; margin: 0 5px;
    border-radius: 50%; background: #d9c4c4; opacity: 1;
}
.svc-slider .owl-page.active span { background: #732424; }
.svc-slider .owl-buttons { display: block !important; }
@media (max-width: 991px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .svc-cell.svc-empty { display: none; }
}
@media (max-width: 575px) {
    .svc-grid { grid-template-columns: 1fr; }
    .svc-cell { padding: 16px; }
}

/* ---- Equal gap between slider cards (press release etc.) ---- */
.owl-carousel .owl-item .news-card {
    margin-left: 16px !important;
    margin-right: 16px !important;
    width: auto !important;
}
.owl-carousel .owl-item > .item1,
.owl-carousel .owl-item > .item { padding: 0; }

/* ---- Doctors: compact, aligned card ---- */
#doctors .news-card .news-content1 .news-title-text {
    min-height: 0 !important;
    margin-bottom: 8px !important;
}
#doctors .news-card .news-content1 { display: flex; flex-direction: column; }
#doctors .news-card .news-content1 .news-desc { flex: 1 1 auto; margin-bottom: 14px; }
#doctors .news-card .news-content1 .news-read { margin-top: auto; }

/* ---- Video / photo gallery overlay must follow the 88% image ---- */
.vgallery .news-img-wrap .position-absolute,
.news-img-wrap.gallery > a > .position-absolute {
    width: 88% !important;
    height: var(--hp-img-h) !important;
    border-radius: 40px 40px 40px 0 !important;
}

/* ---- Uniform vertical rhythm between home-page sections ---- */
.hp-home > section.pt-50,
.hp-home > section.pb-50,
.hp-home > section.news-section,
.hp-home > section.primary_section,
.hp-home > section.secondary_section,
.hp-home > section.cusscroll,
.hp-home > section.blog_homepage_design,
.hp-home > section.awa-section,
.hp-home > section.evf-section,
.hp-home > section.faqsection {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}
.hp-home > section.stats-section,
.hp-home > section.testimonials_homepage,
.hp-home > section.bookappfooter,
.hp-home > section.newsletter-section { }
/* the View All row: same distance from its cards and from the section end */
.hp-home > section > div.text-center:has(> .btnthird),
.hp-home > section > .container > div.text-center:has(> .btnthird),
.hp-home > section > .container-fluid > div.text-center:has(> .btnthird) {
    margin-top: 40px !important;
    margin-bottom: 0 !important;
}
.hp-home .vm-static-title { margin-top: 0; }
.svc-slider .owl-item > .svc-slide,
.svc-slide,
.svc-slide .svc-grid { width: 100% !important; max-width: none !important; box-sizing: border-box; }
.svc-slider-static .svc-grid { width: 100%; }
.svc-card, .svc-card .svc-title, .svc-card .svc-more { color: #2d2d2d !important; }
.svc-card:hover .svc-title { color: #732424 !important; }
@media (max-width: 575px) {
    .svc-card { min-height: 120px; padding: 16px 12px; }
    .svc-cell { padding: 12px; }
}

/* Press release page: date + Read more row pinned to the card bottom */
.news-card .news-content > .d-flex { margin-top: auto; }
.news-card .news-content > .d-flex .news-read { margin-top: 0; }
.news-card .news-content .news-date-text { color: #732424; font-size: 15px; }

/* =========================================================
   Round 7
   ========================================================= */

/* ---- Testimonial video: CSS play button (white disc + dark triangle) ---- */
.testimonial-video-card .tvc-play {
    position: relative;
    display: block;
    width: 64px !important;
    height: 64px !important;
    border-radius: 50%;
    background: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    padding: 0;
}
.testimonial-video-card .tvc-play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #732424;
}
.testimonial-video-card .tvc-thumb:hover .tvc-play,
.testimonial-video-card .tvc-play:hover { transform: scale(1.08); }
.testimonial-video-card .tvc-play:focus-visible { outline: 3px solid #c28a8a; outline-offset: 3px; }
.tsvid-modal .tsvid-frame {
    display: block;
    width: 100%;
    height: min(56.25vw, calc(100vh - 140px));
    max-height: calc(100vh - 140px);
    border: 0;
    background: #000;
}
.tsvid-modal .tsvid-frame.tsvid-frame-insta { height: calc(100vh - 140px); max-width: 480px; margin: 0 auto; }

/* ---- Hero banner on phones: only the active slide is shown (all slides were stacking) ---- */
@media (max-width: 767px) {
    .carousel-inner > .carousel-item { display: none !important; }
    .carousel-inner > .carousel-item.active,
    .carousel-inner > .carousel-item-next,
    .carousel-inner > .carousel-item-prev { display: flex !important; }
    .carousel-inner > .carousel-item.active.carousel-item-left,
    .carousel-inner > .carousel-item.active.carousel-item-right { display: flex !important; }
    #demo .banner_txt {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        width: 100%;
        padding: 0 18px;
        box-sizing: border-box;
        z-index: 3;
    }
    #demo .banner_txt h1 { font-size: 22px; line-height: 1.3; padding: 6px 0; width: 100%; margin-bottom: 8px; word-break: break-word; }
    #demo .banner_txt p { font-size: 14px; line-height: 1.5; max-width: 100%; margin-bottom: 14px; }
    #demo .banner_txt .buttons a { display: block; width: 100%; margin: 0 0 10px; box-sizing: border-box; text-align: center; }
    #demo .hero-pill { max-width: 100%; margin-bottom: 14px !important; }
    #demo .banner_txt, #demo .banner_txt * { overflow-wrap: anywhere; }
}

/* ---- Vision & Mission page + home block on phones ---- */
@media (max-width: 767px) {
    .vm-section .vm-img-wrap.sticky-top { position: relative; top: auto; }
    .vm-section .vm-img,
    .vm-section img.vm-img.docimg { width: 100% !important; height: 220px !important; max-height: 220px; object-fit: cover; }
    .vm-section .vm-img-badge { bottom: 10px; left: 10px; font-size: 11px; padding: 4px 12px; }
    .vm-section .vm-header-label { font-size: 18px; }
    .vm-section .vm-main-title { font-size: 20px; line-height: 1.35; }
    .vm-section .vm-text-col, .vm-section .vm-img-col { max-width: 100%; flex: 0 0 100%; }
    .vm-section .vm-img-col { margin-top: 20px; }
    #visionmission_slider .service-card { min-height: 0; padding: 24px 16px; }
    #visionmission_slider .testimoimg { max-width: 64px; height: auto; }
    #visionmission_slider .owl-item .container,
    #visionmission_slider .owl-item .container-fluid { padding-left: 0; padding-right: 0; }
}

/* ---- Statistics: distinct icon per stat ---- */
.stats-icon i { font-size: 34px; }

/* ---- Same rhythm in every home section: title, description, content, button ---- */
.hp-home section .news-header { margin-bottom: 40px !important; }
.hp-home section .news-header .news-main-title { margin: 10px 0 0 !important; }
.hp-home section p.news-main-title { margin: 10px 0 40px !important; }
.hp-home section h5.text-center { margin: 0 !important; padding: 0 !important; }
.hp-home section .news-top { margin-bottom: 0; }
.hp-home #casestudies h5.text-center,
.hp-home .vm-static-title { margin-bottom: 40px !important; }
.hp-home .blog_homepage_design .text-center.mb-5 { margin-bottom: 40px !important; }
.hp-home .blog_homepage_design .section-title { margin-top: 10px !important; margin-bottom: 0; padding-bottom: 0 !important; }
.hp-home > section > div.text-center:has(> .btnthird),
.hp-home > section > .container > div.text-center:has(> .btnthird),
.hp-home > section > .container-fluid > div.text-center:has(> .btnthird) {
    margin-top: 40px !important;
    margin-bottom: 0 !important;
}
@media (max-width: 767px) {
    #demo .carousel-item { min-height: 560px; }
    #demo .banner_txt {
        top: 58%;
        left: 14px;
        right: 14px;
        width: auto;
        padding: 18px 16px;
        background: rgba(255,255,255,0.90);
        border-radius: 14px;
        color: #2d2d2d;
    }
    #demo .banner_txt p { color: #2d2d2d; }
    #demo .hero-pill { background: #f6f3f1; }
}

/* Services slider: identical cells, 3 per view */
.svc-row { border: 1px solid #e3e3e3; background: #fff; }
.svc-row .owl-wrapper { display: flex !important; }
.svc-row .owl-item { display: flex !important; float: none !important; flex: 0 0 auto; }
.svc-row .svc-cell { width: 100%; border-right: 1px solid #e3e3e3; }
.svc-row .owl-pagination { text-align: center; padding: 14px 0 6px; }
.svc-row .owl-page { display: inline-block; }
.svc-row .owl-page span { display: block; width: 10px; height: 10px; margin: 0 5px; border-radius: 50%; background: #d9c4c4; }
.svc-row .owl-page.active span { background: #732424; }

/* Services page: no filler cells; each cell draws its own border so a short last row ends cleanly */
.svc-page-grid {
    background: transparent;
    border: 0;
    gap: 0;
    padding: 0 1px 1px 0;
}
.svc-page-grid .svc-cell {
    border: 1px solid #e3e3e3;
    margin: 0 -1px -1px 0;
}

/* Services page: never draw cells that have no card (also covers pages still emitting filler cells) */
.svc-page-grid .svc-empty { display: none !important; border: 0 !important; }

/* "More ..." sidebar cards: image, gap, text (treatments inner page and similar lists) */
.recent-item { display: flex; align-items: flex-start; gap: 16px; }
.recent-item .recent-img { flex: 0 0 110px; width: 110px; margin: 0; }
.recent-item .recent-img a { display: block; }
.recent-item .recent-img img { width: 110px !important; height: 100px !important; object-fit: cover; border-radius: 8px; display: block; }
.recent-item .recent-content { flex: 1 1 auto; min-width: 0; padding: 0; margin: 0; }
.recent-item .recent-title { margin: 0 0 6px; }
.recent-item .recent-desc { margin: 0 0 6px; }

/* =========================================================
   Video inner page (healpresence palette only)
   maroon #732424 · charcoal #2d2d2d · blush #c28a8a · warm grey #f6f3f1
   ========================================================= */
.vi-section { padding: 50px 0 70px; background: #fff; }
.vi-title { margin-bottom: 36px; }
.vi-main { margin-bottom: 30px; }

/* player */
.vi-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #2d2d2d;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(45,45,45,.16);
}
.vi-player iframe,
.vi-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }

/* title + meta */
.vi-head { padding: 26px 0 8px; }
.vi-heading { font-size: 32px; line-height: 1.25; font-weight: 600; color: #2d2d2d; margin: 0 0 14px; }
.vi-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.vi-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: #2d2d2d; color: #fff;
    font-size: 13px; padding: 6px 16px; border-radius: 6px;
}
.vi-pill-light { background: #f6f3f1; color: #732424; border: 1px solid #e6dede; }
.vi-writeup {
    background: #f6f3f1;
    border-left: 4px solid #732424;
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    color: #2d2d2d;
    font-size: 16px;
    line-height: 1.7;
}

/* comments */
.vi-comments { margin-top: 34px; padding-top: 28px; border-top: 1px solid #e6dede; }
.vi-comments-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.vi-comments-head h4 { margin: 0; font-size: 24px; font-weight: 600; color: #2d2d2d; }
.vi-btn { min-width: 170px; height: 48px; border-radius: 30px; }
.vi-comment {
    display: flex; gap: 16px; align-items: flex-start;
    background: #fff; border: 1px solid #e6dede; border-radius: 14px;
    padding: 18px 20px; margin-bottom: 14px;
}
.vi-avatar {
    flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%;
    background: #732424; color: #fff; font-weight: 600; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}
.vi-comment-body { flex: 1; min-width: 0; }
.vi-comment-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.vi-comment-top strong { color: #2d2d2d; font-size: 17px; }
.vi-comment-top span { color: #7a7a7a; font-size: 13px; }
.vi-comment p { margin: 0; color: #444; line-height: 1.65; word-break: break-word; }
.vi-anchor { display: block; position: relative; top: -110px; height: 0; overflow: hidden; }

/* comment form */
.vi-form {
    margin-top: 30px;
    background: #f6f3f1;
    border: 1px solid #e6dede;
    border-radius: 20px;
    padding: 30px 30px 26px;
}
.vi-form-title { text-align: center; font-size: 22px; font-weight: 600; color: #2d2d2d; margin: 0 0 4px; }
.vi-form-sub { text-align: center; color: #7a7a7a; font-size: 14px; margin: 0 0 22px; }
.vi-form .form-control {
    background: #fff; border: 1px solid #d9cfcf; border-radius: 10px;
    height: 50px; padding: 0 16px; color: #2d2d2d; box-shadow: none;
}
.vi-form textarea.form-control { height: auto; padding: 12px 16px; }
.vi-form .form-control:focus { border-color: #732424; box-shadow: 0 0 0 3px rgba(115,36,36,.12); }
.vi-form label.error { color: #732424; font-size: 12px; margin-top: 4px; }

/* sidebar */
.vi-side-card {
    position: sticky; top: 110px;
    background: #f6f3f1; border: 1px solid #e6dede; border-radius: 20px;
    padding: 24px 22px 8px;
}
.vi-side-title { font-size: 22px; font-weight: 600; color: #2d2d2d; margin: 0 0 20px; text-align: center; }
.vi-more { display: flex; gap: 16px; align-items: stretch; margin-bottom: 18px; }
.vi-more-thumb {
    position: relative; flex: 0 0 120px; width: 120px; height: 90px;
    border-radius: 14px; overflow: hidden; display: block; background: #2d2d2d;
}
.vi-more-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vi-play {
    position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
    border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.vi-play::before {
    content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
    border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #732424;
}
.vi-more-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 2px 0; }
.vi-more-title {
    color: #2d2d2d; font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vi-more-link { color: #732424; font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.vi-more-link:hover, .vi-more-title:hover { color: #732424; text-decoration: none; }
.vi-more-thumb:hover .vi-play { transform: scale(1.08); }

@media (max-width: 991px) {
    .vi-side-card { position: static; margin-top: 10px; }
    .vi-heading { font-size: 26px; }
}
@media (max-width: 575px) {
    .vi-section { padding: 30px 0 50px; }
    .vi-player { border-radius: 16px; }
    .vi-heading { font-size: 22px; }
    .vi-form { padding: 22px 16px; }
    .vi-comment { padding: 14px; gap: 12px; }
    .vi-more-thumb { flex-basis: 100px; width: 100px; height: 76px; }
}

/* Doctors (home + Doctors page): tight spacing between speciality, name and description */
.doctor-card .news-content1 .news-title-text,
.doctor-card .news-title-text {
    min-height: 0 !important;
    margin: 6px 0 8px !important;
}
.doctor-card .news-content1 .doctor-speciality { margin-bottom: 0; }
.doctor-card .news-content1 { display: flex; flex-direction: column; }
.doctor-card .news-content1 .news-desc { flex: 1 1 auto; margin: 0 0 14px; }
.doctor-card .news-content1 .news-read { margin-top: auto; }

/* News detail "Recent Posts": every thumbnail the same size, never squeezed by the text */
.blog-sidebar .recent-item > img,
.recent-item > img {
    flex: 0 0 110px;
    width: 110px !important;
    height: 100px !important;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.blog-sidebar .recent-item > div { flex: 1 1 auto; min-width: 0; }
.doctor-card .news-content1 .news-desc,
#doctors .news-card .news-content1 .news-desc { flex: 0 0 auto !important; }
.doctor-card .news-content1 .news-desc {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3 !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden;
}
.doctor-card .news-content1 .news-desc { min-height: 0 !important; }

/* Doctors page uses .news-content (home uses .news-content1): same rules for both */
.doctor-card .news-content,
.doctor-card .news-content1 { display: flex; flex-direction: column; }
.doctor-card .news-desc {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden;
    flex: 0 0 auto !important;
    margin: 0 0 14px;
}
.doctor-card .news-content .news-read,
.doctor-card .news-content .d-flex,
.doctor-card .news-content > a:last-child { margin-top: auto; }
.doctor-card .news-content .doctor-speciality { margin-bottom: 0; align-self: flex-start; }
.doctor-card .news-content .news-title-text,
.doctor-card .news-content1 .news-title-text { margin: 0 0 8px !important; padding: 0 !important; }
.doctor-card .doctor-speciality { margin-bottom: 12px; }

/* =========================================================
   One spacing scale for every .news-card (home + inner pages)
   speciality/author -> title 8px, title -> text 8px, text -> link 14px
   ========================================================= */
.news-card .news-title-text,
.news-card .news-content .overelipsis1,
.news-card .news-content .overelipsis2,
.news-card .news-content1 .overelipsis2 {
    min-height: 0 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
}
.news-card .news-meta {
    min-height: 0 !important;
    margin: 0 0 8px !important;
    line-height: 1.4;
}
.news-card .news-meta:not(:has(span:not(:empty))) { display: none; }   /* no author/date text: no empty row */
.news-card .news-desc {
    min-height: 0 !important;
    margin: 0 0 14px !important;
}
.news-card .news-content > .news-read,
.news-card .news-content > .d-flex,
.news-card .news-content1 > .news-read { margin-top: auto !important; }

/* Doctor detail page: "More Doctors" title in the theme style */
.more-doctors-section { padding-top: 50px; padding-bottom: 20px; }
.more-doctors-section > h3 {
    text-align: center;
    font-family: inherit;
    font-size: 32px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0 0 40px;
}
.more-doctors-section > h3 span { color: #732424; }
.more-doctors-section .news-card { text-align: left; }
.more-doctors-section .news-card .news-content,
.more-doctors-section .news-card .news-content * { text-align: left !important; }
.more-doctors-section .news-card .news-title-text { font-family: inherit; }
.more-doctors-section .news-card .news-title-text,
.more-doctors-section .news-card h3 { font-size: 22px; font-weight: 600; color: #2c2c2c; }
.more-doctors-section,
.more-doctors-section h3,
.more-doctors-section .news-card,
.more-doctors-section .news-card * { font-family: "Zilla Slab", serif !important; }

/* Doctor page: social icons always visible, theme colours; hide the block when the doctor has no links */
.doc-social-wrap:not(:has(a)) { display: none; }
.doc-social-icons a {
    width: 42px; height: 42px; border-radius: 50%;
    background: #fff; border: 1px solid #732424; color: #732424;
}
.doc-social-icons a i.doctoricons { font-size: 18px; color: inherit; }
.doc-social-icons a:hover { background: #732424; color: #fff; border-color: #732424; }
.doc-social-label { color: #2d2d2d; }

/* Hero banner on phones: the text panel sits in the flow, so the slide always grows to fit it */
@media (max-width: 767px) {
    #demo .carousel-item { min-height: 0; }
    #demo .carousel-item .banner_txt {
        position: relative;
        top: auto; left: auto; right: auto;
        transform: none;
        width: auto;
        margin: 110px 14px 40px;
        padding: 18px 16px;
        order: 2;
    }
    #demo .carousel-item::before { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
    #demo .carousel-item > a._banner_href { display: block; width: 100%; }
    #demo .banner_slider { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
    #demo .banner_txt .buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
    #demo .banner_txt .buttons a { width: 100%; margin: 0; }
    #demo .carousel-indicators { bottom: 8px; }
}
@media (max-width: 767px) {
    #demo .banner_slider img { width: 100%; height: 100%; max-height: none; object-fit: cover; display: block; }
    #demo .carousel-item { background: #3a3a2c; }
}

/* Hero on phones: background image fills the slide, a colour overlay sits above it, text above both */
@media (max-width: 767px) {
    #demo .carousel-item { isolation: isolate; background: #2d2d2d; }
    #demo .carousel-item .banner_slider { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
    #demo .carousel-item .banner_slider img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
    #demo .carousel-item::before {
        content: "";
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        background: rgba(45, 45, 45, 0.62);   /* used when the CMS overlay colour is empty */
        pointer-events: none;
    }
    #demo .carousel-item .banner_txt { position: relative; z-index: 2; }
    #demo .carousel-item > a._banner_href { position: relative; z-index: 2; }
}

/* Statistics section (tablet / phone): the section's top padding sat outside the overlay,
   so the background photo showed above the cards. Cover that strip with the same overlay colour. */
@media (max-width: 1199px) {
    .stats-section::before {
        content: "";
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 120px;                       /* = the section's padding-top */
        background: rgba(45, 45, 45, 0.94);  /* same colour as .stats-overlay */
        z-index: 0;
        pointer-events: none;
    }
    .stats-section > .stats-overlay { position: relative; z-index: 1; }
}

/* =========================================================
   Home page rhythm (all widths): section padding 60px, title -> text 10px, text -> content 40px,
   content -> View All 40px, View All -> section end 60px
   ========================================================= */
.hp-home > section > div.text-center:has(> .btnthird),
.hp-home > section > .container > div.text-center:has(> .btnthird),
.hp-home > section > .container-fluid > div.text-center:has(> .btnthird) {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 40px 0 0 !important;
    padding: 0 !important;
    line-height: 1;
}
/* the cards' own bottom margin must not add extra space before the button */
.hp-home .owl-carousel .news-card .news-content,
.hp-home .owl-carousel .news-card .news-content1 { margin-bottom: 0 !important; }
.hp-home .owl-carousel .owl-wrapper-outer { padding-bottom: 0; }
/* trailing column margin is cancelled on the row (not per column) so equal-height columns stay equal */
.hp-home section .row:has(> [class*="col-"].mb-4) { margin-bottom: -1.5rem; }
.hp-home section .row:has(> [class*="col-"].my-4) { margin-bottom: -1.5rem; margin-top: -1.5rem; }
@media (max-width: 991px) {
    .hp-home > section.pt-50, .hp-home > section.pb-50, .hp-home > section.news-section,
    .hp-home > section.primary_section, .hp-home > section.secondary_section, .hp-home > section.cusscroll,
    .hp-home > section.blog_homepage_design, .hp-home > section.awa-section, .hp-home > section.evf-section,
    .hp-home > section.faqsection { padding-top: 60px !important; padding-bottom: 60px !important; }
}
@media (max-width: 575px) {
    .hp-home > section.pt-50, .hp-home > section.pb-50, .hp-home > section.news-section,
    .hp-home > section.primary_section, .hp-home > section.secondary_section, .hp-home > section.cusscroll,
    .hp-home > section.blog_homepage_design, .hp-home > section.awa-section, .hp-home > section.evf-section,
    .hp-home > section.faqsection { padding-top: 44px !important; padding-bottom: 44px !important; }
    .hp-home section .news-header { margin-bottom: 28px !important; }
    .hp-home section p.news-main-title { margin: 10px 0 28px !important; }
    .hp-home #casestudies h5.text-center, .hp-home .vm-static-title { margin-bottom: 28px !important; }
    .hp-home .blog_homepage_design .text-center.mb-5 { margin-bottom: 28px !important; }
    .hp-home > section > div.text-center:has(> .btnthird),
    .hp-home > section > .container > div.text-center:has(> .btnthird),
    .hp-home > section > .container-fluid > div.text-center:has(> .btnthird) { margin-top: 28px !important; }
}

/* Awards + Events headers follow the same scale */
.hp-home .awa-title { margin: 0 0 10px !important; padding: 0 !important; line-height: 1.3; }
.hp-home .awa-description { margin: 0 0 40px !important; padding: 0 !important; }
.hp-home .awa-header, .hp-home .awa-heading-wrap, .hp-home .awa-head { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.hp-home .evf-heading-wrap { margin-bottom: 40px !important; padding-bottom: 0 !important; }
.hp-home .evf-heading-wrap .news-top { margin-bottom: 0 !important; }
.hp-home .evf-heading-wrap .news-main-title { margin: 10px 0 0 !important; padding: 0 !important; }

/* Testimonials (split layout): button sits 40px under the slider, section ends 60px after it */
.hp-home .testimonials_homepage .testimonial-right-content { padding-bottom: 0 !important; }
.hp-home .testimonials_homepage .text-center:has(> .btnthird) { margin: 40px 0 0 !important; display: flex; justify-content: center; }
.hp-home .awa-header { gap: 0 !important; }
@media (max-width: 575px) {
    .hp-home .testimonials_homepage .text-center:has(> .btnthird) { margin-top: 28px !important; }
}

/* Tablet (768-991px): the navbar was wider than the screen and caused sideways scrolling */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar .navbar-brand { font-size: 18px !important; max-width: 220px; }
    .navbar .navbar-brand img { max-height: 34px; }
    .navbar .navbar-nav { flex-wrap: nowrap; }
    .navbar .navbar-nav .nav-item { padding-left: 4px !important; padding-right: 4px !important; }
    .navbar .navbar-nav .nav-link { font-size: 14px !important; padding-left: 0 !important; padding-right: 0 !important; }
    .navbar .btn.btnsecondary { padding: 8px 12px !important; font-size: 12px !important; white-space: nowrap; }
    .navbar .btn.btnsecondary .fs-24 { font-size: 16px !important; }
    .navbar > .container, .navbar > .container-fluid { padding-left: 12px; padding-right: 12px; }
}

/* no sideways scroll: long footer e-mail addresses wrap, the testimonial split row has no negative margins */
.medico-footer .contact_email,
.medico-footer .footerparai,
.medico-footer .footerparai a { overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.testimonials_homepage .testimonial-split { margin-left: 0; margin-right: 0; }

/* Testimonials: the pink panel is narrower than the section, so the button needs its own room inside it */
.hp-home .testimonials_homepage .testimonial-right-content {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}
@media (max-width: 575px) {
    .hp-home .testimonials_homepage .testimonial-right-content { padding-top: 44px !important; padding-bottom: 44px !important; }
}

/* Footer icons: one size everywhere (social + contact), glyph clearly readable inside the ring */
.medico-footer .social-circle-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 2px;
}
.medico-footer .social-circle-icon i {
    font-size: 22px !important;
    line-height: 1;
}
.medico-footer .social-circle-icon i.fa-youtube,
.medico-footer .social-circle-icon i.fa-youtube-play { font-size: 20px !important; }
.medico-footer .footer-social-icons { gap: 6px; }
.medico-footer .footer-social-icons .social-circle-icon { margin-left: 0 !important; margin-right: 6px !important; }
.medico-footer .c_row { align-items: center; gap: 12px; }
.medico-footer .c_row .social-circle-icon { margin: 0 !important; }
.medico-footer .c_row .c_info { padding-left: 0 !important; }
.medico-footer .footerparai,
.medico-footer .footerparai a { font-size: 17px; line-height: 1.5; }

/* Footer icon circles: 30px (was 48px) */
.medico-footer .social-circle-icon { width: 30px; height: 30px; flex: 0 0 30px; padding: 1px; }
.medico-footer .social-circle-icon i { font-size: 14px !important; }
.medico-footer .social-circle-icon i.fa-youtube,
.medico-footer .social-circle-icon i.fa-youtube-play { font-size: 13px !important; }
.medico-footer .c_row { gap: 10px; }
.medico-footer .social-circle-icon { width: 30px !important; height: 30px !important; min-width: 30px; min-height: 30px; aspect-ratio: 1 / 1; box-sizing: border-box; }
.medico-footer .social-circle-icon i { width: 100%; height: 100%; }

/* Footer icon circles: 35px */
.medico-footer .social-circle-icon { width: 35px !important; height: 35px !important; min-width: 35px; min-height: 35px; flex: 0 0 35px; }
.medico-footer .social-circle-icon i { font-size: 16px !important; }
.medico-footer .social-circle-icon i.fa-youtube,
.medico-footer .social-circle-icon i.fa-youtube-play { font-size: 15px !important; }

/* Gallery pages: same gutters and gaps as every other card grid (30px across, 24px down) */
.vgallery .row > [class*="col-"],
.tz-gallery .row > [class*="col-"] { margin-top: 0; }
.vgallery .col-md-12.text-center.mb-5,
.gallery .col-md-12.text-center.mb-5 { margin-bottom: 40px !important; }
.vgallery .vedioimg,
.vgallery .vedioimg img { display: block; }
.vgallery .col-md-6 > a, .vgallery .col-lg-4 > a { display: block; }
/* album cards on the Photo Gallery page */
.vgallery .col-lg-4 > a > div > img.img-fluid,
section .row > .col-lg-4.col-md-6.mb-4 > a img.img-fluid { margin-top: 0 !important; margin-bottom: 12px; border-radius: 14px; }
.vgallery .col-lg-4 h3.text-center { margin: 0; }

/* =========================================================
   Events inner page on phones: nothing may be wider than the screen
   (grid columns must be allowed to shrink; embedded map / images / long words stay inside)
   ========================================================= */
.evd-layout { grid-template-columns: minmax(0, 1fr) 380px; }
.evd-main, .evd-sidebar, .evd-info-card, .evd-hero, .evd-extra { min-width: 0; max-width: 100%; }
.evd-description, .evd-extra-text, .evd-guest-name, .evd-link-block, .evd-venue-name, .evd-datetime-value, .evd-time-value {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.evd-description img, .evd-extra-text img, .evd-description iframe, .evd-extra-text iframe,
.evd-description table, .evd-extra-text table, .evd-description video { max-width: 100% !important; height: auto; }
.evd-map-wrap { overflow: hidden; }
.evd-map-wrap iframe, .evd-map-wrap > * { width: 100% !important; max-width: 100%; height: 260px; }
.evd-link-block { display: flex; flex-wrap: wrap; max-width: 100%; }
@media (max-width: 991px) {
    .evd-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .evd-sidebar { position: static; }
}
@media (max-width: 575px) {
    .evd-section { padding: 36px 0 50px; }
    .evd-container { padding: 0 16px; }
    .evd-hero { border-radius: 14px; margin-bottom: 28px; }
    .evd-desc-title { font-size: 26px; }
    .evd-info-card { border-radius: 14px; }
    .evd-card-body, .evd-venue-name { padding-left: 16px; padding-right: 16px; }
    .evd-map-wrap iframe, .evd-map-wrap > * { height: 220px; }
    .evd-more-section { padding: 36px 0 50px; }
    .evd-more-header { margin-bottom: 24px; }
    .evf-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .evf-card { min-width: 0; }
    .evf-event-name, .evf-venue-text { overflow-wrap: anywhere; }
}

/* Events pages: use the theme font (Jost / Cormorant were never loaded, so the browser fell back to Arial / Times) */
.evd-section, .evd-section *, .evd-more-section, .evd-more-section *,
.evf-card, .evf-card * { font-family: "Zilla Slab", serif !important; }
.evd-desc-title, .evd-more-title { font-weight: 600; color: #2d2d2d; }
