/* ====================================================================
   رواء الجنوب - تنسيقات المحتوى والمقالات (Riwaa Article Stylesheet)
   ==================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

.riwaa-wrapper {
    --primary: #0b5ed7;
    --primary-dark: #084298;
    --secondary: #0ea5a4;
    --accent: #f59e0b;
    --dark: #0f172a;
    --text: #1e293b;
    --muted: #64748b;
    --bg-light: #f8fbff;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.05);

    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.9;
    direction: rtl;
    text-align: right;
    font-size: 17px;
}

.riwaa-wrapper h2 {
    color: var(--dark);
    font-size: 24px;
    font-weight: 800;
    margin: 35px 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #e2e8f0;
    position: relative;
}

.riwaa-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.riwaa-wrapper h3 {
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 700;
    margin: 25px 0 14px 0;
}

.riwaa-wrapper p {
    margin-bottom: 20px;
}

/* 1. Table of Contents (فهرس المحتويات) */
.riwaa-toc {
    background: var(--bg-light);
    border: 2px solid #bfdbfe;
    border-radius: 16px;
    padding: 24px;
    margin: 25px 0 35px 0;
    box-shadow: var(--shadow);
}

.riwaa-toc-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.riwaa-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.riwaa-toc li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 20px;
}

.riwaa-toc li::before {
    content: '📌';
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 13px;
}

.riwaa-toc a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.riwaa-toc a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 2. Callout Info Boxes (صناديق التنبيه والملاحظات) */
.riwaa-callout {
    padding: 20px 24px;
    border-radius: 14px;
    margin: 25px 0;
    border-right: 6px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.riwaa-callout.riwaa-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e3a8a;
}

.riwaa-callout.riwaa-tip {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #14532d;
}

.riwaa-callout.riwaa-warning {
    background: #fffbe0;
    border-color: #f59e0b;
    color: #78350f;
}

/* 3. Styled Tables (جداول الأسعار والمقارنات) */
.riwaa-table-container {
    overflow-x: auto;
    margin: 30px 0;
}

.riwaa-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.riwaa-table th {
    background: linear-gradient(135deg, #0b5ed7, #3b82f6);
    color: var(--white);
    padding: 16px 20px;
    font-weight: 700;
    text-align: right;
}

.riwaa-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.riwaa-table tr:nth-child(even) {
    background: #f8fafc;
}

/* 4. Call To Action Banners (بنرات الدعوة للاتصال) */
.riwaa-cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #0b2447 100%);
    color: var(--white);
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
}

.riwaa-cta-box h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 12px 0;
}

.riwaa-cta-box p {
    color: #94a3b8;
    font-size: 16px;
    margin-bottom: 25px;
}

.riwaa-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.riwaa-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.riwaa-btn-phone {
    background: linear-gradient(135deg, #0b5ed7, #3b82f6);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(11, 94, 215, 0.35);
}

.riwaa-btn-phone:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(11, 94, 215, 0.5);
}

.riwaa-btn-whatsapp {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

.riwaa-btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(34, 197, 94, 0.5);
}

/* 5. Internal Links Styling (تنسيق الربط الداخلي) */
.riwaa-internal-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration_color: #93c5fd;
    transition: all 0.2s ease;
}

.riwaa-internal-link:hover {
    color: var(--primary-dark);
    background: #eff6ff;
    border-radius: 4px;
}

/* 6. FAQ Accordion Section (قسم الأسئلة الشائعة) */
.riwaa-faq-section {
    margin: 40px 0;
}

.riwaa-faq-item {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 15px;
    padding: 20px;
}

.riwaa-faq-question {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px 0;
}

.riwaa-faq-answer {
    color: var(--text);
    margin: 0;
}
