* {
    outline: 0 !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-lato);
}

.font-weight-bold {
    font-weight: 700 !important;
}

*:not() .custom-modal,
.custom-modal-2 {
    display: none;
    position: fixed;
    overflow: auto;
    background: rgb(0 0 0 / 60%);
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    float: right;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 999;
}

.custom-modal-dialog,
.custom-modal-2-dialog {
    max-width: 680px;
    width: 100%;
    border-radius: 0px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.custom-modal-content,
.custom-modal-2-content {
    background: #ffffff;
    padding: 30px 30px;
    border-radius: 10px;
    border: 1px solid #ffc189;
    -webkit-box-shadow: 0 0 40px 15px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 0 40px 15px rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 40px 15px rgba(0, 0, 0, 0.15);
}

.close-modal,
.close-modal-2 {
    position: absolute;
    top: 6px;
    right: 4px;
    width: 105px;
    opacity: 1;
    color: #000000;
    border: 1px solid #ffffff;
    z-index: 9;
    padding: 0;
    text-align: center;
    line-height: 10px;
    cursor: pointer;
    padding: 14px 1px;
    font-weight: 600;
    border-radius: 10px;
    border: 0;
    width: 0px;
}

.close-modal .round,
.close-modal-2 .round {
    border-radius: 100%;
    background: #ffc189;
    margin-right: 2px;
    padding: 4px 8px 4px 8px;
    margin-left: -6px;
    margin-left: -50px;
}

body.modal-open .custom-modal,
body.modal-open .custom-modal-2 {
    background: rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 0 5px 2px #fff;
    -moz-box-shadow: 0 0 5px 2px #fff;
    box-shadow: 0 0 5px 2px #fff;
}

.custom-modal .custom-modal-body,
.custom-modal-2 .custom-modal-body {
    padding: 0 80px;
    max-height: 570px;
    overflow: hidden;
    overflow-y: auto;
    margin-top: 20px;
}

div#custom-modal-2 .custom-modal-body {
    max-height: 80vh;
}

.custom-modal .custom-modal-body .model-heading,
.custom-modal-2 .custom-modal-body .model-heading {
    font-size: 26px;
    text-align: center;
    line-height: 32px;
    color: #00437c;
    font-weight: 550;
    padding-bottom: 0px;
    margin-bottom: 20px;
    margin-top: -5px;
}

@media (max-width: 575.98px) {}

.custom-modal .custom-modal-body::-webkit-scrollbar-track,
.custom-modal-2 .custom-modal-body::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #f5f5f5;
    border-radius: 20px;
}

.custom-modal .custom-modal-body::-webkit-scrollbar,
.custom-modal-2 .custom-modal-body::-webkit-scrollbar {
    width: 6px;
    background-color: #f5f5f5;
}

.custom-modal .custom-modal-body::-webkit-scrollbar-thumb,
.custom-modal-2 .custom-modal-body::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background-color: orange;
    border: 1px solid #555555;
}

/**/
/**/
#first-form-web-to-case input,
#other-state-form input,
#comments {
    border: 1px solid #000;
    border-radius: 4px;
    -moz-border-radius: 4px !important;
    -webkit-border-radius: 4px;
    height: 36px;
    margin-bottom: 20px;
    color: #000;
    font-size: 16px;
}

#first-form-web-to-case label,
#choose-state-label,
#other-state-form label {
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
}

#first-form-web-to-case select,
#choose-state,
#other-state-form select,
#first-form-web-to-case select:focus,
#choose-state,
#other-state-form select:focus {
    display: block;
    width: 100%;
    border: 1px solid #ffaa06;
    border-radius: 4px;
    -moz-border-radius: 4px !important;
    -webkit-border-radius: 4px;
    height: 36px;
    margin-bottom: 10px;
    color: #000;
    font-size: 16px;
    outline: 0px;
    background: #fff8ec;
    padding-left: 10px;
    margin-bottom: 25px;
    margin-top: 5px;
}

#first-form-web-to-case .submit-btn,
#other-state-form .submit-btn,
#first-form-web-to-case .submit-btn:focus,
#other-state-form .submit-btn:focus {
    -moz-border-radius: 20px !important;
    -webkit-border-radius: 20px;
    border-radius: 20px !important;
    font-size: 18px !important;
    font-weight: 600;
    font-style: normal;
    line-height: 18px;
    color: #0c4c7c !important;
    background-color: #acca6d !important;
    width: 100%;
    margin-top: 0px;
    cursor: pointer;
    width: 100%;
    padding: 12px;
    border: none;
}

#first-form-web-to-case .radio-btn,
#other-state-form .radio-btn {
    width: 15px;
    margin-bottom: 4px;
}

#first-form-web-to-case .radio_text,
#other-state-form .radio_text {
    margin-left: 5px;
}

#comments {
    height: 150px !important;
}

.required-star {
    margin-left: 8px;
    font-size: 18px;
    color: #b30600;
    font-weight: 600;
}

#first-form-web-to-case label,
#choose-state-label,
#other-state-form label {
    margin-bottom: 0px;
    font-weight: 600;
    line-height: 28px;
}

#first-form-web-to-case input[type="text"],
#other-state-form input[type="text"],
#first-form-web-to-case input[type="email"],
#other-state-form input[type="email"],
#comments {
    -webkit-border-radius: 4px;
    border-radius: 4px;
    height: 36px;
    margin-bottom: 10px;
    color: #000;
    font-size: 16px;
    outline: 0px;
    border: 1px solid #ffaa06;
    background: #fff8ec;
    margin-bottom: 25px;
    width: 100%;
    padding: 0 5px;
    margin-top: 5px;
}

#comments {
    height: 150px;
    margin-bottom: 2px;
}

#first-form-web-to-case input[type="text"]:focus,
#other-state-form input[type="text"]:focus,
#first-form-web-to-case input[type="email"]:focus,
#other-state-form input[type="email"]:focus,
#comments:focus {
    outline: 0 !important;
}

#first-form-web-to-case .radio-btn,
#other-state-form .radio-btn {
    width: 15px;
    height: 22px;
    margin-bottom: 3px;
}

.radio_text {
    font-weight: 500 !important;
}

.custom-modal input[type="radio"]:after,
input[type="radio"]:checked:after,
.close-modal-2 input[type="radio"]:after,
.close-modal-2 input[type="radio"]:checked:after {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    top: -2px;
    left: -1px;
    position: relative;
    background-color: #fff8ec;
    content: "";
    display: inline-block;
    visibility: visible;
    border: 1px solid #ffaa06;
}

.custom-modal input[type="radio"]:checked:after,
.close-modal-2 input[type="radio"]:checked:after {
    background-color: #ffaa06;
    border: 2px solid #fff8ec;
    height: 20px;
    width: 20px;
    left: -2px;
    top: auto;
}

#main {
    padding-top: 0px;
    padding-bottom: 0px;
}

.radio-label {
    font-size: 18px;
    font-weight: 600;
}

@media only screen and (max-width: 700px) {

    .custom-modal .custom-modal-body .model-heading,
    .custom-modal-2 .custom-modal-body .model-heading {
        font-size: 20px;
        line-height: 28px;
    }

    #first-form-web-to-case label,
    #choose-state-label,
    #other-state-form label,
    .radio-label {
        font-size: 16px;
    }

    #first-form-web-to-case .submit-btn,
    #other-state-form .submit-btn,
    #first-form-web-to-case .submit-btn:focus,
    #other-state-form .submit-btn:focus {
        font-size: 16px !important;
    }
}

@media only screen and (max-width: 610px) {

    .custom-modal .custom-modal-body,
    .close-modal-2 .custom-modal-body {
        padding: 0 10px;
    }

    .custom-modal-content,
    .custom-modal-2 .custom-modal-content {
        padding: 30px 10px;
    }

    .close-modal,
    .close-modal-2 {
        top: 3px;
    }

    .close-modal .round,
    .close-modal-2 .round {
        margin-left: -30px;
    }
}

