/* =========================================
   CASE STUDY: HERO BANNER & STATS
========================================= */
.our-solutions-banner {
    padding-bottom: 6rem;
}

.cs-top-kicker {
    font-size: 1.15rem;
    color: #333333;
    font-weight: 500;
    margin-bottom: 2rem;
}

.cs-stats-row {
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
    flex-wrap: nowrap !important;
}

.cs-stat-col {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 0 1.8rem !important;
}

.cs-stat-col:first-child {
    padding: 0 1.8rem 0 0 !important;
}

.cs-stat-col:not(:last-child) {
    border-right: 1.5px solid #dcdcdc;
}

.cs-stat-number {
    font-size: 2.8rem !important;
    font-weight: 600 !important;
    color: #3b3b3b !important;
    letter-spacing: -1px !important;
    margin-bottom: 4px !important;
    line-height: 1 !important;
}

.cs-stat-label {
    font-size: 14px !important;
    color: #6a6a6a !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
    max-width: 130px !important;
    margin-bottom: 0 !important;
}

.cs-btn-contact {
    display: inline-block;
    background-color: #d32f2f;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.cs-btn-contact:hover {
    background-color: #b71c1c;
    color: #ffffff;
}

/* =========================================
   CASE STUDY: HERO PROJECT DETAILS (RIGHT)
========================================= */
.cs-hero-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.cs-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #eaeaea;
}

.cs-project-details-row {
    margin: 0;
    background-color: #fafafa;
    border-top: 1px solid #eaeaea;
    align-items: flex-start !important;
}

.cs-project-details-row > .cs-detail-col {
    flex: 0 0 33.3333% !important;
    max-width: 33.3333% !important;
    width: 33.3333% !important;
}

.cs-project-details-row > .cs-detail-col:nth-child(2) {
    padding-right: 0.75rem !important; 
}

.cs-detail-col {
    padding: 1.5rem 1rem;
}

.cs-detail-col:not(:last-child) {
    border-right: 1px solid #eaeaea;
}

.cs-detail-subtitle {
    font-size: 0.7rem !important;
    color: #d32f2f !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    margin-bottom: 0.4rem !important;
    letter-spacing: 0.5px !important;
}

.cs-detail-value {
    font-size: 0.85rem !important;
    color: #444444 !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
}

.cs-testimonials-section { 
    background-color: #ffffff !important; 
    padding-top: 0.5rem !important;
    padding-bottom: 6rem !important; 
    overflow: hidden !important; 
}

/* =========================================
   CASE STUDY: CORE SECTIONS (GENERAL)
========================================= */
.cs-overview-section,
.cs-challenge-section,
.cs-features-section,
.cs-tech-stack-section,
.cs-result-section {
    background-color: #f9f9f9 !important;
}

.cs-solution-section {
    background-color: #ffffff !important;
}

.cs-overview-section,
.cs-challenge-section,
.cs-solution-section,
.cs-features-section {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.cs-features-section {
    padding-bottom: 4rem !important;
}

.cs-result-section {
    padding-bottom: 6rem !important;
}

.cs-tech-stack-section {
    padding-top: 4rem !important;
    padding-bottom: 6rem !important;
}

.cs-overview-kicker,
.challenge-req-heading {
    color: #d32f2f !important;
    margin-bottom: 1.2rem !important;
}

.cs-overview-kicker {
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.challenge-req-heading {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #555555 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 1.5rem !important;
}

.cs-overview-heading,
.tech-stack-heading {
    font-weight: 500 !important;
    color: #1a1a1a !important;
    letter-spacing: -0.5px !important;
}

.cs-overview-heading {
    font-size: 2.0rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
}

.tech-stack-heading {
    font-size: 2.2rem !important;
    font-weight: 600 !important;
    color: #444444 !important;
    margin-bottom: 2.5rem !important;
    text-align: left !important;
}

.cs-overview-content p {
    font-size: 1.1rem !important;
    color: #444444 !important;
    line-height: 1.7 !important;
    margin-bottom: 1.5rem !important;
}

.cs-overview-content p:last-child {
    margin-bottom: 0 !important;
}

/* =========================================
   CASE STUDY: COMPONENT CARDS (Challenge & Result)
========================================= */
.req-card,
.result-card {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.01) !important;
}

.req-card {
    background-color: #fafafa !important;
    padding: 1rem 1rem !important;
    height: 100% !important;
}

.result-card {
    background-color: #ffffff !important;
    padding: 1.2rem 1.5rem !important;
    margin-bottom: 1rem !important;
}

.result-card:last-child {
    margin-bottom: 0 !important;
}

.req-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    background-color: #fdeded !important; 
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 1rem !important;
}

.req-dot {
    width: 8px !important;
    height: 8px !important;
    background-color: #d32f2f !important;
    border-radius: 50% !important;
}

.result-icon-wrapper {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 1.2rem !important;
}

