/* ==================================================================
   Dr AR Physio – main stylesheet
   ------------------------------------------------------------------
   1. Tokens & base          6. Home sections
   2. Buttons & utilities    7. Cards
   3. Top bar & header       8. Inner pages
   4. Hero                   9. Footer & floating buttons
   5. Section headings      10. Modals, forms & animation
   Breakpoint overrides live in responsive.css.
   ================================================================== */

/* 1. Tokens & base ------------------------------------------------ */
:root {
    --mw-primary: #163f8c;
    --mw-primary-dark: #0c2c66;
    --mw-primary-soft: #eaf0fa;
    --mw-gold: #eea81e;
    --mw-gold-dark: #a8690a;
    --mw-gold-soft: #fdf4e0;
    --mw-navy: #0a2150;
    --mw-navy-2: #12336f;
    --mw-heading: #111827;
    --mw-text: #4b5563;
    --mw-muted: #6b7280;
    --mw-bg-alt: #f5f7fb;
    --mw-border: #e3e8f2;
    --mw-white: #ffffff;
    --mw-accent: #22c55e;
    --mw-radius: 12px;
    --mw-radius-lg: 20px;
    --mw-shadow: 0 10px 30px rgba(10, 33, 80, 0.08);
    --mw-shadow-lg: 0 20px 45px rgba(10, 33, 80, 0.14);
    --mw-font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --mw-font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
    --mw-header-h: 84px;
    --mw-ease: cubic-bezier(.2, .7, .2, 1);

    /* Bootstrap overrides */
    --bs-primary: var(--mw-primary);
    --bs-primary-rgb: 22, 63, 140;
    --bs-link-color: var(--mw-primary);
    --bs-link-color-rgb: 22, 63, 140;
    --bs-link-hover-color: var(--mw-primary-dark);
    --bs-link-hover-color-rgb: 12, 44, 102;
    --bs-body-font-family: var(--mw-font-body);
    --bs-body-color: var(--mw-text);
    --bs-border-radius: 8px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--mw-header-h) + 16px); }

body {
    font-family: var(--mw-font-body);
    font-size: 15px;
    line-height: 1.75;
    color: var(--mw-text);
    background: var(--mw-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--mw-font-head);
    color: var(--mw-heading);
    font-weight: 700;
    line-height: 1.3;
}

a { color: var(--mw-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--mw-primary-dark); }

img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid rgba(22, 63, 140, .45); outline-offset: 2px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 2000;
    background: var(--mw-navy); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: #fff; }

main { overflow-x: clip; }
section { position: relative; }
.section { padding: 90px 0; }
.section-alt { background: var(--mw-bg-alt); }
.section-dark { background: var(--mw-navy); color: rgba(255, 255, 255, .8); }
.section-dark h2, .section-dark h3 { color: #fff; }

/* 2. Buttons & utilities ------------------------------------------ */
.btn { font-weight: 500; border-radius: 6px; padding: .65rem 1.4rem; transition: all .25s var(--mw-ease); }
.btn-lg { padding: .8rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: .35rem .85rem; }

.btn-primary {
    --bs-btn-bg: var(--mw-primary);
    --bs-btn-border-color: var(--mw-primary);
    --bs-btn-hover-bg: var(--mw-primary-dark);
    --bs-btn-hover-border-color: var(--mw-primary-dark);
    --bs-btn-active-bg: var(--mw-primary-dark);
    --bs-btn-active-border-color: var(--mw-primary-dark);
    --bs-btn-disabled-bg: var(--mw-primary);
    --bs-btn-disabled-border-color: var(--mw-primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22, 63, 140, .3); }

.btn-outline-primary {
    --bs-btn-color: var(--mw-primary);
    --bs-btn-border-color: var(--mw-primary);
    --bs-btn-hover-bg: var(--mw-primary);
    --bs-btn-hover-border-color: var(--mw-primary);
    --bs-btn-active-bg: var(--mw-primary-dark);
}

.btn-white { background: #fff; color: var(--mw-primary); border: 2px solid #fff; }
.btn-white:hover { background: transparent; color: #fff; }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--mw-navy); }

.text-primary { color: var(--mw-primary) !important; }
.text-bg-primary { background-color: var(--mw-primary) !important; }

.read-more {
    display: inline-block; font-weight: 600; font-size: .8rem; text-transform: uppercase;
    letter-spacing: .06em; color: var(--mw-primary);
}

.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: .55rem; }
.check-list li::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; top: 1px; color: var(--mw-primary); font-size: .85rem;
}
.check-list.columns-2 { columns: 2; column-gap: 2rem; }
.check-list.columns-2 li { break-inside: avoid; }

.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 50px;
    background: var(--mw-primary-soft); color: var(--mw-navy); font-size: .88rem; font-weight: 500;
}
.chip:hover { background: var(--mw-primary); color: #fff; }

/* 3. Top bar & header --------------------------------------------- */
/* The mount point must not become the sticky header's containing block */
#site-header, #site-footer, #site-modals { display: contents; }

.topbar { background: var(--mw-navy); color: rgba(255, 255, 255, .75); font-size: 13px; padding: 8px 0; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }
.topbar-info i { color: var(--mw-primary); margin-right: 8px; }
.topbar-social-link { font-size: 14px; }

.site-header {
    position: sticky; top: 0; z-index: 1030; background: #fff;
    box-shadow: 0 1px 0 var(--mw-border);
    transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(10, 33, 80, .1); }
.site-header .navbar { min-height: var(--mw-header-h); padding: 0; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: 1.5rem; flex-shrink: 0; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--mw-font-head); font-weight: 800; font-size: 1.35rem; color: var(--mw-navy); letter-spacing: -.02em; }
.brand-sub { font-size: .68rem; color: var(--mw-muted); text-transform: uppercase; letter-spacing: .12em; }

