/*
 * AAMINA Hospital Modern V6 — live-ready correction layer
 * Loaded after all legacy theme styles so the final front end remains stable.
 */

:root {
    --am-blue: #1687cf;
    --am-blue-deep: #0b3f70;
    --am-blue-dark: #082f55;
    --am-green: #72cc3b;
    --am-green-deep: #2d9a42;
    --am-green-soft: #eff9e8;
    --am-blue-soft: #eff8ff;
    --am-ink: #102a46;
    --am-text: #566c82;
    --am-line: #dce8f1;
    --am-bg: #f7fbfe;
    --am-white: #ffffff;
    --am-shadow-sm: 0 12px 35px rgba(13, 57, 96, 0.10);
    --am-shadow: 0 24px 70px rgba(13, 57, 96, 0.14);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body,
button,
input,
select,
textarea,
option,
label,
a,
p,
span,
strong,
small,
li,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Manrope', sans-serif !important;
}

body {
    margin: 0;
    color: var(--am-text);
    background: var(--am-white);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--am-ink);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -1px;
}

p,
li,
a,
button,
input,
select,
textarea {
    line-height: 1.6;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
}

.container {
    width: calc(100% - 48px);
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.am-narrow {
    max-width: 980px;
}

section {
    scroll-margin-top: 120px;
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
    position: sticky !important;
    top: 0;
    left: auto;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.98) !important;
    transform: translateY(0);
    transition: transform 260ms ease, box-shadow 260ms ease, background 260ms ease;
    will-change: transform;
}

.admin-bar .header {
    top: 32px;
}

.header.hide_header {
    transform: translateY(-110%) !important;
}

.header.scrolled_header {
    box-shadow: 0 12px 34px rgba(7, 48, 84, 0.10);
}

.hospital-topbar {
    height: 36px !important;
    min-height: 36px !important;
    background: var(--am-blue-dark) !important;
}

.hospital-topbar__inner,
.hospital-notice {
    min-height: 36px !important;
    height: 36px !important;
}

.hospital-notice p,
.header .hospital-notice p,
.hospital-topbar__links a {
    font-size: 12px !important;
    line-height: 1.3 !important;
}

.hospital-navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #edf3f7 !important;
}

.hospital-navbar .row-wrap,
.row-wrap {
    min-height: 84px !important;
    height: 84px;
    gap: 24px;
}

