/* 
   AnsibleHealth Patient Information Webpage
   CSS Stylesheet
*/

/* === Base Styles === */
:root {
    --ansible-dark-blue: #263f6e;
    --ansible-light-blue: #5da1d8;
    --light-blue: #E3F2FD;
    --dark-text: #000000;
    --light-text: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #757575;
    --section-padding: 3rem 2rem;
    --border-radius: 8px;
    --base-font-size: 18px;  /* Increased from default 16px */
    --h1-size: 2.8rem;       /* Increased from 2.5rem */
    --h2-size: 2.2rem;       /* Increased from 2rem */
    --h3-size: 1.7rem;       /* Increased from 1.5rem */
    --focus-outline: 3px solid rgba(93, 161, 216, 0.6);
}

/* Accessibility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--ansible-dark-blue);
    color: white;
    padding: 8px;
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: var(--focus-outline);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: var(--base-font-size);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--ansible-dark-blue);
}

h1 {
    font-size: var(--h1-size);
}

h2 {
    font-size: var(--h2-size);
    margin-bottom: 1.5rem;
}

.main-section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.panel-heading {
    color: var(--ansible-dark-blue);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ansible-light-blue);
}

h3 {
    font-size: var(--h3-size);
    color: var(--ansible-light-blue);
}

p {
    margin-bottom: 1rem;
    font-size: var(--base-font-size);
}

a {
    color: var(--ansible-light-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--ansible-dark-blue);
}

a:focus {
    outline: 2px solid var(--ansible-light-blue);
    outline-offset: 2px;
}

a:active {
    transform: scale(0.98);
}

ul {
    list-style: none;
}

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

ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

ol li {
    margin-bottom: 0.5rem;
}

/* === Layout Containers === */
.section {
    padding: var(--section-padding);
    scroll-margin-top: 120px; /* Increased to account for sticky header height */
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.light-section {
    background-color: #FFFFFF;
}

.dark-section {
    background-color: var(--light-blue);
    color: var(--dark-text);
}

.column-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.left-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border-radius: var(--border-radius);
    padding: 1.8rem;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.right-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

/* === Header and Navigation Styles === */
header {
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 2rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--ansible-dark-blue);
    transition: font-size 0.3s ease;
}

header.scrolled .logo-text {
    font-size: 1.5rem;
}

.oak-logo {
    height: 50px;
    width: auto;
    transition: height 0.3s ease;
}

header.scrolled .oak-logo {
    height: 40px;
}

.footer-oak-logo {
    height: 60px;
    filter: brightness(0) invert(1); /* Makes the logo white for the dark footer */
}

.contact-info {
    display: flex;
    align-items: center;
}

/* Section Navigation */
.section-nav {
    background-color: var(--ansible-dark-blue);
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
}

.section-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.section-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.section-nav li {
    margin: 0 0.5rem;
}

.section-nav a {
    color: var(--light-text);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    display: block;
}

.section-nav a:hover,
.section-nav a.active {
    background-color: var(--ansible-light-blue);
    color: var(--light-text);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    background-color: var(--ansible-dark-blue);
    color: var(--light-text);
    padding: 0.75rem 1rem;
    border-radius: 50px;
    z-index: 99;
    display: none;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-weight: 600;
}

.mobile-menu-toggle i {
    font-size: 1.2rem;
}

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background-color: var(--ansible-light-blue);
    color: var(--light-text);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#scroll-to-top:hover {
    background-color: var(--ansible-dark-blue);
    transform: translateY(-3px);
}

