/* Performance Optimizations */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Reduce motion for accessibility and performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optimize hover states */
.btn:hover {
    transform: translateY(-2px) translateZ(0);
}

/* Efficient transitions */
.btn {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

/* Typography Utilities */
.text-muted { color: var(--gray-500); }
.text-center { text-align: center; }

/* Background Utilities */
.bg-light { background-color: var(--gray-50); }

/* CSS Variables - Main Website Color Scheme */
:root {
    --card-bg-rgb: 255, 255, 255;
    
    /* Main Website Colors */

    /* RGB Values for transparency */
    --primary-rgb: 42, 95, 110;
    --secondary-rgb: 2, 134, 109;
    --accent-rgb: 255, 179, 71;
    
    /* Color helpers */
    --primary-color: rgb(var(--primary-rgb));
    --secondary-color: rgb(var(--secondary-rgb));
    --accent-color: rgb(var(--accent-rgb));
   
    /* Shadows for consistency */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Layout Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-lg); }

/* Breadcrumb Styles */
.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: -30px 0 var(--spacing-md);
    padding: 0;
}
.breadcrumb-item {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}
.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 1rem;
    color: var(--gray-400);
    font-size: 1.2rem;
    line-height: 1;
}
.breadcrumb-item a {
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}
.breadcrumb-item.active {
    color: #fff;
    background: var(--primary);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
}

/* Page Header */
.page-header {
    position: relative;
    z-index: 1;
    padding: 60px 0 120px;
    background: linear-gradient(135deg,var(--primary-light) 0%,var(--primary-dark) 100%);
    overflow: visible;
    margin: 0;
}
#particles-js { position: absolute; inset: 0; z-index: 1; }
.page-header__content { position: relative; z-index: 2; }
.page-header__lead {
    font-size: clamp(1rem, 1rem + .6vw, 1.1rem);
    line-height: 1.5;
    color: #fff;
    font-weight: 400;
    margin-top: var(--spacing-sm);
    margin-bottom: 10px;
}

.page-header__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.badge-primary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-accent {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.25);
}

.badge i {
    font-size: 0.875rem;
}

.page-header .sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}


.page-header .breadcrumb-list { gap: 0.75rem; }
.page-header .breadcrumb-item {
    color: rgba(255,255,255,0.75);
    font-size: var(--font-size-xs);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}
.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.85);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    transition: background .25s ease, color .25s ease;
}
.page-header .breadcrumb-item a:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}
.page-header .breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 0.75rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    transform: translateY(1px);
}
.page-header .breadcrumb-item.active {
    color: #fff;
    background: rgba(255,255,255,0.18);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.55rem;
}

/* Add spacing between consecutive sections */
.content-section + .content-section {
    margin-top: 0.25rem;
}


.bg-light {
    background: var(--gray-50);
}

.bg-white {
    background: #fff;
}

