/* Section Titles Fix - White Background Compatible Colors and Center Alignment */

/* ============================================
   SECTION TITLES - WHITE BACKGROUND COMPATIBLE
   ============================================ */

.section-title {
    text-align: center !important;
    margin-bottom: 3rem !important;
}

.section-title .subtitle {
    color: #2563eb !important; /* Vibrant orange for white background */
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    margin-bottom: 20px !important;
    display: inline-block !important;
    position: relative !important;
    padding-bottom: 10px !important;
}

.section-title .subtitle::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 50px !important;
    height: 3px !important;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    border-radius: 2px !important;
}

.section-title .title {
    color: #111827 !important; /* Dark gray for white background */
    font-weight: 700 !important;
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0 !important;
    position: relative !important;
}

.section-title .title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 3px !important;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    border-radius: 2px !important;
}

/* ============================================
   SPECIFIC SECTION TITLE OVERRIDES
   ============================================ */

/* Features Section */
.rn-service-area .section-title {
    text-align: center !important;
}

.rn-service-area .section-title .subtitle {
    color: #2563eb !important;
}

.rn-service-area .section-title .title {
    color: #111827 !important;
}

/* Portfolio Section */
.rn-portfolio-area .section-title {
    text-align: center !important;
}

.rn-portfolio-area .section-title .subtitle {
    color: #2563eb !important;
}

.rn-portfolio-area .section-title .title {
    color: #111827 !important;
}

/* Pricing Section */
.rn-pricing-area .section-title {
    text-align: center !important;
}

.rn-pricing-area .section-title .subtitle {
    color: #2563eb !important;
}

.rn-pricing-area .section-title .title {
    color: #111827 !important;
}

/* Contact Section */
.rn-contact-area .section-title {
    text-align: center !important;
}

.rn-contact-area .section-title .subtitle {
    color: #2563eb !important;
}

.rn-contact-area .section-title .title {
    color: #111827 !important;
}

/* ============================================
   RTL SUPPORT FOR ARABIC
   ============================================ */

[data-lang="ar"] .section-title {
    text-align: center !important;
}

[data-lang="ar"] .section-title .subtitle::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

[data-lang="ar"] .section-title .title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .section-title .title {
        font-size: 2rem !important;
    }
    
    .section-title .subtitle {
        font-size: 12px !important;
    }
}

@media (max-width: 576px) {
    .section-title .title {
        font-size: 1.75rem !important;
    }
    
    .section-title .subtitle {
        font-size: 11px !important;
    }
    
    .section-title {
        margin-bottom: 2rem !important;
    }
}

/* ============================================
   LOADING STATE STYLES
   ============================================ */

.translation-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #2563eb;
    font-weight: 600;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   SMOOTH TRANSITIONS
   ============================================ */

.section-title .subtitle,
.section-title .title {
    transition: all 0.3s ease !important;
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

.section-title .title {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .section-title .subtitle {
        color: #000080 !important;
    }
    
    .section-title .title {
        color: #000000 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .section-title .subtitle,
    .section-title .title {
        transition: none !important;
    }
    
    .spinner {
        animation: none !important;
    }
}
