/* =========================================================================
   SHANTI DEVI MEMORIAL HOSPITAL — DESIGN SYSTEM (FINAL, MERGED)
   Merges the new home/header design system with the site's real,
   pre-existing stylesheet (used across About, Services, Doctors, Blogs,
   Appointment, Contact, Footer, etc). Cleanup done in this pass:

   REMOVED (dead / duplicate / conflicting):
   - Duplicate `.day{}` block (was defined twice, second copy merged in)
   - Stray `p{font-family:Outfit}` — Outfit was never loaded, so every
     paragraph on the site was silently falling back to a default serif.
     Body font now cascades correctly to all text.
   - Old `.about-section-v2 / .badges-grid / .badge-item-v2 /
     .services-section / .service-card / .specialist-icon-mono /
     .btn-outline-primary / .btn-glow / .display-5` blocks that directly
     collided with the new -v2 home page classes of the same name.
   - Old unscoped `.carousel-control-prev/-next` sizing that fought with
     the new compact hero controls (kept as one shared default, with a
     smaller override scoped to the hero frame only).
   - Old hover-only mobile dropdown + custom caret hack that conflicted
     with the new click-based Bootstrap dropdown styling.

   RE-THEMED, NOT REMOVED:
   - Bootstrap's own --bs-primary/--bs-dark/--bs-light variables are now
     overridden once at :root. Every legacy rule that already referenced
     var(--bs-primary) etc. (icon boxes, service-item hover, team-social,
     footer links, carousel controls) automatically adopts the new
     palette — no need to touch each rule individually.
   - Hardcoded legacy hex colors (#0b3a63, #00d084, #ff7a00, #d00036,
     #28a745, #6ba6ff, #ff6b6b) mapped to design tokens so the whole
     site reads as one palette. WhatsApp green (#25D366) kept exact —
     that one has to match the WhatsApp brand, not ours.

   KEPT AS-IS (still used on other pages, not touched structurally):
   legacy .service-item/.container-service, .team-item/.container-team,
   .doctor-card/.profile-card, .article-card, .appointment-wrapper
   calendar UI, .why-card/.content-card/.test-card, floating call/
   WhatsApp buttons, footer.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------------- */
:root {
    /* Core palette */
    --sdmh-navy-deep: #0a2540;
    --sdmh-navy: #123a5c;
    --sdmh-navy-soft: #1e4b73;
    --sdmh-indigo: #3b3597;
    --sdmh-teal: #0f9e9b;
    --sdmh-teal-light: #3fc9c2;
    --sdmh-teal-dark: #0a6f6d;
    --sdmh-gold: #c8a24d;
    --sdmh-red: #d64545;

    /* Neutrals */
    --sdmh-ivory: #f7f5f0;
    --sdmh-paper: #fdfcfa;
    --sdmh-line: #e7e2d8;
    --sdmh-border: #e7e2d8;
    /* alias of --sdmh-line, referenced directly inline on the About page */
    --sdmh-ink: #17222c;
    --sdmh-ink-soft: #4c5a66;
    --sdmh-ink-faint: #85919b;
    --sdmh-body: #4c5a66;
    /* alias of --sdmh-ink-soft, referenced inline on specialist-details */
    --sdmh-accent: #0a6f6d;
    /* alias of --sdmh-teal-dark, referenced inline on specialist-details */
    --sdmh-white: #ffffff;

    /* Type */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --fs-h1: clamp(2.25rem, 1.6rem + 2.6vw, 3.6rem);
    --fs-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
    --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --fs-lead: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
    --fs-body: 1rem;
    --fs-small: 0.875rem;
    --fs-eyebrow: 0.8rem;

    /* Spacing scale */
    --sp-1: 0.5rem;
    --sp-2: 1rem;
    --sp-3: 1.5rem;
    --sp-4: 2rem;
    --sp-5: 3rem;
    --sp-6: 4.5rem;
    --sp-7: 6rem;

    /* Shape & shadow */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 26px;
    --radius-pill: 999px;
    --shadow-sm: 0 4px 16px -6px rgba(10, 37, 64, 0.12);
    --shadow-md: 0 14px 34px -12px rgba(10, 37, 64, 0.18);
    --shadow-lg: 0 26px 54px -18px rgba(10, 37, 64, 0.28);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast: 0.2s;
    --dur-med: 0.4s;
    --dur-slow: 0.8s;

    /* Re-theme Bootstrap itself so every legacy component that already
       uses var(--bs-primary)/var(--bs-dark)/var(--bs-light)/var(--bs-white)
       picks up the new palette automatically, site-wide, in one place. */
    --bs-primary: #0f9e9b;
    --bs-secondary: #1e4b73;
    --bs-dark: #0a2540;
    --bs-light: #f7f5f0;
    --bs-white: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* -------------------------------------------------------------------------
   2. BASE & RESET
   ------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--sdmh-ink);
    background: var(--sdmh-paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--sdmh-navy-deep);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
}

p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--sdmh-teal);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    max-width: 1240px;
}

.fw-medium {
    font-weight: 500;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Back to top ***/
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/* -------------------------------------------------------------------------
   3. TYPOGRAPHY UTILITIES
   ------------------------------------------------------------------------- */
.display-5 {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 600;
    color: var(--sdmh-navy-deep);
}

.lead {
    font-size: var(--fs-lead);
    color: var(--sdmh-ink-soft);
    font-family: var(--font-body);
    font-weight: 400;
}

.highlight,
.highlight-blue {
    color: var(--sdmh-teal-dark);
}

.highlight-red {
    color: var(--sdmh-red);
}

.section-eyebrow,
.vital-hero-eyebrow,
.appointment-eyebrow,
.blogs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sdmh-teal-dark);
    margin-bottom: var(--sp-2);
}

.vital-hero-eyebrow .dot,
.appointment-eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sdmh-teal);
    box-shadow: 0 0 0 4px rgba(15, 158, 155, 0.18);
    animation: pulseDot 1.8s var(--ease) infinite;
}

.appointment-eyebrow {
    color: var(--sdmh-teal-light);
}

/* -------------------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--bs-light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--bs-dark);
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: normal;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.icon-box-primary,
.icon-box-light {
    position: relative;
    padding: 0 0 10px 10px;
    z-index: 1;
}

.icon-box-primary i,
.icon-box-light i {
    font-size: 60px;
    line-height: 0;
}

.icon-box-primary::before {
    background: var(--bs-primary);
}

.icon-box-light::before {
    background: var(--bs-light);
}


.vital-btn-primary,
.cta-btn-v2,
.doctor-btn-fill,
.visit-btn-fill,
.appointment-submit-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, var(--sdmh-teal), var(--sdmh-teal-dark));
    color: var(--sdmh-white) !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
    cursor: pointer;
}

.vital-btn-primary:hover,
.cta-btn-v2:hover,
.doctor-btn-fill:hover,
.visit-btn-fill:hover,
.appointment-submit-v2:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--sdmh-white);
}

.vital-btn-ghost,
.doctor-btn-outline,
.visit-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.9rem 1.8rem;
    background: transparent;
    color: var(--sdmh-white) !important;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-pill);
    transition: all var(--dur-fast) var(--ease);
}

.vital-btn-ghost:hover,
.doctor-btn-outline:hover,
.visit-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
    color: var(--sdmh-white);
}

.doctor-btn-outline,
.visit-btn-outline {
    color: var(--sdmh-navy) !important;
    border-color: var(--sdmh-line);
}

.doctor-btn-outline:hover,
.visit-btn-outline:hover {
    background: var(--sdmh-navy-deep);
    border-color: var(--sdmh-navy-deep);
    color: var(--sdmh-white) !important;
}

.btn-glow {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-pill);
    background: var(--sdmh-navy-deep);
    color: var(--sdmh-white) !important;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all var(--dur-fast) var(--ease);
}

.btn-glow:hover {
    background: var(--sdmh-teal-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--sdmh-white) !important;
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--sdmh-teal);
    color: var(--sdmh-teal-dark) !important;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    align-self: flex-start;
    margin-top: auto;
    transition: all var(--dur-fast) var(--ease);
}

.btn-outline-primary:hover {
    background-color: var(--sdmh-teal);
    border-color: var(--sdmh-teal);
    color: var(--sdmh-white) !important;
}

/* -------------------------------------------------------------------------
   5. NAVBAR
   ------------------------------------------------------------------------- */