/* page css */
.top-menu-item {
    display: none !important;
}

menu {
    top: 0 !important;
}

/* .avada-html-layout-boxed,
.avada-html-layout-boxed body,
.avada-html-layout-boxed body.custom-background,
html:not(.avada-html-layout-boxed):not(.avada-html-layout-framed),
html:not(.avada-html-layout-boxed):not(.avada-html-layout-framed) body {
    overflow-x: hidden !important;
} */

/* .top-portion-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(to top, rgb(255 204 95/0.5), #ffffff);
    position: relative;
} */

.product-designed-for-wide-range-container .card svg {
    width: 30px;
    margin-left: 1rem;
}

.top-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    flex-flow: column nowrap;
    /* background-image: url(https://www.therapservices.net/images/2025-home/top-bg-texture.png); */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
    background-position-y: 60%;
}

.top-text-content h1 {
    font-family: "Inter", sans-serif;
    font-size: 35px !important;
    color: var(--link-color);
    margin-bottom: 10px;
    line-height: 1.5 !important;
    font-weight: 700;
/* letter-spacing: .01em; */

}

.top-text-content p {
    font-family: var(--font-lato);
    font-size: 21px;
    line-height: 35px;
    color: var(--black-font-color);
    margin-bottom: 20px;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
}

/* GET STARTED BUTTON ANIMATION */
.get-started-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    z-index: 9;
    margin-top: 2rem;
}

.get-started-button-container a {
    margin-top: 2.8rem;
    display: contents;
}

.get-started-button-holder {
    width: 25%;
    position: relative;
    overflow: hidden;
    background-color: var(--orange-button-background);
    border-radius: 20px;
}

.get-started-button {
    padding: 3% 0;
    text-decoration: none;
    font-weight: bold;
    transition: backgroundColor 0.3s ease-in-out 0.3s;
    display: flex;
    justify-content: center;
}

.get-started-button-overlay {
    background-color: #ffd456;
    padding: 3% 0;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    position: absolute;
    inset: 0;
    transform: translateY(100%);
    transition: transform 0.8s ease-in-out;
    display: flex;
    justify-content: center;
}

.get-started-button-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    /* background-color: var(--button-color-therap-ai); */
    font-family: var(--font-lato);
    font-size: 32px !important;
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
    width: 80%;
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 20px;
    padding: 0%;
    transition: transform 0.8s ease-in-out;
}

.get-started-button-modal-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    font-family: var(--font-lato);
    font-size: clamp(18px, 2vw, 40px);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    width: 90%;
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 20px;
    padding: 0%;
}

.get-started-button-container a:hover .get-started-button-overlay {
    transform: translateY(0%);
}

.get-started-button svg,
.get-started-button-overlay svg {
    margin-left: 10%;
    width: 25px;
    height: 25px;
}

.video-container {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    padding: 0px;
    width: 100%;
    max-width: 100%;
    margin-top: 0rem;
    position: relative;
}

.video-container.playing-mp4 {
    margin-top: 1rem;
}

.video-container video {
    width: 60%;
}

div#play-pause-button {
    position: absolute;
    z-index: 5;
    right: 15%;
    height: 40px;
    width: 40px;
    bottom: 28%;
    border: 2px solid #0c4c7c;
    border-radius: 100%;
    padding: 2px;
    cursor: pointer;
}

div#play-pause-button.mp4-button {
    bottom: 25%;
}

div#play-pause-button svg {
    fill: #0c4c7c;
}

.counting-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 5% 40px;
    background: linear-gradient(to bottom, rgb(255 204 95), #ffffff);
    background-size: 100% 100%;
    position: relative;
    background-repeat: no-repeat;
}

.counting-container-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.counting-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0px;
    text-align: center;
    padding: 1.5rem 3rem;
    border: 7px solid var(--box-border-color);
    border-radius: 50px;
    margin-top: 1rem;
}

.counting-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--link-color);
    font-style: italic;
    position: relative;
    line-height: 1;
    display: grid;
    justify-content: center;
    align-items: center;
}

.counting-label {
    display: block;
    font-size: 21px;
    color: var(--black-font-color);
    font-weight: 500;
    margin-top: 1rem;
    line-height: 1;
    font-weight: bold;
}

.counting-label-2 {
    font-size: 21px;
    color: var(--black-font-color);
    margin-top: 1rem;
    font-weight: 500;
    line-height: 1;
    display: block;
}

.counting-label-inner {
    font-size: 21px;
    color: var(--black-font-color);
    font-style: normal;
    margin-left: 5%;
}

.counting-years .counting-providers,
.counting-tools {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
}

.counting-years-item {
    background-color: var(--counting-green-box-bg);
    margin-right: -1%;
    /* padding: 3rem 5rem; */
    z-index: 0;
}

.counting-providers-item {
    background-color: var(--counting-yellow-box-bg);
    z-index: 1;
}

.counting-tools-item {
    background-color: var(--counting-blue-box-bg);
    margin-left: -1%;
    z-index: 0;
    /* padding: 2rem 3rem; */
}

/* Tools for Person-Centered, Data-Driven Supports - section */
.tools-for-person-centered-container {
    margin-top: 2rem;
    padding: 0;
    text-align: center;
}

.tools-for-person-centered {
    margin: 0 auto;
    padding: 2rem 0;
    background-color: var(--white-color);
    padding-bottom: 4rem;
}

:is(.tools-grid-inner,
    .tools-for-person-centered-container,
    .product-designed-for-wide-range-container,
    .testimonials-section,
    .experiences-you-can-trust,
    .counting-container) h2 {
    font-family: "Inter", sans-serif !important;
    font-size: 32px !important;
    color: var(--black-font-color) !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    font-weight: 600 !important;
}

.counting-container h2 {
    margin-bottom: 1.5rem !important;
    text-align: center;
}

/* carousel css */