.header_logo,
.row-wrap .logo-wrap a img {
    display: block;
    width: 220px !important;
    height: 64px !important;
    max-height: 64px !important;
    object-fit: contain;
    object-position: left center;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 25px !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list > li > a {
    display: flex;
    align-items: center;
    min-height: 84px;
    padding: 0 !important;
    color: var(--am-ink) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.nav-list > li > a::after {
    left: 0 !important;
    right: 100% !important;
    bottom: 20px !important;
    height: 2px !important;
    border-radius: 3px;
}

.nav-list > li:hover > a::after,
.nav-list > .current-menu-item > a::after,
.nav-list > .current-menu-ancestor > a::after,
.nav-list > .current_page_item > a::after {
    right: 0 !important;
}

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list > li > a:hover {
    color: #0c6db4 !important;
}

.header-appointment-btn {
    min-height: 48px !important;
    padding: 0 22px !important;
    gap: 10px;
    font-size: 14px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}

.header-appointment-btn span {
    font-size: 18px;
    line-height: 1;
}

.hamburger {
    display: none;
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 10px !important;
    border: 1px solid #d8e7f1 !important;
    border-radius: 12px !important;
    background: #f3f9fd !important;
}

.hamburger .line {
    display: block !important;
    width: 23px !important;
    height: 2px !important;
    margin: 3px 0 !important;
    border-radius: 3px;
    background: var(--am-blue-deep) !important;
    opacity: 1;
}

.hamburger.is-active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
}

.hamburger.is-active .line:nth-child(2) {
    opacity: 0 !important;
}

.hamburger.is-active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.cta_main,
.cta_2,
.cta_5,
.header-appointment-btn,
.am-book-mini {
    border-radius: 999px !important;
    background: linear-gradient(135deg, #136fb8, #2496db) !important;
    color: #ffffff !important;
    border: 0 !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 25px rgba(22, 120, 191, 0.18);
}

.cta_main:hover,
.cta_2:hover,
.cta_5:hover,
.header-appointment-btn:hover,
.am-book-mini:hover {
    background: linear-gradient(135deg, #278f40, #72cc3b) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.cta_4 {
    border-radius: 999px !important;
}

/* =========================================================
   HOME HERO — fixed pixel heights, never viewport height
   ========================================================= */
#home_banner_section,
.banner_slider,
.banner_slider_wrapper,
.banner_slider_wrapper .slick-list,
.banner_slider_wrapper .slick-track {
    min-height: 620px !important;
}

.banner_slide {
    min-height: 620px !important;
    height: 620px !important;
    padding: 0 !important;
    background-position: center !important;
}

.banner_slide .wrapper {
    min-height: 620px !important;
    height: 620px !important;
}

.banner_slide .content_wrapper {
    width: 650px !important;
    max-width: 62% !important;
}

.banner_slide h1 {
    margin: 0 0 18px !important;
    font-size: 60px !important;
    line-height: 1.12 !important;
    letter-spacing: -2px !important;
}

.banner_slide h2 {
    max-width: 610px !important;
    margin: 0 0 28px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.65 !important;
    letter-spacing: 0 !important;
}

/* =========================================================
   INNER PAGE BANNERS
   ========================================================= */
.inner_banner,
.common_banner,
#about_banner,
#contact_banner,
#testimonial_banner,
#report_banner,
#about_us_banner_section,
#contact_banner_section,
#gallery_section,
#testimonial_banner_section,
#banner_section_default,
.am-services-banner,
.am-doctors-banner {
    min-height: 380px !important;
    height: 380px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    background-size: cover !important;
    background-position: center !important;
}

.inner_banner .container,
.common_banner .container,
#about_us_banner_section .container,
#contact_banner_section .container,
#gallery_section .container,
#testimonial_banner_section .container,
#banner_section_default .container,
.am-services-banner .container,
.am-doctors-banner .container {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

.inner_banner h1,
.common_banner h1,
#about_us_banner_section h1,
#contact_banner_section h1,
#gallery_section h1,
#testimonial_banner_section h1,
#banner_section_default h1,
.am-services-banner h1,
.am-doctors-banner h1 {
    max-width: 820px;
    margin: 8px 0 12px !important;
    color: #ffffff !important;
    font-size: 50px !important;
    line-height: 1.18 !important;
    letter-spacing: -1.8px !important;
}

.inner_banner p,
.common_banner p,
#about_us_banner_section p,
#contact_banner_section p,
#gallery_section p,
#testimonial_banner_section p,
#banner_section_default p,
.am-services-banner p,
.am-doctors-banner p {
    max-width: 720px;
    margin-bottom: 0;
    color: rgba(255,255,255,0.88) !important;
    font-size: 16px;
    line-height: 1.65;
}

.inner_banner .am-eyebrow,
#about_us_banner_section .am-eyebrow,
#contact_banner_section .am-eyebrow,
#testimonial_banner_section .am-eyebrow,
.am-services-banner .am-eyebrow,
.am-doctors-banner .am-eyebrow {
    color: #b9eb9a !important;
}

/* Blog listing banner is intentionally compact. */
#blog_banner_section,
.am-blog-hero {
    position: relative;
    min-height: 350px !important;
    height: auto !important;
    padding: 66px 0 !important;
    background: linear-gradient(135deg, #eff8ff 0%, #ffffff 58%, #f2faeb 100%) !important;
    display: flex;
    align-items: center;
}

#blog_banner_section .container,
.am-blog-hero__inner {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.am-blog-hero__copy h1,
#blog_banner_section h1 {
    margin: 8px 0 14px !important;
    font-size: 48px !important;
    line-height: 1.18 !important;
    letter-spacing: -1.5px !important;
}

.am-blog-hero__media {
    height: 300px !important;
}

/* =========================================================
   GLOBAL SECTION RHYTHM
   ========================================================= */
#home_section_2,
#home_section_3,
#home_section_4,
#home_section_5,
#home_section_6,
#home_section_7,
#home_section_8,
#stats_section,
#home_quote_form,
#about_us_section_1,
#about_us_section_2,
#about_us_section_3,
#contact_section_1,
#faq-section,
#testimonial_main_section,
.reports_download_section,
.am-services-directory,
.am-doctors-directory,
.am-full-schedule-section,
.am-service-single-body,
.am-doctor-profile-body,
.am-fallback-listing {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.am-section-head {
    max-width: 780px;
    margin-bottom: 36px !important;
}

.am-section-head h2 {
    margin: 8px 0 12px !important;
    font-size: 44px !important;
    line-height: 1.22 !important;
    letter-spacing: -1.4px !important;
}

.am-section-head p,
.am-richtext,
.am-richtext p {
    line-height: 1.75 !important;
}

.am-eyebrow {
    line-height: 1.3 !important;
}

/* =========================================================
   SERVICES + DOCTORS LANDING PAGES
   ========================================================= */
.am-services-directory,
.am-doctors-directory {
    background: #ffffff;
}

.am-services-directory-grid,
.am-doctor-directory-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 24px !important;
}

.am-service-directory-card,
.am-directory-doctor {
    width: calc(33.333% - 16px) !important;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--am-line) !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.am-service-directory-card:hover,
.am-directory-doctor:hover {
    transform: translateY(-5px);
    box-shadow: var(--am-shadow-sm) !important;
}

.am-service-directory-card__media,
.am-directory-doctor__media {
    display: block;
    height: 250px !important;
    overflow: hidden;
    background: #eef5f9;
}

.am-service-directory-card__media img,
.am-directory-doctor__media img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.am-service-directory-card__body,
.am-directory-doctor__body {
    padding: 24px !important;
}

.am-service-directory-card h3,
.am-directory-doctor h3 {
    margin: 7px 0 10px !important;
    font-size: 22px !important;
    line-height: 1.3 !important;
}

.am-service-directory-card p,
.am-directory-doctor p {
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================================
   ABOUT / TESTIMONIAL / STATS COLOR REPAIRS
   ========================================================= */
#about_us_section_1,
#about_us_section_3 {
    background: #ffffff;
}

#about_us_section_2 {
    background: #f6fbfe !important;
}

#home_section_5 {
    background: linear-gradient(145deg, #0a3d70 0%, #165ea7 100%) !important;
    overflow: hidden;
}

#home_section_5 .am-section-head,
#home_section_5 .am-section-head h2 {
    color: #ffffff !important;
}

#home_section_5 .am-section-head h2 {
    text-align: center;
}

#home_section_5 .am-section-head .am-eyebrow,
#home_section_5 .am-eyebrow {
    color: #baf09a !important;
}

#home_section_5 .cards_wrapper {
    width: 100% !important;
    max-width: 1160px;
    margin-left: auto !important;
    margin-right: auto !important;
}

