/* Smart Article AI - Frontend Elegant Styling (RTL) */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&family=Cairo:wght@400;600;700&display=swap');

.smart-ai-article-wrapper {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #1e293b;
    line-height: 1.95;
    font-size: 1.15rem;
    max-width: 850px;
    margin: 2rem auto;
    padding: 40px 50px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05), 0 0 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Elegant Headings */
.smart-ai-article-wrapper h2 {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 800;
    font-size: 1.9rem;
    color: #0f172a;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-right: 24px;
    line-height: 1.5;
}

.smart-ai-article-wrapper h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 6px;
    background: linear-gradient(180deg, #d4af37 0%, #b58500 100%);
    border-radius: 6px;
    box-shadow: -2px 0 8px rgba(212, 175, 55, 0.4);
}

.smart-ai-article-wrapper h3 {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1e293b;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    display: inline-block;
    position: relative;
}

.smart-ai-article-wrapper h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #d4af37;
    margin-top: 8px;
    border-radius: 2px;
}

/* Paragraphs */
.smart-ai-article-wrapper p {
    margin-bottom: 1.8rem;
    color: #334155;
    text-align: justify;
    text-justify: inter-word;
    font-weight: 500;
}

/* Images */
.smart-ai-article-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.1);
    margin: 2rem 0;
    display: block;
}

/* Lists */
.smart-ai-article-wrapper ul, 
.smart-ai-article-wrapper ol {
    margin: 1.5rem 0 2rem;
    padding-right: 1.5rem;
    padding-left: 0;
    background: #f8fafc;
    padding: 1.5rem 2.5rem 1.5rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.smart-ai-article-wrapper ul li, 
.smart-ai-article-wrapper ol li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-right: 0.5rem;
    color: #334155;
    font-weight: 500;
}

.smart-ai-article-wrapper ul li::marker {
    color: #d4af37;
    font-size: 1.3rem;
}

/* Strong / Bold */
.smart-ai-article-wrapper strong, 
.smart-ai-article-wrapper b {
    font-weight: 800;
    color: #0f172a;
}

/* Links */
.smart-ai-article-wrapper a {
    color: #b58500;
    text-decoration: none;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    font-weight: 700;
}

.smart-ai-article-wrapper a:hover {
    color: #d4af37;
    border-bottom-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

/* Quotes */
.smart-ai-article-wrapper blockquote {
    margin: 2.5rem 0;
    padding: 2rem 2.5rem 2rem 2rem;
    background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%);
    border-right: 6px solid #d4af37;
    border-radius: 12px 0 0 12px;
    font-style: italic;
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    font-size: 1.25rem;
    position: relative;
}

.smart-ai-article-wrapper blockquote::before {
    content: '"';
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.15);
    position: absolute;
    top: 5px;
    right: 15px;
    font-family: serif;
    line-height: 1;
}

/* Tables */
.smart-ai-article-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.smart-ai-article-wrapper th, 
.smart-ai-article-wrapper td {
    padding: 1rem 1.2rem;
    text-align: right;
    border-bottom: 1px solid #e2e8f0;
}

.smart-ai-article-wrapper th {
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
}

.smart-ai-article-wrapper tr:last-child td {
    border-bottom: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .smart-ai-article-wrapper {
        font-size: 1.05rem;
        padding: 25px 20px;
        margin: 1rem;
        border-radius: 12px;
    }
    
    .smart-ai-article-wrapper h2 {
        font-size: 1.6rem;
        padding-right: 18px;
    }
    
    .smart-ai-article-wrapper h3 {
        font-size: 1.35rem;
    }

    .smart-ai-article-wrapper ul, 
    .smart-ai-article-wrapper ol {
        padding: 1.2rem 2rem 1.2rem 1rem;
    }
}
