
:root {
    --primary-color: #ff7433;
    --primary-dark: #e65c1e;
    --primary-light: #fff5f0;
    --secondary-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --white: #ffffff;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(255, 116, 51, 0.15);
}

body {
    background-color: #fcfcfc;
}

/* --- Hero & Layout --- */
.hero-program-section {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #fffbf9 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.hero-program-section::before {
    content: "";
    position: absolute;
    top: -100px; right: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255, 116, 51, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 116, 51, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 500;
}

/* --- Facilities Card (Grid) --- */
.facility-card-big {
    background: var(--white);
    padding: 30px 20px; /* Bigger padding */
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    height: 100%;
}

.facility-card-big:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-color: rgba(255, 116, 51, 0.3);
    transform: translateY(-5px);
}

.fc-icon-big {
    width: 70px; /* Bigger Icon */
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem; /* Bigger font size */
    flex-shrink: 0;
}

.fc-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-dark);
}

.fc-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* --- Creative Unique Program Card --- */
.program-unique-card {
    position: relative;
    height: 100%;
    margin-bottom: 30px;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

.program-unique-card:hover {
    transform: translateY(-5px);
}

.puc-image {
    position: relative;
    height: 220px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.puc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-unique-card:hover .puc-image img {
    transform: scale(1.08); /* Subtle Zoom */
}

/* Gradient Overlay */
.puc-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.4) 0%, transparent 100%);
    pointer-events: none;
}

.puc-details {
    position: relative;
    background: #fff;
    width: 90%;
    margin: -40px auto 0; /* Overlap image */
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06); /* Clean shadow */
    z-index: 2;
    text-align: center;
    border-top: 4px solid var(--primary-color); /* Brand accent */
}

.puc-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -50px auto 15px; /* Floating half-out */
    box-shadow: 0 5px 15px rgba(255, 116, 51, 0.2);
    border: 3px solid #fff;
}

.puc-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.puc-details p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 5px;
}



/* --- Storytelling Timeline (Vertical) --- */
.recovery-timeline {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px 0;
}

/* Central Line */
.rt-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #ffe3d4; /* Very light orange path */
    transform: translateX(-50%);
    border-radius: 4px;
}

.rt-item {
    position: relative;
    margin-bottom: 60px;
}

.rt-item:last-child { margin-bottom: 0; }

.rt-item::after { 
    /* Clearfix for Alternating layout */
    content: ""; display: block; clear: both; 
}

/* Number Marker */
.rt-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    z-index: 2;
    border: 5px solid #fff;
    box-shadow: 0 0 0 4px #ffe3d4; /* Ring effect */
}

/* Content Box */
.rt-content {
    width: 45%;
    background: #fff;
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Soft premium shadow */
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.rt-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}


.rt-content.right {
    float: right;
    text-align: left;
    top: 40px; /* Stagger effect */
}
/* Re-align top for first item */
.rt-item:first-child .rt-content.left { top: 0; }
.rt-item:nth-child(2) .rt-content.right { top: 0; }


.rt-content h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.rt-days {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: #2c3e50;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.rt-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991px) {
    /* Cards */
    .puc-details {
        width: 95%;
    }

    /* Timeline */
    .rt-line {
        left: 20px;
    }
    .rt-marker {
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .rt-content {
        width: calc(100% - 60px); /* Full width minus marker space */
        float: right !important; /* Force all to right */
        text-align: left !important;
        margin-left: 60px;
        margin-top: 10px;
    }
    
    .rt-content.right { top: 0; } /* Remove stagger */
    
    /* Small arrow for context on mobile */
    .rt-content::before {
        content: "";
        position: absolute;
        top: 20px;
        left: -10px;
        border-width: 10px 10px 10px 0;
        border-color: transparent #fff transparent transparent;
        border-style: solid;
    }
}


/* --- Section Title Stylish --- */
.section-title-stylish {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    z-index: 1;
}

.section-title-stylish::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(255, 116, 51, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.section-desc{
    font-size: 1.1rem;
     color: var(--text-muted);
     line-height: 1.7;
     margin-bottom: 40px;
     font-weight: 500;
}
/* --- Daily Routine (Right Side) --- */
.daily-routine-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid #f0f0f0;
    height: 100%;
    max-height: 850px; /* Slightly taller */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dr-header {
    background: linear-gradient(135deg, #ff8c55 0%, #ff7433 100%);
    padding: 25px 30px;
    color: var(--white);
    flex-shrink: 0;
}

.dr-header h3 {
    font-size: 1.5rem; 
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dr-scroll-area {
    padding: 25px 30px;
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-width: thin;
    scrollbar-color: #ffdcd1 transparent;
}

/* Modern Timeline Items */
.timeline-modern {
    position: relative;
    border-left: 2px dashed #ddd; /* Dashed line for modern look */
    margin-left: 10px;
    padding-left: 30px;
}

.tm-item {
    position: relative;
    margin-bottom: 20px; /* More breathing room */
}

.tm-item:last-child { margin-bottom: 0; }

.tm-item::before {
    content: "";
    position: absolute;
    left: -37.6px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.tm-item:hover::before {
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 116, 51, 0.2);
}

.tm-time {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1.2;
}

.tm-time .text-muted {
    font-weight: 500;
    font-size: 0.85rem;
    color: #888 !important;
}

.tm-content {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tm-item:hover .tm-content {
    background: #fff5f0;
    transform: translateX(5px);
}

.tm-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}


.phase-card-new p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    margin-top: auto; /* Push to bottom if height varies */
}

/* Connect phases with a line on desktop */
@media (min-width: 992px) {
    .phases-section .row {
        position: relative;
    }
    .phases-section .row::before {
        content: "";
        position: absolute;
        top: 50px; left: 15px; right: 15px;
        height: 2px;
        background: #f0f0f0;
        z-index: 0;
        display: none; /* Hidden for now, card layout works better standalone */
    }
}

/* Facility Special Styles */
.facility-card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}
.facility-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary-light);
    transform: translateY(-3px);
}
.fc-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}
.fc-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px;
    color: var(--text-dark);
}
.fc-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

.phase-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(255, 116, 51, 0.2);
}

.phase-step-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff7433, #ff5000);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(255, 116, 51, 0.3);
}

.phase-card-new h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
    margin-top: 15px;
}

.phase-duration {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(255, 116, 51, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.phase-card-new p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .hero-title { font-size: 2.2rem; }
    .programs-grid { grid-template-columns: 1fr; }
    .daily-routine-container { margin-top: 50px; height: 500px; }
    .phase-card-new { margin-bottom: 20px; }
    .hero-program-section { padding-top: 40px; }
}
/* --- Added Background Improvements --- */

/* Programs Section (Treatment Approach) */
.programs-section {
    position: relative;
    background-color: #fbfbfb;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 116, 51, 0.03) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(44, 62, 80, 0.03) 0%, transparent 20%);
    z-index: 1;
}

/* Phases Section (Recovery Timeline) */
.phases-section {
    position: relative;
    background-color: #fff5f0; /* Lightest Orange Tint Base */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

.phases-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(255, 245, 240, 0.8) 100%);
    z-index: -1;
    pointer-events: none;
}