.carousel-container {
    width: 100%;
    text-align: center;
    padding: 2.5rem 0;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    padding-bottom: 3rem;
    scroll-behavior: auto;
    /* Changed to auto for smoother manual dragging */
    cursor: grab;
    /* Add grab cursor for draggability */
    /* Hide default scrollbar */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* For Webkit browsers (Chrome, Safari) */
.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel {
    display: flex;
    gap: 3rem;
    padding: 10px 0;
    width: max-content;
    /* Allow content to dictate width */
    will-change: transform;
    /* Optimize for smooth animation */
}

.box {
    flex: 0 0 310px;
    /* Fixed width for each box */
    border-radius: 40px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: left;
    position: relative;
    border-width: 1px;
    border-style: solid;
    box-sizing: border-box;
    /* Include padding and border in width/height */
    user-select: none;
    /* Prevent text selection on drag */
    display: flex;
    flex-flow: column nowrap;
}

/* Staggered vertical alignment for visual interest */
/* Use explicit classes from JS to ensure clones keep their vertical position */
.box.stagger-odd,
.box:nth-child(odd):not(.stagger-even) {
    margin-top: 4rem;
}

.box.stagger-even,
.box:nth-child(even):not(.stagger-odd) {
    margin-bottom: 4rem;
}

/* Specific box styles with gradients and borders */
.box-orange {
    background: linear-gradient(to bottom, #ffb519, #fff5e0);
    border-color: #ffe1a4;
}

.box-blue {
    background: linear-gradient(to bottom, #d2f3fe, #fefffd);
    border-color: #9dd9f2;
}

.box-green {
    background: linear-gradient(to bottom, #e9f5ce, #fffd);
    border-color: #bbdd8b;
}

.box h3 {
    font-family: var(--font-lato) !important;
    font-size: 21px !important;
    margin-top: 0 !important;
    color: var(--link-color) !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
    font-weight: 600;
}

.box p {
    font-family: "Lato", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #000;
    margin-bottom: 0px;
}

.explore {
    font-family: "Lato", sans-serif;
    color: #0c4c7c;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    margin-top: auto;
    font-size: 20px;
}

.explore:hover {
    color: #0056b3;
}

.box span.box-arrow {
    opacity: 0;
    margin-left: 8px;
    transition: opacity 0.3s ease;
    /* display: flex;
  align-items: center;
  justify-content: center; */
    display: inline-block;
    vertical-align: middle;
}

.tools-for-person-centered-container .box h3 .box-arrow {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-left: 0;
}

.tools-for-person-centered-container .box h3 .title-arrow-tail {
    display: inline-block;
    white-space: nowrap;
}

.image-with-arrow-div {
    /* display: flex;
  align-items: center; */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3%;
}

.image-with-arrow-div h3 {
    /* margin: 0; */
}

.image-with-arrow-div span.box-arrow {
    /* margin-left: 10px;
  display: inline-block;
  vertical-align: middle;
  opacity: 1;
  transition: opacity 0.3s ease; */
    opacity: 0;
    position: absolute;
}

.experience.experience-ai span.box-arrow {
    right: 20%;
    top: 15%;
    display: none;
}

.experience.experience-connect span.box-arrow {
    top: 10%;
    right: 10%;
}

.experience-content.experience-secure-video span.box-arrow {
    top: -33%;
    right: 5%;
    position: static;
    display: none;
    margin-left: 8px;
}

/* Hover Effect */
.box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.box:hover span {
    opacity: 1;
}

.custom-scrollbar {
    width: 35%;
    height: 8px;
    background-color: #fff;
    border: 2px solid #0c4c7c;
    border-radius: 5px;
    margin-top: 20px;
    position: relative;
    margin: 0 auto;
    cursor: pointer;
    display: none;
}

.scrollbar-thumb {
    height: 30px;
    background-color: #fff;
    border-radius: 8px;
    width: 20px;
    position: absolute;
    left: 0;
    cursor: grab;
    transition: background-color 0.2s ease;
    top: 50%;
    transform: translateY(-50%);
    box-sizing: border-box;
    border: 5px solid #0c4c7c;
}

.scrollbar-thumb:active {
    cursor: grabbing;
    background-color: #ddd;
}

.experience-you-can-trust-container {
    margin-top: 4rem;
    padding: 0;
    text-align: center;
}

.product-designed-for-wide-range-container {
    margin-top: 4rem;
    padding: 0;
    text-align: center;
}

/* Products Designed for a Wide Range of Services - section styles */

.services-component {
    width: 94%;
    /* max-width: 1200px; */
    text-align: center;
    margin-left: auto;
    margin-top: 1rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--text-heading);
    margin-bottom: 3rem;
    font-weight: 600;
}

.carousel-viewport {
    position: relative;
    overflow: hidden;
    margin-bottom: 0rem;
    padding: 2rem 0;
}

#cards-container {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.45, 0.05, 0.55, 0.95);
    justify-content: flex-start;
}

/* --- MODIFIED --- */
/* Cards now have a fixed base width, allowing the browser to fit as many as possible. */
/* The media queries for card widths are no longer needed. */
.card {
    flex: 0 0 30rem;
    /* Don't grow, don't shrink, base width of 320px */
    padding: 1.5rem 1.5rem;
    border-radius: 35px;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* min-height: 30rem; */
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card {
    /* transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    filter: brightness(1.05); */
    cursor: pointer;
    justify-content: start;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    /* filter: brightness(1.05); */
}

.card .products-box-arrow {
    opacity: 0;
    margin-left: 0px;
    margin-bottom: 5px;
    transition: opacity 0.3s ease;
    display: inline-flex;
    vertical-align: middle;
}

.card:hover .products-box-arrow {
    opacity: 1;
}

.card h2 .products-box-arrow svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
    vertical-align: middle;
}

/* .card.active { */
/* border-color: var(--border-active); */
/* box-shadow: var(--shadow-hover); */
/* transform: translateY(-8px); */
/* filter: brightness(1.05); */
/* justify-content: start; */
/* } */

.card h2 {
    font-size: 25px !important;
    color: var(--text-heading) !important;
    margin: 0 0 0.5rem 0 !important;
    font-family: var(--font-lato) !important;
    line-height: 1.5 !important;
}

.card .subtitle,
.card .hover-content {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.card .subtitle {
    font-size: 22px;
    color: #000;
    opacity: 1;
    transform: translateY(0);
    font-weight: 500;
    line-height: 1.6;
}

.card .hover-content {
    /* position: absolute; */
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    display: none;
    padding: 0 1rem;
    margin-top: 12px;
    line-height: 1.7;
}

.cards-container article:first-child .hover-content {
    /* display: block; */
}

.cards-container article .hover-content {
    display: block !important;
    /* margin-top: 2rem; */
    display: flex !important;
    flex-flow: column;
    /* justify-content: space-between; */
    justify-content: start;
    width: 100%;
    /* height: 100%; */
}

.card .hover-content {
    display: block;
}

.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.card ul li {
    color: var(--text-body);
    font-size: 17px;
    margin-bottom: 0.5rem;
    padding-left: 2rem;
    position: relative;
}

article.card.card-mental-health ul li:nth-child(2) {
    white-space: nowrap;
}

.card ul li::before {
    content: "•";
    font-family: Helvetica, sans-serif;
    position: absolute;
    left: 0;
    top: -5px;
    color: #000;
    font-weight: bold;
    font-size: 25px;
}

.btn-get-started {
    display: inline-block;
    background-color: #fff;
    color: var(--btn-blue);
    text-decoration: none;
    padding: 20px 3rem;
    border-radius: 20px;
    /* border: 2px solid #fdb714; */
    font-size: 22px;
    /* margin-top: auto; */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-get-started:hover {
    color: var(--link-color);
}

.card .hover-content {
    opacity: 0;
}

.card .subtitle {
    opacity: 1;
}

.card .hover-content {
    opacity: 1;
    transform: translateY(0);
}

.card .subtitle {
    opacity: 0;
    transform: translateY(-20px);
    display: none;
}

.card-idd {
    background-color: var(--color-idd);
}

.card-employment {
    background-color: var(--color-employment);
}

.card-aging {
    background-color: var(--color-aging);
}

.card-behavioral {
    background-color: var(--color-behavioral);
}

.card-pediatric {
    background-color: var(--color-pediatric);
}

.card-mental-health {
    background-color: var(--color-transportation);
}

.pagination-controls,
.pagination-controls-tools {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    padding-left: 1rem;
    width: 100%;
    /* Let's make pagination width dynamic too */
    max-width: 95%;
    margin: 0 auto;
    margin-left: 0;
    padding-left: 0;
}

.pagination-controls-tools {
    padding-left: 5%;
}

#page-indicator,
#page-indicator-tools {
    font-size: 26px;
    color: #000;
    font-weight: 500;
    /* width: 40px; */
    text-align: center;
}

.arrow-btn,
.experience_arrow-btn,
.testimonials-section .slider-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #0c4c7c;
    background-color: #fff;
    color: #0c4c7c;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    font-weight: 600;
    outline: transparent;
    padding: 3px;
}

.arrow-btn svg,
.experience_arrow-btn svg,
.testimonials-section .slider-arrow svg {
    width: 45px;
    height: 45px;
}

.arrow-btn path,
.experience_arrow-btn path,
.testimonials-section .slider-arrow path {
    fill: #0c4c7c;
    /* Removes the inner color */
    stroke: #0c4c7c;
    /* Sets the outline color */
    stroke-width: 25;
    /* Sets the outline thickness. Adjust as needed! */
}

.arrow-btn:hover:not(:disabled),
.experience_arrow-btn:hover:not(:disabled),
.testimonials-section .slider-arrow:hover:not(:disabled) {
    background-color: #f0f0f0;
}

.arrow-btn:hover:not(:disabled):focus,
.arrow-btn:focus,
.experience_arrow-btn:hover:not(:disabled):focus,
.experience_arrow-btn:focus,
.testimonials-section .slider-arrow:hover:not(:disabled):focus,
.testimonials-section .slider-arrow:focus {
    outline: 3px solid #ffaa06;
    outline-offset: 2px;
}

.arrow-btn:disabled,
.experience_arrow-btn:disabled,
.testimonials-section .slider-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-controls i,
.pagination-controls-tools i {
    font-size: 3rem;
}

/* Main Section Styling */
.testimonials-section {
    width: 100%;
    max-width: 100%;
    /* Use full viewport width */
    /* padding: 50px 0; */
    text-align: center;
    background-image: linear-gradient(to bottom, #fbecc3, #fff);
    margin-top: 4rem;
    padding-top: 4.5rem;
}

.testimonials-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 40px;
}

/* Slider Container & Rows */
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem;
    padding-top: 0;
    margin: 0 auto;
    margin-top: 1.5rem;
    padding-bottom: 3rem;
}

.slider-inner-container {
    /* Full width — mask fades only the outermost edge so 2 cards partially peek */
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    mask-image: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.5) 5%,
            #ffffff 12%,
            #ffffff 88%,
            rgba(255, 255, 255, 0.5) 95%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.5) 5%,
            #ffffff 12%,
            #ffffff 88%,
            rgba(255, 255, 255, 0.5) 95%,
            transparent 100%);
}

