body {
    background-color: #e3ecfa;
    padding-top: 50px;
}

button.navbar-toggle {
    border: 0 none;
}

.follow-us-list {
    list-style: none;
}

#menu-header-menu > li {
    margin-bottom: 0;
}

#menu-header-menu > li.current-menu-item {
    background-color: var(--color-theme);
}

#menu-header-menu > li.current-menu-item > a,
.at-footer-container ul > li > a {
    color: #fff !important;
    text-decoration: none;
}

.navbar-brand {
    display: flex;
    gap: 10px;
}

.img-logo {
    width: 20px;
}

.name-logo {
    color: var(--color-theme);
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: var(--color-theme);
}

.main-search-form-wrapper {
    max-width: 625px;
    margin: 0 auto;
}

.services-filter-label {
    color: var(--color-white);
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 2px #00000080;
}

.services-filter-container,
.services-item-container {
    align-items: top;
    display: flex;
    gap: 15px;
}

.services-filter-container {
    justify-content: center;
    margin-bottom: 15px;
}

.services-item-container {
    gap: 15px;
}

.services-item-container,
.service-item {
    gap: 8px;
}

.services-item-container {
    gap: 20px;
}

.services-item-container .service-item {
    text-align: center;
}

.service-item label {
    margin: 0 !important;
}

.service-label-text {
    color: var(--color-white);
    display: block;
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 2px #00000080;
}

.search-input-wrapper,
.search-input-container {
    max-width: 535px;
}

.search-input-wrapper {
    border: 10px solid #ffffff30;
    border-radius: 100px;
    margin: 0 auto;
}

.search-input-container {
    display: flex;
    background-color: #fff;
    border-radius: 100px;
    gap: 5px;
    justify-content: space-between;
    padding: 12px 12px 12px 30px;
    margin: 0 auto;
}

.search-keyword-input {
    max-width: 315px;
}

.search-keyword-input > input {
    height: 42px;
    border: 0 none;
    border-bottom-width: 0px;
    border-bottom-style: none;
    border-bottom-color: currentcolor;
    border-bottom: 2px solid #c5c5c5;
    outline: none;
    font-size: 2rem;
    width: 100%;
}

.search-keyword-input > input:focus {
    border-bottom: 2px solid var(--color-theme);
}

.service-filter-label {
    color: var(--color-white);
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 2px #00000080;
}

.search-name-location-select {
    height: 42px;
    border: 1px solid #c5c5c5;
    border-radius: 4px;
    background-color: #fff;
    padding: 10px;
}

.search-name-location-select:focus {
    border: 1px solid var(--color-theme);
}

.main-search-submit-button {
    align-items: center;
    background-color: #ff6969;
    border: 0;
    border-radius: 100px;
    color: var(--color-white);
    display: flex;
    font-size: 1.6rem;
    height: 42px;
    justify-content: center;
    outline: none;
    width: 42px;
}

.at-footer-container ul > li > a:hover {
    color: var(--color-theme) !important;
}

.at-footer-container {
    background-color: #333;
    background-image: url(/wp-content/uploads/2025/04/ausome_therapy_logo-1.png);
    background-position: -140px 0;
    background-repeat: no-repeat;
    background-size: auto;
    color: #fff;
    padding: 50px 0;
}

.center-region-container {
    grid-gap: 20px;
    align-items: start;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    margin-top: 40px;
    text-align: center;
}

.center-region-image {
    width: 150px;
    height: 150px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0 auto;
}

.center-region-item {
    text-align: center;
    margin-bottom: 30px;
}

.center-region-name {
    font-weight: bold;
    font-size: 2.6rem;
}

.center-region-services .capsule {
    background-color: #b1b1b1;
    border-radius: 12px;
    font-size: 14px;
    color: #fff;
    padding: 2px 10px;
}

.single-center-container {
    display: block;
    max-width: 1150px;
    margin: 0 auto;
}

.single-center-cover {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    display: block;
    max-height: 150px;
    object-fit: cover;
    position: relative;
    width: 100%;
    z-index: 0;
}