.navbar-nav .nav-link {
    position: relative; font-family: var(--mw-font-body); font-weight: 500; font-size: 14.5px;
    color: var(--mw-heading); padding: 0.5rem 0.9rem !important;
}
.navbar-nav .nav-link::after { transition: transform .2s; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active, .navbar-nav .nav-link.show { color: var(--mw-primary); }
.navbar-nav > .nav-item > .nav-link:not(.dropdown-toggle)::before,
.navbar-nav > .nav-item > .nav-link.dropdown-toggle::before {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 2px; height: 2px;
    background: var(--mw-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--mw-ease);
}
.navbar-nav > .nav-item > .nav-link.active::before,
.navbar-nav > .nav-item > .nav-link:hover::before { transform: scaleX(1); }
.dropdown-toggle::after { border: 0; content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .7rem; vertical-align: middle; margin-left: .35rem; }

.dropdown-menu {
    border: 0; border-radius: 10px; padding: .6rem; box-shadow: var(--mw-shadow-lg);
    border-top: 3px solid var(--mw-primary); min-width: 250px;
}
.dropdown-item {
    border-radius: 6px; padding: .5rem .75rem; font-size: 14px; color: var(--mw-heading);
    display: flex; align-items: center; gap: 10px; white-space: normal;
}
.dropdown-item i { color: var(--mw-primary); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--mw-primary-soft); color: var(--mw-primary); }

.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(210px, 1fr)); gap: 2px 10px; margin: 0; }
.mega-all {
    display: block; margin-top: .5rem; padding: .6rem .75rem; border-top: 1px solid var(--mw-border);
    font-weight: 600; font-size: 14px;
}

.btn-appointment { white-space: nowrap; padding: .6rem 1.2rem; font-size: 14px; }

.navbar-toggler { border: 0; padding: 8px; display: flex; flex-direction: column; gap: 5px; box-shadow: none !important; }
.toggler-bar { display: block; width: 26px; height: 2.5px; background: var(--mw-navy); border-radius: 2px; }

