/**
 * Referral Page Styles
 */

.referral-section {
    padding-top: 150px !important;
    padding-bottom: 120px;
    min-height: 900px;
    display: flex;
    align-items: center;
    background: #f5f5f5;
}

.bg-soft-pink {
    background-color: #fdf5f2;
}

.bg-light-pink {
    background-color: #f9f1ee;
}

.bg-light-blue {
    background-color: #f2f7fb;
}

/* Hero Section */
body .referral-hero {
    min-height: 900px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: var(--hero-background-color) !important;
}

.referral-hero .tagline-dot {
    background: #ffffff;
}

.referral-hero .tagline-text {
    color: #ffffff;
}

.referral-hero .btn-wm-primary {
    background: white !important;
    color: #347d75 !important;
    border: 1px solid transparent !important
}

.referral-hero p {
    color: white !important;
}

.referral-hero-title {
    color: white !important;
}

.referral-hero .btn-wm-primary:hover {
    background-color: transparent !important;
    color: white !important;
    border: 1px solid white !important
}

.referral-hero .btn-wm-outline {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

.hero-accent-line {
    width: 60px;
    height: 4px;
    background-color: #F8E5E5;
    border-radius: 2px;
}

/* Referral Hero Title wrapping & typography */
.referral-hero-title {
    font-size: 2.2rem;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .referral-hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 992px) {
    .referral-hero-title {
        font-size: 3.35rem;
        line-height: 1.15;
        max-width: 580px;
        /* Forces wrap on exactly 3 lines */
    }
}

@media (min-width: 1200px) {
    .referral-hero-title {
        font-size: 3.75rem;
        max-width: 650px;
        /* Perfect proportional width for 3 lines wrapping */
    }
}

/* Referral Bleed Section */
.referral-bleed-section {
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .referral-bleed-section {
        min-height: 900px !important;
        display: flex;
        align-items: center;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Absolute Bleed Image on Desktop */
.hero-bleed-image,
.referral-bleed-image {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    z-index: 1;
}

.scope-of-care .referral-bleed-image {
    width: 41.6%;
}

/* Mobile only standard image container */
.hero-image-container,
.referral-image-container {
    position: relative;
    width: 100%;
    z-index: 2;
}

.hero-image-container img,
.referral-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Patient Cards */
.patient-card {
    transition: all 0.3s ease;
    border-color: #eee !important;
}

.patient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: #d1c4c1 !important;
}

.bg-light-hover:hover {
    background-color: #fafafa;
}

/* Steps */
.step-number {
    font-size: 1.25rem;
}

/* Buttons */
.btn-wm-outline {
    background-color: transparent;
    color: #5BA8A0;
    border: 2px solid #5BA8A0;
    transition: all 0.3s ease;
}

.btn-wm-outline:hover {
    background-color: #5BA8A0;
    color: #fff;
}

/* Responsive */
@media (max-width: 991.98px) {
    .referral-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

/* ========================================
   Scope of Care Section (Custom Mockup Styles)
   ======================================== */
.scope-of-care {
    background-color: #f5f5f5 !important;
    /* Soft premium off-white background */
    position: relative;
    overflow: hidden;
    padding-top: 120px !important;
    padding-bottom: 120px !important;
}

@media (min-width: 992px) {
    .scope-of-care {
        min-height: auto !important;
        /* Override standard section min-height */
        padding-top: 180px !important;
        padding-bottom: 180px !important;
    }
}

/* Tagline with Leaf Icon */
.scope-tagline-container {
    color: #6DA8A3;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

/* Pink Accent Line under Title */
.scope-accent-line {
    width: 60px;
    height: 4px;
    background-color: #F8E5E5;
    border-radius: 2px;
    margin: 24px 0;
}

.scope-intro {
    font-size: 1.1rem;
    font-weight: 600;
    color: #60403E;
    margin-bottom: 24px;
}

/* Cards layout */
.scope-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(96, 64, 62, 0.04) !important;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    height: 100%;
}

.scope-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(96, 64, 62, 0.06) !important;
    border-color: rgba(109, 168, 163, 0.2) !important;
}

.scope-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scope-card-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--wm-body);
    line-height: 1.45;
    margin-bottom: 0;
}

/* Right Column Wrapper & Organic Layout */
.scope-right-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 30px;
}

.scope-image-container {
    width: 100%;
    aspect-ratio: 1.05 / 1;

}

.scope-image-container img {

    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scope-right-wrapper:hover .scope-image-container img {
    transform: scale(1.04);
}

/* Background pastel blobs */
.scope-blob {
    border-radius: 50%;
    filter: blur(15px);
    z-index: 0;
    pointer-events: none;
}

.scope-blob-pink {
    width: 160px;
    height: 160px;
    background-color: #FDF1F0;
    /* soft pink */
    top: 0;
    left: 20px;
}

.scope-blob-blue {
    width: 200px;
    height: 200px;
    background-color: #F0F7FF;
    /* soft blue */
    left: -20px;
    bottom: 25%;
}

.scope-blob-teal {
    width: 220px;
    height: 220px;
    background-color: #F0F9F8;
    /* soft teal */
    right: 0px;
    bottom: 10px;
}

/* Decorative grid of dots & leaf outlines */
.scope-dot-grid {
    bottom: 0px;
    left: 40px;
    z-index: 1;
    pointer-events: none;
}

.scope-leaf-top-right {
    top: -10px;
    right: -10px;
    width: 130px;
    height: 130px;
    color: #6DA8A3;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    transform: rotate(15deg);
}

.scope-leaf-bottom-left {
    bottom: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    color: #FDF1F0;
    opacity: 0.8;
    z-index: 1;
    pointer-events: none;
    transform: rotate(-30deg);
}

/* Centralized Section Descriptions matching the Hero Section style */
.referral-section .description,
.referral-section p.description,
.referral-section div.description {
    color: #60403E !important;
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
}