/* Individual Therapy Page Styles */

/* ============================================================
   THERAPY CONTENT — refined editorial layout (sitemap content)
   Shared building blocks used to rebuild each therapy landing so
   the copy matches the sitemap exactly while staying professional.
   ============================================================ */
.therapy-section { padding: 4.75rem 0; }
.therapy-section--white { background: #ffffff; }
.therapy-section--tint { background: linear-gradient(180deg, #f5f9fd 0%, #eef4fb 100%); }
.therapy-section--deep {
    background: linear-gradient(160deg, #244766 0%, #18324c 100%);
    color: #e8eef6;
}
.therapy-section--deep .therapy-eyebrow { color: #9cc2e6; }
.therapy-section--deep .section-title,
.therapy-section--deep .therapy-prose h2 { color: #ffffff; }
.therapy-section--deep .section-description,
.therapy-section--deep .therapy-prose p,
.therapy-section--deep .therapy-prose ul li { color: rgba(232, 238, 246, 0.86); }

.therapy-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #5585b5;
    margin-bottom: 1rem;
}

/* Opening statistic / lead callout */
.lead-callout { max-width: 920px; margin: 0 auto; text-align: center; }
.lead-callout .lead-figure {
    font-family: var(--font-display);
    font-weight: 700;
    color: #3d6a96;
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 1.1rem;
}
.lead-callout p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin: 0 auto;
    max-width: 760px;
}

/* Long-form narrative prose */
.therapy-prose { max-width: 820px; margin: 0 auto; }
.therapy-prose > *:first-child { margin-top: 0; }
.therapy-prose h2 {
    font-family: var(--font-display);
    font-size: 1.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.6rem 0 1.05rem;
    line-height: 1.28;
}
.therapy-prose h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: #3d6a96;
    margin: 1.8rem 0 0.6rem;
}
.therapy-prose p {
    font-family: var(--font-body);
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1.15rem;
}
.therapy-prose ul { list-style: none; padding: 0; margin: 1.25rem 0 1.6rem; }
.therapy-prose ul li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 0.85rem;
    font-family: var(--font-body);
    font-size: 1.06rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.therapy-prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5585b5, #3d6a96);
}

/* Reversed image/text row (reuses .content-grid) */
.content-grid--reverse .content-image { order: -1; }
@media (max-width: 768px) {
    .content-grid--reverse .content-image { order: 0; }
}

/* Diagram figure — for explanatory charts placed in-context */
.diagram-figure {
    max-width: 440px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e3ecf6;
    border-radius: 18px;
    padding: 1.1rem;
    box-shadow: 0 16px 42px rgba(30, 60, 95, 0.10);
}
/* Diagrams are kept compact so the (lower-resolution) charts render below
   their native size and stay sharp. */
.diagram-figure img { width: 100%; max-width: 100%; height: auto; display: block; border-radius: 10px; }
.diagram-figure figcaption {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-tertiary);
    margin-top: 0.95rem;
    font-style: italic;
}

/* Pill list / chips for therapy menus */
.chip-grid { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.chip {
    background: rgba(85, 133, 181, 0.10);
    color: #2f4d73;
    border: 1px solid rgba(85, 133, 181, 0.22);
    border-radius: 30px;
    padding: 0.55rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Provider / clinician card */
.provider-card {
    max-width: 640px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e3ecf6;
    border-radius: 18px;
    padding: 2.25rem 2.5rem;
    box-shadow: 0 14px 40px rgba(30, 60, 95, 0.10);
    text-align: center;
}
.provider-card .provider-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.35rem;
}
.provider-card .provider-role {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #5585b5;
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* Hero Section */
.therapy-hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11rem 0 8rem;
    overflow: hidden;
}

.therapy-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0B1F3A;
    overflow: hidden;
    z-index: 0;
}

.therapy-hero-background::before {
    content: none;
}

.therapy-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 15, 35, 0.55) 0%, rgba(5, 15, 35, 0.40) 60%, rgba(5, 15, 35, 0.62) 100%);
    z-index: 2;
}

.therapy-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 2rem;
}

.therapy-hero-title {
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 700;
    color: #D8DDE8;
    margin-bottom: 1.25rem;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.35);
    letter-spacing: -0.5px;
}