.provider-slider-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
    gap: 0 15px;
    cursor: pointer;
}

.provider-slider-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonials-section .dot {
    display: inline-block;
    width: 12px;
    height: 10px;
    background-color: #0c4c7c;
    opacity: 0.6;
    border-radius: 25px;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-section .dot.active {
    width: 40px;
    border-radius: 5px;
    background-color: #0c4c7c;
    opacity: 1;
}

.slider-container .slider-container.grabbing {
    cursor: grabbing;
}

/* Each row is a track for the animation */
.slider-track {
    display: flex;
    width: fit-content;
    /* Let flexbox determine width */
    will-change: transform;
    /* Performance optimization for animation */
    gap: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

#row-1 {
    /* Animation is now handled by JavaScript */
}

#row-2 {
    position: relative;
    /* Offset is now handled by JavaScript's transform property */
}

/* Card Base Styling — wide enough so exactly 3 show clearly, 2 peek on sides */
.slider-card {
    /* 3 cards at ~28vw each = ~84vw; the remaining ~16vw shows 2 partial cards */
    width: clamp(240px, 28vw, 400px);
    min-height: 18rem;
    flex-shrink: 0;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for all cards */
/* .slider-card:hover {
    transform: translateY(-8px) scale(1.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    z-index: 10;
} */

.slider-card.image-card:hover {
    transition: none;
    transform: none;
    box-shadow: none;
    cursor: auto;
}

/* Testimonial Card Specifics */
.testimonial-card {
    background-color: white;
    /* padding: 40px 30px; */
    padding: 5rem 5rem;
    /* border: 4px solid #ffae2c; */
    box-shadow: inset 0 0px 0px 2px #ffae2c;
    position: relative;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    outline: 4px solid transparent;
    outline-offset: 4px;
    /* transition: outline-color 0.2s ease-in-out; */
    cursor: auto;

    /* MODIFIED: Add 'transform' and 'box-shadow' to the transition */
    transition: outline-color 0.2s ease-in-out, transform 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out;
}

/* .testimonial-card:hover {
    box-shadow: inset 0 0px 0px 1px #ffae2c;
    transform: translateY(-1px) scale(1.01);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
} */

.testimonial-card p::before,
.testimonial-card p::after {
    content: "";
    /* We'll use background-image instead of content */
    position: absolute;
    width: 47px;
    /* Adjust as needed for your icons */
    height: 47px;
    /* Adjust as needed for your icons */
    background-size: contain;
    /* Ensures the SVG fits within the defined width/height */
    background-repeat: no-repeat;
    /* Prevents the image from repeating */
    /* Remove font-size, font-weight, color, line-height as they are for text content */
    z-index: 1;
    /* Keep quotes on top */
}

.testimonial-card p::before {
    background-image: url("https://www.therapservices.net/images/2025-home/icon-quote-left.svg");
    top: -1rem;
    left: -3.5rem;
}

.testimonial-card p::after {
    background-image: url("https://www.therapservices.net/images/2025-home/icon-quote-right.svg");
    bottom: -1rem;
    right: -3.5rem;
}

.testimonial-card p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
    position: relative;
    z-index: 2;
    text-align: center;
}

.testimonial-card cite {
    font-style: normal;
    font-weight: bold;
    color: #0c4c7c;
    position: relative;
    z-index: 2;
    font-size: 1.3rem;
    text-align: center;
}

/* Image Card Specifics */
.image-card {
    overflow: hidden;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Prevent image drag ghosting */
    border: 3px dashed #f99c1b;
    border-radius: 20px;
}

/* Scoping all rules to the .testimonials-section */
.testimonials-section .slider-arrow {
    /* display: none; Hide arrows by default */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;
    /* width: 45px;
  height: 45px; */
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 0;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.testimonials-section .slider-arrow:hover {
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.testimonials-section .slider-arrow.prev {
    left: 3%;
}

.testimonials-section .slider-arrow.next {
    right: 3%;
}

/* DELETE your old slider track CSS and use this instead */

/* --- KEY CSS RULES FOR THE FIX --- */
.slider-track {
    /* FORCE the transition to be off by default. */
    transition: none;
}

.slider-track.is-jumping {
    /* ONLY apply a transition when we are actively jumping. */
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#row-1.is-jumping,
#row-2.is-jumping {
    transition: transform 300ms ease;
}

.slider-container.is-resizing .slider-track {
    visibility: hidden;
}

/* ── AI Section ── */
.ai-section {
    font-family: "Lato", sans-serif;
    background: #f0fcff;
    color: #333;
    padding-bottom: 0rem;
}

.ai-section-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 60%;
    margin: 0 auto;
    padding: 5% 0;
}

.ai-section-text,
.ai-section-image {
    flex: 1;
}

.ai-section-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #000;
    margin-bottom: 1.5rem;
}

.ai-section-btn {
    background-color: #c1de87;
    display: flex;
    flex-wrap: wrap;
    max-width: max-content;
    align-items: center;
    padding: 14px 30px;
    border-radius: 30px;
}

.ai-section-btn a {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 600;
    color: var(--link-color, #0c4c7c);
}

.ai-section-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    /* border: 1px solid #ffce6f; */
    display: block;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .ai-section-inner {
        flex-direction: column;
        gap: 2rem;
        max-width: 80%;
        padding: 8% 0;
    }

    .ai-section-text p {
        font-size: 1rem;
    }

    .ai-section-btn {
        max-width: none;
        justify-content: center;
        padding: 14px 20px;
        font-size: 10px;
    }

    .ai-section-btn a {
        font-size: .9rem;
    }

    span.box-arrow {
        width: 16px !important;
    }
}

.experience-slider-nav {
    display: none;
}

div#custom-modal {
    position: fixed;
    z-index: 999;
    background: rgba(0, 0, 0, 0.15);
    width: 100%;
    height: 100vh;
    padding-top: 5%;
    display: none;
}

@media screen and (min-width: 1700px) {
    .experience.experience-connect span.box-arrow svg {
        width: 30px !important;
        height: 30px !important;
    }

    .hero-split-inner {
        max-width: 1300px !important;
    }

    .card ul li::before {
        top: -1rem;
        font-size: 37px !important;
    }

}