.single-details-wrapper {
    background-color: #fff;
    max-width: 60%;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    margin: -70px auto 0 auto;
    z-index: 1;
    position: relative;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 1px 2px #0003;
}

.single-center-title {
    font-size: 2.4rem;
    margin-top: 0;
}

.single-center-handle {
    font-size: small;
    margin-bottom: 0;
}

.single-center-google-map {
    margin: 25px 0 20px 0;
}

.single-center-google-map > iframe {
    border: 0;
    height: 300px;
    width: 100%;
}

.center-socials > .icon-text-align:last-child,
.single-center-services > .icon-text-align:last-child {
    margin-bottom: 0;
}

.service-item > i.fa-check-circle-o {
    font-size: 2rem;
}

.share-actions > h3 {
    margin: 0 0 15px;
    font-size: 2rem;
    line-height: 1.4;
}

.search-results-header > h1 {
    font-size: 1.8rem;
}

.search-results-left {
    margin: 15px auto;
}

.search-result-wrapper {
    max-height: calc(100vh - 65px);
    overflow-x: auto;
    padding-right: 10px;
}

.result-center-item {
    padding: 15px 10px 15px 11px;
    border-left: 4px solid transparent;
    cursor: pointer;
}

.result-center-item:hover,
.result-center-item.active {
    background-color: #fff;
    border-left: 4px solid var(--color-theme);
}

.center-item-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0 0 5px;
}

.center-item-address {
    font-size: 1.4rem;
    margin-bottom: 0;
    color: #757575;
}

.center-result-preview {
    background-color: #fff;
}

.center-result-preview-container {
    margin-bottom: 25px;
}

.single-center-header {
    margin-bottom: 20px;
}

.single-center-container .panel-box {
    padding: 20px;
}

.single-center-container .panel-box-title {
    color: #b9b9b9;
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: normal;
}

.panel-box.panel-nav {
    display: flex;
    justify-content: space-between;
}

.panel-nav-links-wrapper {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 20px;
    font-size: 1.2em;
}

.panel-nav-links-wrapper > li {
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.panel-nav-links-wrapper > li > a {
    color: #777;
}

.panel-nav-links-wrapper > li > a:hover,
.panel-nav-links-wrapper > li > a.active {
    color: var(--color-theme);
}

.single-center-contact-details .icon-text-align {
    align-items: baseline;
}

.preview-google-map > iframe {
    width: 100%;
    height: 250px;
}

.preview-center-title {
    font-size: 2.4rem;
    font-weight: bold;
    margin-top: 0;
}

.preview-body {
    padding: 25px;
    max-height: calc(100vh - 370px);
    overflow-x: hidden;
    overflow-y: auto;
}

.preview-stats-summary {
    background-color: #fff;
    text-align: center;
    padding: 75px 25px;
    margin-bottom: 25px;
}

.preview-stats-summary > img {
    max-width: 380px;
    margin: 0 auto;
}

.preview-center-address {
    text-transform: capitalize;
}

.preview-center-services {
    background-color: #f3f3f3;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.preview-center-services > h3 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    color: var(--color-theme);
    text-transform: uppercase;
}

.center-services-wrapper {
    grid-gap: 0;
    align-items: start;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
}

.preview-center-services > p {
    margin-bottom: 0;
}

.preview-footer {
    padding: 0 25px 25px 25px;
}

.preview-center-services > p:last-child {
    margin-bottom: 0;
}

.preview-center-permalink {
    background-color: var(--color-theme);
    color: #fff;
    padding: 9px 15px;
    display: inline-block;
}

.preview-header-box {
    padding: 15px 0;
}

#mainSearchModal .modal-body {
    background:
        linear-gradient(rgba(102, 102, 102, 0.21), rgba(0, 0, 0, 0.54)),
        url(../images/extras/hero-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    padding-top: 50px;
    padding-bottom: 50px;
}

#main_search_trigger,
#main_search_trigger > input,
#main_search_trigger > span {
    cursor: pointer;
}

.services-item-container .service-item {
    display: inline-block;
    width: 48%;
    margin-bottom: 10px;
    vertical-align: top;
}

