/* About Us Section RTL Layout Fixes */

/* Section 3 - About Us RTL Layout */
section .customize-list {
    direction: rtl !important;
    text-align: right !important;
}

/* Fix list items for proper RTL alignment */
.customize-list li {
    direction: rtl !important;
    text-align: right !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    margin-bottom: 1rem !important;
    padding: 0.5rem 0 !important;
}

/* Position icons on the right for RTL */
.customize-list li i {
    margin-right: 0.75rem !important;
    margin-left: 0 !important;
    flex-shrink: 0 !important;
    line-height: 1.5 !important;
    margin-top: 0.125rem !important;
    order: 2 !important;
}

/* Ensure text wraps properly in RTL */
.customize-list li {
    font-family: 'Cairo', sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

/* Section titles alignment */
section .h1, section .h2 {
    text-align: right !important;
    direction: rtl !important;
    font-family: 'Cairo', sans-serif !important;
    margin-bottom: 1.5rem !important;
}

/* Paragraph text alignment */
section .text-lg {
    text-align: right !important;
    direction: rtl !important;
    font-family: 'Cairo', sans-serif !important;
    line-height: 1.7 !important;
    margin-bottom: 2rem !important;
}

/* Container adjustments for RTL */
.row.align-items-center .col-md-6 {
    padding-right: 2rem !important;
    padding-left: 1rem !important;
}

/* Image container adjustments */
.col-md-6.text-center {
    text-align: center !important;
}

/* Specific fixes for About section images */
section .img-fluid {
    max-width: 85% !important;
    height: auto !important;
}

/* Better spacing for Arabic text */
section p {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 400 !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
}

/* Professional list styling */
.customize-list {
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-top: 2rem !important;
}

.customize-list li {
    background: rgba(108, 117, 125, 0.05) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.75rem !important;
    border-right: 3px solid #6c757d !important;
    border-left: none !important;
    transition: all 0.3s ease !important;
    justify-content: space-between !important;
}

.customize-list li:hover {
    background: rgba(108, 117, 125, 0.1) !important;
    transform: translateX(-5px) !important;
}

/* Ensure text takes proper space */
.customize-list li span, 
.customize-list li:not(i) {
    order: 1 !important;
    flex-grow: 1 !important;
}

/* Icon styling for better visibility */
.customize-list li i.ti-circle-check {
    color: #28a745 !important;
    font-size: 1.25rem !important;
    font-weight: bold !important;
    font-family: 'tabler-icons' !important;
}

/* Preserve all icons in customize list */
.customize-list li i {
    font-family: 'tabler-icons' !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .row.align-items-center .col-md-6 {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    section .text-lg {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    .customize-list li {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.95rem !important;
    }
}

/* Section spacing improvements */
section {
    padding: 4rem 0 !important;
}

/* Container max-width for better readability */
.container {
    max-width: 1200px !important;
}

/* Fix for any remaining LTR elements */
section * {
    font-family: 'Cairo', sans-serif !important;
}

/* Ensure proper text direction inheritance */
section .row {
    direction: rtl !important;
}

section .col-md-6 {
    direction: rtl !important;
    text-align: right !important;
}