/* Case Study Page Styles */
.case-study-page {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

.ls-1 { letter-spacing: 1px; }

/* Custom Glow Buttons */
.btn-orange-glow {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.5);
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
}
.btn-orange-glow:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(249, 115, 22, 0.6);
}

.btn-glow {
    box-shadow: 0 10px 20px -5px rgba(13, 110, 253, 0.4);
    transition: all 0.3s ease;
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(13, 110, 253, 0.5);
}

/* Hero Banner */
.cs-hero-banner.parallax-banner {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    padding: 120px 0 100px; /* Restoring larger padding for parallax impact */
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 32, 58, 0.75); /* Deep blue overlay with transparency */
    z-index: 1;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
    text-align: center;
}
.hero-desc {
    font-size: 1.1rem;
    color: #f1f5f9;
    max-width: 550px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.hero-bg-elements {
    display: none; /* Hide glow circles for a cleaner look as per design */
}

/* Stats Row */
.cs-stats-row {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
.stats-container {
    padding: 30px 15px;
}
.stat-item {
    border-right: 1px solid #e9ecef;
}
.stat-item:last-child {
    border-right: none;
}
@media (max-width: 768px) {
    .stat-item {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 15px 0;
    }
    .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}
.stat-num {
    font-size: 2.8rem;
    font-weight: 900;
    color: #1a2533;
    margin-bottom: 5px;
    letter-spacing: -1px;
    font-family: 'Inter', sans-serif;
}
.stat-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Project Cards */
.cs-projects-section {
    background-color: #fcfcfc;
}
.filter-btn {
    background: white;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.filter-btn:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}
.filter-btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.cs-project-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.cs-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.cs-project-card .card-img-top {
    height: 220px;
    object-fit: cover;
}
.btn-readmore {
    display: inline-block;
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid rgba(13,110,253,0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-readmore:hover {
    background: #0d6efd;
    color: white;
}

/* Pagination */
.cs-pagination .page-link {
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 4px;
    color: #495057;
    border: none;
    font-weight: 600;
    background: #f8f9fa;
    text-decoration: none;
}
.cs-pagination .page-item.active .page-link {
    background: #0d6efd;
    color: white;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}
.cs-pagination .page-link:hover:not(.border-0) {
    background: #e9ecef;
}

/* Strategy CTA */
.cs-strategy-cta {
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
}
.strategy-title {
    color: #1e3a8a;
    font-size: 2.2rem;
}

/* Testimonials */
.cs-testimonial-card {
    transition: all 0.35s ease;
    border-bottom: 3px solid transparent;
}
.cs-testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(37, 99, 235, 0.08), 0 8px 20px rgba(37, 99, 235, 0.12) !important;
    border-bottom-color: #2563eb;
}

/* Sustain Section */
.cs-check-list li {
    font-size: 1.1rem;
    color: #495057;
}
.cs-feature-box {
    transition: all 0.3s ease;
}
.cs-feature-box:hover {
    background: #0d6efd;
}
.cs-feature-box:hover h4, .cs-feature-box:hover i {
    color: white !important;
}

/* Animation classes */
.cs-item {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, box-shadow 0.4s ease;
}

/* Sporty Hover Effects */
.cs-project-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent !important;
}
.cs-project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(13, 110, 253, 0.15);
    border-color: rgba(13, 110, 253, 0.2) !important;
}

/* Scroll Reveal Animations */
.cs-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cs-reveal.cs-active {
    opacity: 1;
    transform: translateY(0);
}
.cs-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cs-reveal-left.cs-active {
    opacity: 1;
    transform: translateX(0);
}
.cs-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cs-reveal-right.cs-active {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Chart Carousel Adjustments */
@media (max-width: 768px) {
    #chartPrevBtn, #chartNextBtn {
        display: none !important;
    }
    
    .chart-carousel {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding-bottom: 10px; /* Optional padding for easier touch */
    }
    
    .chart-carousel::-webkit-scrollbar {
        display: none; /* Safari/Chrome */
    }
    
    #chartCarouselInner {
        transform: none !important;
        transition: none !important;
    }
    
    .chart-slide {
        scroll-snap-align: center;
        width: 90% !important; /* Show a bit of the next slide */
        margin: 0 auto;
    }
    
    .chart-slide:not(:last-child) {
        margin-right: 15px; /* Gap between slides */
    }

    .chart-box {
        min-height: auto !important;
        padding: 0 !important;
    }
    
    .chart-box img {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        object-fit: contain !important;
    }
    
    /* Strategy CTA Stat Cards Mobile Fixes */
    .cs-strategy-cta .col-lg-6 > div {
        gap: 12px !important;
    }
    .cta-stat-card {
        padding: 20px 12px !important;
        border-radius: 16px !important;
    }
    .cta-stat-card > div:nth-child(1) {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 12px !important;
    }
    .cta-stat-card > div:nth-child(2) {
        font-size: 1.6rem !important; /* Prevent text wrapping */
    }
    .cta-stat-card > div:nth-child(3) {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        letter-spacing: 0px !important;
    }
}