#home_section_5 .slick-list {
    overflow: hidden !important;
    padding: 4px 0 10px;
}

#home_section_5 .slick-track {
    display: flex !important;
}

#home_section_5 .slick-slide {
    height: auto !important;
}

#home_section_5 .slick-slide > div {
    height: 100%;
}

#home_section_5 .card {
    height: calc(100% - 16px) !important;
    min-height: 250px !important;
    margin: 8px 10px !important;
    padding: 30px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
}

#home_section_5 .card p {
    color: #566c82 !important;
    line-height: 1.75 !important;
}

#home_section_5 .card h4,
#home_section_5 .card h5 {
    color: var(--am-ink) !important;
}

#home_section_5 .cta_box {
    justify-content: center;
    margin-top: 26px;
}

#stats_section {
    background: linear-gradient(135deg, #0a3b6c, #1764ad) !important;
}

#stats_section h2,
#stats_section h3,
#stats_section .counter {
    color: #ffffff !important;
}

#stats_section .am-eyebrow {
    color: #b8ec99 !important;
}

#stats_section p {
    color: rgba(255,255,255,0.76) !important;
}

#stats_section .box {
    border-color: rgba(255,255,255,0.16) !important;
    background: rgba(255,255,255,0.08) !important;
}

/* =========================================================
   APPOINTMENT + CONTACT
   ========================================================= */
#home_quote_form .wrapper {
    display: flex !important;
    align-items: stretch !important;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--am-line) !important;
    border-radius: 26px !important;
    background: #ffffff !important;
}

#home_quote_form .left_wrapper {
    width: 42% !important;
    flex: 0 0 42% !important;
    min-height: 580px !important;
    height: auto !important;
}

#home_quote_form .left_wrapper img {
    width: 100%;
    height: 100% !important;
    min-height: 580px !important;
    object-fit: cover !important;
}

#home_quote_form .right_wrapper {
    display: block !important;
    width: 58% !important;
    flex: 0 0 58% !important;
    padding: 46px !important;
    background: #ffffff !important;
}

#home_quote_form .right_wrapper > h2,
#home_quote_form .right_wrapper > h3 {
    margin: 8px 0 10px !important;
    font-size: 36px !important;
    line-height: 1.25 !important;
}

#home_quote_form .right_wrapper > p {
    margin-bottom: 24px;
}

.aamina-cf7-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px !important;
}

.aamina-cf7-grid > label {
    width: calc(50% - 8px) !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.aamina-cf7-grid > .aamina-cf7-full,
.aamina-cf7-grid > div.aamina-cf7-full {
    width: 100% !important;
}

.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 select,
.wpcf7 textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 50px !important;
    margin-top: 6px;
    padding: 12px 14px !important;
    border: 1px solid #d6e4ee !important;
    border-radius: 12px !important;
    background: #fbfdff !important;
    color: var(--am-ink) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.wpcf7 textarea {
    min-height: 110px !important;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
}

.wpcf7 input[type="submit"] {
    min-height: 50px !important;
    padding: 0 24px !important;
    line-height: 1 !important;
}

#contact_section_1 .wrapper.am-contact-layout {
    display: flex !important;
    gap: 24px !important;
    align-items: stretch !important;
}

#contact_section_1 .am-contact-card {
    width: 42% !important;
    padding: 40px !important;
    border: 0 !important;
    background: linear-gradient(145deg, #0a3b6c, #145b9d) !important;
}

#contact_section_1 .am-contact-card h2 {
    color: #ffffff !important;
}

#contact_section_1 .am-contact-card .am-eyebrow {
    color: #b9ee98 !important;
}

#contact_section_1 .am-contact-row {
    padding: 15px 16px !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,0.07) !important;
    color: #ffffff !important;
}

#contact_section_1 .am-contact-row + .am-contact-row {
    margin-top: 11px !important;
}

#contact_section_1 .am-contact-row strong {
    color: #aeea89 !important;
}

#contact_section_1 .am-contact-row span {
    color: #ffffff !important;
    overflow-wrap: anywhere;
}

#contact_section_1 .am-form-card {
    width: 58% !important;
    padding: 40px !important;
}

#appointment-form {
    scroll-margin-top: 125px;
}

.am-map {
    height: 420px !important;
    margin-top: 70px !important;
}

/* =========================================================
   404 / THANK YOU
   ========================================================= */
#thank_you_section,
#not_found {
    min-height: 580px !important;
    height: auto !important;
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

#not_found h2 {
    line-height: 1 !important;
}

/* =========================================================
   FALLBACK ARCHIVE
   ========================================================= */