/* === CTA Section === */
.cta-section {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

/* Reveal on Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.4,1.4,.6,1);
    will-change: opacity, transform;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: none;
}

.feature-tag {
    background: var(--accent-light);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 5px;
}

/* Enhanced Section Title Styling */
.service-detail .section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    text-align: center;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.service-detail .section-title::after {
    content: "";
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.service-detail .section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced Section Spacing */
.service-detail section {
    margin-bottom: 4rem;
}

.service-detail section:last-child {
    margin-bottom: 2rem;
}

/* 🚀 Smart Overview Section - Advanced Diagonal Split Layout */
.service-detail .overview-content { 
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
    border-radius: 1.5rem;
    overflow: hidden;
    margin: 0rem 0;

    box-shadow: 
        0 25px 50px rgba(var(--primary-rgb), 0.12),
        0 12px 24px rgba(var(--secondary-rgb), 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-detail .overview-content:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 30px 60px rgba(var(--primary-rgb), 0.15),
        0 15px 30px rgba(var(--secondary-rgb), 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 🎨 Left Side - Full-Height Background Image */
.service-detail .overview-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 47%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.5s ease;
}
.service-overview-page .overview-content::before {
    background-image: url('../images/sections/general-services-page-overview.jpg');

}
.service-childrens-page .overview-content::before {
    background-image: url('../images/sections/children-support-overview.jpg');

}
.service-consulting-page .overview-content::before {
    background-image: url('../images/sections/consulting-overview-img.jpg');

}
.service-assessment-page .overview-content::before {
    background-image: url('../images/sections/therapist_overview_in_assessment.jpg');
    filter: brightness(1.4) contrast(0.97) sepia(0.05);
    transform: scale(1.02) translateX(-3%);
}

.service-crisis-page .overview-content::before {
    background-image: url('../images/sections/Crisis_support_coordination_gaza.jpg');
    filter: brightness(1.2) contrast(1.1) grayscale(0.15) sepia(0.1);
    transform: scale(1.02) translateX(-3%);
}

.service-group-support-page .overview-content::before {
    background-image: url('../images/sections/group-support-overview.jpg');
    filter: brightness(1.1) contrast(1.05) saturate(1.1);
}
.service-workshops-page .overview-content::before {
    background-image: url('../images/sections/workshops-overview.jpg');
    filter: brightness(1.1) contrast(1.05) saturate(1.1);
}
.service-peer-support-page .overview-content::before {
    background-image: url('../images/sections/peer-support-overview.jpg');
    filter: brightness(1.1) contrast(1.05) saturate(1.1);
}
.wellness-page .overview-content::before {
    background-image: url('../images/sections/wellness-overview.jpg');
    filter: brightness(1.1) contrast(1.05) saturate(1.1);
}
/* ⚡ Advanced Diagonal Separator - Dynamic Visual Flow */
.service-detail .overview-content::after {
    content: '';
    position: absolute;
    left: 42%;
    top: 0;
    width: 12%;
    height: 100%;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 20%,
        rgba(255, 255, 255, 0.85) 40%,
        rgba(255, 255, 255, 0.95) 60%,
        rgba(255, 255, 255, 0.98) 80%,
        white 100%
    );
    z-index: 2;
    transform: skewX(-6deg);
    transform-origin: top;
    filter: blur(0.5px);
    transition: all 0.3s ease;
}

.service-detail .overview-content:hover::after {
    transform: skewX(-8deg) scale(1.02);
    filter: blur(0.3px);
}

/* 🔮 Glass Morphism Content Area */
.service-detail .overview-text-content {
    position: relative;
    z-index: 10;
    grid-column: 1 / -1;
    margin-left: 45%;
    padding: 2rem 2rem 1.5rem 0rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: -15px 0 30px rgba(255, 255, 255, 0.8),
                -30px 0 60px rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}


/* 💫 Professional Typography - Large Bold Headlines */
.service-detail .overview-text h2 { 
    margin: 0 0 1.5rem; 
    font-size: 1.6rem; 
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
    position: relative;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

/* 🎯 Custom Gradient Underline Accent */
.service-detail .overview-text h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--secondary) 0%, 
        var(--accent) 50%, 
        var(--primary) 100%
    );
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[dir="rtl"] .service-detail .overview-text h2::after {
    left: unset;
    right: 0;
}

.service-detail .overview-text:hover h2::after {
    width: 100%;
}

.service-detail .overview-text p { 
    margin: 1rem 0 2rem; 
    font-size: 1.1rem; 
    line-height: 1.7; 
    color: var(--gray-700);
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.service-detail .overview-content:hover .overview-text p {
    opacity: 1;
}

/* 🏆 Enhanced Stat Cards - Multi-Layer Design */
.service-detail .overview-stats { 
    grid-column: 1 / -1;
    display: grid; 
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    position: relative;
}

/* ✨ Interactive Stat Cards with Hover Effects */
.service-detail .stat-item { 
    background: white; 
    border: 1px solid rgba(var(--primary-rgb), 0.1); 
    border-radius: 1rem; 
    padding: 2rem 1.5rem 1.75rem; 
    text-align: center; 
    position: relative; 
    overflow: hidden; 
    box-shadow: 
        0 8px 25px rgba(var(--primary-rgb), 0.08),
        0 3px 10px rgba(var(--secondary-rgb), 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

/* 🎯 Gradient Top Borders - Color-coded Visual Accents */
.service-detail .stat-item::before { 
    content: ""; 
    position: absolute; 
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--secondary) 0%, 
        var(--accent) 50%, 
        var(--primary) 100%
    ); 
    transition: all 0.3s ease;
}

/* 🚀 Advanced Hover Interactions - Cards Lift Up */
.service-detail .stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(var(--primary-rgb), 0.15),
        0 8px 25px rgba(var(--secondary-rgb), 0.1),
        0 0 0 1px rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.service-detail .stat-item:hover::before {
    height: 6px;
    background: linear-gradient(90deg, 
        var(--accent) 0%, 
        var(--primary) 50%, 
        var(--secondary) 100%
    );
}

/* 📊 Modern Stat Typography */
.service-detail .stat-number { 
    font-size: 1.2rem; 
    font-weight: 600; 
    letter-spacing: -0.02em; 
    color: var(--primary-dark); 
    margin-bottom: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
}

.service-detail .stat-item:hover .stat-number {
    color: var(--primary);
    transform: scale(1.05);
}

.service-detail .stat-label { 
    font-size: 0.8rem; 
    letter-spacing: 0.05em; 
    font-weight: 600; 
    color: var(--gray-600); 
    text-transform: uppercase; 
    line-height: 1.3;
    transition: color 0.3s ease;
}

.service-detail .stat-item:hover .stat-label {
    color: var(--gray-700);
}

/* 📱 Smart Responsive Design - Intelligent Adaptive Layout */
@media (max-width: 1024px) {
    .service-detail .overview-content {
        min-height: 350px;
        margin: 2.5rem 0;
    }
    
    .service-detail .overview-text-content {
        padding: 2.25rem 3rem 2rem 3.5rem;
    }
    
    .service-detail .overview-text h2 {
        font-size: 1.8rem;
    }
    
    .service-detail .conditions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* 🖥️ Tablet Layout - Vertical with Diagonal Transition */
@media (max-width: 768px) {
    .page-header__badges {
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .service-detail .overview-content {
        grid-template-columns: 1fr;
        min-height: 500px;
        margin: 2.5rem 0;
    }
    
    /* Image becomes background for entire top section */
    .service-detail .overview-content::before {
        width: 100%;
        height: 60%;
        background-position: center top;
    }
    
    /* Diagonal separator adjusts for vertical layout */
    .service-detail .overview-content::after {
        left: 0;
        top: 55%;
        width: 100%;
        height: 10%;
        transform: skewY(-2deg);
        background: linear-gradient(180deg, 
            transparent 0%, 
            rgba(255, 255, 255, 0.8) 30%,
            rgba(255, 255, 255, 0.95) 70%,
            white 100%
        );
    }
    
    .service-detail .overview-text-content {
        grid-column: 1;
        grid-row: 1;
        margin-top: 55%;
        padding: 2.5rem 2.5rem 2rem;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(25px);
        border-radius: 1.25rem 1.25rem 0 0;
    }
    
    .service-detail .overview-text h2 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .service-detail .overview-text p {
        font-size: 1rem;
        margin: 0.875rem 0 1.5rem;
    }
    
    .service-detail .overview-stats {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }
}

/* 📱 Mobile Layout - Compact Single-Column with Optimized Spacing */
@media (max-width: 480px) {
    .page-header__badges {
        gap: 0.4rem;
        margin-top: 0.75rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .service-detail .overview-content {
        min-height: 450px;
        border-radius: 1.25rem;
        margin: 2rem 0;
    }
    
    .service-detail .overview-content::before {
        height: 55%;
        background-size: 120%;
    }
    
    .service-detail .overview-content::after {
        top: 50%;
        height: 8%;
        transform: skewY(-1.5deg);
    }
    
    .service-detail .overview-text-content {
        margin-top: 50%;
        padding: 2rem 1.75rem 1.75rem;
    }
    
    .service-detail .overview-text h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-detail .overview-text h2::after {
        width: 50px;
        height: 3px;
        bottom: -8px;
    }
    
    .service-detail .overview-text p {
        font-size: 0.95rem;
        margin: 0.75rem 0 1.25rem;
        line-height: 1.6;
    }
    
    .service-detail .overview-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .service-detail .stat-item {
        padding: 1.5rem 1rem 1.25rem;
    }
    
    .service-detail .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .service-detail .stat-label {
        font-size: 0.7rem;
    }
    
    .service-detail .conditions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* 🎯 Smart Overview Actions - Professional CTA Design */
.service-detail .overview-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    padding-top: 0.75rem;
    flex-wrap: wrap;
    position: relative;
}

.service-detail .overview-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 1px;
}

/* 🚀 Enhanced Button Styling */
.service-detail .overview-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.service-detail .overview-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.service-detail .overview-actions .btn:hover::before {
    left: 100%;
}

/* 💎 Primary Button - Gradient Design */
.service-detail .overview-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 
        0 8px 25px rgba(var(--primary-rgb), 0.25),
        0 3px 12px rgba(var(--secondary-rgb), 0.15);
}

.service-detail .overview-actions .btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(var(--primary-rgb), 0.35),
        0 5px 18px rgba(var(--secondary-rgb), 0.2);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

/* 🔷 Secondary Button - Glass Morphism Design */
.service-detail .overview-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--primary-dark);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.1);
}

.service-detail .overview-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
}