/* === Hero Section === */
.hero {
    background: linear-gradient(to right, var(--ansible-dark-blue), var(--ansible-light-blue));
    color: var(--light-text);
    padding: 5rem 2rem;
    text-align: center;
    background-image: url('../images/virtual-rehab-hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Enhanced overlay with stronger opacity for better text contrast */
    background: linear-gradient(
        to right, 
        rgba(38, 63, 110, 0.85), 
        rgba(93, 161, 216, 0.85)
    );
    /* Add additional dark shadow at the top for text readability */
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.3);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.partnership-badge {
    display: inline-block;
    background-color: white;
    color: var(--ansible-dark-blue);
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.partnership-badge span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.partnership-badge .partner-logo {
    max-height: 50px;
    max-width: 220px;
    display: block;
    margin: 0 auto;
    margin-top: 5px;
    background-color: white;
    border-radius: 5px;
    padding: 3px;
}

.partner-logo-small {
    height: 20px;
    max-width: 100px;
    vertical-align: middle;
    margin-left: 5px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--light-text);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.brief-explanation {
    font-size: 1.2rem;
    margin: 1.5rem auto;
    max-width: 700px;
    color: var(--light-text);
    line-height: 1.5;
}

.trust-indicator {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--light-text);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* === Button Styles === */
.button {
    display: inline-block;
    padding: 1rem 1.8rem;  /* Increased from 0.75rem 1.5rem for better touch targets */
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;     /* Added to increase button text size */
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 200px;      /* Added for better touch targets on mobile */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.button:hover::after {
    opacity: 1;
}

.button:active {
    transform: translateY(2px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.button:focus {
    outline: 3px solid rgba(93, 161, 216, 0.5);
    outline-offset: 2px;
}

.primary-button {
    background-color: #ffffff;
    color: var(--ansible-dark-blue);
}

.primary-button:hover {
    background-color: #f0f0f0;
    color: var(--ansible-dark-blue);
}

.secondary-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    border: 2px solid var(--light-text);
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--light-text);
}

.phone-button {
    background-color: var(--ansible-dark-blue);
    color: var(--light-text);
    min-width: auto;       /* Override for header phone button */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-button i {
    font-size: 1rem;
}

.phone-button:hover {
    background-color: var(--ansible-light-blue);
    color: var(--light-text);
}

/* === Is This Program Right for Me Section === */
.checklist {
    margin-bottom: 2rem;
}

.checklist li {
    display: flex;
    margin-bottom: 1.2rem;  /* Increased from 1rem */
    align-items: flex-start;
    padding-left: 0;
}

.checklist li i {
    color: var(--ansible-light-blue);
    margin-right: 1rem;
    font-size: 1.5rem;     /* Increased from 1.25rem */
    margin-top: 0.25rem;
}

.highlight-text {
    font-size: 1.3rem;     /* Increased from 1.2rem */
    font-weight: 600;
    color: var(--ansible-dark-blue);
    margin-top: auto;
    padding-top: 1rem;
}

.stat-box {
    background-color: #FFFFFF;
    border-radius: var(--border-radius);
    padding: 1.8rem;      /* Increased from 1.5rem */
    height: 100%;         /* Changed from auto to 100% to match left column */
    margin-top: 0;        /* Remove any top margin */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 350px;    /* Add minimum height to ensure it's tall enough */
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-box h3 {
    color: var(--ansible-dark-blue);
    margin-bottom: 1.2rem;  /* Increased from 1rem */
}

.stat-list {
    margin: 0;
    padding: 0;
}

.stat-list li {
    margin-bottom: 1.5rem;    /* Increased for better spacing */
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
    margin-left: 0;
}

.stat-list li::before {
    content: "•";
    color: var(--ansible-light-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;     /* Added to increase bullet size */
}

/* === Journey Steps Section === */
#steps {
    background-color: #f7f9fc;
}

.journey-steps {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0 auto 2rem;
    position: relative;
    max-width: 1200px;
    flex-wrap: nowrap;
}

.step {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Arrow connector */
.step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ansible-dark-blue);
    font-size: 18px;
    font-weight: bold;
    z-index: 2;
}

.step-icon {
    background-color: var(--ansible-dark-blue);
    color: var(--light-text);
    width: 70px;          /* Increased from 60px */
    height: 70px;         /* Increased from 60px */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
}

.step-icon i {
    font-size: 1.8rem;    /* Increased from 1.5rem */
}

.quote-box {
    background-color: #FFFFFF;
    border-radius: var(--border-radius);
    padding: 2.5rem;      /* Increased from 2rem */
    max-width: 800px;
    margin: 2rem auto 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

blockquote {
    font-style: italic;
    font-size: 1.3rem;    /* Increased from 1.2rem */
    position: relative;
    padding: 0 2rem;
}

blockquote::before {
    content: '"';
    font-size: 4.5rem;    /* Increased from 4rem */
    color: var(--medium-gray);
    position: absolute;
    left: 0;
    top: -1.5rem;
}

blockquote cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    margin-top: 1rem;
    text-align: right;
}

/* === Team Section === */
.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.team-member {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    background-color: #f7f9fc;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--ansible-light-blue);
}

.team-title {
    color: var(--ansible-light-blue);
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.member-photo {
    width: 220px;         /* Increased from 200px */
    height: 220px;        /* Increased from 200px */
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    background-color: var(--medium-gray);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-gray);
    font-size: 3rem;
}

.placeholder-image::after {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.team-quote {
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--medium-gray);
    font-size: 0.9rem;
    color: var(--ansible-dark-blue);
    position: relative;
}

.team-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-size: 1.5rem;
    color: var(--ansible-light-blue);
    opacity: 0.5;
}

/* === Benefits Section === */
#benefits {
    background-color: var(--light-blue);
}

.benefits-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.benefit {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    padding: 1.8rem;      /* Increased from 1.5rem */
    background-color: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    background-color: var(--ansible-light-blue);
    color: var(--light-text);
    width: 70px;          /* Increased from 60px */
    height: 70px;         /* Increased from 60px */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
}

.benefit-icon i {
    font-size: 1.8rem;    /* Increased from 1.5rem */
}

/* Make benefit titles normal weight instead of bold */
.benefit h3 {
    font-weight: normal;
}

/* === FAQ Section === */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.2rem;  /* Increased from 1rem */
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Equipment Showcase */
.equipment-showcase {
    margin-top: 2rem;
    border-top: 1px solid var(--medium-gray);
    padding-top: 1.5rem;
}

.equipment-showcase h4 {
    color: var(--ansible-dark-blue);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    text-align: center;
}

.equipment-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.equipment-item {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    text-align: center;
    margin-bottom: 1rem;
}

.equipment-item img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-gray);
    padding: 0.5rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.equipment-item p {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--ansible-dark-blue);
    font-size: 0.95rem;
}