.container-fluid.sticky-top {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sdmh-line);
    z-index: 999;
    padding: 0;
}

.navbar {
    padding: 0.6rem 0;
}

.navbar-brand h5,
.navbar-brand h6 {
    font-family: var(--font-display);
    color: var(--sdmh-navy-deep) !important;
    letter-spacing: -0.01em;
}

.header-logo-img {
    transition: transform var(--dur-fast) var(--ease);
}

.navbar-brand:hover .header-logo-img {
    transform: scale(1.04);
}

.navbar-nav .nav-link {
    position: relative;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--sdmh-ink) !important;
    padding: 0.6rem 1.1rem !important;
    outline: none;
    transition: color var(--dur-fast) var(--ease);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 0.35rem;
    height: 2px;
    background: var(--sdmh-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-fast) var(--ease);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: var(--sdmh-teal-dark) !important;
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 6px;
    color: var(--sdmh-ink-faint);
    transition: transform var(--dur-fast) var(--ease);
}

.dropdown-menu {
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    margin-top: 0.5rem !important;
}

.dropdown-item {
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.6rem 1rem;
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(15, 158, 155, 0.1);
    color: var(--sdmh-teal-dark);
}

.navbar-toggler {
    border: 1px solid var(--sdmh-line);
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(15, 158, 155, 0.25);
}

.nav-header-action {
    display: flex;
    align-items: center;
}

.nav-header-action i {
    color: var(--sdmh-teal-dark);
}

.nav-header-action a {
    font-weight: 600;
    color: var(--sdmh-ink) !important;
    font-size: 0.92rem;
    transition: color var(--dur-fast) var(--ease);
}

.nav-header-action a:hover {
    color: var(--sdmh-teal-dark) !important;
}

@media (max-width: 1199.98px) {
    .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid var(--sdmh-line);
    }
}

/* -------------------------------------------------------------------------
   6. HEADER / HERO  (home hero + inner-page banner + shared carousel)
   ------------------------------------------------------------------------- */
@media (min-width: 1200px) {

    .header-carousel,
    .page-header {
        margin-top: -34px;
    }
}

/* Inner-page banner (About, Services, Doctors, etc.) */
.page-header {
    background: linear-gradient(rgba(10, 37, 64, .55), rgba(10, 37, 64, .55)), url(../img/aboutus.avif) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--sdmh-white);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--sdmh-white);
}

/* Shared default carousel controls (gallery / other listing carousels) */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 3.5rem;
    background-color: var(--bs-primary);
    border: 15px solid var(--bs-primary);
}

@media (max-width: 767.98px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Home hero */
.vital-hero {
    position: relative;
    padding: var(--sp-6) 0 var(--sp-5);
    background:
        radial-gradient(1100px 480px at 85% -10%, rgba(15, 158, 155, 0.10), transparent 60%),
        linear-gradient(180deg, #f2efe7 0%, var(--sdmh-paper) 70%);
    overflow: hidden;
}

.vital-hero h1 {
    margin-bottom: var(--sp-2);
}

.vital-hero h1 em {
    font-style: italic;
    color: var(--sdmh-teal-dark);
}

.vital-hero .lead {
    max-width: 480px;
    margin-bottom: var(--sp-3);
}

.vital-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: var(--sp-4);
}

.vital-hero-actions .vital-btn-ghost {
    color: var(--sdmh-navy) !important;
    border-color: var(--sdmh-line);
}

.vital-hero-actions .vital-btn-ghost:hover {
    background: var(--sdmh-navy-deep);
    border-color: var(--sdmh-navy-deep);
    color: var(--sdmh-white) !important;
}

.vital-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    padding-top: var(--sp-3);
    margin-bottom: var(--sp-2);
    border-top: 1px solid var(--sdmh-line);
}

.vital-chip .num {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--sdmh-navy-deep);
}

.vital-chip .lbl {
    font-size: var(--fs-small);
    color: var(--sdmh-ink-faint);
    font-weight: 500;
}

.vital-pulse-wrap {
    width: 100%;
    max-width: 480px;
    height: 60px;
    opacity: 0.85;
}

.vital-pulse-baseline {
    stroke: var(--sdmh-line);
    stroke-width: 1.5;
}

.vital-pulse-path {
    fill: none;
    stroke: var(--sdmh-teal);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: drawPulse 3.2s var(--ease) infinite;
}

.vital-hero-frame {
    position: relative;
    border-radius: var(--radius-lg);
    /*overflow: hidden;*/
    box-shadow: var(--shadow-lg);
   
}

.header-carousel,
#header-carousel,
.vital-hero-frame .carousel-inner,
.vital-hero-frame .carousel-item {
    height: 100%;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
}

.vital-live-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: rgba(10, 37, 64, 0.68);
    backdrop-filter: blur(6px);
    color: var(--sdmh-white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
}

.vital-live-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sdmh-teal-light);
    animation: pulseDot 1.8s var(--ease) infinite;
}

/* Hero-scoped override: compact round controls instead of the site default */
.vital-hero-frame .carousel-control-prev,
.vital-hero-frame .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    opacity: 0.9;
}

.vital-hero-frame .carousel-control-prev {
    left: 16px;
}

.vital-hero-frame .carousel-control-next {
    right: 16px;
}

.vital-hero-frame .carousel-control-prev-icon,
.vital-hero-frame .carousel-control-next-icon {
    width: 1.1rem;
    height: 1.1rem;
    background-color: transparent;
    border: none;
    filter: invert(14%) sepia(45%) saturate(1200%) hue-rotate(178deg);
}

/* -------------------------------------------------------------------------
   7. QUICK-ACTION PILLS
   ------------------------------------------------------------------------- */
.qa-facilities-wrap {
    position: relative;
    z-index: 3;
    margin-top: -30px;
}

.quick-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    padding: 0 12px;
}

.qa-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.8rem;
    border-radius: var(--radius-pill);
    color: var(--sdmh-white) !important;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
    opacity: 0;
    animation: fadeUp 0.6s var(--ease) forwards;
}

.qa-pill i {
    font-size: 0.95rem;
}

.qa-pill:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--sdmh-white);
}

.qa-pill-blue {
    background: linear-gradient(135deg, var(--sdmh-navy-soft), var(--sdmh-navy-deep));
    animation-delay: 0.05s;
}

.qa-pill-teal {
    background: linear-gradient(135deg, var(--sdmh-teal-light), var(--sdmh-teal-dark));
    animation-delay: 0.18s;
}

.qa-pill-dark {
    background: linear-gradient(135deg, var(--sdmh-indigo), var(--sdmh-navy-deep));
    animation-delay: 0.31s;
}

/* -------------------------------------------------------------------------
   8. STATS
   ------------------------------------------------------------------------- */
.stats-section {
    padding: var(--sp-5) 0 var(--sp-4);
}

.stats-wrapper {
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line) !important;
    border-radius: var(--radius-lg) !important;
}

.stats-heading {
    font-family: var(--font-body);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--sdmh-ink-faint);
}

.stat-card {
    padding: var(--sp-2);
}

