/* ============================================
   Muncie Spine and Rehab — Standalone Stylesheet
   Replaces external Vortala CSS + Font Awesome
   ============================================ */

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html,
body {
    overflow-x: hidden;
    width: 100%
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth
}

body {
    background: #fff;
    color: #333;
    font-family: 'Oxygen', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6
}

a {
    text-decoration: none;
    color: #053e67
}

a:hover {
    color: #e78841
}

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

ul,
ol {
    list-style: none
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    margin-bottom: .5em
}

h1 {
    font-size: 2em
}

h2 {
    font-size: 1.65em
}

h3 {
    font-size: 1.3em
}

h4 {
    font-size: 1.1em
}

p {
    margin-bottom: 1em
}

strong {
    font-weight: 700;
    color: #111
}

em,
i,
cite {
    font-style: italic
}

hr {
    border: none;
    border-bottom: 1px solid #ccc;
    margin: 1.5em 0
}

table {
    width: 100%;
    border-collapse: collapse
}

table th,
table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd
}

table th {
    font-weight: 700;
    color: #111
}

iframe {
    max-width: 100%;
    border: 0
}

blockquote {
    margin: 1em 2em;
    font-style: italic;
    color: #555
}

/* --- Skip to content --- */
.skip-to-content {
    position: absolute;
    left: -999em;
    color: #444
}

.skip-to-content:focus {
    left: 10px;
    top: 10px;
    z-index: 9999;
    background: #fff;
    padding: 8px 16px
}

/* --- Utility Bar --- */
.nav-utility {
    background: #053e67;
    width: 100%;
    height: 40px;
    position: relative;
    z-index: auto
}

.nav-utility.sticky-top {
    position: fixed;
    top: 0;
    z-index: 4501
}

.utility_wrap {
    max-width: 960px;
    margin: 0 auto;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px
}

.utility_wrap ul {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0
}

.utility_wrap .util_left {
    margin-right: auto
}

.utility_wrap .util_right {
    margin-left: auto
}

.utility_item {
    display: inline-flex;
    align-items: center;
    margin: 0 5px;
    font-size: 13px;
    color: #fff
}

.utility_item a,
.utility_item a:visited {
    color: #fff;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 13px
}

.utility_item .button {
    background: #e78841;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    line-height: 1.6;
    box-shadow: none;
    text-shadow: none;
    display: inline-block
}

.utility_item .button:hover {
    background: #d47530;
    color: #fff
}

.utility_item.utility_social a {
    font-size: 20px;
    padding: 0 4px;
    color: #e78841 !important
}

.utility_item.utility_social a:hover {
    color: #fff !important
}

.utility_item.phone a {
    font-weight: 700
}

.utility_item.phone .phone_text {
    margin-right: 4px;
    font-weight: 700;
    color: #fff
}

.utility_item.pt_btn span {
    color: #fff;
    font-weight: 400;
    font-size: 14px
}

.visuallyhidden {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
    white-space: nowrap
}

/* --- Social Icon SVGs (inline replacement for Font Awesome) --- */
.icon-facebook,
.icon-instagram,
.icon-phone,
.icon-bars,
.icon-calendar {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle
}

/* --- Office Hours Popup --- */
.office_hours {
    position: relative
}

.office_hours:hover .office_hours_popup {
    display: block !important;
}

.office_hours_popup {
    display: none;
    position: absolute !important;
    top: 40px;
    left: 0;
    z-index: 6000;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px 20px;
    min-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    color: #333
}

.office_hours_popup.show {
    display: block !important
}

.up_arrow {
    width: 0;
    height: 0;
    position: absolute;
    left: 30px;
    top: -10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff
}

.office_hours-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #053e67
}

.office_hours_full {
    font-size: 14px
}

.office_hours_full .fullRow {
    display: flex;
    padding: 4px 0
}

.office_hours_full .headerRow {
    font-weight: 700;
    border-bottom: 1px solid #ddd;
    margin-bottom: 4px
}

.office_hours_full .partDayTitleCol,
.office_hours_full .partDayCol {
    width: 30%;
    font-weight: 700
}

.office_hours_full .partMorningHoursTitleCol,
.office_hours_full .morningHoursCol {
    width: 35%
}

.office_hours_full .partAfternoonHoursTitleCol,
.office_hours_full .afternoonHoursCol {
    width: 35%
}

.office_hours_full .even_day_row {
    background: #f9f9f9
}

.office_hours_full .footerRow {
    border-top: 1px solid #ddd;
    margin-top: 8px;
    padding-top: 8px
}