.faq-question {
    background-color: var(--light-gray);
    padding: 1.2rem 1.8rem;  /* Increased from 1rem 1.5rem */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.faq-question:hover {
    background-color: #EAEAEA;
}

.faq-question:focus {
    outline: none;
    border-left: 4px solid var(--ansible-light-blue);
    background-color: #EAEAEA;
}

.faq-item.active .faq-question {
    background-color: #E5EEF8;
    border-left: 4px solid var(--ansible-light-blue);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.4rem;     /* Adjusted from 1.25rem */
    color: var(--ansible-dark-blue);
}

.faq-question i {
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--ansible-light-blue);
}

.faq-question:hover i {
    color: var(--ansible-dark-blue);
}

.faq-answer {
    padding: 0 1.8rem;     /* Increased from 0 1.5rem */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #FFFFFF;
}

.faq-item.active .faq-answer {
    padding: 1.2rem 1.8rem;  /* Increased from 1rem 1.5rem */
    max-height: 500px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--ansible-dark-blue);
}

/* === Contact Section === */
.contact-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.contact-option {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
}

.phone-number {
    font-size: 2rem;      /* Increased from 1.8rem */
    font-weight: 700;
    color: var(--ansible-dark-blue);
}

.contact-option p {
    font-size: 1.2rem;
    color: var(--ansible-light-blue);
}

.contact-option .email-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: var(--ansible-light-blue);
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-option .email-link:hover {
    color: var(--ansible-dark-blue);
}

.contact-form {
    text-align: center;
    margin-top: 2.5rem;   /* Increased from 2rem */
}

/* === Footer === */
footer {
    background-color: var(--ansible-dark-blue);
    color: var(--light-text);
    padding: 2.5rem;      /* Increased from 2rem */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

/* === Provider Section === */
.provider-section {
    background-color: var(--ansible-dark-blue);
    color: var(--light-text);
    padding: var(--section-padding);
}

.provider-section h2,
.provider-section h3 {
    color: var(--light-text);
}

.provider-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.provider-col {
    flex: 1;
    min-width: 300px;
}

.provider-section ul,
.provider-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.provider-section ul li,
.provider-section ol li {
    margin-bottom: 0.8rem;
    list-style-position: outside;
}

.provider-section ul li {
    list-style-type: disc;
}

.clinical-outcomes {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.8rem;
    margin: 1.5rem 0;
}

.clinical-outcomes h3 {
    color: var(--light-text);
    margin-bottom: 1.2rem;
}

.referral-button {
    background-color: var(--light-text);
    color: var(--ansible-dark-blue);
    font-weight: 700;
    padding: 1rem 2rem;
    margin-top: 1.5rem;
    display: inline-block;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
}

.referral-button:hover {
    background-color: #f0f0f0;
    color: var(--ansible-dark-blue);
}

/* === Testimonials Section === */
.testimonials {
    padding: var(--section-padding);
    position: relative;
    background-color: var(--light-blue);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    position: relative;
}

.testimonial-carousel {
    margin-top: 2rem;
    position: relative;
    padding-bottom: 4rem; /* Increased space for nav buttons and indicators */
}

.testimonial-slides-wrapper {
    position: relative;
    touch-action: pan-x; /* Improve touch handling for swipe */
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    background-color: #FFFFFF;
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
    max-width: 700px;
    position: relative;
    border-left: 4px solid var(--ansible-light-blue);
}

/* Fade transition classes */
.testimonial-slide.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.testimonial-slide.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.testimonial-text {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--ansible-dark-blue);
    position: relative;
    padding: 0 1.5rem;
}

/* Decorative quote marks */
.testimonial-text::before,
.testimonial-text::after {
    position: absolute;
    font-size: 5rem;
    line-height: 1;
    color: var(--ansible-light-blue);
    opacity: 0.4;
    font-family: Georgia, serif;
    font-style: normal;
}

.testimonial-text::before {
    content: '"';
    left: -1.5rem;
    top: -1.2rem;
}