.stat-icon-v2 {
    width: 62px;
    height: 62px;
    margin: 0 auto var(--sp-2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 158, 155, 0.1);
    color: var(--sdmh-teal-dark);
    font-size: 1.5rem;
    transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.stat-column:hover .stat-icon-v2 {
    transform: translateY(-4px) scale(1.05);
    background: var(--sdmh-teal);
    color: var(--sdmh-white);
}

.stat-number-v2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--sdmh-navy-deep);
}

.stat-label-v2 {
    font-size: var(--fs-small);
    color: var(--sdmh-ink-faint);
    font-weight: 500;
}

/* about page stat circle (About page) */
.about-fact {
    width: 220px;
    height: 220px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

@media (min-width: 576px) {
    .about-fact.mt-n130 {
        margin-top: -130px;
    }
}

/* -------------------------------------------------------------------------
   9. ABOUT (home)
   ------------------------------------------------------------------------- */
.about-section-v2 {
    position: relative;
    padding: var(--sp-6) 0;
    background-color: var(--sdmh-paper);
    overflow: hidden;
}

.about-section-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, rgba(15, 158, 155, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 0;
}

.about-section-v2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 220px;
    height: 220px;
    background: linear-gradient(315deg, rgba(200, 162, 77, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
    clip-path: polygon(100% 100%, 100% 0, 0 100%);
    z-index: 0;
}

.about-section-v2 .row {
    position: relative;
    z-index: 1;
}

.about-title-v2 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.about-title-v2::after {
    content: '';
    display: block;
    width: 90px;
    height: 3px;
    background: var(--sdmh-teal);
    margin-top: 14px;
    border-radius: 2px;
}

.about-text-v2 {
    color: var(--sdmh-ink-soft);
    font-size: 1.02rem;
    line-height: 1.75;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.badge-item-v2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 1.1rem;
    border-radius: var(--radius-md);
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.badge-item-v2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.badge-icon-wrap {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: 1.05rem;
}

.badge-content-box {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--sdmh-navy-deep);
    line-height: 1.3;
}

.badge-beds .badge-icon-wrap {
    color: var(--sdmh-red);
    background: rgba(214, 69, 69, 0.08);
}

.badge-emergency .badge-icon-wrap {
    color: var(--sdmh-indigo);
    background: rgba(59, 53, 151, 0.08);
}

.badge-blood .badge-icon-wrap {
    color: var(--sdmh-teal-dark);
    background: rgba(15, 158, 155, 0.1);
}

.badge-ot .badge-icon-wrap {
    color: var(--sdmh-gold);
    background: rgba(200, 162, 77, 0.12);
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.about-image-circular {
    width: 100%;
    height: 100%;
    transition: transform var(--dur-slow) var(--ease);
}

.about-image-wrapper:hover .about-image-circular {
    transform: scale(1.04);
}

@media (max-width: 991.98px) {
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-image-wrapper {
        margin-top: var(--sp-4);
    }
}

/* -------------------------------------------------------------------------
   10. SERVICES / SPECIALITIES (home) + legacy services page
   ------------------------------------------------------------------------- */
.services-section {
    padding: var(--sp-6) 0;
    background: var(--sdmh-ivory);
}

.service-card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.specialist-icon-mono {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sdmh-navy-deep), var(--sdmh-navy-soft));
    color: var(--sdmh-white);
    font-size: 1.3rem;
    margin-bottom: var(--sp-2);
    transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.service-card:hover .specialist-icon-mono {
    background: linear-gradient(135deg, var(--sdmh-teal-dark), var(--sdmh-teal));
    transform: rotate(-6deg) scale(1.05);
}

.service-card h5 {
    font-size: 1.15rem;
    color: var(--sdmh-navy-deep);
}

.service-card p {
    color: var(--sdmh-ink-soft);
    font-size: 0.94rem;
}

/* Legacy diagonal-clip services layout, kept for whichever page still uses it */
.container-service {
    position: relative;
}

.container-service::before {
    position: absolute;
    content: '';
    background: var(--bs-light);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 70%);
    z-index: -1;
}

.service-item {
    text-align: center;
    position: relative;
    height: 100%;
    padding: 23px 14px;
    background: var(--sdmh-white);
    box-shadow: var(--shadow-sm);
}

.service-item::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    transition: .5s;
    background: var(--bs-primary);
}

.service-item:hover::before {
    height: 100%;
    top: 0;
}

.service-item * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service-item:hover h5,
.service-item:hover p {
    color: var(--sdmh-white);
}

.service-item:hover .icon-box-primary::before {
    background: var(--bs-dark);
}

.service-item:hover .icon-box-primary i {
    color: var(--sdmh-white) !important;
}

/* -------------------------------------------------------------------------
   11. BLOGS (home teaser) + legacy blog listing page
   ------------------------------------------------------------------------- */
.blogs-section {
    padding: var(--sp-6) 0;
}

.article-card-v2 {
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}

.article-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.article-img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease);
}

.article-card-v2:hover .article-img {
    transform: scale(1.08);
}

.article-category-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 0.35rem 0.9rem;
    background: rgba(10, 37, 64, 0.75);
    backdrop-filter: blur(4px);
    color: var(--sdmh-white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
}

.article-body-v2 {
    padding: var(--sp-3);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.article-meta-row {
    font-size: 0.78rem;
    color: var(--sdmh-ink-faint);
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta-row .sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--sdmh-ink-faint);
}

.article-title-v2 {
    font-size: 1.08rem;
    line-height: 1.4;
}

.article-title-v2 a {
    color: var(--sdmh-navy-deep);
    transition: color var(--dur-fast) var(--ease);
}

.article-title-v2 a:hover {
    color: var(--sdmh-teal-dark);
}

.article-desc-v2 {
    color: var(--sdmh-ink-soft);
    font-size: 0.9rem;
    flex: 1;
}

.article-footer-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.8rem;
    margin-top: 0.4rem;
    border-top: 1px solid var(--sdmh-line);
}

.article-doctor {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-doctor-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sdmh-teal);
    color: var(--sdmh-white);
    font-weight: 700;
    font-size: 0.8rem;
}

.article-doctor-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sdmh-ink);
}

.article-read-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sdmh-teal-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--dur-fast) var(--ease);
}

.article-read-link:hover {
    gap: 10px;
    color: var(--sdmh-teal-dark);
}

/* Legacy blog-listing page card */
.recent_articles_heading {
    text-align: center;
}

.article-card {
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: var(--shadow-sm);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.article-img {
    height: 255px;
    object-fit: cover;
}

.article-title {
    font-size: 18px;
    line-height: 1.4;
}

.badge {
    font-size: 12px;
    border-radius: 20px;
}

/* -------------------------------------------------------------------------
   12. APPOINTMENT (home embedded form) + legacy booking-calendar page
   ------------------------------------------------------------------------- */
.appointment-section {
    padding: var(--sp-6) 0;
    background:
        radial-gradient(900px 420px at 10% 0%, rgba(15, 158, 155, 0.18), transparent 60%),
        linear-gradient(160deg, var(--sdmh-navy-deep), var(--sdmh-navy) 60%, var(--sdmh-indigo));
    color: var(--sdmh-white);
}

.appointment-section h1 {
    color: var(--sdmh-white);
    font-size: var(--fs-h2);
}

.appointment-info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.appointment-info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--sdmh-teal-light);
}

.appointment-form-v2 {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    padding: var(--sp-4);
    backdrop-filter: blur(8px);
}