.offcanvas-contact { border-top: 1px solid var(--mw-border); margin-top: 1.25rem; padding-top: 1.25rem; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.offcanvas-contact i { width: 20px; color: var(--mw-primary); }

/* 4. Hero --------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--mw-navy); }
.hero-slide {
    position: relative; min-height: 640px; display: flex; align-items: center; color: #fff;
    background-size: cover; background-position: center;
}
.hero-slide::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8, 24, 60, .92) 0%, rgba(8, 24, 60, .7) 45%, rgba(8, 24, 60, .25) 100%);
}
.hero-slide-1 { background-image: url("../assets/images/hero-clinic.svg"); }
.hero-slide-2 { background-image: url("../assets/images/hero-gym.svg"); }
.hero-slide-3 { background-image: url("../assets/images/hero-care.svg"); }
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: 80px 0; }
.hero-kicker {
    display: inline-block; font-weight: 600; letter-spacing: .25em; text-transform: uppercase;
    font-size: 14px; color: var(--mw-primary); margin-bottom: 1rem;
}
.hero h1, .hero .hero-title { color: #fff; font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; }
.hero p { font-size: 1.1rem; color: rgba(255, 255, 255, .85); margin-bottom: 2rem; }
.hero .carousel-indicators [data-bs-target] { width: 12px; height: 12px; border-radius: 50%; border: 0; margin: 0 5px; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 6%; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 2.5rem; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.hero-badge i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(22, 63, 140, .25); color: #fff; }

/* Inner page banner */
.page-banner {
    position: relative; padding: 90px 0 80px; color: #fff; text-align: center;
    background: linear-gradient(120deg, rgba(8, 24, 60, .94), rgba(22, 63, 140, .85)), url("../assets/images/pattern.svg");
    background-size: cover, 480px;
}
.page-banner h1 { color: #fff; font-size: 2.6rem; font-weight: 800; margin-bottom: .75rem; }
.page-banner .breadcrumb { justify-content: center; margin: 0; --bs-breadcrumb-divider-color: rgba(255, 255, 255, .6); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .8); }
.page-banner .breadcrumb a { color: #fff; }

/* 5. Section headings -------------------------------------------- */
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head.text-start { margin-left: 0; }
.section-kicker {
    display: inline-block; font-family: var(--mw-font-body); font-weight: 600; font-size: 14px;
    color: var(--mw-primary); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .5rem;
}
.section-title { font-size: 2.3rem; font-weight: 800; margin-bottom: 1rem; }
.section-title span { color: var(--mw-primary); }
.section-sub { color: var(--mw-muted); margin: 0; }
.title-line { width: 60px; height: 3px; background: var(--mw-primary); border-radius: 3px; margin: 0 auto 1.25rem; }
.section-head.text-start .title-line { margin-left: 0; }

/* 6. Home sections ------------------------------------------------ */

/* About block */
.about-visual { position: relative; }
.about-visual img { border-radius: var(--mw-radius-lg); box-shadow: var(--mw-shadow-lg); width: 100%; }
.about-experience {
    position: absolute; right: -10px; bottom: -24px; background: var(--mw-primary); color: #fff;
    padding: 18px 24px; border-radius: var(--mw-radius); box-shadow: var(--mw-shadow-lg); text-align: center;
}
.about-experience strong { display: block; font-family: var(--mw-font-head); font-size: 2.2rem; line-height: 1; }
.about-experience span { font-size: 13px; }
.condition-checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; list-style: none; padding: 0; margin: 1.25rem 0 2rem; }
.condition-checklist a { display: flex; align-items: center; gap: 10px; color: var(--mw-heading); font-weight: 500; }
.condition-checklist a:hover { color: var(--mw-primary); }
.condition-checklist i { color: var(--mw-primary); }

/* Doctor profile */
.doctor-card {
    display: grid; grid-template-columns: 360px 1fr; gap: 50px; align-items: center;
    background: #fff; border-radius: var(--mw-radius-lg); box-shadow: var(--mw-shadow); padding: 40px;
}
.doctor-portrait {
    position: relative; aspect-ratio: 4 / 5; border-radius: var(--mw-radius-lg); overflow: hidden;
    background: linear-gradient(160deg, var(--mw-primary) 0%, var(--mw-navy) 100%);
    display: grid; place-items: center;
}
.doctor-portrait::after {
    content: ""; position: absolute; inset: 0; background: url("../assets/images/pattern.svg"); background-size: 300px; opacity: .25;
}
.doctor-portrait span {
    position: relative; z-index: 1; font-family: var(--mw-font-head); font-weight: 800; font-size: 6rem; color: rgba(255, 255, 255, .95);
}
.doctor-role { color: var(--mw-primary); font-weight: 600; margin-bottom: .25rem; }
.doctor-name { font-size: 2rem; }
.doctor-name small { font-size: 1rem; color: var(--mw-muted); font-weight: 600; }

/* Stats */
.stats-band { background: linear-gradient(120deg, var(--mw-primary-dark), var(--mw-primary)); color: #fff; padding: 50px 0; }
.stat { text-align: center; padding: 10px; }
.stat-value { display: block; font-family: var(--mw-font-head); font-weight: 800; font-size: 2.6rem; line-height: 1.1; color: #fff; }
.stat-label { font-size: 14px; color: rgba(255, 255, 255, .85); }

/* What we treat tabs */
.treat-tabs { gap: 8px; flex-wrap: wrap; margin-bottom: 1.75rem; }
.treat-tabs .nav-link {
    border-radius: 50px; padding: .55rem 1.25rem; color: var(--mw-heading); background: #fff;
    border: 1px solid var(--mw-border); font-weight: 500; font-size: 14px;
}
.treat-tabs .nav-link.active { background: var(--mw-primary); border-color: var(--mw-primary); color: #fff; }
.treat-link {
    display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; background: #fff; border-radius: var(--mw-radius);
    border: 1px solid var(--mw-border); color: var(--mw-text); height: 100%; transition: all .25s var(--mw-ease);
}
.treat-link i { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--mw-primary-soft); color: var(--mw-primary); }
.treat-link strong { display: block; color: var(--mw-heading); font-family: var(--mw-font-head); font-size: 15px; }
.treat-link small { display: block; font-size: 13px; line-height: 1.5; color: var(--mw-muted); }
.treat-link:hover { border-color: var(--mw-primary); box-shadow: var(--mw-shadow); transform: translateY(-3px); color: var(--mw-text); }

/* Horizontal services scroller */
.scroller-wrap { position: relative; }
.scroller {
    display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 24px;
    scrollbar-width: thin; scrollbar-color: var(--mw-primary) transparent;
}
.scroller-item { flex: 0 0 calc((100% - 72px) / 4); scroll-snap-align: start; }
.scroller-nav { display: flex; gap: 10px; }
.scroller-btn {
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--mw-border); background: #fff; color: var(--mw-navy);
    display: grid; place-items: center; transition: all .2s;
}
.scroller-btn:hover { background: var(--mw-primary); border-color: var(--mw-primary); color: #fff; }

/* Video stories */
.story-card {
    display: block; width: 100%; padding: 0; border: 0; background: #fff; text-align: left; border-radius: var(--mw-radius);
    overflow: hidden; box-shadow: var(--mw-shadow); transition: transform .3s var(--mw-ease), box-shadow .3s;
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--mw-shadow-lg); }
.story-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; }
.story-thumb-1 { background: linear-gradient(135deg, #163f8c, #0a2150); }
.story-thumb-2 { background: linear-gradient(135deg, #eea81e, #0a2150); }
.story-thumb-3 { background: linear-gradient(135deg, #2d5bb8, #0a2150); }
.story-thumb::before { content: ""; position: absolute; inset: 0; background: url("../assets/images/pattern.svg"); background-size: 260px; opacity: .2; }
.play-btn {
    position: relative; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--mw-primary);
    display: grid; place-items: center; font-size: 1.3rem; padding-left: 4px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .2);
    transition: transform .3s var(--mw-ease);
}
.story-card:hover .play-btn { transform: scale(1.1); }
.story-duration { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.story-info { display: block; padding: 16px 18px; }
.story-info strong { display: block; font-family: var(--mw-font-head); color: var(--mw-heading); font-size: 15px; }
.story-info small { color: var(--mw-muted); }

/* Testimonials */
.testimonial-card {
    position: relative; background: #fff; border-radius: var(--mw-radius); padding: 34px; margin: 0; box-shadow: var(--mw-shadow);
    display: flex; flex-direction: column;
}
.testimonial-card blockquote { margin: 0 0 1.5rem; font-size: 1rem; font-style: italic; flex: 1; }
.quote-mark { position: absolute; right: 28px; top: 26px; font-size: 2.6rem; color: var(--mw-primary-soft); }
.stars { color: #f5b301; margin-bottom: .75rem; font-size: 14px; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial-card figcaption strong { display: block; color: var(--mw-heading); }
.testimonial-card figcaption small { color: var(--mw-muted); }
.avatar-sm { width: 46px; height: 46px; border-radius: 50%; background: var(--mw-primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
.testimonial-carousel .carousel-indicators { position: static; margin: 2rem 0 0; }
.testimonial-carousel .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; background: var(--mw-primary); border: 0; }

/* CTA band */
.cta-band {
    position: relative; overflow: hidden; border-radius: var(--mw-radius-lg); padding: 60px;
    background: linear-gradient(120deg, var(--mw-navy) 0%, var(--mw-primary-dark) 100%); color: rgba(255, 255, 255, .85);
}
.cta-band::after { content: ""; position: absolute; inset: 0; background: url("../assets/images/pattern.svg"); background-size: 380px; opacity: .15; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: 2.1rem; }

/* 7. Cards -------------------------------------------------------- */
.pain-card, .service-card, .feature-box, .branch-card, .post-card, .staff-card, .info-box, .sidebar-card {
    position: relative; background: #fff; border-radius: var(--mw-radius); transition: transform .3s var(--mw-ease), box-shadow .3s, border-color .3s;
}

.pain-card { padding: 30px 26px; border: 1px solid var(--mw-border); text-align: center; }
.pain-card p { font-size: 14px; color: var(--mw-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pain-icon {
    width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem;
    background: var(--mw-primary-soft); color: var(--mw-primary); transition: all .3s var(--mw-ease);
}
.pain-card:hover { transform: translateY(-8px); box-shadow: var(--mw-shadow-lg); border-color: transparent; }
.pain-card:hover .pain-icon { background: var(--mw-primary); color: #fff; transform: rotateY(180deg); }

.service-card { padding: 30px 26px; box-shadow: var(--mw-shadow); overflow: hidden; }
.service-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--mw-primary); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--mw-ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--mw-shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-card p { font-size: 14px; color: var(--mw-muted); }
.service-icon {
    width: 62px; height: 62px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px;
    background: linear-gradient(135deg, var(--mw-primary), var(--mw-primary-dark)); color: #fff;
}

.feature-box { padding: 28px 24px; border: 1px solid var(--mw-border); }
.feature-box p { font-size: 14px; color: var(--mw-muted); }
.feature-box:hover { box-shadow: var(--mw-shadow); transform: translateY(-4px); border-color: transparent; }
.feature-icon { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--mw-primary-soft); color: var(--mw-primary); margin-bottom: 16px; }

.branch-card { padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--mw-shadow); }
.branch-card:hover { transform: translateY(-5px); box-shadow: var(--mw-shadow-lg); }
.branch-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--mw-primary); color: #fff; font-size: 1.2rem; margin-bottom: 16px; }

.post-card { overflow: hidden; box-shadow: var(--mw-shadow); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--mw-shadow-lg); }
.post-thumb {
    position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 3rem; color: rgba(255, 255, 255, .95);
    background: linear-gradient(135deg, var(--mw-primary), var(--mw-navy));
}
.post-thumb::before { content: ""; position: absolute; inset: 0; background: url("../assets/images/pattern.svg"); background-size: 260px; opacity: .2; }
.post-thumb i { position: relative; transition: transform .4s var(--mw-ease); }
.post-card:hover .post-thumb i { transform: scale(1.15); }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 a { color: var(--mw-heading); }
.post-body h3 a:hover { color: var(--mw-primary); }
.post-body p { font-size: 14px; color: var(--mw-muted); flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--mw-muted); margin-bottom: .75rem; }
.post-meta .badge { font-weight: 600; }

.staff-card { overflow: hidden; box-shadow: var(--mw-shadow); text-align: center; }
.staff-card:hover { transform: translateY(-6px); box-shadow: var(--mw-shadow-lg); }
.staff-photo {
    position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center;
    background: linear-gradient(160deg, var(--mw-primary) 0%, var(--mw-navy) 100%);
}
.staff-photo::after { content: ""; position: absolute; inset: 0; background: url("../assets/images/pattern.svg"); background-size: 240px; opacity: .2; }
.staff-photo span { position: relative; z-index: 1; font-family: var(--mw-font-head); font-size: 3.6rem; font-weight: 800; color: #fff; }
.staff-body { padding: 22px; }
.staff-photo-modal { width: 120px; border-radius: 50%; overflow: hidden; }
.staff-photo-modal span { font-size: 2.2rem; }
.staff-role { color: var(--mw-primary); font-weight: 500; margin-bottom: .35rem; font-size: 14px; }

.info-box { padding: 26px; background: var(--mw-bg-alt); }

/* 8. Inner pages -------------------------------------------------- */
.content-article h2 { font-size: 1.7rem; margin: 2rem 0 1rem; }
.content-article h2:first-of-type { margin-top: 0; }
.content-article .section-kicker + h2 { margin-top: 0; }
.content-article p { margin-bottom: 1.1rem; }
.content-article .lead { font-size: 1.12rem; color: var(--mw-heading); }

.detail-hero-icon {
    width: 80px; height: 80px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--mw-primary), var(--mw-primary-dark)); color: #fff; box-shadow: 0 12px 30px rgba(22, 63, 140, .3);
}

.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 1.5rem 0; }
.process-step {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; font-weight: 600; color: var(--mw-heading);
    font-size: 14px; background: var(--mw-bg-alt); border-radius: var(--mw-radius); padding: 20px 14px;
}
.process-step span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mw-primary); color: #fff; font-family: var(--mw-font-head); }

.content-tabs { border-bottom: 2px solid var(--mw-border); gap: 4px; }
.content-tabs .nav-link { border: 0; color: var(--mw-heading); font-weight: 600; padding: .75rem 1.25rem; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.content-tabs .nav-link.active { color: var(--mw-primary); border-bottom-color: var(--mw-primary); background: transparent; }
.content-tab-panes { padding: 1.75rem 0 0; }
.step-list { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step-list li { counter-increment: step; position: relative; padding: 0 0 1.1rem 52px; min-height: 38px; }
.step-list li::before {
    content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; background: var(--mw-primary-soft); color: var(--mw-primary); font-weight: 700;
}

.cta-inline {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px;
    border-radius: var(--mw-radius); background: var(--mw-primary-soft); border-left: 4px solid var(--mw-primary);
}

.sidebar-sticky { position: sticky; top: calc(var(--mw-header-h) + 24px); display: flex; flex-direction: column; gap: 24px; }
.sidebar-card { padding: 28px; border: 1px solid var(--mw-border); }
.sidebar-cta { background: linear-gradient(150deg, var(--mw-primary), var(--mw-navy)); color: rgba(255, 255, 255, .85); border: 0; text-align: center; }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li + li { border-top: 1px solid var(--mw-border); }
.sidebar-links a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--mw-heading); font-size: 14.5px; }
.sidebar-links a i { color: var(--mw-primary); }
.sidebar-links a:hover { color: var(--mw-primary); padding-left: 6px; }

.accordion { --bs-accordion-border-color: var(--mw-border); --bs-accordion-active-bg: var(--mw-primary-soft); --bs-accordion-active-color: var(--mw-navy); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(22, 63, 140, .2); }
.accordion-item { border-radius: 10px !important; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--mw-border) !important; }
.accordion-button { font-family: var(--mw-font-head); font-weight: 600; color: var(--mw-heading); }

/* Filters & search */
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 2rem; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
    border: 1px solid var(--mw-border); background: #fff; color: var(--mw-heading); border-radius: 50px; padding: .45rem 1.1rem;
    font-size: 14px; font-weight: 500; transition: all .2s;
}
.filter-pill:hover { border-color: var(--mw-primary); color: var(--mw-primary); }
.filter-pill.active { background: var(--mw-primary); border-color: var(--mw-primary); color: #fff; }
.search-box { position: relative; min-width: 260px; }
.search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mw-muted); }
.search-box input { padding-left: 40px; border-radius: 50px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--mw-muted); }
.empty-state i { font-size: 2.4rem; color: var(--mw-primary); margin-bottom: 1rem; }