.am-simple-page-head {
    padding: 70px 0;
    background: linear-gradient(135deg, #eff8ff, #ffffff, #f1faeb);
}

.am-simple-page-head h1 {
    max-width: 820px;
    margin: 8px 0 0;
    font-size: 48px;
}

.am-fallback-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.am-fallback-card {
    width: calc(33.333% - 16px);
    overflow: hidden;
    border: 1px solid var(--am-line);
    border-radius: 20px;
    background: #ffffff;
}

.am-fallback-card__media {
    display: block;
    height: 220px;
}

.am-fallback-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.am-fallback-card__body {
    padding: 22px;
}

.am-fallback-card h2 {
    font-size: 22px;
}

/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */
.plusminus {
    display: none;
}

@media (max-width: 1100px) and (min-width: 992px) {
    .header_logo,
    .row-wrap .logo-wrap a img {
        width: 188px !important;
    }

    .nav-list {
        gap: 16px !important;
    }

    .nav-list > li > a {
        font-size: 13px !important;
    }

    .header-appointment-btn {
        padding: 0 17px !important;
    }
}

@media (max-width: 991px) {
    .admin-bar .header {
        top: 32px;
    }

    .hospital-topbar {
        display: none !important;
    }

    .hospital-navbar .row-wrap,
    .row-wrap {
        min-height: 74px !important;
        height: 74px !important;
    }

    .header_logo,
    .row-wrap .logo-wrap a img {
        width: 190px !important;
        height: 58px !important;
    }

    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 10002;
    }

    .nav-wrap {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: 360px !important;
        max-width: calc(100% - 34px) !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 96px 24px 30px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        overflow-y: auto !important;
        background: #ffffff !important;
        box-shadow: -24px 0 60px rgba(7, 42, 73, 0.18) !important;
        transform: translateX(106%) !important;
        transition: transform 300ms ease !important;
        z-index: 10001 !important;
    }

    .admin-bar .nav-wrap {
        top: 32px !important;
    }

    .nav-wrap.is-open {
        transform: translateX(0) !important;
    }

    .nav-list {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
    }

    .nav-list > li {
        width: 100%;
        border-bottom: 1px solid #e8f0f5 !important;
    }

    .nav-list > li > a,
    .nav-list a {
        min-height: 0 !important;
        width: 100% !important;
        padding: 16px 44px 16px 2px !important;
        color: var(--am-ink) !important;
        font-size: 16px !important;
        line-height: 1.35 !important;
    }

    .nav-list > li > a::after {
        display: none !important;
    }

    .nav-list .sub-menu {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 0 12px 14px !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        border: 0 !important;
        border-left: 2px solid var(--am-green) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .nav-list li.submenu-open > .sub-menu {
        display: block !important;
    }

    .nav-list .menu-item-has-children > .plusminus {
        position: absolute !important;
        top: 8px !important;
        right: 0 !important;
        z-index: 3;
        width: 38px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        border: 1px solid #dce8f1 !important;
        border-radius: 10px !important;
        background: #f3f9fd !important;
    }

    .nav-list .menu-item-has-children > .plusminus::before {
        content: '' !important;
        width: 9px !important;
        height: 9px !important;
        border-right: 2px solid var(--am-blue-deep) !important;
        border-bottom: 2px solid var(--am-blue-deep) !important;
        background: transparent !important;
        transform: rotate(45deg) translate(-2px, -2px) !important;
        transition: transform 220ms ease !important;
    }

    .nav-list .menu-item-has-children > .plusminus::after {
        display: none !important;
    }

    .nav-list .menu-item-has-children > .plusminus.active::before {
        transform: rotate(-135deg) translate(-1px, -1px) !important;
    }

    .nav-wrap .header-appointment-btn {
        display: flex !important;
        width: 100% !important;
        min-height: 50px !important;
        margin-top: 24px !important;
    }

    .overlay {
        position: fixed !important;
        inset: 0 !important;
        z-index: 10000 !important;
        background: rgba(4, 26, 46, 0.48) !important;
        opacity: 0;
        visibility: hidden;
        transition: 250ms ease;
    }

    .overlay.active,
    body.sidebar-open .overlay {
        opacity: 1 !important;
        visibility: visible !important;
    }

    body.sidebar-open,
    html.sidebar-open {
        overflow: hidden !important;
    }

    #home_banner_section,
    .banner_slider,
    .banner_slider_wrapper,
    .banner_slider_wrapper .slick-list,
    .banner_slider_wrapper .slick-track {
        min-height: 520px !important;
    }

    .banner_slide,
    .banner_slide .wrapper {
        min-height: 520px !important;
        height: 520px !important;
    }

    .banner_slide .content_wrapper {
        width: 650px !important;
        max-width: 80% !important;
    }

    .banner_slide h1 {
        font-size: 48px !important;
        line-height: 1.15 !important;
    }

    .inner_banner,
    .common_banner,
    #about_us_banner_section,
    #contact_banner_section,
    #gallery_section,
    #testimonial_banner_section,
    #banner_section_default,
    .am-services-banner,
    .am-doctors-banner {
        min-height: 330px !important;
        height: 330px !important;
    }

    .inner_banner h1,
    #about_us_banner_section h1,
    #contact_banner_section h1,
    #gallery_section h1,
    #testimonial_banner_section h1,
    .am-services-banner h1,
    .am-doctors-banner h1 {
        font-size: 42px !important;
    }

    #home_section_2,
    #home_section_3,
    #home_section_4,
    #home_section_5,
    #home_section_6,
    #home_section_7,
    #home_section_8,
    #stats_section,
    #home_quote_form,
    #about_us_section_1,
    #about_us_section_2,
    #about_us_section_3,
    #contact_section_1,
    #faq-section,
    #testimonial_main_section,
    .reports_download_section,
    .am-services-directory,
    .am-doctors-directory,
    .am-full-schedule-section {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }

    .am-service-directory-card,
    .am-directory-doctor {
        width: calc(50% - 12px) !important;
    }

    #home_quote_form .wrapper,
    #contact_section_1 .wrapper.am-contact-layout {
        flex-direction: column !important;
    }

    #home_quote_form .left_wrapper,
    #home_quote_form .right_wrapper,
    #contact_section_1 .am-contact-card,
    #contact_section_1 .am-form-card {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    #home_quote_form .left_wrapper,
    #home_quote_form .left_wrapper img {
        min-height: 340px !important;
        height: 340px !important;
    }

    #home_quote_form .right_wrapper,
    #contact_section_1 .am-contact-card,
    #contact_section_1 .am-form-card {
        padding: 34px !important;
    }

    .am-fallback-card {
        width: calc(50% - 12px);
    }
}