.appointment-form-v2 .form-control {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    color: var(--sdmh-ink);
    transition: box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.appointment-form-v2 .form-control:focus {
    background: var(--sdmh-white);
    border-color: var(--sdmh-teal);
    box-shadow: 0 0 0 3px rgba(15, 158, 155, 0.25);
    outline: none;
}

.appointment-form-v2 .form-control::placeholder {
    color: var(--sdmh-ink-faint);
}

.appointment-submit-v2 {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* Legacy standalone appointment/booking page with visual calendar */
.appointment-wrapper {
    display: flex;
    background: var(--sdmh-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.appointment-wrapper::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--sdmh-teal-light), var(--sdmh-teal));
    top: -50px;
    left: 30%;
    transform: rotate(20deg);
    opacity: 0.14;
}

.appt-left {
    width: 50%;
    padding: 25px;
    position: relative;
    z-index: 1;
}

.appt-right {
    width: 50%;
    background: var(--sdmh-ivory);
    padding: 25px;
    position: relative;
    z-index: 1;
}

.appt-title {
    color: var(--sdmh-gold);
    margin-bottom: 20px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 12px;
}

.form-control {
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 14px;
}

.calendar-box {
    text-align: center;
}

.calendar-box button {
    border: none;
    background: var(--sdmh-line);
    padding: 5px 10px;
    border-radius: 5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day {
    padding: 10px;
    border-radius: 6px;
    background: var(--sdmh-white);
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    transition: 0.2s;
}

.day:hover {
    background: var(--sdmh-teal);
    color: var(--sdmh-white);
}

.day.active,
.day.selected {
    background: var(--sdmh-teal-dark) !important;
    color: var(--sdmh-white);
}

.day.disabled {
    background: #f1f1f1;
    color: #aaa;
    pointer-events: none;
}

.readMoreBtn {
    color: var(--sdmh-teal-dark);
    border: none;
}

.btn-main {
    background: var(--sdmh-teal);
    color: var(--sdmh-white);
    border-radius: 6px;
    border: none;
}

.btn-main:hover {
    color: var(--sdmh-white);
    background: var(--sdmh-teal-dark);
}

@media (max-width: 768px) {
    .appointment-wrapper {
        flex-direction: column;
    }

    .appt-left,
    .appt-right {
        width: 100%;
    }
}

/* -------------------------------------------------------------------------
   13. DOCTORS (home) + legacy doctor listing/details pages
   ------------------------------------------------------------------------- */
.doctors-section {
    padding: var(--sp-6) 0;
    background: var(--sdmh-ivory);
}

.doctor-card-v2 {
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
    transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}

.doctor-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.doctor-img-v2 {
    aspect-ratio: 4 / 3.3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #eef1f3, #e2e7ea);
    overflow: hidden;
}

.doctor-img-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-body-v2 {
    padding: var(--sp-3);
}

.doctor-name-v2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sdmh-navy-deep);
}

.doctor-spec-v2 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sdmh-teal-dark);
    margin-bottom: 0.6rem;
}

.doctor-meta-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--sdmh-ink-soft);
    margin-bottom: 0.35rem;
}

.doctor-meta-v2 i {
    width: 16px;
    color: var(--sdmh-ink-faint);
}

.doctor-actions-v2 {
    margin-top: var(--sp-2);
}

.doctor-actions-v2 a {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    text-align: center;
}

.doctors-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--sdmh-navy-deep);
    padding-bottom: 3px;
    border-bottom: 2px solid var(--sdmh-teal);
    transition: gap var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.doctors-view-all:hover {
    gap: 12px;
    color: var(--sdmh-teal-dark);
}

/* Legacy doctor listing page card */
.doctor-card {
    background: var(--sdmh-white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--sdmh-line);
    transition: 0.3s ease;
}

.doctor-card:hover {
    box-shadow: var(--shadow-md);
}

.doctor-img {
    background: #f7f7f7;
    text-align: center;
    padding: 20px;
}

.doctor-img img {
    width: 100%;
    height: 240px;
    object-fit: contain;
}

.doctor-info {
    padding: 15px;
}

.doctor-info h5 {
    font-weight: 600;
    margin-bottom: 5px;
}

.doctor-info p {
    font-size: 13px;
    color: var(--sdmh-ink-faint);
    margin: 0;
}

.doctor-actions {
    display: flex;
    border-top: 1px solid var(--sdmh-line);
}

.doctor-actions a {
    border-radius: 0;
    font-size: 13px;
    padding: 10px;
}

.doctor-actions a:first-child {
    border-right: 1px solid var(--sdmh-line);
}

/* Doctor-details page */
.profile-card {
    background: var(--sdmh-white);
    padding: var(--sp-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--sdmh-teal);
}

.profile-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sdmh-white);
    box-shadow: var(--shadow-sm);
}

.profile-name {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--sdmh-navy-deep);
}

.profile-designation {
    color: var(--sdmh-teal-dark);
    font-weight: 600;
    font-size: 0.92rem;
}

.profile-specialization {
    color: var(--sdmh-ink-faint);
    font-size: 0.88rem;
}

.doctor-dept-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.9rem;
    background: rgba(15, 158, 155, 0.1);
    color: var(--sdmh-teal-dark);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
}

.stat-box {
    background: var(--sdmh-ivory);
    border: 1px solid var(--sdmh-line);
    padding: var(--sp-2);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.stat-box strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--sdmh-navy-deep);
}

.stat-box small {
    color: var(--sdmh-ink-faint);
    font-size: 0.75rem;
}

.info-card {
    background: var(--sdmh-white);
    padding: var(--sp-3);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.info-card h6 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sdmh-navy-deep);
    margin-bottom: var(--sp-2);
}

.info-card h6 i {
    color: var(--sdmh-teal-dark);
}

.info-card p {
    color: var(--sdmh-ink-soft);
    font-size: 0.92rem;
    line-height: 1.7;
}

.about-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: max-height var(--dur-med) var(--ease);
}

.about-clamp.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    color: var(--sdmh-teal-dark);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: gap var(--dur-fast) var(--ease);
}

.read-more-btn:hover {
    gap: 10px;
}

/* Appointment calendar navigation */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar-nav button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: 50%;
    color: var(--sdmh-navy-deep);
    font-size: 0.75rem;
    transition: all var(--dur-fast) var(--ease);
}

.calendar-nav button:hover {
    background: var(--sdmh-teal);
    border-color: var(--sdmh-teal);
    color: var(--sdmh-white);
}

.calendar-nav h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--sdmh-navy-deep);
}

.calendar-weekdays {
    margin-bottom: 6px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--sdmh-ink-faint);
    background: transparent;
    cursor: default;
}

.calendar-legend {
    display: flex;
    gap: 14px;
    margin-top: var(--sp-2);
    font-size: 0.72rem;
    color: var(--sdmh-ink-faint);
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.calendar-legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sdmh-teal);
    display: inline-block;
}

.calendar-legend .taken i {
    background: #d8dde1;
}

/* Help box */
.help-box {
    padding: var(--sp-3);
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.help-box h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--sdmh-navy-deep);
}

.help-box h5 i {
    color: var(--sdmh-teal-dark);
}

.help-box p {
    color: var(--sdmh-ink-faint);
    font-size: 0.88rem;
}

.help-box-field {
    display: flex;
    gap: 8px;
}

.help-box-field .form-control {
    border: 1.5px solid var(--sdmh-line);
    border-radius: var(--radius-sm);
}

.help-box-field .form-control:focus {
    border-color: var(--sdmh-teal);
    box-shadow: 0 0 0 3px rgba(15, 158, 155, 0.14);
}

.help-box-field button {
    width: 42px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--sdmh-teal), var(--sdmh-teal-dark));
    color: var(--sdmh-white);
    border: none;
    border-radius: var(--radius-sm);
    transition: transform var(--dur-fast) var(--ease);
}

.help-box-field button:hover {
    transform: translateY(-2px);
}

/* Legacy team grid (used on a Team/Our Doctors page variant) */
.container-team {
    position: relative;
}

.container-team::before {
    position: absolute;
    content: '';
    background: var(--bs-light);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    clip-path: polygon(0 70%, 100% 30%, 100% 100%, 0% 100%);
    z-index: -1;
}

.team-item {
    background: var(--sdmh-white);
    box-shadow: var(--shadow-sm);
}