@media screen and (max-width: 1800px) {

    #row-2 {
        margin-left: -10%;
    }
}

@media screen and (max-width: 1600px) {
    #wrapper #main .fullwidth-box .fusion-row {
        width: 100% !important;
        margin: 0 !important;
    }

    .width-100 .fusion-fullwidth {
        padding: 0 !important;
    }

    .top-text-content h1 {
        margin-top: 0.8rem;
        font-size: 30px !important;
    }

    .top-text-content p {
        line-height: 35px;
        font-size: 21px;
    }

    .video-container {
        margin-top: 0rem;
    }

    .get-started-button {
        /* width: 25%;
margin-top: 1.8rem; */
    }

    .counting-item {
        padding: 1.5rem 3rem;
        /* margin-top: 11rem; */
    }

    .counting-years-item,
    .counting-tools-item {
        /* padding: 2rem 3rem; */
    }

    .counting-number {
        font-size: 28px;
        text-wrap: nowrap;
    }

    .counting-label {
        font-size: 21px;
    }

    .counting-label-inner {
        font-size: 21px;
    }

    :is(.tools-grid-inner,
        .tools-for-person-centered-container,
        .product-designed-for-wide-range-container,
        .testimonials-section,
        .experiences-you-can-trust,
        .counting-container) h2 {
        font-size: 27px !important;
    }

    .counting-container-inner {
        /* margin-top: -9.5rem; */
    }

    .services-component {
        margin-top: 1.5rem;
    }

    .box {
        flex: 0 0 270px;
    }

    .box h3 {
        font-size: 1.3rem !important;
    }

    .box p {
        font-size: 1.1rem;
    }

    .explore {
        font-size: 1.2rem;
    }

    .card {
        flex: 0 0 25rem;
        padding: 1.5rem 2rem;
        /* min-height: 26rem; */
    }

    .card h2 {
        font-size: 27px !important;
    }

    .card .subtitle {
        font-size: 1.1rem;
    }

    .card ul li {
        /* font-size: 18px; */
        padding-left: 2rem;
        line-height: 30px;
    }

    .btn-get-started {
        padding: 0.6rem 2rem;
        font-size: 1.3rem;
        width: 80%;
        margin: 0 auto;
    }

    .card ul li::before {
        top: 0rem;
        font-size: 37px;
    }

    .card .hover-content {
        padding: 0 0.7rem;
    }

    .arrow-btn,
    .experience_arrow-btn,
    .testimonials-section .slider-arrow {
        width: 32px;
        height: 32px;
    }

    .arrow-btn svg,
    .experience_arrow-btn svg,
    .testimonials-section .slider-arrow svg {
        width: 32px;
        height: 32px;
    }

    #page-indicator,
    #page-indicator-tools {
        font-size: 26px;
    }

    .slider-container {
        margin-top: 1rem;
    }

    .slider-card {
        width: clamp(220px, 27vw, 360px);
        min-height: 15rem;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .testimonial-card p {
        font-size: 1.1rem;
    }

    /* .testimonial-card cite {
        font-size: 0.95rem;
    } */

    .experiences-you-can-trust {
        padding: 5% 2%;
    }

    .experience .new-text {
        top: -2%;
        right: -42%;
        font-size: 1.65rem;
        padding: 12%;
        padding-bottom: 9%;
    }

    .experience-inner-container {
        /* margin-top: 0.8rem; */
    }

    .experience-inner-container a {
        /* height: 80vh; */
        /* height: 550px; */
        width: 80%;
    }

    .experience p {
        font-size: 1.2rem;
    }

    .experience :is(.experience-image, .experience-img) {
        width: 65%;
    }

    .experience-content:hover .explore-btn {
        padding-top: 0;
        padding-bottom: 0;
    }

    .experience-content.experience-secure-video h3 {
        line-height: 1.2;
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 1500px) {

    /* .experience .new-text {
top: -3%;
right: -43%;
font-size: 1.65rem;
padding: 8%;
} */
    .testimonial-card p::before,
    .testimonial-card p::after {
        width: 35px;
        height: 35px;
    }

    .tools-for-person-centered,
    .slider-container {
        padding-bottom: 3rem;
    }

    .counting-item {
        /* margin-top: 12rem; */
    }
}

@media screen and (max-width: 1400px) {
    .top-text-content h1 {
        font-size: 30px !important;
    }

    .top-text-content p {
        line-height: 35px;
    }

    .tools-for-person-centered {
        padding: 1rem 0;
        padding-bottom: 3rem;
    }

    .carousel-container {
        padding: 1.5rem 0;
    }

    .box {
        flex: 0 0 330px;
    }

    .box h3 {
        font-size: 1.2rem !important;
    }

    .box p {
        font-size: 1rem;
    }

    .counting-number {
        font-size: 28px;
    }

    .counting-label-inner {
        font-size: 21px;
    }

    :is(.tools-grid-inner,
        .tools-for-person-centered-container,
        .product-designed-for-wide-range-container,
        .testimonials-section,
        .experiences-you-can-trust,
        .counting-container) h2 {
        font-size: 27px !important;
    }

    .counting-label-2 {
        margin-top: 0.5rem;
    }

    .counting-label {
        font-size: 21px;
    }

    .explore {
        font-size: 1rem;
    }

    .experience .new-text {
        top: -2%;
        right: -41%;
        font-size: 1.65rem;
        padding: 13%;
        padding-bottom: 9%;
    }

    .experience-inner-container a {
        width: 85%;
    }

    .experience p {
        font-size: 1.1rem;
        /* padding: 0 10%; */
    }

    .experience-container {
        padding-bottom: 0rem;
    }

    .experience-content .explore-btn {
        font-size: 1.2rem;
    }

    .experience-inner-container {
        /* margin-top: 0; */
    }

    .experience-content.experience-secure-video h3 {
        font-size: 1.4rem;
    }

    .experience :is(.experience-image, .experience-img) {
        width: 60%;
    }

    .experience-content .explore-btn {
        padding-top: 0;
        padding-bottom: 0;
    }

    .card {
        flex: 0 0 27rem;
        padding: 1.5rem 2rem;
        /* min-height: 23rem; */
    }

    .services-component {
        margin-top: 0rem;
    }

    #page-indicator,
    #page-indicator-tools {
        line-height: 1;
    }

    .cards-container article:hover .hover-content {
        margin-top: 1rem;
    }

    .slider-container {
        padding-bottom: 3rem;
    }

    .slider-card {
        width: clamp(200px, 26vw, 320px);
        min-height: 12rem;
    }

    .testimonials-section .slider-arrow {
        top: 45%;
    }

    .card h2 {
        font-size: 25px !important;
    }

    .card ul li {
        line-height: 1.4;
        /* font-size: 1.1rem; */
    }

    .card .subtitle {
        font-size: 1.1rem;
    }

    .testimonial-card p::before,
    .testimonial-card p::after {
        width: 25px;
        height: 25px;
    }

    .testimonial-card p::before {
        top: -0.5rem;
        left: -2.5rem;
    }

    .testimonial-card p::after {
        bottom: -0.5rem;
        right: -2.5rem;
    }

    .testimonial-card {
        padding: 4rem 4rem;
    }

    .testimonial-card p::before {
        /* top: -1rem; */
        /* left: -3.5rem; */
    }

    #row-2 .testimonial-card p::before {
        /* top: 2rem; */
    }

    #row-2 .testimonial-card p::after {
        /* bottom: 4rem; */
    }

    .testimonial-card p::after {
        /* bottom: 3rem; */
        /* right: 2rem; */
    }

    #row-2 {
        margin-left: -30%;
    }

    .testimonial-card p {
        font-size: 0.8rem;
    }

    /* .testimonial-card cite {
        font-size: 0.8rem;
    } */

    .experience-inner-container a {
        /* height: 85vh; */
        /* height: 400px; */
    }
}

