/* ============================================================
   Haasya Mantra Dental Clinic & Implant Centre — brand theme
   Loaded last: layers the clinic's grey + yellow logo palette
   on top of the base template (style.css) without touching it.
   ============================================================ */

:root {
    --hm-charcoal: #3a3a3c;
    --hm-charcoal-dark: #2c2c2e;
    --hm-grey: #7d7d7d;
    --hm-yellow: #ffcc00;
    --hm-yellow-dark: #e0b200;
    --hm-light: #f7f7f7;
    --hm-border: rgba(255, 255, 255, 0.12);
}

/* Requested site-wide: justify all body paragraph text. */
p {
    text-align: justify;
}

/* Doctor photo frame on about.php — the template's own .bg-back used a bright
   cyan PNG (img/resource/doc-img-bg.png) that clashed with the brand palette. */
.bg-back {
    background: var(--hm-charcoal) !important;
    background-image: none !important;
    width: 100% !important;
    height: auto !important;
    padding: 16px !important;
    border-radius: 20px;
    box-shadow: 0 16px 34px rgba(44, 44, 46, 0.18);
}

.bg-back .doc-img img {
    width: 100%;
    display: block;
    border: 3px solid var(--hm-yellow);
}

/* ---------- Top info bar ---------- */
.hm-topbar {
    background: var(--hm-charcoal-dark);
    color: #d8d8d8;
    font-size: 13px;
    border-bottom: 1px solid var(--hm-border);
}

.hm-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 8px 0;
    gap: 8px;
}

.hm-topbar-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-topbar-info li {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.hm-topbar-info i {
    color: var(--hm-yellow);
}

.hm-topbar-info a,
.hm-topbar-info a:hover {
    color: #fff;
    text-decoration: none;
}

.hm-topbar-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-topbar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--hm-border);
    color: #fff;
    transition: all 200ms ease;
}

.hm-topbar-social a:hover {
    background: var(--hm-yellow);
    border-color: var(--hm-yellow);
    color: var(--hm-charcoal-dark);
}

@media (max-width: 767px) {
    .hm-topbar-info li:not(:first-child) { display: none; }
}

/* ---------- Main header / nav ---------- */
.hm-header {
    background: var(--hm-charcoal);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.hm-navbar {
    padding: 10px 0;
}

.hm-nav-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding-left: clamp(18px, 3vw, 52px);
    padding-right: clamp(18px, 3vw, 52px);
}

.hm-navbar .navbar-brand {
    padding: 0;
    margin-left: 18px;
    margin-right: 34px;
    flex: 0 0 auto;
}

.hm-logo {
    height: 128px;
    width: auto;
    display: block;
}

/* NOTE: display is intentionally NOT set here — Bootstrap's own
   .navbar-expand-lg .navbar-collapse rule makes this display:flex
   (and !important) only at >=992px, and display:none by default
   below that until the .show class is toggled by the JS collapse
   plugin. Forcing display:flex here would break the mobile toggle. */
.hm-navbar .navbar-collapse {
    flex: 1 1 0%;
    min-width: 0;
    justify-content: center;
}

.hm-navbar .navbar-nav {
    /* header.css has a stray un-scoped ".navbar-nav{position:absolute;float:left;
       width:84%;right:0}" rule left over from the template's old (unused) header
       markup. It leaks onto Bootstrap's .navbar-nav here too, so it's explicitly
       cancelled below. */
    position: static;
    float: none;
    right: auto;
    padding-right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 !important;
}

.hm-navbar .navbar-nav .nav-item {
    margin: 0 2px;
}