.oh_phone a {
    color: #053e67;
    font-weight: 700
}

/* --- Primary Navigation --- */
#containing_wrap {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    margin-top: 40px
}

#wrap {
    max-width: 960px;
    width: 100%
}

.nav-primary {
    background: #2F4F98;
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 1500
}

.nav-primary.center_menu {
    text-align: center
}

#primary_nav {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center
}

#primary_nav li {
    position: relative
}

#primary_nav li a,
#primary_nav li a:visited {
    color: #fff;
    padding: 10px 15px;
    display: block;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    transition: background .2s
}

#primary_nav li a:hover,
#primary_nav li a:focus,
#primary_nav li.current-menu-item>a,
#primary_nav li.current-menu-ancestor>a,
#primary_nav li.current_page_item>a {
    background: rgba(255, 255, 255, .15);
    font-weight: 700
}

#primary_nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e3a70;
    min-width: 220px;
    z-index: 1600;
    padding: 0
}

#primary_nav li:hover>.sub-menu {
    display: block
}

#primary_nav .sub-menu li a {
    font-size: 13px;
    padding: 8px 15px;
    text-transform: none;
    border-bottom: 1px solid rgba(255, 255, 255, .1)
}

#primary_nav .sub-menu li a:hover {
    background: rgba(255, 255, 255, .2)
}

/* Mobile menu toggle */
#dd-primary_nav {
    display: none;
    background: #2F4F98;
    padding: 8px 15px
}

#dd-primary_nav a {
    color: #fff;
    font-weight: 700;
    font-size: 15px
}

#dd-primary_nav .menu-icon {
    margin-right: 6px;
    font-size: 18px
}

/* --- Header / Logo --- */
#header_wrap {
    overflow: hidden;
    clear: both;
    position: relative
}

#header {
    position: relative;
    clear: both;
    overflow: visible;
    max-width: 960px
}

#logo {
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 200;
    padding: 15px 10px
}

#logo img {
    max-height: 100px;
    width: auto
}

#blog-title {
    position: absolute;
    text-indent: -999em
}

.n-a-p {
    display: none
}

/* --- Hero / Premium Section --- */
/* --- Hero / Premium Section --- */
#premium_wrap {
    width: 100vw;
    /* Force full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    /* Center it back */
    margin-right: -50vw;
    /* Center it back */
    background: linear-gradient(135deg, #053e67 0%, #2F4F98 100%);
    color: #fff;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

/* Fix containing wrap margin */
.home #containing_wrap {
    margin-top: 0 !important;
    /* Remove top gap on home page */
}

/* Ensure premium content centers itself */
.premium_content {
    max-width: 960px;
    margin: 0 auto;
    /* Centering */
    width: 100%;
    padding: 20px 20px;
    /* Reduced from 40px to be more 'flush' but keep breathing room */
    position: relative;
    text-align: center;
    /* Generally looks better centered */
}

/* Ensure buttons container centers */
.premium_bottom_banners {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    padding: 0 10px 15px;
}

.premium_content {
    max-width: 960px;
    width: 100%;
    padding: 40px 20px;
    position: relative
}

.premium_content h1 {
    color: #fff;
    font-size: 2.2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .2)
}

.premium_content h1 strong {
    color: #e78841
}

.premium_bottom_banners {
    width: 100%;
    padding: 0 10px 15px
}

.premium_bottom_banners .banner ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0
}

.premium_bottom_banners .banner ul li a {
    display: inline-block;
    background: #e78841;
    color: #fff;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    transition: background .2s
}

.premium_bottom_banners .banner ul li a:hover {
    background: #d47530
}

.premium_bottom_banners .banner ul li a i {
    margin-left: 4px
}

/* --- Main Content --- */
#container_wrap {
    max-width: 960px;
    width: 100%;
    float: left
}

#content {
    padding: 20px 4% 0;
    min-height: 300px
}

.entry-content {
    position: relative;
    z-index: 1;
    line-height: 1.7
}

.entry-content a {
    font-weight: 700;
    color: #053e67
}

.entry-content a:hover {
    color: #e78841
}

.entry-content img {
    margin: 0 0 18px
}

.entry-content ul,
.entry-content ol {
    margin: 1em 0 1em 2em
}

.entry-content ul {
    list-style: disc
}

.entry-content ol {
    list-style: decimal
}

.alignright,
img.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px
}

.alignleft,
img.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px
}

.aligncenter,
img.aligncenter {
    margin: 0 auto;
    display: block;
    clear: both
}

.rounded-corners {
    border: 2px solid #f1f1f1;
    padding: 10px;
    border-radius: 25px
}