@media screen and (max-width: 1100px) {
    .top-text-content h1 {
        font-size: 30px !important;
    }

    .top-text-content p {
        line-height: 35px;
        font-size: 21px;
    }

    .get-started-button-holder {
        width: 35%;
    }

    .get-started-button-modal {
        font-size: 26px !important;
    }

    .counting-item {
        padding: 1.5rem 3rem;
    }

    .counting-years-item,
    .counting-tools-item {
        /* padding: 2rem 3rem; */
    }

    .counting-number {
        font-size: 28px;
    }

    .counting-label {
        font-size: 21px;
    }

    .top-text-content p {
        line-height: 1.6;
    }

    :is(.tools-grid-inner,
        .tools-for-person-centered-container,
        .product-designed-for-wide-range-container,
        .testimonials-section,
        .experiences-you-can-trust,
        .counting-container) h2 {
        font-size: 27px !important;
    }

    .card {
        /* min-height: 29rem; */
    }

    img.experience-logo {
        width: 70%;
    }

    .experience .new-text {
        top: -1%;
        right: -41%;
        font-size: 1.15rem;
    }

    .experiences-you-can-trust {
        position: relative;
        /* Add overflow to hide the other slides */
        overflow: hidden;
        padding: 8% 0px;
    }

    .experience-inner-container a {
        /* max-height: 750px; */
    }

    .experience-inner-container {
        /* Align slides to the start and add transition for the sliding effect */
        justify-content: flex-start;
        transition: transform 0.5s ease-in-out;
    }

    /* This rule correctly targets your tags as the individual slides */
    .experience-inner-container>a {
        width: 100%;
        flex-shrink: 0;
        display: flex;
        justify-content: center;
        text-decoration: none;
        /* Removes underline from the link wrapper */
    }

    .experience {
        /* Adjust card width for a better mobile view */
        width: 90%;
        margin: 0 auto;
    }

    /* Make sure the explore 'button' still looks right */
    .explore-btn {
        display: inline-block;
    }

    /* --- Navigation Buttons --- */
    .experience-slider-nav {
        display: block;
        width: 100%;
        position: absolute;
        top: 50%;
    }

    .experience-slider-prev,
    .experience-slider-next {
        --experience_nav_button_size: 45px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background-color: rgba(255, 255, 255, 0.8);
        border: 2px solid #f5e5a1;
        border-radius: 50%;
        color: #333;
        cursor: pointer;
        font-size: 2rem;
        font-weight: bold;
        height: var(--experience_nav_button_size);
        width: var(--experience_nav_button_size);
        line-height: calc(var(--experience_nav_button_size) - 4px);
        text-align: center;
        padding: 0;
        transition: all 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .experience_arrow-btn {
        height: 4rem;
        width: 4rem;
        padding: 9px;
    }

    button#experience_prev-btn {
        left: 15%;
        position: absolute;
        display: none;
    }

    button#experience_next-btn {
        right: 15%;
        position: absolute;
        display: none;
    }

    .experience-slider-prev:hover,
    .experience-slider-next:hover {
        background-color: #fff;
    }

    .experience-slider-prev {
        left: 10px;
    }

    .experience-slider-next {
        right: 10px;
    }

    button[disabled] {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .experience-inner-container>a {
        pointer-events: none;
    }

    .experience {
        pointer-events: auto;
    }

    .experience-inner-container a {
        /* height: 600px; */
        margin-top: 1rem;
    }

    .experience p {
        font-size: 20px;
    }

    .experience-content .explore-btn {
        font-size: 25px;
    }

    /* ADD THIS RULE to create padding on the sides of the slider */
    .testimonials-section .slider-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .testimonials-section #row-1 {
        /* Add a smooth transition for sliding effect */
        transition: transform 0.5s ease-in-out;
    }

    .testimonials-section #row-2,
    .testimonials-section .image-card {
        /* 1. Hide the second row and image cards */
        display: none;
    }

    .testimonials-section .slider-arrow {
        /* 2. Show the navigation arrows */
        display: block;
        z-index: 0;
    }

    .slider-inner-container {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .testimonials-section .slider-card.testimonial-card {
        width: 100%;
        margin: 0 5%;
    }

    .slider-card.testimonial-card.active {
        width: 65%;
    }

    .slider-track {
        gap: 0rem;
    }

    .slider-card.testimonial-card:not(:first-child) {
        /* margin-left: 1%;
    margin-right: 10%; */
    }

    .get-started-button-modal {
        border-radius: 15px;
    }

    .get-started-button-holder {
        width: 35%;
    }

    .get-started-button-container {
        margin-bottom: 1.5rem;
    }

    .testimonials-section .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .testimonial-card p,
    .testimonial-card cite {
        font-size: 1.1rem;
    }


    .card ul li::before {
        top: -0.8rem;
    }
}

@media screen and (max-width: 900px) {
    .top-text-content h1 {
        font-size: 30px !important;
    }

    .top-text-content p {
        line-height: 35px;
        font-size: 21px;
    }

    .get-started-button {
        /* width: 35%;
padding: 1.5%; */
    }

    .get-started-button a {
        border-radius: 15px;
    }

    .video-container video {
        width: 70%;
    }

    div#play-pause-button {
        bottom: 30%;
        right: 5%;
    }

    .counting-container-inner {
        /* margin-top: -12.5rem; */
    }

    .counting-item {
        padding: 1.5rem 2rem;
        border-radius: 30px;
    }

    .counting-years-item,
    .counting-tools-item {
        /* padding: 1.5rem 3rem; */
    }

    .counting-number {
        font-size: 28px;
    }

    .counting-label {
        font-size: 20px;
    }

    .counting-label-inner {
        font-size: 21px;
    }

    :is(.tools-grid-inner,
        .tools-for-person-centered-container,
        .product-designed-for-wide-range-container,
        .testimonials-section,
        .experiences-you-can-trust,
        .counting-container) h2 {
        font-size: 27px !important;
    }

    .experiences-you-can-trust {
        position: relative;
        /* Add overflow to hide the other slides */
        overflow: hidden;
        padding: 8% 0px;
    }

    .experience-inner-container a {
        /* max-height: 720px; */
    }

    .experience-inner-container {
        /* Align slides to the start and add transition for the sliding effect */
        justify-content: flex-start;
        transition: transform 0.5s ease-in-out;
    }

    /* This rule correctly targets your tags as the individual slides */
    .experience-inner-container>a {
        width: 100%;
        flex-shrink: 0;
        display: flex;
        justify-content: center;
        text-decoration: none;
        /* Removes underline from the link wrapper */
    }

    .experience {
        /* Adjust card width for a better mobile view */
        width: 65%;
        /* margin: 10px; */
        /* transform: scale(1) !important; */
        /* Prevents hover effect on mobile */
    }

    /* Make sure the explore 'button' still looks right */
    .explore-btn {
        display: inline-block;
    }

    /* --- Navigation Buttons --- */
    .experience-slider-nav {
        display: block;
        width: 100%;
        position: absolute;
        top: 50%;
    }

    .experience-slider-prev,
    .experience-slider-next {
        --experience_nav_button_size: 45px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background-color: rgba(255, 255, 255, 0.8);
        border: 2px solid #f5e5a1;
        border-radius: 50%;
        color: #333;
        cursor: pointer;
        font-size: 2rem;
        font-weight: bold;
        height: var(--experience_nav_button_size);
        width: var(--experience_nav_button_size);
        line-height: calc(var(--experience_nav_button_size) - 4px);
        text-align: center;
        padding: 0;
        transition: all 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .experience_arrow-btn {
        height: 4rem;
        width: 4rem;
        padding: 9px;
    }

    button#experience_prev-btn {
        left: 12%;
        position: absolute;
    }

    button#experience_next-btn {
        right: 12%;
        position: absolute;
    }

    .experience-slider-prev:hover,
    .experience-slider-next:hover {
        background-color: #fff;
    }

    .experience-slider-prev {
        left: 10px;
    }

    .experience-slider-next {
        right: 10px;
    }

    button[disabled] {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .card {
        flex: 0 0 24rem;
        /* min-height: 27rem; */
    }

    .experience-inner-container>a {
        pointer-events: none;
    }

    .experience {
        pointer-events: auto;
        height: 95%;
    }

    .experience p {
        font-size: 20px;
    }

    .experience-content .explore-btn {
        font-size: 24px;
    }

    .slider-card.testimonial-card.active {
        width: 50%;
    }

    .custom-scrollbar {
        width: 50%;
    }

    .card .subtitle {
        font-size: 1.3rem;
    }

    .box p {
        font-size: 20px;
    }

    .box h3 {
        font-size: 22px !important;
    }

    .explore {
        font-size: 20px;
    }

    .card .subtitle {
        font-size: 1.4rem;
    }

    #page-indicator,
    #page-indicator-tools {
        font-size: 1.5rem;
    }


    .product-designed-for-wide-range p {
        padding-left: 2%;
        padding-right: 2%;
    }
}

