/* One content presentation for the editor, news and event pages. */
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content { font-family:Arial,sans-serif; font-size:16px; line-height:1.7; color:#1a263c; background:#fff; overflow-wrap:break-word; display:flow-root; min-width:0; max-width:100%; }
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content p { margin:0 0 12px; line-height:inherit; font-size:inherit; color:inherit; }
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content :is(h2,h3,h4) { margin:20px 0 10px; line-height:1.3; font-weight:700; color:inherit; border:0; padding:0; background:none; text-transform:none; }
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content h2 {font-size:24px;} :is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content h3 {font-size:20px;} :is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content h4 {font-size:18px;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content :is(ul,ol) { margin:0 0 12px; padding-left:24px; }
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content li {margin-bottom:6px;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content a {color:#485bff; text-decoration:underline; overflow-wrap:anywhere;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content blockquote {margin:12px 0; padding:10px 14px; border-left:3px solid #d3985c; background:#f8f9fb; color:inherit; font-style:italic;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content img {max-width:100%; height:auto; border:0;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content :is(figure.image,figure[data-image]) {max-width:100%; box-sizing:border-box; margin:12px auto;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content :is(figure.image,figure[data-image]) img {display:block; width:100%; height:auto; margin:0; border-radius:8px;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content figure.image-style-side {float:right; margin-left:20px !important; max-width:50%;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content figure.image-style-align-left {float:left; margin-right:20px !important;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content figure.image-style-align-right {float:right; margin-left:20px !important;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content figcaption {padding:8px; text-align:center; font-size:13px; background:#f7f7f9; color:#5d596c;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content .news-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:12px; margin:16px 0; clear:both; }
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content .news-gallery > figure {width:100% !important; margin:0 !important; padding:0 !important; min-width:0; float:none; max-width:100%;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content .news-gallery img {width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:8px;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content .news-documents {list-style:none; padding:0; display:grid; gap:8px; margin:16px 0;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content .news-documents li {margin:0;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content .news-documents a {display:block; padding:12px 16px; border:1px solid #dfe3eb; border-radius:6px; background:#f8f9fb; text-decoration:none; font-weight:600;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content .news-documents a::before {content:'↓'; display:inline-block; margin-right:10px; color:#7367f0;}
/* Keep actual table semantics, cell formatting and merged cells. Scroll the figure, not the page. */
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content figure.table { display:block; max-width:100%; overflow-x:auto; margin:16px auto; overscroll-behavior-x:contain; }
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content table {display:table; border-collapse:collapse; width:100%; margin:0; overflow:visible; font:inherit; color:inherit;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content :is(td,th) {border:1px solid #dfe3eb; background:#fff; padding:8px 10px; vertical-align:top; font-family:inherit; font-size:inherit; line-height:inherit; text-transform:none; min-width:80px; overflow-wrap:normal;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content th {background:#f7f7f9; font-weight:700;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content > table {display:block; max-width:100%; overflow-x:auto; margin:16px 0;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content pre {max-width:100%; overflow-x:auto; padding:12px; background:#f4f6fa; border-radius:6px;}
@media(max-width:575px) { :is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content .news-gallery {grid-template-columns:1fr !important;} }

.ck-content.farabi-rich-content {background:#fff;}

:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content * {font-family:inherit;}
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content .news-gallery[data-columns="2"] {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
@media(max-width:900px) { :is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content .news-gallery {grid-template-columns:repeat(2,minmax(0,1fr)) !important;} }
@media(max-width:575px) { :is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content .news-gallery {grid-template-columns:1fr !important;} }
:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content .news-gallery[data-columns="1"] {grid-template-columns:1fr !important;}

:is(.ck.ck-editor__main .ck-editor__editable,.news-content).farabi-rich-content img.image-inline {display:inline-block; vertical-align:middle; margin:0; max-width:100%;}