.pagination { --bs-pagination-color: var(--mw-navy); --bs-pagination-active-bg: var(--mw-primary); --bs-pagination-active-border-color: var(--mw-primary); --bs-pagination-hover-color: var(--mw-primary); gap: 6px; }
.pagination .page-link { border-radius: 8px !important; min-width: 42px; text-align: center; }

/* Blog post */
.post-banner {
    position: relative; aspect-ratio: 21 / 9; border-radius: var(--mw-radius-lg); display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, var(--mw-primary), var(--mw-navy)); color: #fff; font-size: 4.5rem; margin-bottom: 2rem;
}
.post-banner::before { content: ""; position: absolute; inset: 0; background: url("../assets/images/pattern.svg"); background-size: 320px; opacity: .2; }
.post-banner i { position: relative; }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 20px 0; margin-top: 2rem; border-top: 1px solid var(--mw-border); border-bottom: 1px solid var(--mw-border); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 2rem; }
.post-nav-link { display: block; padding: 18px 20px; border: 1px solid var(--mw-border); border-radius: var(--mw-radius); color: var(--mw-heading); font-weight: 600; font-family: var(--mw-font-head); font-size: 15px; }
.post-nav-link small { display: block; color: var(--mw-primary); font-family: var(--mw-font-body); font-weight: 500; }
.post-nav-link:hover { border-color: var(--mw-primary); color: var(--mw-primary); }
.recent-posts { list-style: none; padding: 0; margin: 0; }
.recent-posts li + li { margin-top: 14px; }
.recent-posts a { display: flex; gap: 12px; align-items: center; color: var(--mw-heading); font-size: 14px; font-weight: 500; line-height: 1.45; }
.recent-posts a:hover { color: var(--mw-primary); }
.recent-posts small { display: block; color: var(--mw-muted); font-weight: 400; font-size: 12px; margin-top: 2px; }
.recent-thumb { flex: 0 0 60px; height: 60px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--mw-primary), var(--mw-navy)); color: #fff; }