@media screen and (max-width: 800px) {
    .counting-item {
        padding: 1.5rem 3rem;
        border-radius: 30px;
    }

    .testimonial-card p {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .testimonial-card cite {
        font-size: 1.2rem;
    }

    .slider-card {
        height: 20rem;
    }

    .slider-card.testimonial-card.active {
        width: 40%;
    }
}

@media screen and (max-width: 600px) {

    .image-with-arrow-div,
    .experience-row {
        flex-flow: column;
        gap: 8px;
    }

    .experience-row-left {
        width: 100%;
    }

    .top-text-content h1 {
        font-size: 25px !important;
    }

    .top-text-content p {
        line-height: 28px;
        font-size: 18px;
    }

    .get-started-button-holder {
        width: 70%;
    }

    .get-started-button-modal {
        font-size: 18px !important;
    }

    .counting-number {
        font-size: 19px;
    }

    .counting-container-inner {
        padding: 0;
    }

    .get-started-button {
        /* width: 60%;
        padding: 1.5%; */
    }

    .get-started-button-container {
        margin-bottom: 0rem;
    }

    .counting-container-inner {
        /* margin-top: -5.5rem; */
        background-size: 100% auto;
    }

    .video-container {
        margin-top: 1rem;
    }

    .video-container video {
        width: 100%;
    }

    div#play-pause-button {
        bottom: 75%;
        right: 1%;
        height: 33px;
        width: 33px;
    }

    .box {
        flex: 0 0 280px;
    }

    .box:nth-child(odd),
    .box:nth-child(even) {
        margin-top: 0;
        margin-bottom: 0;
    }

    :is(.tools-grid-inner,
        .tools-for-person-centered-container,
        .product-designed-for-wide-range-container,
        .testimonials-section,
        .experiences-you-can-trust,
        .counting-container) h2 {
        padding: 0 5%;
        font-size: 20px !important;
    }

    .card .subtitle {
        font-size: 18px;
    }

    .card ul li {
        line-height: 1.4;
        font-size: 17px;
    }

    #cards-container {
        margin-left: 1.3rem;
    }

    .card {
        flex: 0 0 23rem;
        /* min-height: 25rem; */
    }

    .btn-get-started {
        font-size: 18px;
        width: 85%;
    }

    .services-component {
        width: 100%;
    }

    .experience {
        width: 75%;
        margin: 0;
    }

    button#experience_next-btn {
        right: 3%;
    }

    button#experience_prev-btn {
        left: 3%;
    }

    .experience_arrow-btn {
        height: 3rem;
        width: 3rem;
    }

    .experience p {
        font-size: 1.1rem;
        width: 100%;
    }

    .experience-content .explore-btn {
        font-size: 1.2rem;
    }

    /* .card.active {
    scale: 0.9;
  } */
    .box h3 {
        font-size: 1.2rem !important;
    }

    .box p {
        font-size: 1.1rem;
    }

    .explore {
        font-size: 1.2rem;
    }

    .pagination-controls,
    .pagination-controls-tools {
        margin-left: 10%;
    }

    .counting-item {
        padding: 1rem 0.5rem;
        border-radius: 20px;
        /* margin-top: 4rem; */
    }

    .counting-years-item {
        margin-right: -3%;
    }

    .counting-tools-item {
        margin-left: -3%;
    }

    .custom-scrollbar {
        width: 90%;
    }

    .counting-label {
        font-size: 17px;
    }

    .testimonials-section .slider-card.testimonial-card {
        max-width: 50%;
        margin-left: 5%;
        margin-right: 5%;
        width: 380px;
    }

    .experience-inner-container a {
        /* max-height: 500px; */
    }

    .slider-card {
        height: 28rem;
    }

    .testimonial-card p {
        font-size: 1.1rem;
    }

    .testimonial-card::before,
    .testimonial-card::after {
        display: none;
        /* Hide the quotes on very small screens */
    }

    .testimonial-card p::before,
    .testimonial-card p::after {
        content: "";
        /* We'll use background-image instead of content */
        position: absolute;
        width: 25px;
        /* Adjust as needed for your icons */
        height: 25px;
        /* Adjust as needed for your icons */
        background-size: contain;
        /* Ensures the SVG fits within the defined width/height */
        background-repeat: no-repeat;
        /* Prevents the image from repeating */
        /* Remove font-size, font-weight, color, line-height as they are for text content */
        z-index: 1;
        /* Keep quotes on top */
    }

    .testimonial-card p::before {
        background-image: url("https://www.therapservices.net/images/2025-home/icon-quote-left.svg");
        top: -1rem;
        left: -2.5rem;
    }

    .testimonial-card p::after {
        background-image: url("https://www.therapservices.net/images/2025-home/icon-quote-right.svg");
        bottom: -1rem;
        right: -2.5rem;
    }

    .testimonial-card cite {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .slider-track,
    .testimonials-section .slider-card.testimonial-card {
        position: relative;
    }

    .slider-card.testimonial-card {
        /* margin-left: 5%; */
        /* margin-right: 5%; */
    }

    .slider-card.testimonial-card.active {
        max-width: 34%;
        width: 100%;
        margin: 0 5%;
    }

    .counting-label,
    .counting-label-2 {
        margin-top: 0.5rem;
    }

    .tools-for-person-centered-container .carousel {
        gap: 40px !important;
        /* Your 10px gap */
        padding: 0 !important;
        display: flex !important;
    }

    .tools-for-person-centered-container .box {
        /* Set width to 85% of screen so the user sees it is centered */
        flex: 0 0 85vw !important;

        /* Preserve your original design */
        border-radius: 40px !important;
        margin: 0 !important;
        margin-top: 10px !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
        height: auto !important;
    }

    .tools-for-person-centered-container .carousel-wrapper {
        overflow: hidden;
        width: 100vw;
        cursor: grab;
    }

    .box span.box-arrow {
        opacity: 1;
    }

    .image-with-arrow-div span.box-arrow,
    .experience-content.experience-secure-video span.box-arrow {
        display: inline-block;
        opacity: 1;
    }

    .card-header-content {
        width: 100%;
    }

    .product-designed-for-wide-range-container h2 {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 0 !important;
    }
}

@media only screen and (max-width: 420px) {
    .testimonials-section .slider-card.testimonial-card.active {
        max-width: 15%;
        width: 100%;
        margin: 0 5%;
    }
    .card {
        flex: 0 0 318px;
    }
}