.services-item-container .service-item:nth-child(n + 6) {
    display: none;
}

.services-item-container.expanded .service-item {
    display: inline-block;
}

.services-toggle-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.services-toggle-wrapper .services-item-container {
    flex-grow: 1;
    display: flex;
    /* flex-wrap: wrap; */
    gap: 20px;
}

.toggle-more-services {
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-more-services > i {
    text-shadow: 1px 1px 2px #00000080;
}

.single-center-blog-wrapper {
    margin-bottom: 50px;
}

.comment-item .flex-parent {
    align-items: baseline;
    margin-bottom: 0;
}

.center-comment-container {
    margin-bottom: 50px;
}

.center-comment-container .comment-reply-title {
    color: #b9b9b9;
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: normal;
    margin: 0 0 25px;
}

.center-comment-container .form-submit {
    margin-bottom: 0;
}

.ccom-extra {
    margin-top: 15px;
}

.ccom-extra.hidden {
    display: none;
}

.comment-form-cookies-consent {
    margin-bottom: 10px;
}

.comment-form-cookies-consent > label {
    font-size: 1.2rem;
    vertical-align: middle;
}

.comment-header,
.comment-reply-header {
    max-width: 100px;
}

.comment-first-name {
    margin-bottom: 0;
    font-size: 1.6rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.comment-email-address {
    font-size: 1rem;
}

.comment-form-comment {
    margin-bottom: 0;
}

.comment-form-comment > textarea {
    margin-bottom: 0;
}

.comment-body blockquote {
    padding: 0 15px 5px;
    margin: 0;
    font-size: 1.6rem;
    border-left: 3px solid #eee;
    font-style: italic;
}

.comment-body > blockquote > p:last-child {
    margin-bottom: 0;
    font-size: 1.6rem;
    font-style: italic;
}

.flex-parent {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.comment-date,
.comment-reply-date {
    display: block;
    font-size: small;
    color: #a8a8a8;
}

.comment-replies {
    margin-top: 15px;
}

.comment-reply-item .flex-parent {
    gap: 10px;
}

.comment-reply-item .flex-parent,
.comment-reply-item p:last-child {
    margin-bottom: 0;
}

.comment-reply-first-name,
.comment-reply-message p {
    font-size: 1.5rem !important;
    font-style: normal;
}

.comment-reply-first-name {
    margin-bottom: 10px;
}

.comment-reply-item .comment-reply-body blockquote {
    padding: 0 10px 5px;
}

#modalCommentContent {
    background-color: #e3ecfa;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

#modalCommentContent .comment-reply-header {
    margin-bottom: 10px;
}

#modalCommentContent .comment-header,
.comment-reply-header {
    max-width: 200px;
    display: block;
    white-space: nowrap;
}

.comment-reply-user-label {
    font-size: 10px;
    color: #7e7e7e;
    margin-top: 0;
    display: block;
}

.modal-body .comment-replies .comment-reply-item:last-child,
#modalCommentContent .comment-reply-body,
#modalCommentContent .comment-reply-message {
    margin-bottom: 0;
}

.comment-reply-item .comment-reply-body blockquote {
    padding: 0 15px 5px;
    border-left: 3px solid #eee;
}

.comment-reply-body .ellipsis-1 {
    max-height: 24px;
}

.modal-body .comment-item {
    border: 1px solid #7cb6e7;
}

.comment-reply-to-visitor {
    padding-left: 10px !important;
    background-color: #effb3b !important;
    color: #333 !important;
}

/* --- Improved 404 Page Styles --- */

/* Force center the entire container */
.error404 main {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh; /* Takes up most of the screen height */
    padding: 20px;
    background-color: #e3ecfa; /* Matches your body background [cite: 1921] */
}

/* Make the 404 text massive and brand-colored */
.error-title {
    font-size: clamp(10rem, 25vw, 18rem) !important;
    font-weight: 800 !important;
    color: var(--color-theme) !important; /* Brand Red [cite: 2023] */
    margin: 0 !important;
    line-height: 1;
    text-shadow: 8px 8px 0px rgba(255, 105, 105, 0.1);
    animation: float 4s ease-in-out infinite;
}

/* Sensory Break Text Styling */
.error404 p strong {
    font-size: 2.8rem !important;
    color: var(--color-darkgray) !important; /* [cite: 2023] */
    margin-top: -20px;
    display: block;
}

/* Description Text */
.error404 p {
    max-width: 600px;
    margin: 20px auto !important;
    font-size: 1.8rem !important;
    line-height: 1.6;
}

/* Center the button specifically */
.error404 .wp-block-buttons {
    justify-content: center !important;
    display: flex !important;
    margin-top: 40px;
    width: 100%;
}

.error404 .wp-block-button__link {
    background-color: var(--color-theme) !important; /* [cite: 2023] */
    border-radius: 100px !important;
    padding: 15px 40px !important;
    font-size: 1.8rem !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(255, 105, 105, 0.3);
    transition: all 0.3s ease;
}

.error404 .wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 105, 105, 0.4);
}