.hm-navbar .navbar-nav .nav-link {
    position: relative;
    color: #eaeaea !important;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px !important;
    margin: 2px 0;
    border-radius: 6px;
    border-bottom: 3px solid transparent;
    background-color: transparent;
    white-space: nowrap;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.hm-navbar .navbar-nav .nav-link:hover,
.hm-navbar .navbar-nav .nav-link:focus {
    color: var(--hm-yellow) !important;
    background-color: rgba(255, 204, 0, 0.12);
}

.hm-navbar .navbar-nav li.active .nav-link {
    color: var(--hm-yellow) !important;
    border-bottom-color: var(--hm-yellow);
}

.hm-btn-book {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hm-yellow);
    color: var(--hm-charcoal-dark) !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 13px 26px;
    border-radius: 30px;
    margin-left: 26px;
    flex: 0 0 auto;
    white-space: nowrap;
    transition: all 200ms ease;
}

.hm-btn-book:hover,
.hm-btn-book:focus {
    background: var(--hm-charcoal-dark);
    color: var(--hm-yellow) !important;
    text-decoration: none;
}

.hm-navbar .navbar-toggler {
    border-color: var(--hm-border);
    flex: 0 0 auto;
}

.hm-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23ffcc00' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Laptop range: tighten spacing a little before ever shrinking text past readable size.
   Widened to 1650px because 9 nav items + logo + button at the full desktop
   size only comfortably clears ~1650px — narrower than that was overlapping
   the Book Appointment button. */
@media (min-width: 992px) and (max-width: 1650px) {
    .hm-nav-container { padding-left: 20px; padding-right: 20px; }
    .hm-navbar .navbar-brand { margin-left: 6px; margin-right: 16px; }
    .hm-logo { height: 98px; }
    .hm-navbar .navbar-nav .nav-link { font-size: 13px; padding: 12px 10px !important; }
    .hm-btn-book { font-size: 12.5px; padding: 11px 18px; margin-left: 12px; }
}

@media (max-width: 991px) {
    .hm-nav-container { flex-wrap: wrap; }
    .hm-navbar .navbar-brand { order: 0; margin-left: 0; }
    .hm-logo { height: 70px; }
    .hm-btn-book { order: 1; margin-left: auto; margin-right: 14px; }
    .hm-navbar .navbar-toggler { order: 2; }
    .hm-navbar .navbar-collapse {
        order: 3;
        flex: 1 1 100%;
        justify-content: flex-start;
        background: var(--hm-charcoal);
        padding: 10px 4px 16px;
        margin-top: 14px;
        border-top: 1px solid var(--hm-border);
    }
    .hm-navbar .navbar-nav { flex-direction: column; flex-wrap: nowrap; align-items: stretch; width: 100%; }
    .hm-navbar .navbar-nav .nav-item { width: 100%; }
    .hm-navbar .navbar-nav .nav-link { padding: 13px 6px !important; width: 100%; font-size: 15px; }
}

@media (max-width: 420px) {
    .hm-btn-book span { display: none; }
    .hm-btn-book { padding: 12px 15px; }
}

/* ---------- Page banner (inner pages) ---------- */
.hm-page-banner {
    position: relative;
    padding: 70px 0;
    text-align: center;
    background: linear-gradient(rgba(44, 44, 46, 0.78), rgba(44, 44, 46, 0.78)),
        url('../img/home-slider/hero-perfect-smile.png') center/cover no-repeat;
    color: #fff;
}

.hm-page-banner h1 {
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    text-transform: capitalize;
    margin-bottom: 10px;
}

.hm-page-banner .hm-breadcrumb {
    color: #d8d8d8;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.hm-page-banner .hm-breadcrumb a { color: var(--hm-yellow); text-decoration: none; }
.hm-page-banner .hm-breadcrumb i { margin: 0 6px; font-size: 11px; }

/* ---------- Buttons / CTA accents ---------- */
.theme-btn-2 {
    background: var(--hm-yellow) !important;
    border-color: var(--hm-yellow) !important;
    color: var(--hm-charcoal-dark) !important;
    font-weight: 600;
}

.theme-btn-2:before { background: var(--hm-charcoal-dark) !important; }
.theme-btn-2:hover, .theme-btn-2:focus { color: #fff !important; }

.dental-services .owl-dot.active span,
.testimonial-area .owl-dot.active span,
.achievement .owl-dot.active span,
.after-before-gallery .owl-dot.active span {
    border-color: var(--hm-yellow) !important;
}

/* ---------- Floating call button ---------- */
.hm-call-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--hm-yellow);
    color: #111 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: hmPulse 2.2s infinite;
}