.rounded {
    border-radius: 50%;
    border: 2px solid #f1f1f1;
    margin: 10px;
    padding: 6px
}

.cf::after {
    content: "";
    display: table;
    clear: both
}

.h1 {
    font-size: 2em
}

/* Columns */
.column {
    position: relative;
    float: left;
    margin-right: 4%
}

.column.last {
    margin-right: 0
}

.one_half {
    width: 48%
}

.one_third {
    width: 30.66%
}

.two_thirds {
    width: 65.33%
}

.one_fourth {
    width: 22%
}

.three_fourths {
    width: 74%
}

.cb {
    display: block;
    clear: both
}

/* Notebox / CTA */
.notebox,
.bldr_notebox {
    padding: 25px;
    margin: 25px 0;
    border: 1px solid #f1f1f1;
    border-radius: 25px;
    background: #f1f1f1
}

a.bldr_cta {
    display: inline-block;
    border: 2px solid #053e67;
    border-radius: 5px;
    font-size: 18px;
    color: #fff;
    background: #053e67;
    padding: 12px 25px;
    margin: 15px 0;
    transition: background .2s
}

a.bldr_cta:hover {
    background: #2F4F98;
    border-color: #2F4F98
}

.bldr_divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 1.5em 0;
    clear: both
}

/* --- Above Footer Banners --- */
#above_footer {
    width: 100%;
    clear: both;
    padding: 0 10px
}

#above_footer .banner {
    overflow: hidden;
    margin-bottom: 0
}

#above_footer .fwrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 0;
    overflow: hidden
}

#above_footer .fwrap::after {
    content: "";
    display: table;
    clear: both
}

.banner-text {
    overflow: hidden;
    padding: 0 10px
}

.banner-text .h1 {
    font-size: 1.8em;
    margin-bottom: .5em
}

.banner-text p {
    line-height: 1.7
}

/* Slideshow replacement (static images) */
.wp_flex_gallery {
    max-width: 492px
}

.wp_flex_gallery .slides {
    list-style: none;
    margin: 0;
    padding: 0
}

.wp_flex_gallery .slides li {
    display: none
}

.wp_flex_gallery .slides li:first-child {
    display: block
}

.wp_flex_gallery .slides li img {
    width: 100%;
    border-radius: 4px
}

/* Buttons */
.btn,
.btn-1 {
    display: inline-block;
    background: #e78841;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 700;
    margin: 8px 4px;
    transition: background .2s;
    font-size: 15px
}

.btn:hover,
.btn-1:hover {
    background: #d47530;
    color: #fff
}

/* --- Footer Banner --- */
/* --- Footer Banner --- */
#footer_banner {
    text-align: center;
    clear: both;
    width: 100vw;
    /* Force full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    /* Center it back */
    margin-right: -50vw;
    /* Center it back */
    padding: 20px 10px;
    background: #053e67;
    color: #fff;
    box-sizing: border-box;
    /* Include padding in width */
}

#footer_banner .fwrap {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

#footer_banner h2 {
    color: #fff;
    margin: 0;
}

#footer_banner h2 big {
    display: block;
    font-size: 1.1em;
}

#footer_banner h2 big strong {
    color: #e78841;
}

#footer_banner .btn {
    background: #e78841;
}

/* --- Footer --- */
#footer_wrap {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: none
}

.home #footer_wrap {
    display: block
}

#footer {
    margin: 0 auto;
    clear: both;
    padding: 20px 10px
}

#footer_sidebar {
    overflow: hidden
}

.footer_widget_area_1 {
    width: 100%
}

.textwidget .fwrap {
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 20px
}

.textwidget .fwrap::after {
    content: "";
    display: table;
    clear: both
}

.textwidget .column.two_thirds {
    width: 64%;
    min-width: 300px;
    flex: 2
}

.textwidget .column.one_third {
    width: 32%;
    min-width: 250px;
    flex: 1
}

/* --- Bottom Footer --- */
#utility_credit_wrap {
    overflow: hidden;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    font-size: 12px;
    padding: 10px
}

#centered_footer {
    margin: 0 auto
}

.footer_schema {
    padding: 8px 10px;
    float: left
}

.footer_schema .schema-practice-name {
    font-weight: 700;
    font-size: 14px
}

.footer_schema .schema-practice-info {
    color: #555
}

.footer_schema a {
    color: #053e67
}

#credit_wrap {
    width: 100%;
    clear: both;
    padding: 0 10px
}

#footer_right {
    text-align: right;
    width: 100%
}

.nav-footer {
    height: auto
}

.nav-footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0
}