/* 🔸 Outline Button - Clean Border Design */
.service-detail .overview-actions .btn-outline {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-detail .overview-actions .btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}

/* Container adjustments for service overview positioning */
.service-overview-page .container:has(.service-overview),
.service-consulting-page .container:has(.service-overview),
.service-assessment-page .container:has(.service-overview),
.service-crisis-page .container:has(.service-overview),
.service-workshops-page .container:has(.service-overview),
.service-peer-support-page .container:has(.service-overview),
.wellness-page .container:has(.service-overview),
.service-childrens-page .container:has(.service-overview),
.service-group-support-page .container:has(.service-overview) {
  margin-top: -100px; /* Move entire container up to interface with page-header */
  position: relative;
  z-index: 40;
}

.service-consulting-page .service-overview .overview-text h2,
.wellness-page .service-overview .overview-text h2,
.service-group-support-page .service-overview .overview-text h2 {
  font-size:clamp(1.5rem,2.4vw,1.2rem);
  margin-bottom:1.05rem;
}




@media (max-width:900px){
  .service-consulting-page .container:has(.service-overview),
  .wellness-page .container:has(.service-overview),
  .service-group-support-page .container:has(.service-overview) {
    margin-top: -180px; /* Adjust container positioning for tablets */
  }
  
  .service-consulting-page .service-overview,
  .wellness-page .service-overview,
  .service-group-support-page .service-overview {
    padding:2.5rem 1.8rem 2.1rem;
  }
}

@media (max-width:600px){
  .service-consulting-page .container:has(.service-overview),
  .wellness-page .container:has(.service-overview),
  .service-group-support-page .container:has(.service-overview) {
    margin-top: -120px; /* Adjust container positioning for mobile */
  }
  
  .service-consulting-page .service-overview,
  .wellness-page .service-overview,
  .service-group-support-page .service-overview {
    padding:2rem 1.25rem 1.75rem;
    border-radius:1.4rem;
  }
}


/* Treatment Approaches - Enhanced Professional Design */
.service-detail .approaches-grid,
.service-detail .tracks-grid,
.service-detail .methods-grid,
.service-detail .outcomes-grid,
.service-detail .groups-grid,
.service-detail .pillars-grid,
.service-detail .formats-grid,
.service-detail .benefits-grid,
.service-detail .conditions-grid { 
    display: grid; 
    gap: 2rem; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    margin-top: 3rem; 
}

/* Force 4-column layout for Treatment Approaches */
.approaches-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    margin-top: 2rem;
}

/* Keep 4 columns on large tablets */
@media (max-width: 1200px) {
    .approaches-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.25rem !important;
    }
}

/* Only reduce to 2 columns on small tablets */
@media (max-width: 900px) {
    .approaches-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

/* Single column only on mobile phones */
@media (max-width: 600px) {
    .approaches-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Enhanced Professional Cards */
.service-detail .approach-card,
.service-detail .track-card,
.service-detail .method-card,
.service-detail .outcome-card,
.service-detail .group-card,
.service-detail .pillar-card,
.service-detail .format-card,
.service-detail .benefit-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.service-detail .approach-card:hover,
.service-detail .track-card:hover,
.service-detail .method-card:hover,
.service-detail .outcome-card:hover,
.service-detail .group-card:hover,
.service-detail .pillar-card:hover,
.service-detail .format-card:hover,
.service-detail .benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.service-detail .approach-card::before,
.service-detail .track-card::before,
.service-detail .method-card::before,
.service-detail .outcome-card::before,
.service-detail .group-card::before,
.service-detail .pillar-card::before,
.service-detail .format-card::before,
.service-detail .benefit-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 12px 12px 0 0;
}

/* Enhanced Professional Icons */
.service-detail .approach-icon,
.service-detail .track-icon,
.service-detail .group-icon,
.service-detail .pillar-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
    position: relative;
}

/* Enhanced Typography */
.service-detail .approach-card h3,
.service-detail .track-card h3,
.service-detail .method-card h3,
.service-detail .outcome-card h3,
.service-detail .group-card h3,
.service-detail .pillar-card h3,
.service-detail .format-card h3,
.service-detail .benefit-card h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
}