@media only screen and (max-width: 400px) {
    .testimonials-section .slider-card.testimonial-card {
        max-width: 30%;
        margin-left: 7%;
        margin-right: 5.5%;
        width: 360px;
    }

    .testimonials-section .slider-card.testimonial-card.active {
        max-width: 15%;
        width: 100%;
        margin: 0 5%;
    }
}

@media screen and (max-width: 390px) {
    .card {
        flex: 0 0 318px;
    }

    .counting-number {
        font-size: 16px;
    }

    .counting-label {
        font-size: 12px;
    }
}

/* Homepage Button Swap Styles */
.top-container-button {
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    gap: 5%;
    width: 70%;
    margin-top: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 9;
}

.for-providers a,
.for-states a {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}

.top-container-button a {
    text-decoration: none;
    color: #0c4c7c;
    /* Blue text */
    font-size: 21px;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    transition: transform 0.2s ease, background-color 0.2s;
    text-align: center;
    white-space: nowrap;
    line-height: 1.5;
    margin: 0;
    width: 100%;
}


.top-container-button .for-providers a {
    background-color: #faa61c;
    display: flex;
    /* Orange */
}

.top-container-button .for-providers a svg,
.top-container-button .for-states a svg {
    width: 25px;
}

.top-container-button .for-states a {
    background-color: #c1de87;
    display: flex;
    /* Green */
}

/* Responsive adjustments for buttons */
@media (max-width: 768px) {
    .top-container-button {
        flex-direction: column;
        gap: 15px;
        width: 90%;
    }

    .top-container-button a {
        padding: 12px 30px;
        font-size: 21px;
        width: 100%;
        max-width: 300px;
    }
}

/* changed by eaty */
#page-indicator,
#page-indicator-tools {
    display: none;
}

/* ========================================
   Hero Split Section (Left Text / Right Image)
   ======================================== */
.hero-split-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 40px 5%;
    position: relative;
}

.hero-split-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2%;
    max-width: 90%;
    width: 100%;
}

.hero-split-left {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.top-text-content {
    max-width: 90%;
}

/* Override centred defaults from .top-text-content p for this layout */
.hero-split-left .top-text-content p {
    text-align: left;
    margin: 0;
    margin-bottom: 20px;
}

.hero-split-left .top-text-content h1 {
    text-align: left;
}

.hero-split-left .top-container-button {
    justify-content: flex-start;
    margin-top: .8rem;
    margin-bottom: 0;
    width: auto;
}

.hero-split-right {
    flex: 1 1 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-split-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

/* Responsive: stack vertically on tablet/mobile */
@media (max-width: 1024px) {
    .hero-split-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-split-left,
    .hero-split-right {
        flex: 1 1 100%;
        width: 100%;
    }

    .hero-split-left .top-text-content p,
    .hero-split-left .top-text-content h1 {
        text-align: center;
    }

    .hero-split-left .top-container-button {
        justify-content: center;
        width: 100%;
    }

    .product-designed-for-wide-range-container {
        padding: 0 20px;
    }
}

/* ========================================
   Tools Grid Section (3 × 2 Static Grid)
   ======================================== */
.tools-grid-section {
    padding: 60px 5%;
    padding-top: 20px;
    background-color: #fff;
}

.tools-grid-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.tools-grid-inner h2 {
    text-align: center;
}

.tools-grid-inner p {
    margin-bottom: 2.5rem !important;
}

.product-designed-for-wide-range p,
.tools-grid-inner p {
    font-size: 20px;
    text-align: center;
    margin-top: .6rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* Base card */
.tool-card {
    border-radius: 4px;
    padding: 18px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-width: 1px;
    border-style: solid;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Color variants — same gradients as old .box-* */
.tool-card-orange-new {
    background: linear-gradient(to bottom, #ffe0a9, #ffffff);
    border-color: #ffe1a4;
}

.tool-card-orange {
    background: linear-gradient(to bottom, #ffb519, #fff5e0);
    border-color: #ffe1a4;
}

.tool-card-blue {
    background: linear-gradient(to bottom, #d2f3fe, #fefffd);
    border-color: #9dd9f2;
}

.tool-card-green {
    background: linear-gradient(to bottom, #e9f5ce, #fffd);
    border-color: #bbdd8b;
}

/* Link wrapper — fills entire card */
.tool-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Icon */
.tool-card-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 18px;
    color: var(--link-color);
    flex-shrink: 0;
}

.tool-card-icon img {
    width: 100%;
    height: 100%;
}

/* Title */
.tool-card h3 {
    font-family: var(--font-lato) !important;
    font-size: 17px !important;
    margin-top: 0 !important;
    color: var(--link-color) !important;
    margin-bottom: .5rem !important;
    line-height: 1.3 !important;
    font-weight: 600;
}

/* Description */
.tool-card p {
    font-family: "Lato", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #000;
    margin-bottom: 0 !important;
    text-align: left;
}

/* Arrow reveal on hover — reuses existing .box-arrow logic */
.tool-card .box-arrow {
    opacity: 0;
    margin-left: 8px;
    margin-bottom: 5px;
    transition: opacity 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

.tool-card-link:hover .box-arrow {
    opacity: 1;
}

.tool-card h3 .box-arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid-section,
    .counting-container {
        padding: 40px 5%;
        padding-top: 20px;
    }
}

/* --- NEW TESTIMONIAL CARD LAYOUT --- */
.testimonial-card {
    padding: 2.5rem 2rem;
    /* Adjusted padding for better flow */
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Space between header and body */
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.6s ease;
}

.testimonial-card.active {
    background: #ffe8bd;
    z-index: 10;
    /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12); */
}

.testimonial-card.active p::before {
    opacity: 1;
}

/* .testimonial-card:hover {
    opacity: 1;
} */

/* Header Flexbox */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.testimonial-img-wrapper {
    flex-shrink: 0;
}

.testimonial-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 2px solid #ffae2c; */
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.testimonial-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.testimonial-card cite {
    font-size: 17px;
    color: #000000;
    font-weight: 500;
    text-align: left;
    line-height: 24px;
}

/* Body and Quotes */
.testimonial-body {
    position: relative;
}

.testimonial-card p {
    font-size: 17px;
    line-height: 1.6;
    text-align: left;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Quote icon styling */
.testimonial-card p::before {
    content: "";
    position: absolute;
    background-image: url("https://www.therapservices.net/images/2025-home/icon-quote-left.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    top: -1rem;
    left: -1rem;
    opacity: 0.4;
    /* Made slightly transparent so text is legible if they overlap */
    z-index: -1;
}

/* Hide the old right-side closing quote since you only wanted it at the top */
.testimonial-card p::after {
    display: none;
}

/* ==========================================
       MOBILE TESTIMONIAL SLIDER FIX
       ========================================== */
@media screen and (max-width: 1100px) {

    /* Restore a consistent gap between cards */
    .testimonials-section .slider-track {
        gap: 20px !important;
    }

    /* Override the broken percentage widths and standardize the card size */
    .testimonials-section .slider-card.testimonial-card,
    .testimonials-section .slider-card.testimonial-card.active {
        width: 90vw !important;
        max-width: 600px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        /* max-height: fit-content; */
        max-height: unset;
        padding: 3rem 2rem !important;
    }

    /* Optimize padding and text size for mobile readability */
    .testimonials-section .testimonial-card {
        padding: 2rem !important;
    }

    .testimonials-section .testimonial-card p {
        font-size: 1.1rem !important;
    }

    .testimonials-section .slider-arrow {
        top: 40%;
    }

    .top-text-content {
        margin: 0 auto;
    }
}

@media(max-width:1300px) {
    .ai-section-inner {
        max-width: 75%;
    }
}