.result-icon-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.req-text,
.result-text {
    font-size: 0.90rem !important;
    color: #444444 !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

/* =========================================
   CASE STUDY: SOLUTION IMAGE
========================================= */
.solution-image-wrapper {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid #eaeaea !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
    margin-bottom: 2rem !important;
}

.solution-image-wrapper img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* =========================================
   CASE STUDY: FEATURES GRID
========================================= */
.feature-card {
    background-color: #fbfbfb !important;
    border: 1px solid #eaeaea !important;
    border-radius: 16px !important;
    padding: 1.5rem 1.5rem 2rem !important;
    height: 100% !important;
    transition: box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.feature-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.04) !important;
}

.feature-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
}

.feature-number {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: #d32f2f !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.feature-icon-wrapper {
    width: 40px !important;
    height: 40px !important;
    background-color: #fdeded !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.feature-icon-wrapper img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
}

.feature-title {
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.2px !important;
}

.feature-desc {
    font-size: 0.90rem !important;
    color: #555555 !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

/* =========================================
   CASE STUDY: TECHNOLOGY STACK
========================================= */
.tech-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
}

.tech-icon-box {
    width: 60px !important;
    height: 60px !important;
    background-color: #f1f1f1 !important;
    border: 1px solid #eaeaea !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0.8rem !important;
    padding: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important;
}

.tech-icon-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.tech-name {
    font-size: 0.85rem !important;
    color: #6a6a6a !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

/* =========================================
   DESKTOP SPECIFIC RULES
========================================= */
@media screen and (min-width: 992px) {
    /* Widen Challenge right column */
    .cs-challenge-section .col-lg-7 {
        margin-left: -0.5rem !important; 
        flex: 0 0 calc(58.333333% + 0.5rem) !important; 
        max-width: calc(58.333333% + 0.5rem) !important;
    }
    
    /* Tech Grid Layout */
    .tech-swiper {
        overflow: visible !important;
    }
    .desktop-tech-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        transform: none !important;
        width: 100% !important;
    }
    .desktop-tech-slide {
        width: auto !important; 
        flex: 1 1 0px !important;
        margin: 0 !important;
    }
}

/* =========================================
   MOBILE & TABLET FIXES (Max 991px)
========================================= */
@media screen and (max-width: 991px) {
    
    /* Generalized Section Padding */
    .cs-overview-section,
    .cs-solution-section,
    .cs-features-section,
    .cs-result-section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .cs-challenge-section {
        padding-bottom: 4rem !important;
    }

    .cs-tech-stack-section {
        padding-top: 2rem !important;
        padding-bottom: 4rem !important;
    }

    /* Generalized Headings */
    .cs-overview-heading,
    .tech-stack-heading {
        font-size: 1.8rem !important;
        margin-bottom: 2rem !important;
    }

    .tech-stack-heading {
        text-align: center !important;
    }

    /* Mobile Stat Rows */
    .cs-stats-row {
        flex-wrap: wrap !important;
        justify-content: center !important; 
        row-gap: 2rem !important; 
    }

    .cs-stat-col {
        text-align: center !important;
        padding: 0 1.5rem !important;
    }

    .cs-stat-label {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 160px !important;
    }

    /* Component Card Fixes */
    .feature-card {
        padding: 2rem 1.5rem !important;
    }

    /* Mobile Tech Swiper continuous scroll */
    .tech-swiper {
        overflow: hidden !important;
    }

    .tech-swiper .swiper-wrapper {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        transition-timing-function: linear !important; 
    }

    .tech-swiper .swiper-slide {
        display: flex !important;
        justify-content: center !important;
    }
}

/* =========================================
   SMALL PHONE BANNER FIXES (Max 768px)
========================================= */
@media screen and (max-width: 768px) {
    
    .our-solutions-banner .col-lg-6.text-start {
        text-align: center !important;
    }
    
    .our-solutions-banner a[href="#contact"] {
        display: block !important;
        max-width: 220px !important;
        margin: 2rem auto 0 !important;
    }

    .our-solutions-banner .row.mt-4.mb-5 {
        justify-content: center !important;
    }
    
    /* Stats column stacked border */
    .our-solutions-banner .col-auto {
        flex: 0 0 100% !important; 
        width: 100% !important;
        padding: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid #eaeaea !important;
        padding-bottom: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .our-solutions-banner .col-auto:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .our-solutions-banner .col-auto p {
        max-width: 100% !important; 
        margin: 0 auto !important;
    }

    /* Project Detail Cards Stacked */
    .our-solutions-banner .col-3,
    .our-solutions-banner .col-4,
    .our-solutions-banner .col-5 {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        border-right: none !important; 
        border-bottom: 1px solid #eaeaea !important; 
        text-align: center !important; 
    }

    .our-solutions-banner .row[style*="background-color"] > div:last-child {
        border-bottom: none !important;
    }
}