.service-detail .approach-card p,
.service-detail .track-card p,
.service-detail .method-card p,
.service-detail .outcome-card p,
.service-detail .group-card p,
.service-detail .pillar-card p,
.service-detail .format-card p,
.service-detail .benefit-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* Enhanced Benefits Lists */
.service-detail .approach-benefits,
.service-detail .track-points,
.service-detail .pillar-points,
.service-detail .group-topics ul,
.service-detail .benefit-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-detail .approach-benefits li,
.service-detail .track-points li,
.service-detail .pillar-points li,
.service-detail .group-topics li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gray-700);
    font-weight: 500;
}

.service-detail .approach-benefits li::before,
.service-detail .track-points li::before,
.service-detail .pillar-points li::before,
.service-detail .group-topics li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.875rem;
    width: 16px;
    height: 16px;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Conditions Grid - Professional Design */
.service-detail .conditions-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 3rem;
}

.service-detail .condition-category {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.service-detail .condition-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-detail .condition-category h3 {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.service-detail .condition-category ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-detail .condition-category li {
    font-size: 0.9rem;
    color: var(--gray-700);
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.service-detail .condition-category li:last-child {
    border-bottom: none;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 1rem;
    display: grid;

}

    .benefits-list li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.benefits-list li i {
    margin-inline-end: 0.8rem; /* Increased spacing for better readability */
    color: var(--primary-dark);
    font-size: 1rem;
}

/* Timeline / Process - Professional Design */
.service-detail .process-timeline {
    margin-top: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-detail .timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-detail .timeline-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-detail .timeline-marker {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.service-detail .timeline-content {
    flex: 1;
}

.service-detail .timeline-content h4 {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.4;
}

.service-detail .timeline-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-600);
}

/* Vertical line connector */
.service-detail .timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 3rem;
    top: 100%;
    width: 2px;
    height: 2rem;
    background: linear-gradient(to bottom, var(--primary), var(--gray-200));
    z-index: 1;
}

[dir="rtl"] .service-detail .timeline-item:not(:last-child)::after {
    left: unset;
    right: 3rem;
}

/* Mobile Timeline */
@media (max-width: 768px) {
    .service-detail .timeline-item {
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .service-detail .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .service-detail .timeline-item:not(:last-child)::after {
        left: 2.5rem;
    }
    }
    
    .service-detail .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .service-detail .timeline-item:not(:last-child)::after {
        left: 2.5rem;
    }

/* Team Highlights / Highlight items - Professional Design */
.service-detail .team-highlights,
.service-detail .getting-started-options,
.service-detail .join-options {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 3rem;
}

.service-detail .highlight-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-detail .highlight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-detail .highlight-item i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 6px;
    background: var(--primary-color);
    color: #fff;
}

.service-detail .highlight-item span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.4;
}

/* Getting Started / Join Cards - Professional Design */
.service-detail .getting-started-card,
.service-detail .join-group-card {
    background: var(--primary-color);
    border-radius: 8px;
    padding: 3rem 2rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 3rem 0;
    text-align: center;
}

.service-detail .getting-started-card h2,
.service-detail .join-group-card h2 {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
}

.service-detail .getting-started-card p,
.service-detail .join-group-card p {
    margin: 0 0 2rem;
    font-size: 1.125rem;
    line-height: 1.6;
    text-align: center;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-detail .option-card {
    background: #ffffff;
    color: var(--gray-800);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-detail .option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-detail .option-card h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: center;
}

.service-detail .option-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-600);
    text-align: center;
}