.team-item .team-social {
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    transition: .5s;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-item:hover .team-social {
    width: 100%;
    left: 0;
}

.team-item .team-social .btn {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social .btn {
    opacity: 1;
}

/* -------------------------------------------------------------------------
   14. TESTIMONIALS
   ------------------------------------------------------------------------- */
.testimonials-section {
    padding: var(--sp-6) 0;
}

.testimonial-card-v2 {
    height: 100%;
    padding: var(--sp-4);
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-md);
    position: relative;
    transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}

.testimonial-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.testimonial-quote-mark {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
    color: var(--sdmh-teal-light);
    margin-bottom: 0.5rem;
}

.testimonial-text-v2 {
    color: var(--sdmh-ink-soft);
    font-size: 0.96rem;
    margin-bottom: var(--sp-3);
}

.testimonial-author-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sdmh-navy-deep);
    color: var(--sdmh-white);
    font-weight: 700;
}

.testimonial-name-v2 {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--sdmh-navy-deep);
}

.testimonial-role-v2 {
    font-size: 0.78rem;
    color: var(--sdmh-ink-faint);
}

/* -------------------------------------------------------------------------
   15. CTA BANNER
   ------------------------------------------------------------------------- */
.cta-section-v2 {
    padding: var(--sp-6) 0;
    text-align: center;
    background: linear-gradient(135deg, var(--sdmh-teal-dark), var(--sdmh-navy-deep));
    color: var(--sdmh-white);
}

.cta-section-v2 h2 {
    color: var(--sdmh-white);
    font-size: var(--fs-h2);
    margin-bottom: var(--sp-1);
}

.cta-section-v2 p {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: var(--sp-3);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------------------------------------------------------
   16. CONTACT / VISIT (home) + legacy contact page + footer
   ------------------------------------------------------------------------- */
.contactpage-v2 {
    text-align: center;
    margin-bottom: var(--sp-5);
}

.contactpage-v2 h4 {
    font-size: var(--fs-h3);
}

.visit-card-v2 {
    height: 100%;
    padding: var(--sp-4);
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.visit-card-v2 h3 {
    font-size: 1.4rem;
}

.visit-card-v2 h6 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sdmh-teal-dark);
}

/* Legacy simple contact page */
.contactpage {
    text-align: center;
    padding: 20px;
}

#topheading {
    font-size: 24px;
}

.aboutp {
    color: var(--sdmh-white);
}

@media (min-width: 992px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 0;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0;
        top: 50%;
        left: 0;
        border-top: 1px dashed rgba(255, 255, 255, .2);
    }
}

/*** Footer ***/
.footer {
    position: relative;
    background:
        linear-gradient(160deg, var(--sdmh-navy-deep) 0%, var(--sdmh-navy) 55%, var(--sdmh-indigo) 130%),
        url(../img/footer.png) center center no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
    color: rgba(255, 255, 255, .68);
}

@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 0;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .16);
    }
}

.footer .navbar-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--sp-3);
    max-width: 100%;
}

.footer .navbar-brand img {
    height: 56px;
    width: auto;
    flex-shrink: 0;
    padding: 6px;
    border-radius: 10px;
    background: var(--sdmh-white);
}

.footer .navbar-brand h2,
.footer .navbar-brand h4 {
    color: var(--sdmh-white) !important;
    font-size: 1.35rem;
    line-height: 1.25;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

/* Below ~360px even the shrunk logo + name can't share a row cleanly —
   drop to a stacked layout instead of squeezing/overlapping. */
@media (max-width: 420px) {
    .footer .navbar-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer .navbar-brand img {
        height: 48px;
    }

    .footer .navbar-brand h4 {
        font-size: 1.15rem;
    }
}

.footer p {
    font-size: 0.96rem;
    line-height: 1.7;
}

.footer p i {
    width: 20px;
    color: var(--sdmh-teal-light);
}

.footer-social a {
    background: rgba(255, 255, 255, .08);
    color: var(--sdmh-white);
    border: 1px solid rgba(255, 255, 255, .14);
    transition: all var(--dur-fast) var(--ease);
}

.footer-social a:hover {
    background: var(--sdmh-teal);
    border-color: var(--sdmh-teal);
    transform: translateY(-3px);
}

.footer h4.text-light {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--sdmh-white) !important;
    margin-bottom: var(--sp-3) !important;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .58);
    font-weight: 500;
    font-size: 0.92rem;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--sdmh-teal-light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--sdmh-teal-light);
    letter-spacing: .5px;
    box-shadow: none;
}

.footer .input-group .form-control {
    border-radius: var(--radius-pill) 0 0 var(--radius-pill) !important;
    color: var(--sdmh-white);
}

.footer .input-group .form-control::placeholder {
    color: rgba(255, 255, 255, .5);
}

.footer .input-group .btn-primary {
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0 !important;
    background: linear-gradient(135deg, var(--sdmh-teal), var(--sdmh-teal-dark)) !important;
    border: none !important;
    font-weight: 600;
}

.copyright {
    background: var(--sdmh-navy-deep);
    border-top: 1px dashed rgba(255, 255, 255, .16);
}

.copyright p {
    color: rgba(255, 255, 255, .6);
    font-size: 0.88rem;
}

.copyright a {
    color: var(--sdmh-white);
}

.copyright a:hover {
    color: var(--sdmh-teal-light);
}

/*** Back to top ***/
.back-to-top {
    background: linear-gradient(135deg, var(--sdmh-teal), var(--sdmh-teal-dark)) !important;
    border: none !important;
    box-shadow: var(--shadow-md);
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* -------------------------------------------------------------------------
   17. MISC LEGACY COMPONENTS (service-details, tests, specialities strip)
   ------------------------------------------------------------------------- */
.why-card {
    background: var(--sdmh-navy-deep);
    color: var(--sdmh-white);
    border-radius: var(--radius-md);
}

.why-card h5 {
    font-size: 18px;
}

.why-card p {
    font-size: 14px;
    color: #dcdcdc;
}

#heading_why_choose {
    color: var(--sdmh-white);
}

.why-icon {
    color: var(--sdmh-teal-light);
    font-size: 20px;
}

.content-card {
    background: var(--sdmh-white);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.section-title {
    font-weight: 700;
    font-size: 22px;
    color: var(--sdmh-navy-deep);
    position: relative;
}

.section-title::after {
    content: "";
    width: 50px;
    height: 3px;
    background: var(--sdmh-teal);
    display: block;
    margin-top: 8px;
    border-radius: 2px;
}

.section-text {
    font-size: 15px;
    color: var(--sdmh-ink-soft);
    line-height: 1.8;
}

.test-card {
    background: var(--sdmh-ivory);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--sdmh-red);
    transition: all 0.3s ease;
    height: 100%;
}

.test-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.test-card h5 {
    color: var(--sdmh-navy-deep);
    font-size: 16px;
}

.test-card p {
    color: var(--sdmh-ink-soft);
    font-size: 14px;
    line-height: 1.6;
}

#specialities_name {
    padding: 18px;
    background: var(--sdmh-ivory);
}

.specialities_title {
    text-align: center;
}

.accordion button {
    color: var(--sdmh-ink) !important;
}

.about-section .about-check-item .fa-check-circle::before {
    color: var(--sdmh-teal-dark);
}

/* -------------------------------------------------------------------------
   18. FLOATING CALL / WHATSAPP BUTTONS
   ------------------------------------------------------------------------- */
.floating-buttons {
    position: fixed;
    left: 15px;
    bottom: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    position: fixed;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: var(--sdmh-white);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: pulse 1.5s infinite;
    transition: transform 0.3s ease;
}

.float-btn.call {
    background: var(--sdmh-red);
    bottom: 20px;
}

.float-btn.whatsapp {
    background: #25D366;
    bottom: 90px;
}

