/* ========== CARE APP SECTION STYLES ========== */

/* Main Section */
.care-app-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    overflow: hidden;
}

.care-app-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.care-app-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.care-app-section .section-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-family: 'Lyon Arabic', 'Cairo', sans-serif;
}

.care-app-section .title-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #E63946, #f7931e);
    margin: 0 auto;
    border-radius: 2px;
}

/* Hero Section */
.care-app-hero {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
    flex-wrap: wrap;
}

.care-app-mobile-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.care-app-mobile-image .mobile-image {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(230, 57, 70, 0.15));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.care-app-mobile-image:hover .mobile-image {
    transform: translateY(-10px);
    filter: drop-shadow(0 15px 40px rgba(230, 57, 70, 0.25));
}

.care-app-hero-description {
    flex: 1;
    min-width: 300px;
}

.care-app-hero-description .hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #E63946;
    margin-bottom: 20px;
    font-family: 'Lyon Arabic', 'Cairo', sans-serif;
}

.care-app-hero-description .hero-text {
    font-size: 16px;
    line-height: 1.8;
    color: #161616;
    text-align: right;
    font-family: 'Lyon Arabic', 'Cairo', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Steps Section */
.care-app-steps {
    margin-bottom: 80px;
}

.care-app-steps .steps-header {
    text-align: center;
    margin-bottom: 50px;
}

.care-app-steps .steps-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Lyon Arabic', 'Cairo', sans-serif;
}

/* Steps Grid - Top Row (3 steps) */
.steps-grid-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Steps Grid - Bottom Row (2 steps) */
.steps-grid-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    max-width: 66.66%;
    margin-left: auto;
    margin-right: auto;
}

.step-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-card .step-image {
    width: 100%;
    /* height: 400px; */
    object-fit: cover;
    display: block;
    position: relative;
    transition: transform .4s ease;

}

.step-card:hover .step-image {
    transform: scale(1.08);
}

.step-card .step-number {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    background: #E63946;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Lyon Arabic', 'Cairo', sans-serif;
    z-index: 10;
}

/* Step Name */
.step-card .step-name {
    position: absolute;
    bottom: 0px; 
    left: 0;
    right: 0;
    color: rgb(31, 30, 30);
    padding: 15px 10px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    font-family: 'Lyon Arabic', 'Cairo', sans-serif;
    padding-bottom: 0px !important;
    
    
}


/* Small Card */
.step-card-small {
    grid-column: span 1;
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
    height: 100%;

}



/* Large Card */
.step-card-large {
    grid-column: span 1;
    transform: scale(1.15);
    z-index: 5;
}

.step-card-large .step-image {
    height: 500px;
    margin-top: -40px;
    padding: 20px; 

}

/* Final Description */
.care-app-final-description {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    border-right: 5px solid #E63946;
}

.care-app-final-description .description-text {
    font-size: 16px;
    line-height: 1.8;
    color: #151414;
    text-align: right;
    font-family: 'Lyon Arabic', 'Cairo', sans-serif;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;

    max-width: 900px;       
  
}

/* CTA Button */
.care-app-cta {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.care-app-cta .cta-button {
    display: inline-block;
    padding: 16px 50px;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Lyon Arabic', 'Cairo', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(26, 26, 26, 0.2);
}

.care-app-cta .cta-button:hover {
    background: #E63946;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
    .care-app-section {
        padding: 100px 0;
    }

    .care-app-section .section-title {
        font-size: 40px;
    }

    .care-app-hero {
        gap: 40px;
        margin-bottom: 80px;
    }

    .care-app-hero-description .hero-title {
        font-size: 32px;
    }

    .steps-grid-top {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .steps-grid-bottom {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 66.66%;
    }

 
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
    .care-app-section {
        padding: 100px 0;
    }

    .care-app-section .section-title {
        font-size: 32px;
    }

    .care-app-hero {
        flex-direction: column-reverse;
        gap: 30px;
        margin-bottom: 60px;
    }

    .care-app-mobile-image {
        flex: 1;
        min-width: 100%;
    }

    .care-app-mobile-image .mobile-image {
        max-height: 450px;
    }

    .care-app-hero-description {
        flex: 1;
        min-width: 100%;
    }

    .care-app-hero-description .hero-title {
        font-size: 24px;
    }

    .care-app-hero-description .hero-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .care-app-steps .steps-title {
        font-size: 28px;
    }

    .steps-grid-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .steps-grid-bottom {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }



    .care-app-final-description {
        padding: 30px;
    }

    .care-app-final-description .description-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .care-app-cta .cta-button {
        padding: 14px 40px;
        font-size: 14px;
    }
}

/* Small Mobile (480px - 575px) */
@media (max-width: 575px) {
    .care-app-section {
        padding: 100px 0;
    }

    .care-app-section .section-title {
        font-size: 28px;
    }

    .care-app-section .title-line {
        width: 60px;
    }

    .care-app-hero {
        gap: 20px;
        margin-bottom: 50px;
    }

    .care-app-mobile-image .mobile-image {
        max-height: 350px;
    }

    .care-app-hero-description .hero-title {
        font-size: 20px;
    }

    .care-app-hero-description .hero-text {
        font-size: 13px;
        line-height: 1.6;
    }

    .care-app-steps .steps-title {
        font-size: 24px;
    }

    .steps-grid-top {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .steps-grid-bottom {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
    }


    .step-card .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .care-app-final-description {
        padding: 20px;
        border-radius: 10px;
    }

    .care-app-final-description .description-text {
        font-size: 13px;
        line-height: 1.6;
    }

    .care-app-cta .cta-button {
        padding: 12px 30px;
        font-size: 13px;
    }
}

/* Extra Small (< 480px) */
@media (max-width: 479px) {
    .care-app-section {
        padding: 100px 0;
    }

    .care-app-section .section-title {
        font-size: 24px;
    }

    .care-app-hero {
        gap: 15px;
        margin-bottom: 40px;
    }

    .care-app-mobile-image .mobile-image {
        max-height: 300px;
    }

    .care-app-hero-description .hero-title {
        font-size: 18px;
    }

    .care-app-hero-description .hero-text {
        font-size: 12px;
        line-height: 1.5;
    }

    .care-app-steps .steps-title {
        font-size: 20px;
    }

    .steps-grid-top {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .steps-grid-bottom {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 100%;
    }

   

    .care-app-final-description {
        padding: 15px;
    }

    .care-app-final-description .description-text {
        font-size: 12px;
        line-height: 1.5;
    }

    .care-app-cta .cta-button {
        padding: 10px 25px;
        font-size: 12px;
    }
}

/* ========== END CARE APP SECTION STYLES ========== */