.service-detail .option-card a {
    align-self: center;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.service-detail .option-card a:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.service-detail .btn-emergency {
    background: linear-gradient(135deg, var(--notice), #dc2626) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.service-detail .btn-emergency:hover {
    background: linear-gradient(135deg, #dc2626, var(--notice)) !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4) !important;
}

.service-detail .btn-secondary {
    background: linear-gradient(135deg, var(--gray-600), var(--gray-700)) !important;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3) !important;
}

.service-detail .btn-secondary:hover {
    background: linear-gradient(135deg, var(--gray-700), var(--gray-800)) !important;
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.4) !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .service-detail .getting-started-card,
    .service-detail .join-group-card {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }
    
    .service-detail .getting-started-card h2,
    .service-detail .join-group-card h2 {
        font-size: 1.75rem;
    }
    
    .service-detail .getting-started-card p,
    .service-detail .join-group-card p {
        font-size: 1rem;
    }
    
    .service-detail .option-card {
        padding: 1.5rem;
    }
    
    .service-detail .section-title {
        font-size: 1.875rem;
    }
    
    .service-detail .approaches-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-detail .conditions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .service-detail .team-highlights {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Expanded CTA Card Styling */
.service-card.cta-card.expanded-cta {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.service-card.cta-card.expanded-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>') repeat;
    opacity: 0.1;
    z-index: 1;
}

.cta-card-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cta-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-icon i {
    font-size: 2.5rem;
    color: white;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.cta-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cta-feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cta-feature-item i {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.cta-feature-item span {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.cta-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.cta-btn {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-btn.btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-btn.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-btn.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

.cta-btn.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.cta-btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.cta-btn.btn-emergency {
    background: var(--notice);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.cta-btn.btn-emergency:hover {
    background: #dc2626;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Responsive Design for Expanded CTA */
@media (max-width: 1024px) {
    .service-card.cta-card.expanded-cta {
        grid-column: span 1;
    }
    
    .cta-features {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cta-card-content {
        padding: 2rem 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-icon {
        width: 60px;
        height: 60px;
    }
    
    .cta-icon i {
        font-size: 2rem;
    }
    
    .cta-feature-item {
        padding: 0.75rem;
    }
    
    .cta-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Peer Support Tag Styling */
.service-card-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.peer-support-tag {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.peer-support-tag span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.peer-support-tag i {
    font-size: 0.7rem;
}

/* Schedule Table */
.service-detail .schedule-table { margin-top:1.6rem; background:#fff; border:1px solid var(--gray-200); border-radius:1.2rem; overflow:hidden; box-shadow:var(--shadow-md); font-size:.9rem; }
.service-detail .schedule-header, .service-detail .schedule-row { display:grid; grid-template-columns:120px 140px 1fr 90px; gap:.5rem; align-items:center; padding:.75rem .9rem; }
.service-detail .schedule-header { background:linear-gradient(90deg,var(--primary-light),var(--primary-dark)); color:#fff; font-weight:700; letter-spacing:.5px; text-transform:uppercase; font-size:.58rem; }
.service-detail .schedule-row { border-top:1px solid var(--gray-200); background:#fff; position:relative; }
.service-detail .schedule-row:nth-child(even) { background:var(--gray-50); }
.service-detail .schedule-status { font-weight:700; letter-spacing:.4px; text-transform:uppercase; }
.service-detail .schedule-status.open { color:var(--secondary); }
.service-detail .schedule-status.waitlist { color:var(--notice); }

/* Group details & topics */
.service-detail .group-details { display:flex; flex-wrap:wrap; gap:.55rem .9rem; margin:.4rem 0 .4rem; font-size:.7rem; letter-spacing:.4px; font-weight:600; }
.service-detail .group-details .detail-item { display:inline-flex; gap:.35rem; align-items:center; padding:.35rem .55rem; background:var(--gray-100); border-radius:.6rem; }
.service-detail .group-topics h4 { margin:.4rem 0 .3rem; font-size:.8rem; letter-spacing:.4px; font-weight:700; color:var(--primary-dark); }
.service-detail .group-topics ul { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:.3rem; }
.service-detail .group-topics li { font-size:.8rem; line-height:1.3; color:var(--gray-600); }

/* RTL Adjustments */
html[dir="rtl"] .service-detail .approach-benefits li,
html[dir="rtl"] .service-detail .track-points li,
html[dir="rtl"] .service-detail .pillar-points li,
html[dir="rtl"] .service-detail .group-topics li { padding-left:0; padding-right: 20px; }
html[dir="rtl"] .service-detail .approach-benefits li::before,
html[dir="rtl"] .service-detail .track-points li::before,
html[dir="rtl"] .service-detail .pillar-points li::before,
html[dir="rtl"] .service-detail .group-topics li::before { left:auto; right:0; }
html[dir="rtl"] .service-detail .timeline-item { direction:rtl; }
html[dir="rtl"] .service-detail .timeline-content p { direction:rtl; }

/* How to Join Process Enhancements */
.service-group-support-page .how-to-join .join-process {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  position: relative;
  counter-reset: joinStep;
}
.service-group-support-page .how-to-join .process-step {
  position: relative;
  background: linear-gradient(145deg, rgba(var(--card-bg-rgb),0.75), rgba(var(--primary-rgb),0.06));
  border: 1px solid var(--gray-200);
  padding: 1.35rem 1.15rem 1.3rem;
  border-radius: 1.2rem;
  box-shadow: 0 10px 28px -10px rgba(0,0,0,.45), 0 4px 14px -4px rgba(0,0,0,.14);
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  transition: transform .45s var(--ease-out-quart, cubic-bezier(.16,.8,.24,1)), box-shadow .45s;
  overflow: hidden;
}
.service-group-support-page .how-to-join .process-step::before {
  counter-increment: joinStep;
  content: counter(joinStep);
  position: absolute;
  top: -18px; left: 14px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  font: 600 1.22rem/54px var(--font-stack, 'Poppins', system-ui, sans-serif);
  text-align: center;
  box-shadow: 0 6px 18px -4px rgba(var(--primary-rgb),.5);
  z-index: 2;
}
.service-group-support-page .how-to-join .process-step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(var(--accent-rgb),0.25), transparent 65%);
  mix-blend-mode: overlay;
  opacity: .55;
  pointer-events: none;
}
.service-group-support-page .how-to-join .process-step h4 { margin-top: 1.9rem; font-size: 1.05rem; letter-spacing: .5px; }
.service-group-support-page .how-to-join .process-step p { font-size: .92rem; line-height: 1.45; }
.service-group-support-page .how-to-join .process-step:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.45), 0 8px 24px -10px rgba(0,0,0,.24);
}
.service-group-support-page .how-to-join .process-step:active { transform: translateY(-4px) scale(1.01); }
@media (min-width:900px){
  html[dir="rtl"] .service-group-support-page .how-to-join .process-step::before { left:50%; right:auto; }
}
@media (max-width:600px){
  .service-group-support-page .how-to-join .join-process { gap: 1.4rem; }
  .service-group-support-page .how-to-join .process-step { padding: 1.15rem 1rem 1.1rem; }
  .service-group-support-page .how-to-join .process-step::before { width:46px; height:46px; line-height:46px; font-size:1rem; top:-14px; left:12px; }
  .service-group-support-page .how-to-join .process-step h4 { margin-top:1.6rem; }
}
@media (prefers-color-scheme: dark){
  .service-group-support-page .how-to-join .process-step { background: linear-gradient(145deg, rgba(var(--primary-rgb),0.40), rgba(var(--accent-rgb),0.32)); border-color:#2c3942; }
  .service-group-support-page .how-to-join .join-process::before { opacity:.55; }
}

/* Join Group CTA refinement */
.service-group-support-page .join-group .join-group-card {
  border: 1px solid var(--gray-200);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  position: relative;
  overflow: hidden;
}
.service-group-support-page .join-group .join-group-card::before {
  content:""; position:absolute; inset:0; background:radial-gradient(circle at 15% 25%, rgba(var(--primary-rgb),0.25), transparent 65%), radial-gradient(circle at 85% 75%, rgba(var(--accent-rgb),0.30), transparent 70%); mix-blend-mode: overlay; }
@media (prefers-color-scheme: dark){
  .service-group-support-page .join-group .join-group-card { background: linear-gradient(135deg, rgba(var(--primary-rgb),0.32), rgba(var(--accent-rgb),0.34)); border-color:#2c3942; }
}

/* RTL overrides: values list & highlight cards */
html[dir="rtl"] .values-list { padding-right: var(--spacing-lg); padding-left: 0; }
html[dir="rtl"] .value-item { border-right: 4px solid var(--primary-light); border-left: 0; }
html[dir="rtl"] .value-item i { margin-left: var(--spacing-sm); margin-right: 0; }
html[dir="rtl"] .value-item:hover { transform: translateX(-4px); border-right-color: var(--accent); }

html[dir="rtl"] .highlight-card { padding-right: calc(var(--spacing-lg) + var(--highlight-icon-size) + var(--highlight-icon-gap)); padding-left: var(--spacing-lg); }
html[dir="rtl"] .highlight-card__icon { right: var(--spacing-lg); left: auto; }
html[dir="rtl"] .highlight-card__text { margin-right: calc(-5 * var(--highlight-text-shift)); margin-left: 0; }
html[dir="rtl"] .highlight-card__more { margin-right: .35rem; margin-left: 0; }

/* War Trauma Section Styles */
.war-trauma-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.war-trauma-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.subsection-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.subsection-title i {
    color: var(--accent);
    font-size: 1.5rem;
}

.subsection-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

.approach-section {
    margin-bottom: 4rem;
}

/* ==========================================================================
   CLEAN APPROACHES CARDS - 4 COLUMN GRID
   ========================================================================== */

/* Approaches Grid - 4 Column Layout with proper spacing for hover effects */
.approaches-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    margin-top: 2rem;
    padding: 1rem 0 2rem 0; /* Add padding to prevent clipping on hover */
    overflow: visible; /* Ensure hover effects are visible */
}

/* Approach Card Base */
.approaches-grid .approach-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0.5rem; /* Add margin to prevent clipping */
    height: 100%;
}

.approaches-grid .approach-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 12px 12px 0 0;
    transition: all 0.4s ease;
}

.approaches-grid .approach-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
    z-index: 10; /* Ensure hovered card appears above others */
}



/* Card Header */
.approaches-grid .approach-card-header {
    margin: 0;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.approaches-grid .approach-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.approaches-grid .approach-card:hover .approach-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.approaches-grid .approach-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin:    0 0 0.5rem 0;
    line-height: 1.3;
}

.approaches-grid .approach-subtitle {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Card Content */
.approaches-grid .approach-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem;
}

.approaches-grid .approach-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6b7280;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.approaches-grid .approach-benefits-section {
    margin-top: auto;
    padding: 0;
}

.approaches-grid .approach-benefits-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.approaches-grid .approach-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.approaches-grid .approach-benefits li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #374151;
    font-weight: 500;
}

.approaches-grid .approach-card:hover .approach-benefits li {
    transform: translateX(4px);
}

.approaches-grid .approach-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.approaches-grid .approach-card:hover .approach-benefits li::before {
    background: #059669;
    transform: scale(1.2);
}

/* Card Footer */
.approaches-grid .approach-footer {
    margin: 0;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.approaches-grid .approach-duration {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.approaches-grid .approach-learn-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.approaches-grid .approach-learn-more:hover {
    color: #1e40af;
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

.approaches-grid .approach-learn-more::after {
    content: "→";
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.approaches-grid .approach-learn-more:hover::after {
    transform: translateX(4px);
}

/* Therapy Type Variants - Website Color Scheme */
.approaches-grid .approach-card.trauma .approach-icon {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.approaches-grid .approach-card.trauma::before {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

.approaches-grid .approach-card.cbt .approach-icon {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}
.approaches-grid .approach-card.cbt::before {
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
}

.approaches-grid .approach-card.humanistic .approach-icon {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
}
.approaches-grid .approach-card.humanistic::before {
    background: linear-gradient(90deg, var(--secondary-dark), var(--secondary));
}

.approaches-grid .approach-card.accent .approach-icon {
    background: linear-gradient(135deg, #d97706, var(--accent));
}
.approaches-grid .approach-card.accent::before {
    background: linear-gradient(90deg, #d97706, var(--accent));
}

/* Responsive Design */
@media (max-width: 1200px) {
    .approaches-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.25rem !important;
    }
}

@media (max-width: 900px) {
    .approaches-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 600px) {
    .approaches-grid {
        grid-template-columns: 1fr !important;
    }
}

.approach-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.approach-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.programs-section {
    margin-bottom: 2rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.program-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.program-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.program-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.program-content h4 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.program-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ==========================================================================
   ONLINE SERVICES SECTION
   ========================================================================== */

.online-services-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
}

.online-services-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.05), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.05), transparent 50%);
    pointer-events: none;
}

.online-services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.online-services-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.online-services-text {
    flex: 1;
}

.online-services-text .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.online-services-text .section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.6;
}

.online-services-text > p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 3rem;
}

/* Online Features Grid */
.online-features {
   
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.online-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.online-features .feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.online-features .feature-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.online-features .feature-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.online-features .feature-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

/* Portal Card */
.online-services-portal {
    position: relative;
}

.portal-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.portal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px 20px 0 0;
}

.portal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.portal-header i {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.portal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.3;
}

.portal-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 2rem;
    text-align: center;
}

.portal-features {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.portal-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-700);
    font-weight: 500;
}

.portal-features li i {
    color: var(--secondary-color);
    font-size: 1rem;
    width: 20px;
    flex-shrink: 0;
}

/* Portal Action Buttons */
.portal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.portal-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.portal-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.portal-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
}

.portal-actions .btn-outline {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.portal-actions .btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Online Stats */
.online-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 16px 16px 0 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .online-services-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .online-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .online-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .online-services-section {
        padding: 3rem 0;
    }
    
    .online-services-container {
        padding: 0 1rem;
    }
    
    .online-services-text .section-title {
        font-size: 2rem;
    }
    
    .portal-card {
        padding: 2rem 1.5rem;
    }
    
    .online-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portal-actions {
        gap: 0.75rem;
    }
    
    .portal-actions .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .online-services-text .section-title {
        font-size: 1.75rem;
    }
    
    .online-features .feature-item {
        padding: 1.25rem;
    }
    
    .portal-card {
        padding: 1.5rem 1rem;
    }
    
    .portal-header i {
        color: #dc2626;
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Crisis Page Specific Styling */
.service-crisis-page .overview-content {
    border: 2px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.1);
}

.service-crisis-page .stat-item {
    border-left: 4px solid #dc2626;
}

.service-crisis-page .stat-number {
    color: #dc2626;
    text-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

.service-crisis-page .btn-primary {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
    border: 2px solid #dc2626 !important;
}

.service-crisis-page .btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626) !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4) !important;
}

.service-crisis-page .portal-card {
    border: 2px solid rgba(220, 38, 38, 0.2);
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.9), rgba(255, 255, 255, 0.95));
}

.service-crisis-page .portal-header i {
    color: #dc2626;
    font-size: 2.5rem;
}

.service-crisis-page .approach-card.trauma {
    border-color: #dc2626;
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.8), rgba(255, 255, 255, 0.9));
}

.service-crisis-page .approach-card.trauma .approach-icon {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.service-crisis-page .condition-category {
    border-left: 4px solid #dc2626;
}

.service-crisis-page .condition-category h3 {
    color: #dc2626;
}

.service-crisis-page .timeline-marker {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border: 3px solid #fef2f2;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.service-crisis-page .online-stats .stat-card {
    border-top: 4px solid #dc2626;
}

@keyframes pulse-emergency {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5), 0 0 20px rgba(239, 68, 68, 0.2);
    }
}

/* Gaza theme accent colors */
.service-crisis-page .feature-item i {
    color: #dc2626;
}

.service-crisis-page .highlight-item i {
    color: #dc2626;
}

.service-crisis-page .getting-started-card {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.9), rgba(255, 255, 255, 0.95));
    border: 2px solid rgba(220, 38, 38, 0.1);
}

