/* Global RTL and Font Settings */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

html {
    direction: rtl;
    text-align: right;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
}

/* Base Layout Overrides */
.layout-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 2rem;
}

/* Rich Text Styling */
.prose h1, .prose h2, .prose h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.3;
}

.prose p {
    margin-bottom: 1em;
    line-height: 1.8;
}

.prose img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    width: 100%;
    height: auto;
}

.prose blockquote {
    border-right: 4px solid #ef4444; /* Red accent */
    padding-right: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4b5563;
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 0.25rem;
}

.prose ul {
    list-style-type: disc;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.prose ol {
    list-style-type: decimal;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

/* Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.prose th, .prose td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
}
.prose th {
    background-color: #f3f4f6;
    font-weight: 600;
}

/* Custom Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}