.single-center-container .panel-box-title {
    margin-top: 0;
}

/* Ambulance Flashing Animation */
@keyframes ambulance-flash-red {
    0%,
    49% {
        color: var(--color-theme);
        text-shadow: 0 0 20px rgba(255, 105, 105, 0.5);
    }
    50%,
    100% {
        color: var(--color-primary);
        text-shadow: 0 0 20px rgba(73, 131, 255, 0.5);
    }
}

@keyframes ambulance-flash-blue {
    0%,
    49% {
        color: var(--color-primary);
        text-shadow: 0 0 20px rgba(73, 131, 255, 0.5);
    }
    50%,
    100% {
        color: var(--color-theme);
        text-shadow: 0 0 20px rgba(255, 105, 105, 0.5);
    }
}

.error-title span {
    display: inline-block;
}

/* Flash the left 4 and right 4 in sync, and the 0 opposite to create the 'wig-wag' effect */
.num-4-left,
.num-4-right {
    animation: ambulance-flash-red 0.8s infinite;
}

.num-0 {
    animation: ambulance-flash-blue 0.8s infinite;
}

/* Clever floating animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Worksheets Archive Styles */
.worksheets-filter-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    cursor: pointer;
    margin-bottom: 20px;
}

.worksheets-filter-list li {
    font-weight: bold;
    font-size: 16px;
    color: #757575;
    transition: color 0.3s ease;
}

.worksheets-filter-list li.active,
.worksheets-filter-list li:hover {
    font-weight: bold;
    color: var(--color-theme);
}

#activities-nav-container {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px #0003;
}