/* Emergency accessibility enhancements */
.service-crisis-page .btn-emergency {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Simplified Getting Help Section */
.simple-help-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.8), rgba(255, 255, 255, 0.9));
    margin: 3rem 0;
}

.simple-help-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.simple-help-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 1rem;
}

.help-description {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.help-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.help-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 200px;
    justify-content: center;
}

.help-btn.emergency {
    background: #dc2626;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.help-btn.emergency:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.help-btn.primary {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.help-btn.primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.help-btn.secondary {
    background: #6b7280;
    color: white;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.help-btn.secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4);
}

.help-btn i {
    font-size: 1.125rem;
}

/* Responsive design for simplified help section */
@media (max-width: 768px) {
    .simple-help-content h2 {
        font-size: 1.875rem;
    }
    
    .help-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .help-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .simple-help-section {
        padding: 2rem 0;
    }
    
    .simple-help-content h2 {
        font-size: 1.5rem;
    }
    
    .help-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .help-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Credentials Section Styling */
.credentials-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(147, 197, 253, 0.05) 100%);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.credential-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.credential-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.credential-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
}

.credential-card:hover::before {
    opacity: 1;
}

.credential-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.credential-icon::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.credential-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.credential-card:hover .credential-icon {
    transform: scale(1.1);
}