/* WhatsApp brand green — kept exact */

.float-btn:hover {
    transform: scale(1.15);
}

/* -------------------------------------------------------------------------
   19. MOTION & KEYFRAMES
   ------------------------------------------------------------------------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.8s ease forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.3s;
}

@keyframes pulseDot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(15, 158, 155, 0.35);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(15, 158, 155, 0);
    }
}

@keyframes drawPulse {
    0% {
        stroke-dashoffset: 900;
    }

    55% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* Draws once and stays visible — used by .sdmh-pulse-divider, unlike the
   looping hero heartbeat which fades back out. */
@keyframes drawPulseOnce {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.qa-observe {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}

.qa-observe.qa-visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------------------
   20. ABOUT PAGE
   ------------------------------------------------------------------------- */

/* Intro block: image + checklist */
.about-section {
    padding: var(--sp-6) 0;
}

.about-image img {
    box-shadow: var(--shadow-lg);
    transition: transform var(--dur-slow) var(--ease);
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-content .highlight {
    color: var(--sdmh-teal-dark);
}

.about-check-item {
    padding: 0.9rem 1.1rem;
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--sdmh-ink);
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.about-check-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: transparent;
}

.about-check-item i {
    color: var(--sdmh-teal-dark);
}

.about-mission-label {
    position: relative;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--sdmh-navy-deep);
    padding-left: 16px;
}

.about-mission-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--sdmh-teal);
    border-radius: 2px;
}

/* Signature heartbeat divider between sections */
.sdmh-pulse-divider {
    max-width: 1200px;
    height: 40px;
    margin: 0 auto;
    padding: 0 var(--sp-3);
    opacity: 0;
    transition: opacity var(--dur-slow) var(--ease);
}

.sdmh-pulse-divider.is-visible {
    opacity: 1;
}

.sdmh-pulse-divider path {
    fill: none;
    stroke: var(--sdmh-teal);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
}

.sdmh-pulse-divider.is-visible path {
    animation: drawPulseOnce 1.8s var(--ease) forwards;
}

/* Section rhythm + alternating tint */
.sdmh-wrapper {
    background: var(--sdmh-paper);
}

.sdmh-section-spacer {
    padding: var(--sp-6) 0;
}

.sdmh-tinted {
    background: var(--sdmh-ivory);
}

.section-meta-tag {
    display: inline-flex;
    align-items: center;
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sdmh-teal-dark);
}

.section-main-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--sdmh-navy-deep);
}

/* Philosophy cards */
.philosophy-card {
    padding: var(--sp-4);
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-md);
    transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}

.philosophy-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.philosophy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: var(--sp-2);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sdmh-teal), var(--sdmh-teal-dark));
    color: var(--sdmh-white);
    font-size: 1.3rem;
    transition: transform var(--dur-fast) var(--ease);
}

.philosophy-card:hover .philosophy-icon {
    transform: rotate(-6deg) scale(1.05);
}

.leading-relaxed {
    color: var(--sdmh-ink-soft);
    font-size: 0.94rem;
    line-height: 1.7;
}

/* Specialty grid (About page) */
.specialty-grid-item {
    padding: var(--sp-3);
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-left: 3px solid transparent;
    border-radius: var(--radius-sm);
    transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.specialty-grid-item:hover {
    border-left-color: var(--sdmh-teal);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.specialty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    background: rgba(15, 158, 155, 0.1);
    color: var(--sdmh-teal-dark);
    font-size: 1.05rem;
}

.additional-spec-pill {
    padding: 1rem;
    text-align: center;
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--dur-fast) var(--ease);
}

.additional-spec-pill:hover {
    background: var(--sdmh-teal);
    border-color: var(--sdmh-teal);
    transform: translateY(-3px);
}

.additional-spec-pill:hover span {
    color: var(--sdmh-white) !important;
}

/* Diagnostics numbered list */
.diagnostic-row-item {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--sdmh-line);
    transition: padding-left var(--dur-fast) var(--ease);
}

.diagnostic-row-item:hover {
    padding-left: 8px;
}

.diagnostic-row-item span[style*="monospace"] {
    color: var(--sdmh-teal-dark) !important;
    font-weight: 700 !important;
}

/* Premium doctor directory card */
.dr-card-premium {
    padding: var(--sp-3);
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-md);
    height: 100%;
    transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}

.dr-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.dr-image-container {
    aspect-ratio: 4 / 3.6;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: var(--sp-2);
    background: linear-gradient(160deg, #eef1f3, #e2e7ea);
}

.dr-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.dr-card-premium:hover .dr-image-container img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.dr-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--sdmh-navy-deep);
    margin-bottom: 2px;
}

.dr-dept {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sdmh-teal-dark);
}

.lnk-premium-border {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.4rem;
    border: 1.5px solid var(--sdmh-navy-deep);
    border-radius: var(--radius-pill);
    color: var(--sdmh-navy-deep);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all var(--dur-fast) var(--ease);
}

.lnk-premium-border:hover {
    background: var(--sdmh-navy-deep);
    color: var(--sdmh-white);
}

.lnk-action-trigger {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sdmh-navy-deep);
    border-bottom: 1.5px solid transparent;
    transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.lnk-action-trigger:hover {
    border-color: var(--sdmh-teal);
    color: var(--sdmh-teal-dark);
}

.lnk-secondary-trigger {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sdmh-teal-dark);
    transition: letter-spacing var(--dur-fast) var(--ease);
}

.lnk-secondary-trigger:hover {
    letter-spacing: 0.02em;
}

/* Scroll-reveal utilities used across inner pages */
.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-stagger>[class*="col-"] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-stagger.is-visible>[class*="col-"] {
    opacity: 1;
    transform: none;
}

.reveal-stagger.is-visible>[class*="col-"]:nth-child(1) {
    transition-delay: 0.05s;
}

.reveal-stagger.is-visible>[class*="col-"]:nth-child(2) {
    transition-delay: 0.13s;
}

.reveal-stagger.is-visible>[class*="col-"]:nth-child(3) {
    transition-delay: 0.21s;
}

.reveal-stagger.is-visible>[class*="col-"]:nth-child(4) {
    transition-delay: 0.29s;
}

.reveal-stagger.is-visible>[class*="col-"]:nth-child(5) {
    transition-delay: 0.37s;
}

.reveal-stagger.is-visible>[class*="col-"]:nth-child(6) {
    transition-delay: 0.45s;
}

/* -------------------------------------------------------------------------
   21. SPECIALIST / DEPARTMENT DETAILS PAGE
   ------------------------------------------------------------------------- */
.sdmh-inner-wrapper {
    background: var(--sdmh-paper);
}

.sdmh-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sdmh-ink-faint);
}

.sdmh-breadcrumb a {
    color: var(--sdmh-ink-faint);
    transition: color var(--dur-fast) var(--ease);
}

.sdmh-breadcrumb a:hover {
    color: var(--sdmh-teal-dark);
}

.sdmh-breadcrumb .current {
    color: var(--sdmh-navy-deep);
    font-weight: 600;
}