.therapy-hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: rgba(216,221,232,0.80);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.hero-icon {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    height: 220px;
    max-width: 220px;
    max-height: 220px;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.therapy-hero .container,
.page-hero .container,
.blog-hero .container,
.contact-hero .container,
.faq-hero .container {
    position: relative;
    z-index: 3;
}

.hero-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-icon.animated {
    opacity: 0.6;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
    background: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-text {
    padding-right: 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-description {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.content-image {
    border-radius: 18px;
    background: linear-gradient(160deg, #f4f8fc 0%, #e9f1fa 100%);
    border: 1px solid #e3ecf6;
    box-shadow: 0 16px 42px rgba(30, 60, 95, 0.12);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Never upscale past the image's native resolution, so low-res photos stay
   crisp. The image renders at its natural size, capped to the column. */
.content-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 460px;
    display: block;
    border-radius: 12px;
}

/* Benefits Section */
.benefits-section {
    padding: 4rem 0;
    background: #fff;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.benefit-card.centered-card {
    grid-column: 2 / 3;
}

@media (max-width: 968px) {
    .benefit-card.centered-card {
        grid-column: auto;
    }
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(58, 159, 208, 0.1) 0%, rgba(44, 122, 160, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #5585b5;
}

.benefit-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.benefit-description {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Process Section */
.process-section {
    padding: 6rem 0;
    background: #fff;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #5585b5 0%, #3d6a96 100%);
    color: #E8E8E8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-description {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #5585b5 0%, #3d6a96 100%);
    color: #E8E8E8;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-description {
    font-family: var(--font-body);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.btn-primary-large {
    display: inline-block;
    padding: 1.125rem 2.5rem;
    background: #fff;
    color: #5585b5;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .therapy-hero-title {
        font-size: 3rem;
    }

    .content-grid {
        gap: 3rem;
    }

    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .therapy-hero {
        min-height: 65vh;
        padding: 8rem 0 5rem;
    }

    .therapy-hero-title {
        font-size: 2.5rem;
    }

    .therapy-hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-icon {
        width: 150px;
        height: 150px;
        right: 5%;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .content-text {
        padding-right: 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1.0625rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .therapy-hero {
        padding: 5rem 0 3rem;
    }

    .therapy-hero-title {
        font-size: 2rem;
    }

    .therapy-hero-subtitle {
        font-size: 1rem;
    }

    .hero-icon {
        display: none;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .benefit-card {
        padding: 1.75rem 1.5rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .btn-primary-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .treatments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Treatments Section Styles */
.treatments-section {
    padding: 6rem 0;
    background: #fff;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.treatment-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.treatment-item:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.treatment-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(58, 159, 208, 0.1) 0%, rgba(44, 122, 160, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #5585b5;
}

.treatment-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

/* Benefits List Styles */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.benefit-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.benefit-list-item svg {
    flex-shrink: 0;
    color: #5585b5;}

/* Therapy Types Section */
.therapies-types-section {
    padding: 4rem 0;
    background: #fff;
}

.therapy-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.therapy-type-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.therapy-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}

.therapy-type-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(58, 159, 208, 0.1) 0%, rgba(44, 122, 160, 0.15) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #5585b5;
}

.therapy-type-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.therapy-type-description {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Integrative Content */
.integrative-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.integrative-text {
    padding: 2rem;
}

/* Testimonials Styles */
.testimonial-carousel {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 60px;
}

.testimonial-track {
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-slide .testimonial-content {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.quote-icon {
    font-family: Georgia, serif;
    font-size: 4rem;
    color: rgba(58, 159, 208, 0.2);
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-slide .testimonial-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

.testimonial-slide .testimonial-content p:last-child {
    margin-bottom: 0;
}

.testimonial-slide .testimonial-content ul {
    margin: 1rem 0 1rem 1.5rem;
    padding: 0;
}

.testimonial-slide .testimonial-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    font-family: var(--font-body);
    color: var(--text-secondary);
}

/* Read More functionality */
.read-more-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.read-more-content.expanded {
    max-height: 3000px;
    transition: max-height 0.8s ease-in;
}

.read-more-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #5585b5 0%, #3d6a96 100%);
    color: #E8E8E8;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 159, 208, 0.3);
}

.read-more-btn.expanded::after {
    content: ' Less';
}

.read-more-btn::after {
    content: '';
}

.testimonial-slide .testimonial-author {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.testimonial-slide .testimonial-author strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: #5585b5;
    letter-spacing: 0.5px;
}

.testimonial-slide .testimonial-author span {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: #5585b5;
    border-color: #5585b5;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:hover svg {
    stroke: white;
}

.carousel-btn svg {
    stroke: #333;
    transition: stroke 0.3s ease;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
    background: #5585b5;
    width: 32px;
    border-radius: 6px;
}

.carousel-indicators .indicator:hover {
    background: #b0b0b0;
}

/* Video Grid with YouTube iframes */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.video-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}

.video-wrapper h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 1.2rem 1.5rem;
    margin: 0;
    line-height: 1.4;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 1rem;
}

.text-center {
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .testimonial-carousel {
        padding: 0 50px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .testimonial-carousel {
        padding: 0 40px;
    }
    
    .testimonial-slide .testimonial-content {
        padding: 2rem 1.5rem;
    }
    
    .quote-icon {
        font-size: 3rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Facilities Custom Styles */
.facilities-showcase {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.facilities-grid-custom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.facility-card-modern {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.facility-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(58, 159, 208, 0.2);
}

.facility-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: #f5f5f5;
}

.facility-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.facility-card-modern:hover .facility-image {
    transform: scale(1.05);
}

.facility-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(58, 159, 208, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.5rem;
}

.facility-card-modern:hover .facility-overlay {
    opacity: 1;
}

.facility-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.facility-info {
    padding: 2rem;
    position: relative;
}

.facility-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.facility-description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.facility-icon-small {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(58, 159, 208, 0.1) 0%, rgba(44, 122, 160, 0.1) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5585b5;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.facility-card-modern:hover .facility-icon-small {
    opacity: 1;
    transform: translateY(0);
}

.facility-centered {
    grid-column: 2 / 3;
}

@media (max-width: 968px) {
    .facilities-grid-custom {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .facility-centered {
        grid-column: auto;
    }
    
    .facility-image-wrapper {
        height: 220px;
    }
    
    .facility-number {
        font-size: 3rem;
    }
}

@media (max-width: 640px) {
    .facilities-grid-custom {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .facility-image-wrapper {
        height: 250px;
    }
    
    .facility-info {
        padding: 1.5rem;
    }
    
    .facility-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .testimonial-carousel {
        padding: 0 35px;
    }
    
    .testimonial-slide .testimonial-content {
        padding: 1.5rem 1rem;
    }
    
    .testimonial-slide .testimonial-content p {
        font-size: 1rem;
    }
}