.hm-call-fab i { color: #111 !important; }
.hm-call-fab:hover { color: #111 !important; background: #fff; }
.hm-call-fab:hover i { color: #111 !important; }

@keyframes hmPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.55); }
    70% { box-shadow: 0 0 0 14px rgba(255, 204, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
}

#scroll {
    right: 20px;
    bottom: 84px;
    background-color: var(--hm-charcoal-dark) !important;
}

#scroll span { color: var(--hm-yellow) !important; }

/* ---------- Footer ---------- */
.hm-footer { background: var(--hm-charcoal-dark); color: #c9c9c9; }

.hm-footer p,
.hm-footer li,
.hm-footer span { color: #c9c9c9 !important; }

.hm-footer a { color: #c9c9c9 !important; text-decoration: none; transition: color 200ms ease; }
.hm-footer a:hover { color: var(--hm-yellow) !important; }

.hm-footer-main { padding: 60px 0 30px; }

.hm-footer .hm-logo { height: 120px; margin-bottom: 18px; }

.hm-footer h3 {
    color: #fff;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.hm-footer h3:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: var(--hm-yellow);
}

.hm-footer ul { list-style: none; margin: 0; padding: 0; }
.hm-footer ul li { margin-bottom: 10px; }
.hm-footer ul li i { color: var(--hm-yellow); margin-right: 8px; width: 14px; }

.hm-footer .hm-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.hm-footer .hm-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--hm-border);
    color: #fff;
}

.hm-footer .hm-social a:hover {
    background: var(--hm-yellow);
    border-color: var(--hm-yellow);
    color: var(--hm-charcoal-dark);
}

.hm-footer-bottom {
    border-top: 1px solid var(--hm-border);
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
    color: #a9a9a9;
}

.hm-footer-bottom p { color: #a9a9a9 !important; }
.hm-footer-bottom a { color: var(--hm-yellow) !important; }

/* ---------- Avatar initials (used where we have no real patient photo) ---------- */
.hm-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--hm-charcoal);
    color: var(--hm-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 14px;
}

.hm-stars { color: var(--hm-yellow); margin-bottom: 10px; }
.hm-stars i { margin: 0 1px; }

/* ---------- Reviews page ---------- */
.hm-reviews-page {
    position: relative;
    clear: both;
    padding: 90px 0 70px;
    background: #f6f6f6 !important;
}

/* index.php reuses .testimonial-area too (so the existing owl-carousel init
   script still picks it up) — its old background/pseudo-element are cancelled
   here since .hm-reviews-page already supplies the real background. */
.hm-reviews-page.testimonial-area:before { display: none; }

.hm-reviews-heading {
    max-width: 700px;
    margin: 0 auto 46px;
}

.hm-reviews-heading span {
    color: var(--hm-yellow-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hm-reviews-heading h2 {
    margin: 8px 0 12px;
    color: var(--hm-charcoal-dark);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
}

.hm-reviews-heading p {
    margin: 0;
    color: #707070;
}

.hm-reviews-grid {
    align-items: stretch;
}

.hm-reviews-grid > div {
    display: flex;
}

.hm-review-card {
    position: relative;
    width: 100%;
    min-height: 260px;
    padding: 32px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-top: 4px solid var(--hm-yellow);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(44, 44, 46, 0.08);
}

.hm-review-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 14px;
}

.hm-review-top .hm-avatar {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    margin: 0;
    font-size: 21px;
}

.hm-review-top h3 {
    margin: 0 0 2px;
    color: var(--hm-charcoal-dark);
    font-size: 18px;
}

.hm-review-top span {
    color: #888;
    font-size: 13px;
}

.hm-review-card .hm-stars {
    margin: 0 0 14px 69px;
}

.hm-review-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #5f5f5f;
    font-size: 15px;
    line-height: 1.85;
}

.hm-review-quote {
    position: absolute;
    right: 24px;
    bottom: 18px;
    color: rgba(255, 204, 0, 0.12);
    font-size: 64px;
}

.hm-review-carousel .item { padding: 6px 10px 30px; }
.hm-review-carousel .hm-review-card { min-height: 220px; }
.hm-review-carousel .owl-dots { text-align: center; }

@media (max-width: 767px) {
    .hm-reviews-page { padding: 64px 0 44px; }
    .hm-reviews-heading { margin-bottom: 32px; }
    .hm-review-card { min-height: 0; padding: 25px; }
}

/* ---------- Reviews CTA ---------- */
.connect-info {
    position: relative;
    clear: both;
    background-image: url('../img/home-slider/hero-smile-design.png') !important;
    background-position: center !important;
    background-size: cover !important;
}

.connect-info > .container {
    position: relative;
    z-index: 2;
}

.connect-info .appointment-form {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.connect-info .appointment-form > p {
    color: var(--hm-charcoal-dark) !important;
    font-weight: 600;
}

.connect-info .appointment-form .theme-btn-2 {
    display: inline-block;
    margin-top: 8px;
}

@media (max-width: 767px) {
    .connect-info .text { padding-right: 0; }
    .connect-info .appointment-form { margin-top: 28px; padding: 34px 24px; }
}

/* ---------- Why choose us (home) ---------- */
.hm-why-choose {
    background: var(--hm-charcoal-dark);
    padding: 62px 0;
    position: relative;
}

.hm-why-choose .row { position: relative; }

.hm-why-choose .row { margin-left: -10px; margin-right: -10px; }
.hm-why-choose .row > div { padding-left: 10px; padding-right: 10px; display: flex; }

.hm-why-item {
    display: flex;
    align-items: center;
    gap: 17px;
    width: 100%;
    min-height: 148px;
    padding: 24px 21px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.hm-why-item:hover { transform: translateY(-4px); border-color: rgba(255,204,0,.35); background: rgba(255,255,255,.055); }

.hm-why-icon {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--hm-yellow);
    color: var(--hm-charcoal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    box-shadow: 0 0 0 5px rgba(255, 204, 0, 0.1);
    transition: box-shadow 220ms ease, transform 220ms ease;
}

.hm-why-item:hover .hm-why-icon {
    box-shadow: 0 0 0 9px rgba(255, 204, 0, 0.18);
    transform: scale(1.06);
}

.hm-why-copy { min-width: 0; }
.hm-why-item h5 { color: #fff; font-size: 17px; margin: 0 0 7px; font-weight: 700; line-height: 1.25; }
.hm-why-item p { color: #bdbdbf; font-size: 13.5px; line-height: 1.55; margin: 0; text-align: left; }

@media (max-width: 991px) {
    .hm-why-choose .row > div { margin-bottom: 20px; }
}

/* ---------- Who we are: unified home/about presentation ---------- */
.aboutcom { background: #fbfaf7; overflow: hidden; }
.hm-about-row { row-gap: 48px; }
.hm-about-visual { position: relative; min-height: 560px; padding: 0 34px 34px 0; }
.hm-about-visual::before { content: ""; position: absolute; left: -28px; top: -28px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 204, 0, .16); }
.hm-about-visual::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 72%; height: 82%; border: 2px solid rgba(224, 178, 0, .34); border-radius: 26px; z-index: 0; }
.hm-about-photo-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; width: 100%; height: 560px; padding: 10px; background: #fff; border-radius: 26px; box-shadow: 0 24px 55px rgba(35,35,37,.17); overflow: hidden; }
.hm-about-photo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.hm-about-photo-grid .hm-about-photo-main { grid-row: 1 / 3; object-position: center; }
.hm-about-badge { position: absolute; z-index: 2; right: 0; top: 38px; display: flex; align-items: center; gap: 12px; min-width: 190px; padding: 16px 20px; color: #202023; background: #ffcc00; border-radius: 16px; box-shadow: 0 15px 30px rgba(40, 35, 15, .22); }
.hm-about-badge strong { font-size: 42px; line-height: 1; }
.hm-about-badge span { font-size: 14px; font-weight: 700; line-height: 1.35; text-transform: uppercase; letter-spacing: .45px; }
.hm-about-caption { position: absolute; z-index: 2; left: 24px; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 18px 22px; color: #fff; background: #29292c; border-radius: 15px; box-shadow: 0 14px 30px rgba(31, 31, 33, .2); }
.hm-about-caption i { width: 42px; height: 42px; display: grid; place-items: center; color: #202023; background: #ffcc00; border-radius: 50%; }
.hm-about-caption span { font-size: 14px; font-weight: 600; line-height: 1.45; }
.hm-about-copy { padding-left: 66px; }
.hm-about-copy .sec-title { margin-bottom: 24px; }
.hm-about-copy .about-text-box > p { color: #666; font-size: 16px; line-height: 1.8; margin-bottom: 16px; }
.hm-about-copy .about-text-box .hm-about-lead { color: #29292c; font-size: 20px; line-height: 1.55; font-weight: 600; }
.hm-about-points { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 25px 0 31px; }
.hm-about-points > div { display: flex; align-items: center; gap: 13px; color: #343436; font-size: 15px; font-weight: 600; }
.hm-about-points i { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; color: #29292c; background: #ffcc00; border-radius: 50%; font-size: 12px; }
.hm-about-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.hm-about-call { display: inline-flex; align-items: center; gap: 12px; color: #29292c; text-decoration: none; }
.hm-about-call:hover { color: #c99f00; }
.hm-about-call > i { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #dedbd2; border-radius: 50%; }
.hm-about-call span { font-size: 12px; color: #777; text-transform: uppercase; letter-spacing: .7px; }
.hm-about-call small { display: block; color: #29292c; font-size: 17px; font-weight: 800; letter-spacing: 0; margin-top: 2px; }
@media (max-width: 991px) { .hm-about-copy { padding-left: 15px; } .hm-about-visual { max-width: 680px; margin: 0 auto; } }
@media (max-width: 575px) { .hm-about-visual { min-height: 470px; padding: 0 12px 28px 0; } .hm-about-photo-grid { height: 470px; grid-template-columns: 1.25fr 1fr; gap: 7px; padding: 7px; border-radius: 19px; } .hm-about-photo-grid img { border-radius: 12px; } .hm-about-badge { right: 0; top: 20px; min-width: 150px; padding: 12px 15px; } .hm-about-badge strong { font-size: 34px; } .hm-about-badge span { font-size: 11px; } .hm-about-caption { left: 12px; padding: 13px 15px; } .hm-about-actions { align-items: flex-start; flex-direction: column; } }

/* ---------- Refined home hero typography ---------- */
.slider_area .hm-hero-copy { position: relative; }
.slider_area .hm-hero-copy h3 {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 18px;
    color: var(--hm-yellow);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.slider_area .hm-hero-copy h3::before {
    content: "";
    position: static;
    display: block;
    width: 42px;
    height: 3px;
    flex: 0 0 42px;
    border-radius: 10px;
    background: var(--hm-yellow);
}
.slider_area .hm-hero-copy h1 {
    max-width: 650px;
    margin: 0 0 28px;
    color: #fff;
    font-size: clamp(42px, 4.25vw, 58px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
    text-shadow: 0 5px 25px rgba(0,0,0,.42);
    text-transform: none;
}
.slider_area .hm-hero-copy h1 span {
    position: relative;
    display: inline-block;
    color: var(--hm-yellow);
}
.slider_area .hm-hero-copy h1 span::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 8%;
    bottom: -7px;
    height: 4px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--hm-yellow), rgba(255,204,0,0));
}
.slider_area .hm-hero-copy .btn1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 52px;
    padding: 0 25px;
    border: 2px solid var(--hm-yellow);
    border-radius: 7px;
    color: var(--hm-charcoal-dark);
    background: var(--hm-yellow);
    box-shadow: 0 12px 28px rgba(255,204,0,.20);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .65px;
    text-transform: uppercase;
    transition: transform .22s ease, color .22s ease, background .22s ease;
}
.slider_area .hm-hero-copy .btn1 i { font-size: 12px; transition: transform .22s ease; }
.slider_area .hm-hero-copy .btn1:hover { transform: translateY(-3px); color: #fff; background: var(--hm-charcoal-dark); }
.slider_area .hm-hero-copy .btn1:hover i { transform: translateX(4px); }
@media (max-width: 735px) {
    .slider_area .hm-hero-copy h3 { justify-content: center; gap: 9px; margin-bottom: 13px; font-size: 11px; letter-spacing: 1.5px; }
    .slider_area .hm-hero-copy h3::before { width: 25px; flex-basis: 25px; height: 2px; }
    .slider_area .hm-hero-copy h1 { margin-bottom: 25px; font-size: clamp(31px, 8.5vw, 39px); line-height: 1.14; letter-spacing: -.7px; text-transform: none; }
    .slider_area .hm-hero-copy h1 span::after { bottom: -5px; height: 3px; }
    .slider_area .hm-hero-copy .btn1 { min-height: 48px; padding: 0 19px; font-size: 11px; }
}

/* ---------- Expanded About page ---------- */
.hm-about-philosophy { background: #29292c; }
.hm-about-statement { padding-right: 45px; }
.hm-about-statement > span, .hm-about-section-heading > span, .hm-about-trust-copy > span { color: var(--hm-yellow); font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.hm-about-statement h2 { color: #fff; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; margin: 12px 0 20px; }
.hm-about-statement p { color: #c4c4c6; font-size: 16px; line-height: 1.8; }
.hm-about-statement a { display: inline-flex; align-items: center; gap: 10px; color: var(--hm-yellow); font-weight: 800; margin-top: 14px; text-transform: uppercase; font-size: 13px; letter-spacing: .5px; }
.hm-about-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.hm-about-values article { min-height: 215px; padding: 30px 28px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.045); transition: transform .25s ease, border-color .25s ease; }
.hm-about-values article:hover { transform: translateY(-4px); border-color: rgba(255,204,0,.45); }
.hm-about-values i { width: 48px; height: 48px; display: grid; place-items: center; color: #29292c; background: var(--hm-yellow); border-radius: 13px; font-size: 20px; }
.hm-about-values h3 { color: #fff; font-size: 19px; margin: 20px 0 9px; }
.hm-about-values p { color: #b9b9bb; font-size: 14px; line-height: 1.65; margin: 0; }

.hm-clinical-standards { background: #fff; }
.hm-standards-image { position: relative; margin-left: 45px; }
.hm-standards-image img { display: block; width: 100%; height: 600px; object-fit: cover; border-radius: 22px; box-shadow: 0 20px 48px rgba(35,35,37,.15); }
.hm-standards-image > div { position: absolute; left: -28px; bottom: 28px; padding: 18px 22px; border-radius: 14px; background: var(--hm-yellow); color: #29292c; box-shadow: 0 14px 30px rgba(42,35,7,.22); }
.hm-standards-image strong, .hm-standards-image span { display: block; }
.hm-standards-image strong { font-size: 18px; }
.hm-standards-image span { font-size: 12px; margin-top: 3px; }
.hm-standards-lead { color: #666; font-size: 16px; line-height: 1.8; margin-bottom: 26px; }
.hm-standards-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.hm-standards-list li { display: flex; align-items: flex-start; gap: 16px; }
.hm-standards-list i { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; color: #29292c; background: #fff4c7; border-radius: 12px; font-size: 18px; }
.hm-standards-list strong, .hm-standards-list span { display: block; }
.hm-standards-list strong { color: #29292c; font-size: 16px; margin: 1px 0 4px; }
.hm-standards-list span { color: #777; font-size: 14px; line-height: 1.55; }

.hm-patient-journey { background: #f6f5f2; }
.hm-about-section-heading { max-width: 760px; margin: 0 auto 48px; }
.hm-about-section-heading h2 { color: #29292c; font-size: clamp(31px, 4vw, 44px); margin: 10px 0 13px; }
.hm-about-section-heading p { color: #707074; font-size: 16px; line-height: 1.75; }
.hm-journey-step { position: relative; height: 100%; padding: 30px 25px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(40,40,42,.07); overflow: hidden; }
.hm-journey-step b { position: absolute; right: 17px; top: 8px; color: rgba(41,41,44,.07); font-size: 54px; }
.hm-journey-step i { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; color: #29292c; background: var(--hm-yellow); font-size: 19px; }
.hm-journey-step h3 { color: #29292c; font-size: 20px; margin: 21px 0 9px; }
.hm-journey-step p { color: #747477; font-size: 14px; line-height: 1.65; margin: 0; }

.hm-about-trust { background: #fff; }
.hm-about-trust img { display: block; width: 100%; height: 570px; object-fit: cover; object-position: center; border-radius: 22px; }
.hm-about-trust-copy { padding-left: 58px; }
.hm-about-trust-copy h2 { color: #29292c; font-size: clamp(31px, 4vw, 45px); line-height: 1.18; margin: 11px 0 18px; }
.hm-about-trust-copy > p { color: #6d6d70; font-size: 16px; line-height: 1.8; }
.hm-about-trust-copy ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px 18px; list-style: none; padding: 0; margin: 26px 0 34px; }
.hm-about-trust-copy li { color: #39393b; font-size: 14px; font-weight: 700; }
.hm-about-trust-copy li i { width: 25px; height: 25px; display: inline-grid; place-items: center; margin-right: 8px; border-radius: 50%; color: #29292c; background: var(--hm-yellow); font-size: 10px; }
@media (max-width: 991px) { .hm-about-statement { padding-right: 0; margin-bottom: 42px; } .hm-standards-image { margin: 0 0 48px; } .hm-standards-image img { height: 470px; } .hm-about-trust-copy { padding: 45px 0 0; } .hm-journey-step { margin-bottom: 20px; } }
@media (max-width: 575px) { .hm-about-values { grid-template-columns: 1fr; } .hm-about-values article { min-height: 0; } .hm-standards-image img, .hm-about-trust img { height: 400px; } .hm-standards-image > div { left: 14px; right: 14px; bottom: 14px; } .hm-about-trust-copy ul { grid-template-columns: 1fr; } }

/* ---------- Blog cards (home preview + blog listing) ---------- */
.hm-blog-grid { background: var(--hm-light); padding: 90px 0 70px; }

.hm-blog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(44, 44, 46, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.hm-blog-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(44, 44, 46, 0.14); }
.hm-blog-card-img { display: block; overflow: hidden; }
.hm-blog-card-img img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform 400ms ease; }
.hm-blog-card:hover .hm-blog-card-img img { transform: scale(1.06); }
.hm-blog-card-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }

.hm-blog-card-date {
    color: var(--hm-yellow-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hm-blog-card-date i { margin-right: 6px; }
.hm-blog-card-body h3 { font-size: 20px; line-height: 1.35; margin: 0 0 12px; }
.hm-blog-card-body h3 a { color: var(--hm-charcoal-dark); text-decoration: none; }
.hm-blog-card-body h3 a:hover { color: var(--hm-yellow-dark); }
.hm-blog-card-body p { color: #6b6b6b; font-size: 15px; line-height: 1.7; margin-bottom: 18px; flex: 1; }

.hm-blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hm-charcoal-dark);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.hm-blog-readmore i { transition: transform 200ms ease; font-size: 12px; }
.hm-blog-readmore:hover { color: var(--hm-yellow-dark); }
.hm-blog-readmore:hover i { transform: translateX(4px); }

/* ---------- Gallery: bottom-caption overlay instead of full-cover-on-hover
   (the template's default fully hid the photo behind a solid color whenever
   the cursor happened to be over a tile, which reads as a broken image). ---------- */
.fancybox-overlay,
.fancybox-overlay-fixed {
    background: rgba(20, 20, 22, .94) !important;
    z-index: 99998 !important;
}
.fancybox-wrap { z-index: 99999 !important; }
.fancybox-skin {
    background: #2c2c2e !important;
    box-shadow: 0 18px 70px rgba(0,0,0,.65) !important;
}
.fancybox-image { background: #fff; }
.fancybox-close { filter: drop-shadow(0 2px 4px rgba(0,0,0,.8)); }

.latest-gallery .single-item .img-box img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center;
    transition: transform 500ms ease;
}

.latest-gallery .single-item:hover .img-box img {
    transform: scale(1.08);
}

.latest-gallery .single-item .img-box .overlay {
    top: auto;
    height: auto;
    opacity: 1;
    background: linear-gradient(to top, rgba(44, 44, 46, 0.85) 0%, rgba(44, 44, 46, 0) 100%);
    padding-top: 70px;
}

.latest-gallery .single-item .img-box .overlay .inner {
    display: block;
    height: auto;
}

.latest-gallery .single-item .img-box .overlay .social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
}

.latest-gallery .single-item .social h4 {
    margin: 0;
    font-size: 14px;
    text-align: left;
    color: #fff;
}
.latest-gallery a.img-box { display: block; color: inherit; cursor: zoom-in; }
.hm-gallery-expand { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #29292c; background: var(--hm-yellow); font-size: 14px; transition: transform .25s ease; }
.latest-gallery .single-item:hover .hm-gallery-expand { transform: scale(1.08); }
@media (max-width: 991px) { .latest-gallery .single-item .img-box img { height: 300px; } }
@media (max-width: 767px) { .latest-gallery .single-item .img-box img { height: 360px; } }

/* Equal-height doctor cards with a consistent action row. */
.team-page .row { align-items: stretch; }
.team-page .team-single { width: 100%; height: 100%; display: flex; flex-direction: column; margin-bottom: 0; }
.team-page .team-img { flex: 0 0 355px; }
.team-page .team-img a, .team-page .team-img img { display: block; width: 100%; height: 100%; }
.team-page .team-img img { object-fit: cover; }
/* Same fix as the homepage cards, recalibrated for this section's actual
   (taller) rendered box so both doctors' faces sit at the same level. */
.team-page .team-img img[src*="HAR_3543_optimized"] { object-position: center 71%; }
.team-page .team-img img[src*="HAR_3554_optimized"] { object-position: center 11%; }
.team-page .team-single .con { bottom: 0; flex: 1; display: flex; flex-direction: column; padding: 27px 28px 26px; border-radius: 0 0 14px 14px; }
.team-page .hm-focus-tags { justify-content: center; }
.team-page .hm-doctor-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; align-self: center; margin-top: auto; padding: 11px 20px; border-radius: 30px; background: var(--hm-yellow); color: #29292c; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.team-page .hm-doctor-link:hover { background: #fff; color: #29292c; }
@media (max-width: 575px) { .team-page .team-img { flex-basis: 300px; } }
.hm-other-doctor-section { padding-bottom: 90px; }
.hm-other-doctor-section .team-single { height: auto; }
@media (max-width: 767px) { .hm-other-doctor-section { padding-bottom: 65px; } }

/* ---------- Small helpers ---------- */
.hm-map-frame { border: 0; width: 100%; height: 380px; display: block; }
.hm-hours-table { width: 100%; }
.hm-hours-table td { padding: 6px 0; border-bottom: 1px dashed #e2e2e2; }
.hm-hours-table td:last-child { text-align: right; font-weight: 600; color: var(--hm-charcoal); }