@media (max-width: 782px) {
    .admin-bar .header,
    .admin-bar .nav-wrap {
        top: 46px !important;
    }
}

@media (max-width: 700px) {
    .container {
        width: calc(100% - 34px);
    }

    #home_banner_section,
    .banner_slider,
    .banner_slider_wrapper,
    .banner_slider_wrapper .slick-list,
    .banner_slider_wrapper .slick-track {
        min-height: 470px !important;
    }

    .banner_slide,
    .banner_slide .wrapper {
        min-height: 470px !important;
        height: 470px !important;
    }

    .banner_slide .content_wrapper {
        max-width: 100% !important;
        width: 100% !important;
    }

    .banner_slide h1 {
        font-size: 39px !important;
        line-height: 1.17 !important;
        letter-spacing: -1.2px !important;
    }

    .banner_slide h2 {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    .inner_banner,
    .common_banner,
    #about_us_banner_section,
    #contact_banner_section,
    #gallery_section,
    #testimonial_banner_section,
    #banner_section_default,
    .am-services-banner,
    .am-doctors-banner {
        min-height: 285px !important;
        height: 285px !important;
    }

    .inner_banner h1,
    .common_banner h1,
    #about_us_banner_section h1,
    #contact_banner_section h1,
    #gallery_section h1,
    #testimonial_banner_section h1,
    #banner_section_default h1,
    .am-services-banner h1,
    .am-doctors-banner h1 {
        font-size: 34px !important;
        line-height: 1.2 !important;
        letter-spacing: -1px !important;
    }

    #blog_banner_section,
    .am-blog-hero {
        min-height: 300px !important;
        padding: 52px 0 !important;
    }

    .am-blog-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px !important;
    }

    .am-blog-hero__copy,
    .am-blog-hero__media {
        width: 100% !important;
    }

    .am-blog-hero__copy h1,
    #blog_banner_section h1 {
        font-size: 36px !important;
    }

    .am-blog-hero__media {
        height: 240px !important;
    }

    #home_section_2,
    #home_section_3,
    #home_section_4,
    #home_section_5,
    #home_section_6,
    #home_section_7,
    #home_section_8,
    #stats_section,
    #home_quote_form,
    #about_us_section_1,
    #about_us_section_2,
    #about_us_section_3,
    #contact_section_1,
    #faq-section,
    #testimonial_main_section,
    .reports_download_section,
    .am-services-directory,
    .am-doctors-directory,
    .am-full-schedule-section,
    .am-service-single-body,
    .am-doctor-profile-body {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .am-section-head h2 {
        font-size: 34px !important;
        line-height: 1.25 !important;
    }

    .am-service-directory-card,
    .am-directory-doctor,
    .am-fallback-card {
        width: 100% !important;
    }

    .aamina-cf7-grid > label {
        width: 100% !important;
    }

    #home_quote_form .right_wrapper,
    #contact_section_1 .am-contact-card,
    #contact_section_1 .am-form-card {
        padding: 28px 22px !important;
    }

    #home_quote_form .right_wrapper > h2,
    #home_quote_form .right_wrapper > h3,
    #contact_section_1 .am-contact-card h2,
    #contact_section_1 .am-form-card h2 {
        font-size: 30px !important;
    }

    .am-map {
        height: 320px !important;
        margin-top: 50px !important;
    }

    #thank_you_section,
    #not_found {
        min-height: 500px !important;
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}