.nav-footer li a {
    font-size: 12px;
    padding: 0 8px;
    color: #555;
    text-decoration: underline
}

.nav-footer li a:hover {
    color: #053e67
}

#credits {
    font-size: 12px;
    padding: 5px 0;
    color: #555
}

/* --- Contact Form (hidden popup) --- */
.v_contact_form,
.v_appt_form {
    display: none
}

/* --- Contact Page Specific --- */
.nb45 {
    max-width: 100%;
    background: #fff;
    border: 6px solid #2F4F98;
    border-radius: 0 25px 25px;
    padding: 20px;
    margin: 15px 0
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .45);
    z-index: 99;
    opacity: 0;
    transition: opacity .3s ease
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1
}

/* --- Sub-menu toggle chevron for mobile --- */
.submenu-toggle {
    display: none
}

/* --- Responsive --- */
@media screen and (max-width:960px) {
    #containing_wrap {
        margin-top: 0
    }

    .nav-utility {
        position: relative
    }

    .utility_wrap {
        flex-wrap: wrap;
        height: auto;
        padding: 6px 10px
    }

    .utility_item {
        margin: 2px 4px
    }
}

@media screen and (max-width:768px) {

    /* Fix for image gallery on our-techniques page - text should not wrap to left of image on mobile */
    .page .wp_flex_gallery.right {
        float: none !important;
        clear: both !important;
        margin: 0 auto 20px auto !important;
        text-align: center;
        max-width: 100% !important;
    }

    /* ---- Utility Bar Mobile ---- */
    .nav-utility {
        position: relative;
        z-index: auto;
        height: auto;
        overflow: visible
    }

    .utility_wrap {
        flex-wrap: nowrap;
        flex-direction: column;
        height: auto;
        padding: 5px 10px 6px;
        align-items: center;
        gap: 2px;
        max-width: 100%
    }

    .utility_wrap ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        width: 100%
    }

    .utility_item {
        margin: 1px 2px
    }

    /* Row 1: The 3 action buttons stay on one line */
    .utility_item.custom_button_1,
    .utility_item.office_hours,
    .utility_item.custom_button_3 {
        order: 1
    }

    .utility_item .button {
        padding: 5px 10px;
        font-size: 11px;
        white-space: nowrap
    }

    /* Row 2: Social icons */
    .utility_item.utility_social {
        order: 2;
        display: flex !important;
        width: 100%;
        justify-content: center;
        padding: 3px 0 2px
    }

    .utility_item.utility_social a {
        font-size: 20px;
        padding: 0 8px
    }

    /* Row 3: Phone — always visible, centered */
    .utility_item.phone {
        order: 3;
        width: 100%;
        text-align: center;
        justify-content: center
    }

    .utility_item.phone .phone_text {
        display: inline !important
    }

    .utility_item.phone a {
        font-size: 14px;
        font-weight: 700;
        padding: 2px 0
    }

    /* Hide fax on mobile */
    .utility_item.pt_btn {
        display: none
    }

    /* Ensure util_left / util_right don't fight on mobile */
    .utility_wrap .util_left {
        margin-right: 0
    }

    .utility_wrap .util_right {
        margin-left: 0
    }

    /* ---- Mobile Menu Toggle ---- */
    #dd-primary_nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0 15px;
        min-height: 48px;
        cursor: pointer;
        background: transparent !important
    }

    #dd-primary_nav a {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #fff;
        font-weight: 700;
        font-size: 15px;
        padding: 10px 0;
        min-height: 44px
    }

    /* ---- Primary Nav Mobile ---- */
    .nav-primary {
        display: none;
        background: transparent !important
    }

    .nav-primary.mobile-open {
        display: block;
        animation: slideDown .3s ease
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px)
        }

        to {
            opacity: 1;
            transform: translateY(0)
        }
    }

    #primary_nav {
        flex-direction: column;
        width: 100%;
        padding-left: 0 !important;
        background: #2F4F98
    }

    #primary_nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, .1)
    }

    #primary_nav li:last-child {
        border-bottom: none
    }

    #primary_nav li a {
        padding: 12px 16px !important;
        font-size: 15px !important;
        border-right: none !important;
        min-height: 44px;
        display: flex;
        align-items: center
    }

    /* ---- Sub-menu toggle chevron ---- */
    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        min-height: 44px;
        background: none;
        border: none;
        border-left: 1px solid rgba(255, 255, 255, .15);
        color: #fff;
        cursor: pointer;
        padding: 0;
        position: absolute;
        right: 0;
        top: 0;
        transition: transform .2s ease
    }

    .submenu-toggle svg {
        transition: transform .3s ease
    }

    .submenu-toggle.open svg {
        transform: rotate(180deg)
    }

    #primary_nav li.menu-item-has-children {
        position: relative
    }

    #primary_nav li.menu-item-has-children>a {
        padding-right: 52px !important
    }

    /* ---- Sub-menus mobile ---- */
    #primary_nav .sub-menu {
        position: static;
        display: none;
        background: #1a3265;
        min-width: 100%;
        padding: 0;
        border-top: 1px solid rgba(255, 255, 255, .08)
    }

    #primary_nav .sub-menu.mobile-open {
        display: block;
        animation: slideDown .25s ease
    }

    /* Disable hover for sub-menus on mobile — JS controls them */
    #primary_nav li:hover>.sub-menu {
        display: none
    }

    #primary_nav .sub-menu.mobile-open {
        display: block !important
    }

    #primary_nav .sub-menu li a {
        padding-left: 32px !important;
        font-size: 14px !important;
        color: rgba(255, 255, 255, .9)
    }

    /* ---- Premium / Hero ---- */
    .premium_content {
        padding: 20px 15px
    }

    .premium_content h1 {
        font-size: 1.5em
    }

    /* 2-column grid for hero buttons */
    .premium_bottom_banners {
        padding: 0 10px 10px
    }

    .premium_bottom_banners .banner ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%
    }

    .premium_bottom_banners .banner ul li {
        width: 100%
    }

    .premium_bottom_banners .banner ul li a {
        display: block;
        text-align: center;
        padding: 8px 10px;
        font-size: 13px;
        white-space: nowrap
    }

    /* ---- Content columns ---- */
    .column,
    .one_half,
    .one_third,
    .two_thirds,
    .one_fourth,
    .three_fourths {
        width: 100% !important;
        float: none;
        margin-right: 0;
        margin-bottom: 15px
    }

    /* ---- Images ---- */
    .alignright,
    img.alignright,
    .alignleft,
    img.alignleft {
        float: none;
        margin: 0 auto 15px;
        display: block;
        max-width: 100%
    }

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

    /* ---- Footer widgets ---- */
    .textwidget .fwrap {
        flex-direction: column
    }

    .textwidget .column.two_thirds,
    .textwidget .column.one_third {
        width: 100% !important;
        min-width: 0
    }

    /* ---- Footer banner ---- */
    #footer_banner {
        padding: 15px 10px
    }

    #footer_banner .fwrap {
        flex-direction: column;
        gap: 10px;
        text-align: center
    }

    #footer_banner h2 {
        font-size: 1.2em
    }

    /* ---- Above footer ---- */
    #above_footer .fwrap {
        padding: 20px 10px;
        flex-direction: column
    }

    #above_footer img.alignleft,
    #above_footer .alignleft {
        float: none;
        margin: 0 auto 15px;
        display: block
    }

    #above_footer .banner-text {
        padding: 0
    }

    /* ---- Map in footer ---- */
    #footer iframe {
        width: 100%;
        height: 280px
    }

    /* ---- Bottom footer ---- */
    #utility_credit_wrap {
        padding: 10px
    }

    .footer_schema {
        float: none;
        text-align: center;
        padding: 8px 0
    }

    #footer_right {
        text-align: center
    }

    .nav-footer ul {
        justify-content: center;
        flex-wrap: wrap
    }

    /* ---- Office Hours popup mobile ---- */
    .office_hours_popup {
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        transform: translateX(-50%);
        width: 280px;
        max-width: 92vw;
        min-width: auto;
        z-index: 6001;
        border-radius: 10px;
        margin-top: 6px
    }

    .office_hours_popup .up_arrow {
        left: 50%;
        transform: translateX(-50%)
    }

    /* ---- Notebox ---- */
    .notebox,
    .bldr_notebox {
        padding: 18px 14px;
        margin: 20px 0
    }

    /* ---- CTA buttons ---- */
    a.bldr_cta {
        font-size: 16px;
        padding: 10px 20px;
        display: block;
        text-align: center
    }

    /* ---- Rounded images ---- */
    .rounded-corners {
        padding: 6px;
        border-radius: 15px
    }

    .rounded {
        max-width: 250px;
        margin: 10px auto
    }

    /* ---- NB45 contact box ---- */
    .nb45 {
        padding: 15px;
        border-radius: 0 15px 15px;
        margin: 10px 0
    }

    /* ---- Container wrap ---- */
    #container_wrap {
        float: none;
        width: 100%
    }

    /* ---- Fix 100vw sections that cause overflow ---- */
    #premium_wrap {
        width: 100%;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0
    }

    #footer_banner {
        width: 100%;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0
    }

    /* ---- Prevent body scroll when mobile menu is open ---- */
    body.mobile-menu-active {
        overflow: hidden;
        position: fixed;
        width: 100%
    }
}