.sdmh-hero-minimal {
    position: relative;
    padding: var(--sp-6) 0 var(--sp-4);
    background:
        radial-gradient(900px 420px at 92% -25%, rgba(15, 158, 155, 0.14), transparent 60%),
        radial-gradient(700px 320px at -5% 110%, rgba(200, 162, 77, 0.10), transparent 60%),
        linear-gradient(180deg, #f2efe7 0%, var(--sdmh-paper) 85%);
    overflow: hidden;
    border-bottom: 1px solid var(--sdmh-line);
}

.sdmh-hero-watermark {
    position: absolute;
    top: 50%;
    right: 4%;
    transform: translateY(-50%);
    font-size: 13rem;
    color: var(--sdmh-navy-deep);
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.sdmh-hero-minimal .container {
    position: relative;
    z-index: 1;
}

.sdmh-hero-minimal h1 {
    margin-bottom: 0;
}

.sdmh-hero-minimal p {
    max-width: 680px;
    font-size: var(--fs-lead);
    color: var(--sdmh-ink-soft);
}

.sdmh-hero-pulse {
    max-width: 600px;
    height: 34px;
    margin-top: var(--sp-4);
    opacity: 0.7;
}

.sdmh-hero-pulse path {
    fill: none;
    stroke: var(--sdmh-teal);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    animation: drawPulse 3.4s var(--ease) infinite;
}

/* Banner frame */
.detail-banner-frame {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(160deg, var(--sdmh-navy-deep), var(--sdmh-navy-soft));
    box-shadow: var(--shadow-lg);
}

.detail-banner-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-banner-frame .placeholder-icon i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.4);
}

/* CMS-authored long description — one consistent typography pass over
   whatever tags the editor produced */
.raw-html-description-container {
    color: var(--sdmh-ink-soft);
    font-size: 1rem;
    line-height: 1.8;
}

.raw-html-description-container h1,
.raw-html-description-container h2,
.raw-html-description-container h3,
.raw-html-description-container h4 {
    font-family: var(--font-display);
    color: var(--sdmh-navy-deep);
    margin: var(--sp-3) 0 var(--sp-2);
}

.raw-html-description-container p {
    margin-bottom: var(--sp-2);
}

.raw-html-description-container ul,
.raw-html-description-container ol {
    margin: 0 0 var(--sp-3);
    padding-left: 1.3rem;
}

.raw-html-description-container li {
    margin-bottom: 0.4rem;
}

.raw-html-description-container a {
    color: var(--sdmh-teal-dark);
    text-decoration: underline;
}

.raw-html-description-container img {
    border-radius: var(--radius-md);
    margin: var(--sp-2) 0;
}

/* Stat row */
.sdmh-stat-row {
    text-align: center;
}

.sdmh-stat-node {
    padding: var(--sp-3) var(--sp-1);
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-md);
}

.sdmh-stat-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--sdmh-teal-dark);
}

.sdmh-stat-meta {
    font-size: 0.78rem;
    color: var(--sdmh-ink-faint);
    font-weight: 500;
}

/* Buttons specific to this page */
.btn-sdmh-dark,
.btn-sdmh-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 1.7rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.92rem;
    transition: all var(--dur-fast) var(--ease);
}

.btn-sdmh-dark {
    background: var(--sdmh-navy-deep);
    color: var(--sdmh-white) !important;
    border: 1.5px solid var(--sdmh-navy-deep);
}

.btn-sdmh-dark:hover {
    background: var(--sdmh-teal-dark);
    border-color: var(--sdmh-teal-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-sdmh-outline {
    background: transparent;
    color: var(--sdmh-navy-deep) !important;
    border: 1.5px solid var(--sdmh-line);
}

.btn-sdmh-outline:hover {
    border-color: var(--sdmh-navy-deep);
    transform: translateY(-3px);
}

/* Sidebar */
.sdmh-sidebar-card {
    padding: var(--sp-3);
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-md);
    margin-bottom: var(--sp-3);
}

.sdmh-sidebar-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sdmh-ink);
    margin-bottom: var(--sp-2);
}

.sdmh-sidebar-text {
    color: var(--sdmh-body);
}

.sdmh-sidebar-field {
    padding-bottom: var(--sp-2);
    margin-bottom: var(--sp-2);
    border-bottom: 1px solid var(--sdmh-line);
}

.sdmh-sidebar-field:last-of-type {
    border-bottom: none;
}

.sdmh-sidebar-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sdmh-ink-faint);
    margin-bottom: 4px;
}

.sdmh-sidebar-field .value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sdmh-ink);
}

.sidebar-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0;
    font-size: 0.88rem;
    color: var(--sdmh-ink-soft);
    border-bottom: 1px solid var(--sdmh-line);
}

.sidebar-list-item:last-child {
    border-bottom: none;
}

.sidebar-list-item i {
    color: var(--sdmh-teal-dark);
    font-size: 0.8rem;
}

.sdmh-block-title {
    font-family: var(--font-display);
    font-weight: 600 !important;
    color: var(--sdmh-navy-deep);
    letter-spacing: -0.01em;
}

/* Faculty cards (grayscale-to-color, matches About page pattern) */
.faculty-card-premium {
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-md);
    height: 100%;
    transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}

.faculty-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.faculty-img-container {
    aspect-ratio: 4 / 3.6;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: var(--sp-2);
    background: linear-gradient(160deg, #eef1f3, #e2e7ea);
}

.faculty-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.faculty-card-premium:hover .faculty-img-container img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.faculty-placeholder i {
    font-size: 2.2rem;
    color: var(--sdmh-ink-faint);
}

.faculty-title-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--sdmh-navy-deep);
}

.faculty-meta-text {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sdmh-teal-dark);
    margin-bottom: var(--sp-1);
}

.faculty-detail-list {
    font-size: 0.85rem;
    color: var(--sdmh-body);
}

.faculty-detail-list i {
    color: var(--sdmh-ink-faint);
    width: 16px;
}

.faculty-detail-list .fw-emph {
    color: var(--sdmh-ink);
    font-weight: 600;
}

.lnk-underlined {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sdmh-navy-deep);
    border-bottom: 1.5px solid transparent;
    transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.lnk-underlined:hover {
    border-color: var(--sdmh-teal);
    color: var(--sdmh-teal-dark);
}

/* Cross-department directory cards */
.premium-division-card {
    height: 100%;
    padding: var(--sp-3);
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-md);
    transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}

.premium-division-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.premium-division-title {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    max-width: 75%;
    color: var(--sdmh-ink);
}

.premium-division-text {
    line-height: 1.7;
    font-size: 0.9rem;
    color: var(--sdmh-body);
}

.icon-wrapper-glow {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(15, 158, 155, 0.1);
    color: var(--sdmh-teal-dark);
    transition: all var(--dur-fast) var(--ease);
}

.premium-division-card:hover .icon-wrapper-glow {
    background: var(--sdmh-teal);
    color: var(--sdmh-white);
    box-shadow: 0 0 0 8px rgba(15, 158, 155, 0.12);
}

/* -------------------------------------------------------------------------
   22. STANDALONE APPOINTMENT PAGE
   ------------------------------------------------------------------------- */
.sdmh-appt-section {
    position: relative;
    padding: var(--sp-6) 0;
    background:
        radial-gradient(900px 400px at 88% -15%, rgba(15, 158, 155, 0.10), transparent 60%),
        linear-gradient(180deg, #f2efe7 0%, var(--sdmh-paper) 70%);
}

.sdmh-appt-title {
    line-height: 1.15;
}

.sdmh-appt-title em {
    font-style: italic;
    color: var(--sdmh-teal-dark);
}

.sdmh-appt-lead {
    font-size: var(--fs-lead);
    color: var(--sdmh-ink-soft);
    max-width: 520px;
}

.sdmh-appt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sdmh-appt-chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sdmh-navy);
    transition: all var(--dur-fast) var(--ease);
}

.sdmh-appt-chips span:hover {
    border-color: var(--sdmh-teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.sdmh-appt-chips i {
    color: var(--sdmh-teal-dark);
}

.sdmh-appt-info-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--sdmh-line);
}

.sdmh-appt-info-row:last-of-type {
    border-bottom: none;
}

.sdmh-appt-info-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(15, 158, 155, 0.1);
    color: var(--sdmh-teal-dark);
    font-size: 1.3rem;
    transition: all var(--dur-fast) var(--ease);
}

.sdmh-appt-info-row:hover .sdmh-appt-info-icon {
    background: var(--sdmh-teal);
    color: var(--sdmh-white);
    transform: scale(1.06);
}