@media (max-width: 430px) {
    .container {
        width: calc(100% - 28px);
    }

    .header_logo,
    .row-wrap .logo-wrap a img {
        width: 164px !important;
    }

    .hamburger {
        width: 44px !important;
        height: 44px !important;
        flex-basis: 44px;
    }

    .nav-wrap {
        width: 330px !important;
        max-width: calc(100% - 22px) !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .banner_slide h1 {
        font-size: 35px !important;
    }
}

/* =========================================================
   V6 LIVE-STABILITY PATCH
   ========================================================= */

/* Keep fixed mobile navigation fixed to the viewport.
   Using transform on the sticky header makes fixed children behave like
   absolute children of the header in Chromium, which caused the cropped drawer. */
.header {
    z-index: 10020 !important;
    transform: none !important;
    transition: top 260ms ease, box-shadow 260ms ease, background 260ms ease !important;
}
.header.hide_header {
    top: -132px !important;
    transform: none !important;
}
.admin-bar .header.hide_header {
    top: -132px !important;
}
.header:not(.hide_header) {
    top: 0 !important;
}
.admin-bar .header:not(.hide_header) {
    top: 32px !important;
}

/* Hero controls and quick information are separate UI layers. */
#home_banner_section {
    position: relative;
    overflow: hidden;
}
#home_banner_section .slick-dots {
    z-index: 8 !important;
    bottom: 26px !important;
}
.am-home-quickbar {
    position: relative !important;
    z-index: 5 !important;
    margin-top: 0 !important;
    padding: 28px 0 0 !important;
    background: #ffffff;
}
.am-quickbar-card {
    transform: none !important;
}

/* Bullet-proof hamburger: visible even if legacy span styles are overridden. */
.hamburger {
    position: relative !important;
    overflow: visible !important;
}
.hamburger .line {
    position: absolute !important;
    left: 50% !important;
    width: 22px !important;
    height: 2px !important;
    margin: 0 !important;
    background: #0b3f6b !important;
    opacity: 1 !important;
    transform-origin: center !important;
}
.hamburger .line:nth-child(1) { top: 14px !important; transform: translateX(-50%) !important; }
.hamburger .line:nth-child(2) { top: 21px !important; transform: translateX(-50%) !important; }
.hamburger .line:nth-child(3) { top: 28px !important; transform: translateX(-50%) !important; }
.hamburger.is-active .line:nth-child(1) { top: 21px !important; transform: translateX(-50%) rotate(45deg) !important; }
.hamburger.is-active .line:nth-child(2) { opacity: 0 !important; }
.hamburger.is-active .line:nth-child(3) { top: 21px !important; transform: translateX(-50%) rotate(-45deg) !important; }

