/* ===================================================================
            Article details — extends the same editorial design language
            (--ea-primary / --ea-ink / --ea-line / --ea-muted) used on the
            Articles listing page. Reuses th-blog / breadcumb-wrapper /
            widget_search theme conventions.
            =================================================================== */
.ea-page {
    --ea-primary: var(--theme-color, #FF5A5F);
    --ea-ink: var(--title-color, #0A1929);
    --ea-line: rgba(10, 25, 41, .08);
    --ea-muted: #67728A;
}

/* ---- Fade-up entrance ---- */
.ea-fade-up {
    animation: eaFadeUp .6s ease both;
}

@keyframes eaFadeUp {
     from {
         opacity: 0;
         transform: translateY(18px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

/* ---- Header ---- */
.ea-article_header {
    padding: 56px 0 0;
}

.ea-article_back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ea-muted);
    text-decoration: none;
    margin-bottom: 26px;
    transition: color .25s ease, gap .25s ease;
}

.ea-article_back:hover {
    color: var(--ea-primary);
    gap: 12px;
}

.ea-article_title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.22;
    color: var(--ea-ink);
    max-width: 900px;
    margin-bottom: 20px;
}

.ea-article_summary {
    font-size: 18px;
    line-height: 1.6;
    color: var(--ea-muted);
    max-width: 820px;
    margin-bottom: 28px;
}

.ea-article_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--ea-line);
}

.ea-article_meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ea-muted);
}

.ea-article_meta i {
    color: var(--ea-primary);
    font-size: 13px;
}

/* ---- Hero image ---- */
.ea-article_hero {
    border-radius: 24px;
    overflow: hidden;
    margin: 40px 0 48px;
    box-shadow: 0 24px 60px rgba(10, 25, 41, .12);
    aspect-ratio: 3 / 2;
    background: #EDEFF3;
}

.ea-article_hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Prose / body ---- */
.ea-article_prose {
    font-size: 17px;
    line-height: 1.85;
    color: #29344a;
}

.ea-article_prose p {
    margin-bottom: 24px;
}

.ea-article_prose h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--ea-ink);
    margin: 44px 0 18px;
}

.ea-article_prose h3 {
    font-size: 21px;
    font-weight: 800;
    color: var(--ea-ink);
    margin: 36px 0 14px;
}

.ea-article_prose img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 28px 0;
}

.ea-article_prose blockquote {
    margin: 32px 0;
    padding: 20px 26px;
    border-inline-start: 4px solid var(--ea-primary);
    background: color-mix(in srgb, var(--ea-primary) 6%, white);
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    border-start-end-radius: 14px;
    border-end-end-radius: 14px;
    font-style: italic;
    color: var(--ea-ink);
}

.ea-article_prose ul, .ea-article_prose ol {
    margin: 0 0 24px;
    padding-inline-start: 22px;
}

.ea-article_prose li {
    margin-bottom: 10px;
}

.ea-article_prose a {
    color: var(--ea-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ea-article_prose code {
    background: #F2F4F7;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: .9em;
}

.ea-article_prose pre {
    background: var(--ea-ink);
    color: #f2f4f7;
    padding: 20px;
    border-radius: 14px;
    overflow-x: auto;
    margin: 28px 0;
}

.ea-article_prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
}

.ea-article_prose th, .ea-article_prose td {
    padding: 10px 14px;
    border: 1px solid var(--ea-line);
    text-align: start;
}

/* Code blocks stay LTR — code/URLs are not Arabic content */
.ea-article_prose pre, .ea-article_prose code {
    direction: ltr;
    text-align: left;
    unicode-bidi: embed;
}

.ea-article_empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--ea-muted);
    background: #fff;
    border: 1px dashed var(--ea-line);
    border-radius: 20px;
}

.ea-notfound {
    padding: 110px 20px;
    text-align: center;
}

.ea-notfound_icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--ea-primary) 10%, white);
    color: var(--ea-primary);
    font-size: 28px;
}

.ea-notfound_title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ea-ink);
    margin-bottom: 10px;
}

.ea-notfound_text {
    font-size: 15px;
    color: var(--ea-muted);
    margin-bottom: 26px;
}

/* ---- Sidebar (Recent Articles) ---- */
.ea-sidebar {
    position: sticky;
    top: 24px;
}

.ea-sidebar_widget {
    background: #fff;
    border: 1px solid var(--ea-line);
    border-radius: 20px;
    padding: 26px 24px;
    box-shadow: 0 14px 34px rgba(10, 25, 41, .05);
}

.ea-sidebar_title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ea-ink);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ea-line);
}

.ea-recent_list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ea-recent_item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-decoration: none;
    transition: opacity .25s ease;
}

.ea-recent_item:hover {
    opacity: .82;
}

.ea-recent_thumb {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    background: #F2F4F7;
}

.ea-recent_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ea-recent_body {
    min-width: 0;
}

.ea-recent_date {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ea-primary);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 4px;
}

.ea-recent_title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--ea-ink);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ea-recent_readtime {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--ea-muted);
}

/* ---- Related Articles ---- */
.ea-related {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--ea-line);
}

.ea-related_title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--ea-ink);
    margin-bottom: 28px;
}

.ea-related_title::before {
    content: "";
    width: 6px;
    height: 22px;
    border-radius: 4px;
    background: var(--ea-primary);
    flex: none;
}

.ea-related_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
}

.ea-related_card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--ea-line);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.ea-related_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(10, 25, 41, .1);
}

.ea-related_img {
    aspect-ratio: 16 / 10;
    background: #EDEFF3;
    overflow: hidden;
}

.ea-related_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.ea-related_card:hover .ea-related_img img {
    transform: scale(1.06);
}

.ea-related_body {
    padding: 18px 20px 22px;
}

.ea-related_date {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--ea-primary);
    margin-bottom: 8px;
}

.ea-related_card_title {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ea-ink);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ea-related_readtime {
    font-size: 12px;
    color: var(--ea-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ea-article-content{
    font-size:18px;
    line-height:2;
}

.ea-article-content h2{
    margin-top:2rem;
}
/* ---- Mobile sidebar spacing ---- */
@media (max-width: 991px) {
    .ea-sidebar {
        position: static;
        margin-top: 48px;
    }
}

/* ---- RTL: mirror directional icons so "back"/"forward" still read
       correctly for Arabic (e.g. back-arrow should point toward the
       right, since forward reading direction is right-to-left) ---- */
.ea-page[dir="rtl"] .ea-article_back i.fa-arrow-left,
.ea-page[dir="rtl"] .th-btn i.fa-angles-right {
    transform: scaleX(-1);
}