.credential-card:hover .credential-icon::after {
    inset: 2px;
}

.credential-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.credential-card p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ===== SERVICE CARDS SECTION ===== */

.services-cards-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.services-cards-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-cards-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.services-cards-section .section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Cards Grid */
.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Individual Service Card */
.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s var(--ease-out-quart);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Emergency Card Special Styling */
.service-card.emergency-card {
    border: 2px solid var(--notice);
    background: linear-gradient(135deg, #fff 0%, #fef7f7 100%);
}

.service-card.emergency-card .service-card-overlay.emergency {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
}

/* Service Card Image */
.service-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--ease-out-quart);
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 95, 110, 0.8), rgba(2, 134, 109, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out-quart);
}

.service-card:hover .service-card-overlay {
    opacity: 1;
}

.service-card-overlay i {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Service Card Content */
.service-card-content {
    padding: 2rem;
}

.service-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-card-description {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.service-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-100);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
}

.service-feature.emergency {
    background: #fef7f7;
    color: var(--notice);
}

.service-feature i {
    font-size: 0.75rem;
    color: var(--secondary);
}

.service-feature.emergency i {
    color: var(--notice);
}

/* Service Card Footer */
.service-card-footer {
    padding: 0 2rem 2rem;
}

.service-card-footer .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s var(--ease-out-quart);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.service-card-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.service-card-footer .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 95, 110, 0.3);
}

.service-card-footer .btn-emergency {
    background: linear-gradient(135deg, var(--notice), #dc2626);
    color: white;
}

.service-card-footer .btn-emergency:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Services CTA Section */
.services-cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-quart);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.cta-actions .btn-primary {
    background: white;
    color: var(--primary);
    border: 2px solid white;
}

.cta-actions .btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-actions .btn-emergency {
    background: var(--notice);
    color: white;
    border: 2px solid var(--notice);
}

.cta-actions .btn-emergency:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive Design for Service Cards */
@media (max-width: 768px) {
    .services-cards-section {
        padding: 4rem 0;
    }
    
    .services-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card-content {
        padding: 1.5rem;
    }
}

/* RTL: Add spacing between text and icon for group-topics */
html[dir="rtl"] .service-detail .group-topics li {
    padding-right: 18px; /* Increased spacing for better readability */
}

/* ============================================
   FAQ ACCORDION SECTION - Enhanced Interactive Design
   ============================================ */

/* FAQ Container */
.service-detail .faq-accordion {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Item Container */
.service-detail .faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-detail .faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* FAQ Question (Clickable Header) */
.service-detail .faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    position: relative;
    user-select: none;
}

.service-detail .faq-question:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.service-detail .faq-question::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-detail .faq-item.active .faq-question::before {
    opacity: 1;
}

/* FAQ Question Title */
.service-detail .faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.4;
    flex: 1;
    padding-right: 1rem;
    transition: color 0.3s ease;
}