@media screen and (max-width:480px) {

    .premium_content h1 {
        font-size: 1.2em
    }

    .btn,
    .btn-1 {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
        text-align: center
    }

    h1 {
        font-size: 1.6em
    }

    h2 {
        font-size: 1.35em
    }

    h3 {
        font-size: 1.15em
    }

    #content {
        padding: 15px 12px 0
    }

    /* Smaller buttons in utility bar */
    .utility_item .button {
        padding: 4px 8px;
        font-size: 10px
    }

    /* Hero buttons even tighter on phone */
    .premium_bottom_banners .banner ul li a {
        padding: 7px 6px;
        font-size: 12px
    }
}

/* --- Print --- */
@media print {

    .nav-utility,
    .nav-primary,
    #dd-primary_nav,
    #premium_wrap,
    #footer_banner,
    #above_footer,
    #footer_wrap,
    .skip-to-content {
        display: none !important
    }

    body,
    #wrap,
    #container,
    #content {
        background: #fff;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 12pt
    }
}

/* ============================================
   SUBPAGE-SPECIFIC STYLES
   ============================================ */

/* --- Not-home pages: show footer on all pages --- */
.not-home #footer_wrap,
body:not(.home) #footer_wrap {
    display: block
}

/* --- Reviews / Testimonials --- */
.testimonial_wrap {
    margin: 20px 0
}