.activity-filter-label {
    font-weight: bold;
    margin-bottom: 10px;
    color: #777;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.worksheet-preview-container {
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 10px;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.worksheet-preview-container img {
    max-height: 150px;
    width: auto;
}

.worksheet-ribbons {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.worksheet-ribbons .capsule {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    color: #fff;
}

.panel-box-title {
    color: #444;
    margin: 15px 0;
}

.capsule-subject {
    background-color: var(--color-primary);
}

.capsule-activity {
    background-color: var(--color-theme);
}

.btn-worksheet-download {
    background-color: var(--color-theme);
    border: none;
    width: 100%;
    margin-top: auto; /* Pushes button to bottom of card */
}

@media (max-width: 991px) {
    .at-footer-container .col-sm-4 {
        margin-bottom: 30px;
    }

    .preview-body {
        max-height: unset;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
        overflow: unset;
    }

    .center-result-preview-container {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .navbar-default .navbar-toggle {
        margin-right: 5px;
    }

    .navbar-brand {
        padding: 15px 10px;
    }

    .navbar-default .navbar-brand {
        padding: 10px;
    }

    .img-logo {
        height: 30px;
        width: 30px;
    }

    .at-footer-container .col-sm-4 {
        margin-bottom: 30px;
    }

    #main-search-container {
        padding-left: 0;
    }

    .single-center-google-map > iframe {
        height: 200px;
    }

    .services-filter-container {
        display: block;
    }

    .services-filter-label {
        text-align: center;
        margin-bottom: 10px;
    }

    .services-item-container {
        gap: 3px;
        justify-content: space-evenly;
    }

    .search-keyword-input > input {
        font-size: 1.6rem;
        height: 36px;
    }

    .search-name-location-select {
        height: 36px;
        padding: 6px 8px;
        font-size: 15px;
        width: 130px;
    }

    .main-search-submit-button {
        height: 36px;
        width: 36px;
    }

    .center-region-container {
        display: block;
    }

    .center-region-image {
        width: 120px;
        height: 120px;
    }

    .center-region-name {
        font-size: 2rem;
    }

    .preview-footer {
        padding: 25px 0 0 0;
    }

    .center-result-preview-container {
        margin-bottom: 0;
    }

    .toggle-more-services {
        display: inherit;
        text-align: center;
    }

    .switch {
        height: 18px;
        width: 34px;
    }

    .slider::before {
        height: 10px;
        width: 10px;
    }

    .services-toggle-wrapper {
        max-width: 455px;
        margin: 0 auto;
    }

    .services-toggle-wrapper .services-item-container {
        gap: 0;
    }

    .toggle-more-services {
        padding-right: 8px;
    }

    .service-label-text {
        font-size: 1.5rem;
    }

    .services-item-container .service-item {
        margin-bottom: 0;
    }

    .preview-google-map > iframe {
        height: 200px;
        margin-bottom: 20px;
    }

    .search-result-wrapper {
        max-height: none;
        overflow-x: unset;
        padding-right: 0;
    }

    .center-services-wrapper {
        display: block;
    }

    .preview-center-services {
        padding: 20px;
    }

    .center-services-wrapper > p {
        margin-bottom: 10px;
    }

    .center-services-wrapper > p:last-child {
        margin-bottom: 0;
    }

    .single-details-wrapper {
        max-width: 90%;
    }

    .single-center-cover {
        height: 120px;
    }

    .navbar-form.navbar-left#main_search_trigger {
        border: 0 none;
        padding-top: 0;
        padding-bottom: 0;
        max-width: 94%;
    }

    .single-center-title {
        font-size: 1.75rem;
    }

    .single-center-container .panel-box,
    .single-details-wrapper {
        padding: 15px;
    }

    .panel-nav-links-wrapper {
        font-size: unset;
    }

    .share-item {
        display: flex;
        gap: 10px;
    }

    .container-fluid,
    .col-lg-9,
    .col-md-1,
    .col-md-10,
    .col-md-11,
    .col-md-12,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-9,
    .col-sm-1,
    .col-sm-10,
    .col-sm-11,
    .col-sm-12,
    .col-sm-2,
    .col-sm-3,
    .col-sm-4,
    .col-sm-5,
    .col-sm-6,
    .col-sm-7,
    .col-sm-8,
    .col-sm-9,
    .col-xs-1,
    .col-xs-10,
    .col-xs-11,
    .col-xs-12,
    .col-xs-2,
    .col-xs-3,
    .col-xs-4,
    .col-xs-5,
    .col-xs-6,
    .col-xs-7,
    .col-xs-8,
    .col-xs-9 {
        padding-left: 0;
        padding-right: 0;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .comment-reply-first-name,
    .comment-reply-message p,
    .comment-body > blockquote > p:last-child,
    .comment-reply-first-name,
    .comment-reply-message p {
        font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;
    }

    .single-center-body .text-strikethru > span {
        padding: 0 10px;
        left: 50%;
        transform: translateX(-50%);
    }

    .comment-date,
    .comment-reply-date {
        font-size: 9px;
        font-weight: lighter;
    }

    body.post-type-archive-worksheet .e-con.e-flex {
        --width: 100%;
        --flex-wrap: inherit !important;
    }
}

@media (max-width: 414px) {
    .search-input-container {
        padding: 12px 12px 12px 18px;
    }

    .search-name-location-select {
        padding: 6px 5px;
        font-size: 13px;
        width: 111px;
    }

    .toggle-more-services > i {
        font-size: 26px;
    }
}