.testimonial-text::after {
    content: '"';
    right: -1.5rem;
    bottom: -2.5rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--ansible-dark-blue);
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
    text-align: right;
}

.testimonial-condition {
    color: var(--dark-gray);
    font-size: 0.95rem;
    text-align: right;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.prev-testimonial,
.next-testimonial {
    background-color: var(--ansible-dark-blue);
    color: var(--light-text);
    border: none;
    width: 44px; /* Increased for better touch target */
    height: 44px; /* Increased for better touch target */
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.prev-testimonial:hover,
.next-testimonial:hover {
    background-color: var(--ansible-light-blue);
}

/* Testimonial Indicators (Dots) */
.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.testimonial-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-indicator.active {
    background-color: var(--ansible-dark-blue);
    transform: scale(1.2);
}

/* === Media Queries === */
@media (max-width: 768px) {
    :root {
        --base-font-size: 16px;  /* Slightly smaller base font on mobile */
        --h1-size: 2.4rem;
        --h2-size: 1.9rem;
        --h3-size: 1.5rem;
    }
    
    /* Equipment showcase mobile styles */
    .equipment-images {
        gap: 1rem;
    }
    
    .equipment-item {
        min-width: 120px;
        max-width: 45%;
    }
    
    .equipment-item img {
        height: 120px;
    }
    
    .equipment-item p {
        font-size: 0.9rem;
    }
    
    /* Fixes for columns on mobile */
    .left-column, .right-column .stat-box {
        margin-top: 0;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    h1 {
        font-size: var(--h1-size);
    }
    
    h2 {
        font-size: var(--h2-size);
    }
    
    h3 {
        font-size: var(--h3-size);
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .brief-explanation {
        font-size: 1.1rem;
        margin: 1rem auto;
    }
    
    .partnership-badge {
        margin-bottom: 1rem;
    }
    
    .trust-indicator {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.8rem; /* Increased spacing between buttons on mobile */
    }
    
    .button {
        width: 100%;  /* Full width buttons on mobile */
        margin-bottom: 0.5rem;
    }
    
    .header-container, .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info, .footer-info {
        margin-top: 1rem;
        text-align: center;
    }
    
    /* Mobile navigation */
    .section-nav {
        display: none; /* Hide on mobile by default */
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 98;
        padding: 1rem;
        white-space: normal;
    }
    
    .section-nav.active {
        display: block;
    }
    
    .section-nav ul {
        flex-direction: column;
    }
    
    .section-nav li {
        margin: 0.5rem 0;
    }
    
    .section-nav a {
        padding: 0.75rem;
        text-align: center;
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .journey-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        min-width: 90%;
        max-width: 90%;
        margin-bottom: 1.5rem;
    }
    
    .step:not(:last-child)::after {
        content: "↓";
        right: auto;
        top: auto;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .column-layout {
        flex-direction: column;
    }

    .member-photo {
        width: 180px;
        height: 180px;
    }
    
    /* Provider section mobile improvements */
    .provider-info {
        flex-direction: column;
        gap: 1.5rem; /* Reduced from 2rem */
    }
    
    .provider-col {
        padding: 0.5rem;
    }
    
    .provider-section ul,
    .provider-section ol {
        padding-left: 1.2rem; /* Reduced left padding */
    }
    
    .clinical-outcomes {
        padding: 1.2rem; /* Reduced padding */
        margin: 1rem 0; /* Reduced margin */
    }
    
    .referral-button {
        width: 100%; /* Full-width button */
        text-align: center;
        padding: 1.2rem; /* Increased padding for better touch target */
    }
    
    /* Testimonial section mobile improvements */
    .testimonial-text {
        font-size: 1.1rem;
        padding: 0 1rem; /* Adjusted padding for quotes */
    }
    
    .testimonial-slide {
        padding: 1.8rem; /* Adjusted to accommodate quote marks */
    }
    
    /* Adjust quote mark size on mobile */
    .testimonial-text::before,
    .testimonial-text::after {
        font-size: 3.5rem;
    }
    
    .testimonial-text::before {
        left: -1rem;
        top: -0.8rem;
    }
    
    .testimonial-text::after {
        right: -1rem;
        bottom: -1.8rem;
    }
    
    .testimonial-nav {
        bottom: -0.5rem; /* Position closer to the testimonial */
        flex-wrap: wrap;
        padding: 0 0.5rem;
    }
    
    .testimonial-indicators {
        order: 3; /* Place below buttons */
        width: 100%;
        margin-top: 0.75rem;
    }
    
    .testimonial-indicator {
        width: 12px; /* Larger for better touch target */
        height: 12px; /* Larger for better touch target */
    }
    
    .prev-testimonial,
    .next-testimonial {
        width: 48px; /* Even larger for mobile */
        height: 48px; /* Even larger for mobile */
    }
}
}