#slider_testimonials .slides {
    list-style: none;
    margin: 0;
    padding: 0
}

#slider_testimonials .slides .item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #eee
}

#slider_testimonials .slides .item:last-child {
    border-bottom: none
}

.testimonial_image {
    flex: 0 0 60px;
    margin-right: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    background: #ccc;
    /* Default fallback */
    overflow: hidden;
}

.testimonial_image img {
    display: none;
    /* Hide original image */
}

.testimonial_text {
    flex: 1
}

.test_text {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 8px
}

.test_text em {
    font-style: italic
}

.test_author {
    font-weight: 700;
    color: #053e67;
    font-size: 14px
}

/* --- Blog Page --- */
.blog-subscribe-container {
    background: #f5f5f5;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 20px
}

.blog-subscribe .blogtitle {
    font-size: 1.6em;
    margin-bottom: 8px;
    color: #053e67
}

.blog-subscribe .blogsubtitle {
    font-size: 1.1em;
    font-weight: 400;
    color: #555;
    margin-bottom: 15px
}

.blog_subscribe_form .fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center
}

.blog_subscribe_form .field {
    flex: 1;
    min-width: 150px;
    max-width: 220px
}

.blog_subscribe_form input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Oxygen', Arial, sans-serif
}

.blog_subscribe_form input[type="submit"] {
    background: #FF8A09;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Oxygen', Arial, sans-serif
}

.blog_subscribe_form input[type="submit"]:hover {
    background: #d47530
}

.blogposts {
    padding: 10px 0
}

.navigation {
    overflow: hidden;
    padding: 15px 0
}

.nav-previous {
    float: left
}

.nav-next {
    float: right
}

.meta-nav {
    color: #053e67;
    font-weight: 700
}

.latest-post {
    margin-bottom: 10px
}

/* Blog sidebar */
.layout-two-col-right #container_wrap {
    display: flex;
    flex-wrap: wrap
}

.layout-two-col-right #container {
    flex: 1;
    min-width: 0;
    margin-right: 3%
}

.layout-two-col-right .primary-aside {
    width: 28%;
    min-width: 200px
}

.primary-aside .xoxo {
    list-style: none;
    margin: 0;
    padding: 0
}

.primary-aside .widget {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px
}

.primary-aside .widget-title {
    font-size: 16px;
    color: #053e67;
    border-bottom: 2px solid #e78841;
    padding-bottom: 6px;
    margin-bottom: 10px
}

.primary-aside .widget-title-left,
.primary-aside .widget-title-right {
    font-weight: 700
}

.primary-aside .widget .menu {
    list-style: none;
    margin: 0;
    padding: 0
}

.primary-aside .widget .menu li {
    padding: 6px 0;
    border-bottom: 1px solid #eee
}

.primary-aside .widget .menu li:last-child {
    border-bottom: none
}

.primary-aside .widget .menu li a {
    color: #053e67;
    font-size: 13px
}