@media (max-width: 991px) {
    .header { z-index: 10020 !important; }
    .overlay { z-index: 10010 !important; }
    .nav-wrap {
        z-index: 10030 !important;
        top: 0 !important;
        bottom: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        transform: translate3d(106%,0,0) !important;
    }
    .admin-bar .nav-wrap {
        top: 32px !important;
        bottom: 0 !important;
        height: auto !important;
        max-height: none !important;
    }
    .nav-wrap.is-open { transform: translate3d(0,0,0) !important; }
    .hamburger { z-index: 10040 !important; }

    /* Always expose a clear submenu chevron button on mobile. */
    .nav-list .menu-item-has-children { position: relative !important; }
    .nav-list .menu-item-has-children > .plusminus {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .nav-list .menu-item-has-children > .plusminus::before {
        display: block !important;
        content: '' !important;
        width: 9px !important;
        height: 9px !important;
        border: 0 !important;
        border-right: 2px solid #0b3f6b !important;
        border-bottom: 2px solid #0b3f6b !important;
        transform: rotate(45deg) translate(-2px,-2px) !important;
    }
    .nav-list .menu-item-has-children > .plusminus.active::before {
        transform: rotate(-135deg) translate(-1px,-1px) !important;
    }

    #home_banner_section .slick-dots { bottom: 20px !important; }
    .am-home-quickbar { padding-top: 20px !important; }
}

@media (max-width: 782px) {
    .admin-bar .header:not(.hide_header) { top: 46px !important; }
    .admin-bar .nav-wrap {
        top: 46px !important;
        bottom: 0 !important;
        height: auto !important;
        max-height: none !important;
    }
}

@media (max-width: 600px) {
    /* WordPress admin bar stops being fixed on narrow screens. */
    .admin-bar .header:not(.hide_header) { top: 0 !important; }
    .admin-bar .nav-wrap { top: 0 !important; bottom: 0 !important; height: auto !important; max-height: none !important; }
}

/* =========================================================
   FINAL HEADER / MOBILE NAV FIX — 24 SEP 2026
   Replace css/aamina-live-ready.css with this file.
   ========================================================= */

/* Keep the sticky header from becoming the containing block
   for the fixed mobile drawer. JS still toggles .hide_header,
   but we hide with `top` instead of transform. */
.header,
.header.scrolled_header,
.header.hide_header {
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    will-change: top !important;
}

.header {
    top: 0 !important;
    transition: top 260ms ease, box-shadow 260ms ease, background 260ms ease !important;
}

.admin-bar .header {
    top: 32px !important;
}

.header.hide_header {
    top: -122px !important;
}

/* Desktop navigation: active state is an underline, never a strike-through. */
.nav-list > li {
    position: relative !important;
}

.nav-list > li > a {
    position: relative !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
}

.nav-list > li > a::after {
    content: '' !important;
    position: absolute !important;
    top: auto !important;
    left: 0 !important;
    right: auto !important;
    bottom: 13px !important;
    width: 0 !important;
    height: 2px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(90deg, #1682c8, #67c93b) !important;
    transform: none !important;
    transition: width 220ms ease !important;
    pointer-events: none !important;
}

.nav-list > li:hover > a::after,
.nav-list > .current-menu-item > a::after,
.nav-list > .current-menu-parent > a::after,
.nav-list > .current-menu-ancestor > a::after,
.nav-list > .current_page_item > a::after,
.nav-list > .current_page_parent > a::after {
    width: 100% !important;
    right: auto !important;
    transform: none !important;
}

@media (max-width: 991px) {
    /* Mobile header */
    .header {
        top: 0 !important;
        z-index: 10020 !important;
        background: #ffffff !important;
    }

    .admin-bar .header {
        top: 32px !important;
    }

    .header.hide_header {
        top: -76px !important;
    }

    .hospital-navbar,
    .hospital-navbar .row-wrap,
    .row-wrap {
        overflow: visible !important;
    }

    .hospital-navbar .row-wrap,
    .row-wrap {
        position: relative !important;
        min-height: 74px !important;
        height: 74px !important;
    }

    .logo-wrap {
        position: relative !important;
        z-index: 2 !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
    }

    .header_logo,
    .row-wrap .logo-wrap a img {
        width: 185px !important;
        max-width: calc(100vw - 95px) !important;
        height: 56px !important;
        max-height: 56px !important;
        object-fit: contain !important;
        object-position: left center !important;
    }

    /* Drawer is now truly viewport-fixed and full height. */
    .nav-wrap,
    .admin-bar .nav-wrap {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: 350px !important;
        max-width: calc(100% - 34px) !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 94px 24px 30px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        background: #ffffff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: -24px 0 55px rgba(5, 38, 68, 0.18) !important;
        transform: translate3d(105%, 0, 0) !important;
        transition: transform 280ms cubic-bezier(.2,.8,.2,1) !important;
        z-index: 10030 !important;
    }

    .nav-wrap.is-open,
    .nav-wrap.active,
    .nav-wrap.open {
        transform: translate3d(0, 0, 0) !important;
    }

    .nav-list {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        list-style: none !important;
    }

    .nav-list > li {
        position: relative !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #e6eef4 !important;
    }

    .nav-list > li > a,
    .nav-list a {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 54px !important;
        margin: 0 !important;
        padding: 14px 48px 14px 4px !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #10253f !important;
        font-family: 'Manrope', sans-serif !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        text-decoration: none !important;
    }

    .nav-list > li > a::after {
        display: none !important;
        content: none !important;
    }

    .nav-list > .current-menu-item > a,
    .nav-list > .current-menu-parent > a,
    .nav-list > .current-menu-ancestor > a,
    .nav-list > .current_page_item > a,
    .nav-list > .current_page_parent > a {
        color: #0b72b9 !important;
        background: #eef8fd !important;
    }

    /* Mobile submenu */
    .nav-list .menu-item-has-children {
        position: relative !important;
    }

    .nav-list .sub-menu,
    .nav-list .sub-menu .sub-menu {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 0 10px 14px !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        border: 0 !important;
        border-left: 2px solid #68c93c !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .nav-list li.submenu-open > .sub-menu {
        display: block !important;
    }

    .nav-list .sub-menu a {
        min-height: 46px !important;
        padding: 11px 12px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    .nav-list .menu-item-has-children > .plusminus {
        position: absolute !important;
        top: 8px !important;
        right: 0 !important;
        z-index: 4 !important;
        width: 38px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid #dbe8f1 !important;
        border-radius: 10px !important;
        background: #f1f8fc !important;
        box-shadow: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav-list .menu-item-has-children > .plusminus::before {
        content: '' !important;
        display: block !important;
        width: 9px !important;
        height: 9px !important;
        border: 0 !important;
        border-right: 2px solid #0b3f6b !important;
        border-bottom: 2px solid #0b3f6b !important;
        background: transparent !important;
        transform: rotate(45deg) translate(-2px, -2px) !important;
        transition: transform 200ms ease !important;
    }

    .nav-list .menu-item-has-children > .plusminus::after {
        display: none !important;
        content: none !important;
    }

    .nav-list .menu-item-has-children > .plusminus.active::before {
        transform: rotate(-135deg) translate(-1px, -1px) !important;
    }

    /* Hamburger always visible above drawer. */
    .hamburger {
        position: relative !important;
        z-index: 10040 !important;
        display: flex !important;
        width: 46px !important;
        height: 46px !important;
        flex: 0 0 46px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        overflow: visible !important;
        border: 1px solid #d8e7f1 !important;
        border-radius: 12px !important;
        background: #f3f9fd !important;
    }

    .hamburger .line {
        position: absolute !important;
        left: 50% !important;
        width: 22px !important;
        height: 2px !important;
        margin: 0 !important;
        border-radius: 5px !important;
        background: #0b3f6b !important;
        opacity: 1 !important;
        transform-origin: center !important;
    }

    .hamburger .line:nth-child(1) { top: 14px !important; transform: translateX(-50%) !important; }
    .hamburger .line:nth-child(2) { top: 21px !important; transform: translateX(-50%) !important; }
    .hamburger .line:nth-child(3) { top: 28px !important; transform: translateX(-50%) !important; }

    .hamburger.is-active .line:nth-child(1) {
        top: 21px !important;
        transform: translateX(-50%) rotate(45deg) !important;
    }

    .hamburger.is-active .line:nth-child(2) {
        opacity: 0 !important;
    }

    .hamburger.is-active .line:nth-child(3) {
        top: 21px !important;
        transform: translateX(-50%) rotate(-45deg) !important;
    }

    /* Overlay stays below the drawer and the close button. */
    .overlay {
        position: fixed !important;
        inset: 0 !important;
        z-index: 10010 !important;
        background: rgba(4, 26, 46, 0.52) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 220ms ease, visibility 220ms ease !important;
    }

    .overlay.active,
    body.sidebar-open .overlay {
        opacity: 1 !important;
        visibility: visible !important;
    }

    body.sidebar-open,
    html.sidebar-open {
        overflow: hidden !important;
    }

    .nav-wrap .header-appointment-btn {
        display: flex !important;
        width: 100% !important;
        min-height: 50px !important;
        margin: 24px 0 0 !important;
    }
}

@media (max-width: 782px) {
    .admin-bar .header {
        top: 46px !important;
    }

    .admin-bar .header.hide_header {
        top: -76px !important;
    }

    .admin-bar .nav-wrap {
        top: 46px !important;
        bottom: 0 !important;
    }
}

@media (max-width: 600px) {
    .admin-bar .header,
    .admin-bar .header.hide_header {
        top: 0 !important;
    }

    .admin-bar .nav-wrap {
        top: 0 !important;
        bottom: 0 !important;
    }
}

/* =========================================================
   FINAL V2 PATCH — HEADER RETURN + CONSISTENT NAV UNDERLINE
   24 SEP 2026
   ========================================================= */

/*
 * The header must be FIXED, not sticky, for reliable hide-on-down /
 * show-on-up behaviour when JS toggles .hide_header.
 * No transform is used, so the fixed mobile drawer remains viewport-based.
 */
.header,
.header.scrolled_header,
.header.hide_header {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    translate: none !important;
    margin: 0 !important;
    will-change: top !important;
}

.header {
    top: 0 !important;
    transition: top 280ms cubic-bezier(.22,.61,.36,1), box-shadow 220ms ease, background 220ms ease !important;
}

.header.hide_header {
    top: -132px !important;
}

.header:not(.hide_header) {
    top: 0 !important;
}

/* Logged-in WordPress admin bar */
.admin-bar .header:not(.hide_header) {
    top: 32px !important;
}

.admin-bar .header.hide_header {
    top: -132px !important;
}

/*
 * Use ONE underline implementation for hover + active states.
 * This removes legacy text-decoration / anchor pseudo-element clashes.
 */
.nav-list > li {
    position: relative !important;
}

.nav-list > li > a,
.nav-list > li > a:hover,
.nav-list > li > a:focus,
.nav-list > li > a:active,
.nav-list > .current-menu-item > a,
.nav-list > .current-menu-parent > a,
.nav-list > .current-menu-ancestor > a,
.nav-list > .current_page_item > a,
.nav-list > .current_page_parent > a {
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* Disable every older underline/dot attached directly to the link */
.nav-list > li > a::before,
.nav-list > li > a::after {
    content: none !important;
    display: none !important;
}

/* Single shared hover/current indicator */
.nav-list > li::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 13px !important;
    width: 100% !important;
    height: 2px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(90deg, #1682c8 0%, #1682c8 52%, #67c93b 100%) !important;
    opacity: 0 !important;
    transform: scaleX(0) !important;
    transform-origin: left center !important;
    transition: transform 220ms ease, opacity 180ms ease !important;
    pointer-events: none !important;
}

.nav-list > li:hover::after,
.nav-list > li:focus-within::after,
.nav-list > .current-menu-item::after,
.nav-list > .current-menu-parent::after,
.nav-list > .current-menu-ancestor::after,
.nav-list > .current_page_item::after,
.nav-list > .current_page_parent::after {
    opacity: 1 !important;
    transform: scaleX(1) !important;
}

/* Hover and active text use the exact same state colour */
.nav-list > li:hover > a,
.nav-list > li:focus-within > a,
.nav-list > .current-menu-item > a,
.nav-list > .current-menu-parent > a,
.nav-list > .current-menu-ancestor > a,
.nav-list > .current_page_item > a,
.nav-list > .current_page_parent > a {
    color: #0c6db4 !important;
}

/* Mobile drawer should not show desktop underline indicators */
@media (max-width: 991px) {
    .header,
    .header.scrolled_header,
    .header.hide_header {
        position: fixed !important;
    }

    .header:not(.hide_header) {
        top: 0 !important;
    }

    .header.hide_header {
        top: -86px !important;
    }

    .admin-bar .header:not(.hide_header) {
        top: 32px !important;
    }

    .admin-bar .header.hide_header {
        top: -86px !important;
    }

    .nav-list > li::after {
        content: none !important;
        display: none !important;
    }
}

/* WordPress admin bar becomes 46px on narrow logged-in screens */
@media (max-width: 782px) {
    .admin-bar .header:not(.hide_header) {
        top: 46px !important;
    }

    .admin-bar .header.hide_header {
        top: -92px !important;
    }
}