.sdmh-appt-info-row h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sdmh-navy-deep);
    margin-bottom: 2px;
}

.sdmh-appt-info-row span {
    font-size: 0.88rem;
    color: var(--sdmh-ink-soft);
}

/* Form card */
.sdmh-appt-card {
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-lg);
    padding: var(--sp-4);
    box-shadow: var(--shadow-md);
}

.sdmh-appt-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--sdmh-navy-deep);
}

.sdmh-appt-card-sub {
    font-size: 0.9rem;
    color: var(--sdmh-ink-faint);
}

.sdmh-appt-field {
    position: relative;
}

.sdmh-appt-field>i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sdmh-ink-faint);
    font-size: 0.92rem;
    transition: color var(--dur-fast) var(--ease);
    pointer-events: none;
}

.sdmh-appt-field .form-control {
    padding: 0.8rem 1rem 0.8rem 2.6rem;
    border: 1.5px solid var(--sdmh-line);
    border-radius: var(--radius-sm);
    background: var(--sdmh-ivory);
    font-size: 0.92rem;
    color: var(--sdmh-ink);
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.sdmh-appt-field .form-control::placeholder {
    color: var(--sdmh-ink-faint);
}

.sdmh-appt-field .form-control:focus {
    outline: none;
    border-color: var(--sdmh-teal);
    background: var(--sdmh-white);
    box-shadow: 0 0 0 4px rgba(15, 158, 155, 0.14);
}

.sdmh-appt-field:focus-within>i {
    color: var(--sdmh-teal-dark);
}

.sdmh-appt-ampm {
    max-width: 90px;
    border: 1.5px solid var(--sdmh-line);
    border-radius: var(--radius-sm);
    background: var(--sdmh-ivory);
    font-size: 0.92rem;
    transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.sdmh-appt-ampm:focus {
    outline: none;
    border-color: var(--sdmh-teal);
    background: var(--sdmh-white);
}

.sdmh-appt-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem;
    background: linear-gradient(135deg, var(--sdmh-teal), var(--sdmh-teal-dark));
    color: var(--sdmh-white);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
    cursor: pointer;
}

.sdmh-appt-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.sdmh-appt-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--sdmh-ink-faint);
}

.sdmh-appt-note i {
    color: var(--sdmh-teal-dark);
}

@media (max-width: 767.98px) {
    .sdmh-appt-card {
        padding: var(--sp-3);
    }

    .sdmh-appt-chips {
        gap: 8px;
    }
}

/* -------------------------------------------------------------------------
   23. BLOG DETAILS PAGE
   ------------------------------------------------------------------------- */
.blog-detail-wrapper {
    max-width: 1240px;
}

.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--sdmh-navy-deep);
    transition: all var(--dur-fast) var(--ease);
}

.blog-back-btn:hover {
    background: var(--sdmh-navy-deep);
    border-color: var(--sdmh-navy-deep);
    color: var(--sdmh-white);
    transform: translateX(-3px);
}

.blog-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--sdmh-navy-deep);
    line-height: 1.25;
}

.blog-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.blog-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sdmh-ink-faint);
}

.blog-meta-row i {
    color: var(--sdmh-teal-dark);
}

.blog-summary-box {
    padding: var(--sp-3);
    background: var(--sdmh-ivory);
    border-left: 3px solid var(--sdmh-teal);
    border-radius: var(--radius-sm);
}

.blog-summary-box p {
    color: var(--sdmh-ink-soft);
    font-size: 0.95rem;
    line-height: 1.7;
}

.blog-hero-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Article body */
.blog-subtitle {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--sdmh-navy-deep);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--sdmh-line);
}

.blog-body {
    font-size: 1rem;
    line-height: 1.85;
}

.blog-body h1,
.blog-body h2,
.blog-body h3,
.blog-body h4 {
    font-family: var(--font-display);
    color: var(--sdmh-navy-deep);
    margin: var(--sp-3) 0 var(--sp-2);
}

.blog-body p {
    margin-bottom: var(--sp-2);
}

.blog-body ul,
.blog-body ol {
    margin: 0 0 var(--sp-3);
    padding-left: 1.3rem;
}

.blog-body li {
    margin-bottom: 0.4rem;
}

.blog-body a {
    color: var(--sdmh-teal-dark);
    text-decoration: underline;
}

.blog-body img {
    border-radius: var(--radius-md);
    margin: var(--sp-2) 0;
    box-shadow: var(--shadow-sm);
}

/* Doctor info card */
.blog-doctor-card {
    padding: var(--sp-4);
    background: var(--sdmh-white);
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.blog-doctor-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--sdmh-teal-dark);
}

.blog-doctor-field {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--sdmh-line);
    font-size: 0.9rem;
}

.blog-doctor-field:last-child {
    border-bottom: none;
}

.blog-doctor-field label {
    font-weight: 600;
    color: var(--sdmh-ink-faint);
    margin: 0;
}

.blog-doctor-field span {
    font-weight: 600;
    color: var(--sdmh-ink);
    text-align: right;
}

/* FAQ */
.blog-faq-heading {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--sdmh-navy-deep);
}

.blog-faq-empty {
    color: var(--sdmh-ink-faint);
}

.blog-faq-accordion .accordion-item {
    border: 1px solid var(--sdmh-line);
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    margin-bottom: 10px;
}

.blog-faq-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--sdmh-navy-deep);
    background: var(--sdmh-white);
    padding: 1rem 1.25rem;
}

.blog-faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(15, 158, 155, 0.08);
    color: var(--sdmh-teal-dark);
    box-shadow: none;
}

.blog-faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(15, 158, 155, 0.18);
}

.blog-faq-accordion .accordion-button::after {
    filter: hue-rotate(140deg) saturate(1.4);
}

.blog-faq-accordion .accordion-body {
    color: var(--sdmh-ink-soft);
    font-size: 0.92rem;
    line-height: 1.7;
    padding: 1rem 1.25rem 1.25rem;
}

@media (max-width: 991.98px) {
    .blog-hero-image img {
        max-height: 320px;
    }
}

/* -------------------------------------------------------------------------
   24. RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .vital-hero {
        padding: var(--sp-5) 0 var(--sp-4);
        text-align: left;
    }

    .vital-hero-frame {
        margin-top: var(--sp-4);
        aspect-ratio: 16 / 10;
    }

    .appointment-form-v2 {
        margin-top: var(--sp-4);
    }

    .about-image-circular {
        margin-top: 20px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --sp-6: 3rem;
        --sp-7: 4rem;
    }

    .vital-chip-row {
        gap: var(--sp-3);
    }

    .vital-chip .num {
        font-size: 1.4rem;
    }

    .quick-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .qa-pill {
        justify-content: center;
    }

    .stats-wrapper {
        padding: 1.5rem !important;
    }

    .stat-number-v2 {
        font-size: 1.6rem;
    }

    .doctor-actions-v2 {
        flex-direction: column;
    }

    .cta-section-v2 h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 575.98px) {
    .badges-grid {
        grid-template-columns: 1fr 1fr;
    }

    .vital-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .vital-hero-actions a {
        justify-content: center;
    }

    .navbar-brand h6 {
        font-size: 12px;
    }
}

@media (max-width: 767.98px) {
    .about-section {
        padding: var(--sp-5) 0;
    }

    .sdmh-section-spacer {
        padding: var(--sp-5) 0;
    }

    .diagnostic-row-item {
        padding: 0.9rem 0;
    }

    #topheading {
        font-size: 1.6rem;
    }

    .sdmh-hero-minimal {
        padding: var(--sp-5) 0 var(--sp-3);
    }

    .sdmh-stat-value {
        font-size: 1.25rem;
    }

    .premium-division-title {
        max-width: 100%;
    }
}