.primary-aside .widget .menu li a:hover {
    color: #e78841
}

/* --- Forms (inline on contact page and popup forms) --- */
.ui.form .field {
    margin-bottom: 12px
}

.ui.form .two.fields {
    display: flex;
    gap: 10px
}

.ui.form .two.fields .field {
    flex: 1
}

.ui.form input[type="text"],
.ui.form textarea,
.ui.form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Oxygen', Arial, sans-serif
}

.ui.form textarea {
    min-height: 100px;
    resize: vertical
}

.ui.form select {
    appearance: auto
}

.ui.form .button,
.ui.button {
    background: #e78841;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Oxygen', Arial, sans-serif
}

.ui.form .button:hover,
.ui.button:hover {
    background: #d47530
}

.ui.checkbox,
.ui.radio.checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0
}

.ui.checkbox input,
.ui.radio.checkbox input {
    margin-right: 4px
}

.form-label {
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
    color: #333
}

.form-fieldset {
    border: none;
    padding: 8px 0;
    margin: 0
}

.inline.fields {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap
}

.radios .field {
    display: inline-flex;
    align-items: center
}

.patient_type {
    margin-bottom: 10px
}

.pickdate .fields {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap
}

.pickdate .field {
    flex: 0 0 auto
}

.time-radios {
    display: flex;
    gap: 8px;
    align-items: center
}

.antispam {
    position: absolute;
    left: -9999px
}

.privacy_consent_message {
    font-size: 13px;
    color: #555
}

.privacy_consent_message a {
    color: #053e67;
    text-decoration: underline
}

.phi_info {
    color: #053e67;
    text-decoration: underline
}

.info-popup {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    font-size: 13px;
    max-width: 400px;
    z-index: 3000;
    color: #333
}

/* --- Inner page hero --- */
.not-home #premium_wrap {
    display: none
}

.page-reviews .entry-content h1 {
    color: #053e67;
    margin-bottom: 15px
}

/* --- Technique Info Pages --- */
.syndicated-content {
    line-height: 1.7
}

.syndicated-content h1,
.syndicated-content h2 {
    color: #053e67
}

.syndicated-content img {
    margin: 10px 0
}

/* --- Video container --- */
.video-js {
    max-width: 100%;
    margin: 15px 0
}

/* --- Widget / footer for non-home --- */
.not-home #footer_sidebar {
    overflow: hidden
}

.not-home .footer_widget_area_1 {
    width: 100%
}

/* --- Responsive additions for subpages --- */
@media screen and (max-width:768px) {
    .layout-two-col-right #container_wrap {
        flex-direction: column
    }

    .layout-two-col-right #container {
        margin-right: 0
    }

    .layout-two-col-right .primary-aside {
        width: 100%
    }

    .testimonial_image {
        flex: 0 0 80px;
        margin-right: 12px
    }

    .testimonial_image img {
        width: 80px;
        height: 80px
    }

    #slider_testimonials .slides .item {
        padding: 15px 0
    }

    .blog_subscribe_form .fields {
        flex-direction: column;
        align-items: stretch
    }

    .blog_subscribe_form .field {
        max-width: 100%
    }

    .ui.form .two.fields {
        flex-direction: column;
        gap: 0
    }
}

/* ============================================
   NEW HEADER / BANNER LAYOUT (UPDATED)
   ============================================ */

/* 1. Brand Banner Area (Full Width) */
#brand_banner_wrap {
    width: 100%;
    /* 
       "thin at the top... extends across the whole page" 
       Using background-size cover to ensure it spans full width.
       Positioned at center bottom to show the "thin" part if the image is designed that way,
       or we can just restrict height.
    */
    background: url('public/common/banner.png') no-repeat center bottom;
    background-size: cover;
    position: relative;
    z-index: auto;
    border-bottom: 4px solid #fff;
}

/* Inner wrapper to align content to 960px grid */
.brand_banner_inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    height: 140px;
    /* Explicit height to reserve space for banner since logo is absolute */
}

/* 2. Logo Container (White Circle with Drop Shadow) */
#logo_container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 50%;
    /* Circle */
    border: 4px solid #053e67;
    /* Theme Blue Border */

    /* Cool Drop Shadow */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Slightly Smaller Size per request */
    width: 170px;
    height: 170px;
    padding: 10px;

    /* Position: Absolute Left, Overlapping Bottom */
    /* Adjusted bottom to ensure top is not covered by utility bar */
    bottom: -35px;
    left: -40px;
    /* Moved MORE to the left to make room for nav */

    position: absolute;
    /* Aligned to left of 960px container */

    /* Ensure visibility over nav */
    z-index: 5500;

    /* Animation */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#logo_container:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