/* FAQ Icon */
.service-detail .faq-icon {
    color: var(--primary-color);
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Active State Styling */
.service-detail .faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.service-detail .faq-item.active .faq-question {
    border-bottom-color: #e2e8f0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.service-detail .faq-item.active .faq-question h4,
.service-detail .faq-item.active .faq-icon {
    color: white;
}

/* FAQ Answer (Expandable Content) */
.service-detail .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    background: white;
}

.service-detail .faq-item.active .faq-answer {
    max-height: 400px;
    padding: 1.5rem 2rem 2rem;
}

.service-detail .faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-600);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.service-detail .faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-detail .faq-accordion {
        margin-top: 2rem;
        gap: 0.75rem;
    }
    
    .service-detail .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .service-detail .faq-question h4 {
        font-size: 1rem;
        padding-right: 0.75rem;
    }
    
    .service-detail .faq-item.active .faq-answer {
        padding: 1.25rem 1.5rem 1.75rem;
    }
    
    .service-detail .faq-answer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .service-detail .faq-question {
        padding: 1rem 1.25rem;
    }
    
    .service-detail .faq-question h4 {
        font-size: 0.95rem;
    }
    
    .service-detail .faq-item.active .faq-answer {
        padding: 1rem 1.25rem 1.5rem;
    }
}

/* Mobile Overview Services Content Expansion */
@media (max-width: 768px) {
    .service-overview,
    .service-detail {
        width: 100% !important;
        padding: 0 !important;
        margin: 20px 0 40px 0 !important;
    }
    
    .service-overview .overview-content,
    .service-detail .overview-content {
        width: 100% !important;
        min-height: 800px !important;
        margin: 0 !important;
        border-radius: 20px !important;
        overflow: visible !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    }
    
    .service-overview .overview-text-content,
    .service-detail .overview-text-content {
        width: 100% !important;
        padding: 50px 30px 40px 30px !important;
        margin: 0 !important;
        margin-top: 40% !important;
        min-height: 500px !important;
        background: rgba(255,255,255,0.98) !important;
        border-radius: 20px 20px 0 0 !important;
    }
    
    .service-overview .overview-text,
    .service-detail .overview-text {
        width: 100% !important;
        margin-bottom: 40px !important;
    }
    
    .service-overview .overview-text h2,
    .service-detail .overview-text h2 {
        font-size: 32px !important;
        margin-bottom: 25px !important;
        line-height: 1.2 !important;
        color: #2a5f6e !important;
    }
    
    .service-overview .overview-text p,
    .service-detail .overview-text p {
        font-size: 20px !important;
        line-height: 1.7 !important;
        margin-bottom: 20px !important;
        color: #333 !important;
    }
    
    .service-overview .overview-stats,
    .service-detail .overview-stats {
        width: 100% !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 40px !important;
        padding-top: 30px !important;
        border-top: 3px solid #f0f0f0 !important;
    }
    
    .service-overview .stat-item,
    .service-detail .stat-item {
        padding: 25px 15px !important;
        text-align: center !important;
        background: #f8f9fa !important;
        border-radius: 15px !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    }
    
    .service-overview .stat-number,
    .service-detail .stat-number {
        font-size: 28px !important;
        font-weight: bold !important;
        color: #2a5f6e !important;
        margin-bottom: 10px !important;
        display: block !important;
    }
    
    .service-overview .stat-label,
    .service-detail .stat-label {
        font-size: 16px !important;
        color: #666 !important;
        line-height: 1.4 !important;
    }
    
    /* Expand Page Header for Breadcrumb Visibility */
    .page-header {
        padding: 80px 0 120px 0 !important;
        min-height: 250px !important;
    }
    
    .page-header__content {
        padding: 30px 0 !important;
    }
    
    .breadcrumb-nav {
        margin-bottom: 15px !important;
        padding: 8px 0 !important;
    }
    
    .breadcrumb-list {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .breadcrumb-item {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 13px !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .breadcrumb-item a {
        color: white !important;
        text-decoration: none !important;
        padding: 4px 8px !important;
        border-radius: 4px !important;
        background: rgba(255, 255, 255, 0.15) !important;
        font-size: 13px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
    }
    
    .breadcrumb-item.active {
        color: white !important;
        background: rgba(255, 255, 255, 0.25) !important;
        padding: 4px 8px !important;
        border-radius: 4px !important;
        font-weight: 600 !important;
        font-size: 13px !important;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        content: '›' !important;
        margin-left: 6px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 14px !important;
    }
    
    .breadcrumb-item i {
        font-size: 11px !important;
        margin-right: 4px !important;
    }
    
    .page-header__lead {
        font-size: 20px !important;
        line-height: 1.6 !important;
        margin: 25px 0 !important;
        color: white !important;
    }
    
    /* Service Cards Mobile Styles */
    .services-cards-section {
        margin-top: 60px !important;
        padding: 0 15px !important;
    }
    
    .services-cards-section .section-header {
        margin-bottom: 40px !important;
    }
    
    .services-cards-section .section-title {
        font-size: 32px !important;
        margin-bottom: 20px !important;
        color: #2a5f6e !important;
    }
    
    .services-cards-section .section-subtitle {
        font-size: 18px !important;
        line-height: 1.6 !important;
        color: #666 !important;
    }
    
    .services-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        margin-top: 40px !important;
    }
    
    .service-card {
        margin: 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .service-card-image {
        height: 180px !important;
    }
    
    .service-card-content {
        padding: 20px !important;
    }
    
    .service-card-title {
        font-size: 22px !important;
        margin-bottom: 15px !important;
        line-height: 1.3 !important;
    }
    
    .service-card-description {
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }
    
    .service-card-features {
        gap: 10px !important;
        margin-bottom: 20px !important;
    }
    
    .service-feature {
        font-size: 14px !important;
        padding: 8px 12px !important;
    }
    
    .service-card-footer {
        padding: 0 20px 20px !important;
    }
    
    .service-card-footer .btn {
        padding: 15px 20px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
    }
}