/* ============================================================
   WIGRO DELIVERY — Arabic RTL Styles
   ============================================================ */

/* Arabic Font */
body {
    font-family: 'Cairo', 'Segoe UI', Arial, sans-serif;
}

/* RTL Text Alignment */
body, p, h1, h2, h3, h4, h5, h6, li, a, span, div {
    direction: rtl;
    text-align: right;
}

/* Header RTL Adjustments */
#header .header-inner {
    flex-direction: row-reverse;
}

#header nav {
    flex-direction: row-reverse;
}

/* Hero RTL Grid Swap */
#hero .hero-grid {
    grid-template-columns: 1fr 1fr;
}

#hero .hero-content {
    order: 2;
}

#hero .hero-image {
    order: 1;
}

#hero .hero-actions {
    flex-direction: row-reverse;
}

#hero .hero-support {
    margin-top: 1.5rem;
    padding: 16px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

/* Problem Section */
#problem {
    padding: 90px 0;
    background: #fff;
}

#problem .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

#problem .section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1A3A5C;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto;
}

#problem .problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 3rem;
}

#problem .problem-item {
    background: #f4f7fb;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

#problem .problem-item:hover {
    background: #e8eef5;
    transform: translateY(-4px);
}

#problem .problem-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #dc3545;
}

#problem .problem-item p {
    font-size: 0.95rem;
    color: #1A3A5C;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

#problem .problem-result {
    text-align: center;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 18px;
    padding: 36px 28px;
    color: #fff;
}

#problem .problem-result h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

#problem .problem-result p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
}

/* Solution Section */
#solution {
    padding: 90px 0;
    background: #f4f7fb;
}

#solution .solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

#solution .solution-content .eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2B7FD4;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

#solution .solution-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1A3A5C;
    margin-bottom: 1rem;
    line-height: 1.2;
}

#solution .solution-content .lead {
    font-size: 1.15rem;
    color: #2B7FD4;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#solution .solution-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

#solution .solution-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 1rem;
    color: #5a6a7a;
    flex-direction: row-reverse;
    text-align: right;
}

#solution .solution-features li i {
    color: #28a745;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

#solution .solution-highlight {
    background: linear-gradient(135deg, #1A3A5C, #1565C0);
    border-radius: 16px;
    padding: 24px 28px;
    color: #fff;
}

#solution .solution-highlight p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}

#solution .solution-highlight strong {
    color: #F5A623;
    font-size: 1.05rem;
}

#solution .solution-image img {
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(27,82,150,0.18);
}

/* Services Grid Arabic */
#services .services-grid-ar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* How It Works */
#how-it-works {
    padding: 90px 0;
    background: #fff;
}

#how-it-works .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

#how-it-works .section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1A3A5C;
    margin-bottom: 0.4rem;
}

#how-it-works .section-header p {
    color: #5a6a7a;
    font-size: 1.05rem;
}

#how-it-works .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

#how-it-works .step-item {
    background: #f4f7fb;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

#how-it-works .step-item:hover {
    background: linear-gradient(135deg, #2B7FD4, #1565C0);
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(27,82,150,0.2);
}

#how-it-works .step-item:hover .step-num {
    background: #fff;
    color: #2B7FD4;
}

#how-it-works .step-item:hover h4 {
    color: #fff;
}

#how-it-works .step-num {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: #2B7FD4;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

#how-it-works .step-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1A3A5C;
    margin: 0;
    line-height: 1.4;
    transition: all 0.3s ease;
}

/* About RTL Grid Swap */
#about .about-grid {
    grid-template-columns: 1fr 1fr;
}

#about .about-image {
    order: 1;
}

#about .about-content {
    order: 2;
}

#about .about-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A3A5C;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

#about .about-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

#about .about-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #5a6a7a;
    flex-direction: row-reverse;
    text-align: right;
}

#about .about-list li i {
    color: #28a745;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Numbers Grid - 5 items */
#numbers .numbers-grid {
    grid-template-columns: repeat(5, 1fr);
}

/* Signup RTL Grid Swap */
#signup .signup-wrapper {
    grid-template-columns: 1fr 1fr;
}

#signup .signup-left {
    order: 1;
}

#signup .signup-form-box {
    order: 2;
}

/* Footer RTL */
#footer .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
}

#footer .footer-col h4::after {
    right: 0;
    left: auto;
}

#footer .footer-col ul li a:hover {
    padding-right: 4px;
    padding-left: 0;
}

#footer .footer-bottom {
    flex-direction: row-reverse;
}

/* Responsive RTL Adjustments */
@media (max-width: 1024px) {
    #services .services-grid-ar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #solution .solution-grid {
        grid-template-columns: 1fr;
    }
    
    #solution .solution-content {
        order: 1;
    }
    
    #solution .solution-image {
        order: 2;
    }
    
    #numbers .numbers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #hero .hero-grid {
        grid-template-columns: 1fr;
    }
    
    #hero .hero-content,
    #hero .hero-image {
        order: unset;
    }
    
    #hero .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    #hero .hero-actions a {
        width: 100%;
        text-align: center;
    }
    
    #about .about-grid {
        grid-template-columns: 1fr;
    }
    
    #about .about-image,
    #about .about-content {
        order: unset;
    }
    
    #services .services-grid-ar {
        grid-template-columns: 1fr;
    }
    
    #how-it-works .steps-grid {
        grid-template-columns: 1fr;
    }
    
    #numbers .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #signup .signup-wrapper {
        grid-template-columns: 1fr;
    }
    
    #signup .signup-left,
    #signup .signup-form-box {
        order: unset;
    }
    
    #footer .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #problem .section-header h2 {
        font-size: 1.4rem;
    }
    
    #solution .solution-content h2 {
        font-size: 1.7rem;
    }
    
    #how-it-works .section-header h2 {
        font-size: 1.7rem;
    }
    
    #numbers .numbers-grid {
        grid-template-columns: 1fr;
    }
}