/* About page */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 34px; top: 0; bottom: 0; width: 2px; background: var(--mw-border); }
.timeline li { position: relative; display: flex; gap: 20px; align-items: flex-start; padding-bottom: 26px; }
.timeline-year {
    position: relative; z-index: 1; flex: 0 0 70px; height: 70px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; border: 2px solid var(--mw-primary); color: var(--mw-primary); font-weight: 700; font-family: var(--mw-font-head);
}
.timeline-body { padding-top: 14px; }
.cert-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cert-list li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fff; border-radius: 10px; box-shadow: var(--mw-shadow); font-weight: 500; color: var(--mw-heading); }
.cert-list i { color: var(--mw-primary); font-size: 1.2rem; }

/* Approach process */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: journey; }
.journey-step { position: relative; background: #fff; border-radius: var(--mw-radius); padding: 30px 24px; box-shadow: var(--mw-shadow); counter-increment: journey; }
.journey-step::before {
    content: "0" counter(journey); position: absolute; right: 20px; top: 14px; font-family: var(--mw-font-head);
    font-weight: 800; font-size: 2.6rem; color: var(--mw-primary-soft);
}
.journey-step i { font-size: 1.6rem; color: var(--mw-primary); margin-bottom: 14px; }

/* Contact page */
.contact-card { background: #fff; border-radius: var(--mw-radius-lg); box-shadow: var(--mw-shadow); padding: 40px; }
.contact-info-card { background: linear-gradient(160deg, var(--mw-navy), var(--mw-navy-2)); color: rgba(255, 255, 255, .8); border-radius: var(--mw-radius-lg); padding: 40px; height: 100%; }
.contact-info-card h2, .contact-info-card h3 { color: #fff; }
.contact-info-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-info-list li { display: flex; gap: 16px; margin-bottom: 20px; }
.contact-info-list i { flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(22, 63, 140, .25); color: #fff; }
.contact-info-list span { display: block; font-size: 13px; color: rgba(255, 255, 255, .6); }
.contact-info-list a { color: #fff; }
.map-frame { width: 100%; height: 420px; border: 0; border-radius: var(--mw-radius-lg); display: block; background: var(--mw-bg-alt); }

.form-control, .form-select { border-color: var(--mw-border); padding: .7rem 1rem; font-size: 15px; }
.form-control:focus, .form-select:focus { border-color: var(--mw-primary); box-shadow: 0 0 0 .2rem rgba(22, 63, 140, .15); }
.form-label { font-weight: 500; color: var(--mw-heading); font-size: 14px; }
.form-check-input:checked { background-color: var(--mw-primary); border-color: var(--mw-primary); }

/* 404 */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-code { font-family: var(--mw-font-head); font-weight: 800; font-size: 8rem; line-height: 1; color: var(--mw-primary); }

/* Doctor & Patient portals */
.portal-notice {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 1.5rem;
    border-radius: var(--mw-radius); background: #fff8e6; border: 1px solid #f5d98a; color: #6b4e00; font-size: 14px;
}
.portal-notice i { margin-top: 4px; }
.portal-card { background: #fff; border-radius: var(--mw-radius-lg); box-shadow: var(--mw-shadow); padding: 32px; }
.portal-card-head {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px;
    padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--mw-border);
}
.form-section { margin-bottom: 28px; }
.form-section-title {
    display: flex; align-items: center; gap: 10px; float: none; width: 100%;
    font-family: var(--mw-font-head); font-weight: 700; font-size: 1.05rem; color: var(--mw-navy); margin-bottom: 16px;
}
.form-section-title i {
    width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
    background: var(--mw-primary-soft); color: var(--mw-primary); font-size: .9rem;
}
.edu-row { padding: 16px; border: 1px dashed var(--mw-border); border-radius: var(--mw-radius); background: var(--mw-bg-alt); }
.edu-row + .edu-row { margin-top: 12px; }
.day-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.day-picker .btn { min-width: 52px; }
.records-table { --bs-table-hover-bg: var(--mw-primary-soft); font-size: 14px; }
.records-table thead th {
    background: var(--mw-bg-alt); color: var(--mw-navy); font-weight: 600; font-size: 13px;
    text-transform: uppercase; letter-spacing: .04em; border-bottom: 0; white-space: nowrap;
}
.records-table tbody tr:hover { background: var(--mw-primary-soft); }
.records-table .btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--mw-border); }
.detail-list { display: grid; grid-template-columns: 200px 1fr; gap: 10px 20px; margin: 0; }
.detail-list dt { font-weight: 600; color: var(--mw-navy); }
.detail-list dd { margin: 0; color: var(--mw-heading); }
.js-ongoing-feedback:not(.d-none) { display: block; }

/* 9. Footer & floating buttons ------------------------------------ */
.site-footer { background: var(--mw-navy); color: rgba(255, 255, 255, .7); padding: 80px 0 0; font-size: 14.5px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: rgba(255, 255, 255, .55); }
.footer-title { color: #fff; font-size: 1.1rem; margin-bottom: 1.25rem; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--mw-primary); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, .7); transition: all .2s; }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.footer-contact li { display: flex; gap: 14px; margin-bottom: 16px; }
.footer-contact i { color: var(--mw-primary); margin-top: 5px; }
.footer-contact span { display: block; color: #fff; font-weight: 500; }
.footer-contact a { color: rgba(255, 255, 255, .7); }
.footer-contact a:hover { color: #fff; }
.footer-bottom { margin-top: 60px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }

.social-btn {
    width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; border: 0;
    background: rgba(255, 255, 255, .1); color: #fff; transition: all .25s;
}
.social-btn:hover { background: var(--mw-primary); color: #fff; transform: translateY(-3px); }
.social-btn-dark { background: var(--mw-primary-soft); color: var(--mw-primary); }
.offcanvas-contact .social-btn { background: var(--mw-primary-soft); color: var(--mw-primary); }

.float-whatsapp {
    position: fixed; left: 20px; bottom: 20px; z-index: 1040; width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff; font-size: 1.8rem; display: grid; place-items: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45); animation: pulse 2.4s infinite;
}
.float-whatsapp:hover { color: #fff; transform: scale(1.08); }
.back-to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 1040; width: 46px; height: 46px; border-radius: 10px; border: 0;
    background: var(--mw-primary); color: #fff; box-shadow: var(--mw-shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .3s var(--mw-ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--mw-primary-dark); }

/* 10. Modals, forms & animation ----------------------------------- */
.modal-content { border: 0; border-radius: var(--mw-radius-lg); overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--mw-border); padding: 1.25rem 1.5rem; }
.modal-body { padding: 1.5rem; }
.success-icon { font-size: 4rem; color: var(--mw-accent); }
.form-success:focus { outline: none; }

.tour-carousel .carousel-control-prev-icon, .tour-carousel .carousel-control-next-icon { background-color: var(--mw-navy); border-radius: 50%; background-size: 50%; width: 40px; height: 40px; }
.tour-slide { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; padding: 40px 70px; min-height: 320px; }
.tour-visual {
    aspect-ratio: 1 / 1; border-radius: var(--mw-radius-lg); display: grid; place-items: center; font-size: 5rem; color: #fff;
    background: linear-gradient(145deg, var(--mw-primary), var(--mw-navy)); position: relative; overflow: hidden;
}
.tour-visual::before { content: ""; position: absolute; inset: 0; background: url("../assets/images/pattern.svg"); background-size: 220px; opacity: .2; }
.tour-visual i { position: relative; }
.tour-step { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--mw-primary); margin-bottom: .5rem; }

.story-player {
    aspect-ratio: 16 / 9; border-radius: var(--mw-radius); display: grid; place-items: center; font-size: 4rem; color: rgba(255, 255, 255, .9);
    background: linear-gradient(135deg, var(--mw-primary), var(--mw-navy));
}

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--mw-ease), transform .7s var(--mw-ease); }
[data-reveal].revealed { opacity: 1; transform: none; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.carousel-item.active .hero-content > * { animation: fadeUp .9s var(--mw-ease) both; }
.carousel-item.active .hero-content > *:nth-child(2) { animation-delay: .12s; }
.carousel-item.active .hero-content > *:nth-child(3) { animation-delay: .24s; }
.carousel-item.active .hero-content > *:nth-child(4) { animation-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* 11. Brand accents (logo navy + gold) ---------------------------- */
.title-line, .footer-title::after { background: var(--mw-gold); }
.hero-kicker, .topbar-info i { color: var(--mw-gold); }
.section-kicker, .tour-step { color: var(--mw-gold-dark); }
.stars { color: var(--mw-gold); }
.hero-badge i { background: rgba(238, 168, 30, .25); }
.footer-contact i { color: var(--mw-gold); }
.site-footer .brand img { background: #fff; border-radius: 12px; padding: 4px; }

/* Photos uploaded from the dashboards (fall back to initials) */
.staff-photo img, .doctor-portrait img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2;
}
.staff-meta { list-style: none; padding: 0; margin: 0 0 1rem; text-align: left; font-size: 14px; }
.staff-meta li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--mw-border); }
.staff-meta li:last-child { border-bottom: 0; }
.staff-meta i { color: var(--mw-primary); width: 18px; margin-top: 5px; }
.staff-meta span { color: var(--mw-muted); display: block; font-size: 12px; }
.btn-login { white-space: nowrap; font-size: 14px; padding: .6rem 1rem; }
.data-loading { text-align: center; padding: 40px 0; color: var(--mw-muted); }
.btn-login-label { margin-left: .4rem; }
/* Laptops: the account button shrinks to its icon so the menu stays on one row */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .btn-login { padding: .55rem .75rem; }
    .btn-login-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