#logo_container a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#logo_container img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    display: block;
}

/* 3. Navigation Bar (Full Width Blue) */
/* The outer wrapper makes the blue bar extend full width */
.nav-primary-outer {
    width: 100%;
    background: #2F4F98;
    /* Theme Blue */
    position: relative;
    /* Ensure it stacks correctly */
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    min-height: 48px;
    /* Ensure some height even if empty */
}

/* Inner container keeps menu items centered within max-width */
.nav-primary-inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

/* Update existing .nav-primary to lose its background (since wrapper has it) */
.nav-primary {
    background: transparent !important;
}

/* Push navigation to the right so it starts NEXT to the logo */
#primary_nav {
    justify-content: flex-start;
    /* Start from left */
    padding-left: 140px;
    /* Reduced padding to give more room for items */
}

/* Tighter Nav Items */
/* Tighter Nav Items */
#primary_nav li a {
    padding: 10px 10px !important;
    /* Reduce horizontal padding */
    font-size: 13px !important;
    /* Slightly smaller font to ensure fit */
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    /* Divider */
}

/* Remove divider from last item */
#primary_nav>li:last-child>a {
    border-right: none;
}

/* Remove dividers from sub-menu items */
#primary_nav .sub-menu li a {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Keep horizontal separator for dropdowns */
}

/* Ensure sub-menus still have background */
#primary_nav .sub-menu {
    background: #1e3a70;
    /* Keep dark blue for dropdowns */
    text-align: left;
}

/* Mobile Adjustments for Header/Brand */
@media screen and (max-width: 768px) {
    #brand_banner_wrap {
        padding: 0;
        position: relative;
        /* No z-index here — let the logo escape this stacking context */
    }

    .brand_banner_inner {
        height: auto;
        min-height: 20px;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0 0 0 10px;
    }

    /* Left-aligned logo, overlaps BOTH the top bar and the nav bar */
    #logo_container {
        position: relative;
        margin-top: -35px;
        top: auto;
        left: auto;
        bottom: auto;
        width: 130px;
        height: 130px;
        padding: 6px;
        border-width: 3px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
        margin-bottom: -20px;
        margin-left: 0;
        margin-right: 0;
        z-index: 5500;
    }

    /* Nav outer wrapper */
    .nav-primary-outer {
        min-height: 48px;
        z-index: 100;
    }

    /* Mobile Toggle Button — push right, clear of logo */
    #dd-primary_nav {
        background: transparent !important;
        position: relative;
        z-index: 201;
        justify-content: flex-end;
    }

    /* Reset Nav Padding on Mobile */
    #primary_nav {
        padding-left: 0 !important;
        justify-content: flex-start;
        flex-direction: column;
    }

    /* Ensure nav menu drops correctly */
    .nav-primary.mobile-open #primary_nav {
        padding-top: 0;
    }

    /* ---- Text wrapping fixes ---- */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    li,
    td,
    th,
    span,
    a {
        overflow-wrap: break-word;
        word-wrap: break-word
    }

    /* Long links / URLs */
    .entry-content a {
        word-break: break-word
    }

    /* Footer banner heading */
    #footer_banner h2 {
        font-size: 1.1em;
        line-height: 1.4
    }

    #footer_banner h2 big {
        font-size: 1em
    }

    .muncies-best-wrapper {
        text-align: center;
        display: flex;
        justify-content: center;
    }

    /* Center 'Get to Know Us' on mobile */
    .know-us-box {
        float: none !important;
        display: block !important;
        text-align: center;
        margin: 0 auto 20px !important;
    }

    .know-us-box .wp_flex_gallery {
        margin: 0 auto;
    }

    .know-us-box span {
        display: block;
        margin-top: 10px;
        font-size: 1.2em;
    }
}

@media screen and (max-width: 480px) {
    .brand_banner_inner {
        min-height: 15px;
    }

    #logo_container {
        width: 110px;
        height: 110px;
        margin-top: -28px;
        margin-bottom: -16px;
        padding: 5px;
        border-width: 2px;
    }
}

/* --- Custom Styles for "Get to Know Us" (Desktop/Global) --- */
.know-us-box {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin-bottom: 20px;
}

.know-us-box .wp_flex_gallery {
    margin-bottom: 10px;
}

.know-us-box span {
    display: block;
    font-size: 24px;
    line-height: 1.3;
    color: #333;
    font-weight: normal;
}

.know-us-box:hover span {
    color: #053e67;
    text-decoration: underline;
}