


/* ==========================================================
   ARTICLE PAGE — DESIGN SYSTEM
   بدون Tailwind
========================================================== */

:root {

    --article-ink: #0B1220;
    --article-ink-soft: #4A5568;
    --article-paper: #F1F5F9;
    --article-card: #FFFFFF;
    --article-accent: #E11D48;
    --article-navy: #0F172A;
    --article-rule: #E2E8F0;

    --article-radius-lg: 20px;
    --article-radius-md: 12px;
    --article-radius-sm: 8px;

    --article-max: 1280px;
}


/* ==========================================================
   PAGE CONTAINER
========================================================== */

.article-page {

    width: 95%;
    max-width: var(--article-max);

    margin: 0 auto;
}


/* ==========================================================
   ARTICLE LAYOUT
========================================================== */

.article-layout {

    display: grid;

    grid-template-columns:
        2.2fr
        1fr;

    gap: 25px;

    margin-bottom: 40px;
}


/* ==========================================================
   MAIN ARTICLE
========================================================== */

.article-container {

    background: var(--article-card);

    border:
        2px solid
        var(--article-rule);

    border-radius:
        var(--article-radius-lg);

    padding: 30px;

    box-shadow:
        0 10px 25px -5px
        rgba(0, 0, 0, 0.05);
}


/* ==========================================================
   BREADCRUMB
========================================================== */

.article-breadcrumb {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 13px;

    color:
        var(--article-ink-soft);

    margin-bottom: 15px;

    flex-wrap: wrap;
}


.article-breadcrumb a {

    color:
        var(--article-ink-soft);

    text-decoration: none;

    transition:
        color 0.2s;
}


.article-breadcrumb a:hover {

    color:
        var(--article-accent);
}


/* ==========================================================
   ARTICLE BADGE
========================================================== */

.article-badge {

    background:
        var(--article-accent);

    color: #fff;

    padding:
        4px 12px;

    border-radius:
        20px;

    font-size: 12px;

    font-weight: 800;
}


/* ==========================================================
   TITLE
========================================================== */

.article-title {

    font-size: 30px;

    font-weight: 900;

    color:
        var(--article-navy);

    line-height: 1.3;

    margin:
        0 0 15px 0;
}


/* ==========================================================
   META BAR
========================================================== */

.article-meta-bar {

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    padding:
        12px 0;

    border-top:
        1px solid
        var(--article-rule);

    border-bottom:
        1px solid
        var(--article-rule);

    margin-bottom: 25px;

    font-size: 13px;

    color:
        var(--article-ink-soft);
}


.author-info {

    display: flex;

    align-items: center;

    gap: 10px;
}


.author-avatar-svg {

    width: 40px;

    height: 40px;

    border-radius: 50%;

    border:
        2px solid
        var(--article-accent);

    background:
        #cbd5e1;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    flex-shrink: 0;
}


.author-avatar-svg i {

    color:
        #475569;

    font-size: 20px;
}


/* ==========================================================
   SHARE BUTTONS
========================================================== */

.share-buttons {

    display: flex;

    gap: 8px;
}


.share-btn {

    width: 35px;

    height: 35px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    font-size: 14px;

    text-decoration: none;

    transition:
        transform 0.2s,
        opacity 0.2s;
}


.share-btn:hover {

    transform:
        translateY(-2px);

    opacity: 0.9;
}


.btn-fb {

    background:
        #1877f2;
}


.btn-tw {

    background:
        #1da1f2;
}


.btn-wa {

    background:
        #25d366;
}


/* ==========================================================
   ADVERTISEMENT
========================================================== */
.article-ad-box {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 2px dashed rgba(225, 29, 72, 0.6);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease-in-out;
    overflow: hidden;
    margin-bottom: 25px;
    width: 100%;
}

.article-ad-box:hover {
    transform: translateY(-3px);
    border-color: #e11d48;
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.25);
}

.article-ad-label {
    position: absolute;
    top: 0;
    right: 20px;
    background-color: #e11d48;
    color: #fff;
    font-size: 11px;
    padding: 3px 12px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0;
    display: block;
}

.article-ad-content {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.article-ad-content span {
    display: inline-block;
    color: #38bdf8;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-right: 8px;
}

.article-ad-box:hover .article-ad-content span {
    color: #f43f5e;
    text-decoration: underline;
}
/* ==========================================================
   FEATURED IMAGE
========================================================== */

.featured-image-box {

    position: relative;

    border-radius:
        var(--article-radius-md);

    overflow: hidden;

    margin-bottom: 25px;

    border:
        1px solid
        var(--article-rule);

    background:
        #0f172a;
}


.featured-image-box img {

    width: 100%;

    height: 380px;

    object-fit: cover;

    display: block;
}


.featured-image-placeholder {

    width: 100%;

    height: 380px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #1e293b
        );

    color: #fff;

    font-size: 20px;

    font-weight: 800;
}


.image-caption {

    background:
        #f8fafc;

    padding:
        8px 15px;

    font-size: 12px;

    color:
        var(--article-ink-soft);

    border-top:
        1px solid
        var(--article-rule);

    display: flex;

    align-items: center;

    gap: 6px;
}


/* ==========================================================
   ARTICLE BODY
========================================================== */

.article-body {

    font-size: 17px;

    color:
        #1e293b;

    line-height: 1.9;
}


.article-body::after {

    content: "";

    display: table;

    clear: both;
}


.article-body p {

    margin:
        0 0 20px 0;
}


.article-body h2,
.article-body h3 {

    font-weight: 800;

    color:
        var(--article-navy);

    clear: both;
}


.article-body h3 {

    font-size: 22px;

    margin:
        30px 0 15px 0;

    padding-right: 12px;

    border-right:
        4px solid
        var(--article-accent);
}


.article-body img {

    max-width: 100%;

    height: auto;
}


/* ==========================================================
   FLOATING RELATED NEWS
========================================================== */

.floating-related-box {

    float: left;

    width: 290px;

    margin:
        10px 20px 20px 0;

    background:
        #f8fafc;

    border:
        2px solid
        var(--article-rule);

    border-radius:
        var(--article-radius-md);

    padding: 15px;

    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.04);

    transition:
        border-color 0.3s;
}


.floating-related-box:hover {

    border-color:
        var(--article-accent);
}


.floating-title {

    font-size: 14px;

    font-weight: 800;

    color:
        var(--article-navy);

    margin-bottom: 12px;

    padding-bottom: 6px;

    border-bottom:
        2px solid
        var(--article-accent);

    display: flex;

    align-items: center;

    gap: 6px;
}


.floating-title i {

    color:
        var(--article-accent);
}


.mini-news-item {

    display: flex;

    gap: 10px;

    margin-bottom: 12px;

    padding-bottom: 10px;

    border-bottom:
        1px dashed
        var(--article-rule);

    text-decoration: none;
}


.mini-news-item:last-child {

    border-bottom: none;

    margin-bottom: 0;

    padding-bottom: 0;
}


.mini-news-img-svg {

    width: 65px;

    height: 55px;

    border-radius:
        var(--article-radius-sm);

    flex-shrink: 0;

    overflow: hidden;

    background:
        #334155;
}


.mini-news-img-svg img {

    width: 100%;

    height: 100%;

    object-fit: cover;
}


.mini-news-title {

    font-size: 12px;

    font-weight: 700;

    color:
        var(--article-navy);

    line-height: 1.4;

    transition:
        color 0.2s;
}


.mini-news-item:hover
.mini-news-title {

    color:
        var(--article-accent);
}


/* ==========================================================
   QUOTE
========================================================== */

.quote-box {

    background:
        #fff1f2;

    border-right:
        4px solid
        var(--article-accent);

    border-radius:
        var(--article-radius-sm);

    padding: 20px;

    margin:
        25px 0;

    font-style: italic;

    font-weight: 700;

    color:
        #881337;

    clear: both;
}


/* ==========================================================
   TAGS
========================================================== */

.article-tags-container {

    margin-top: 35px;

    padding-top: 20px;

    border-top:
        2px solid
        var(--article-rule);

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    clear: both;
}


.tags-label {

    font-size: 14px;

    font-weight: 800;

    color:
        var(--article-navy);

    display: inline-flex;

    align-items: center;

    gap: 6px;
}


.tags-label i {

    color:
        var(--article-accent);
}


.tag-pill {

    background:
        #f1f5f9;

    color:
        var(--article-navy);

    border:
        1px solid
        var(--article-rule);

    padding:
        4px 12px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    transition:
        all 0.2s;
}


.tag-pill:hover {

    background:
        var(--article-accent);

    color: #fff;

    border-color:
        var(--article-accent);
}


/* ==========================================================
   YOU MAY LIKE
========================================================== */

.you-may-like-section {

    margin-top: 40px;

    padding-top: 25px;

    border-top:
        2px solid
        var(--article-navy);

    clear: both;
}


.section-header-title {

    font-size: 18px;

    font-weight: 900;

    color:
        var(--article-navy);

    margin-bottom: 20px;

    display: flex;

    align-items: center;

    gap: 8px;
}


.section-header-title::before {

    content: "";

    width: 8px;

    height: 18px;

    background:
        var(--article-accent);

    border-radius: 4px;

    display: inline-block;
}


.you-may-like-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}


.may-like-card {

    background: #fff;

    border:
        2px solid
        var(--article-rule);

    border-radius:
        var(--article-radius-md);

    overflow: hidden;

    text-decoration: none;

    transition:
        border-color 0.3s,
        transform 0.3s,
        box-shadow 0.3s;
}


.may-like-card:hover {

    border-color:
        var(--article-accent);

    transform:
        translateY(-3px);

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.06);
}


.may-like-img {

    width: 100%;

    height: 120px;

    background:
        #334155;

    overflow: hidden;
}


.may-like-img img {

    width: 100%;

    height: 100%;

    object-fit: cover;
}


.may-like-content {

    padding: 12px;
}
.may-like-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--article-navy);
    line-height: 1.4;

    /* البديل الحديث والمعياري لإزالة التنبيه وتثبيت العرض */
    overflow: hidden;
    display: -webkit-box;
    display: box;
    -webkit-box-orient: vertical;
    box-orient: vertical;

    /* دعم تحديد عدد الأسطر (سطرين) مع وبدون البادئة */
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
/* ==========================================================
   SIDEBAR
========================================================== */

.article-sidebar {

    min-width: 0;
}


.article-sidebar-widget {

    background:
        var(--article-card);

    border:
        2px solid
        var(--article-rule);

    border-radius:
        var(--article-radius-lg);

    padding: 20px;

    margin-bottom: 25px;

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.03);
}


/* ==========================================================
   WIDGET TITLE
========================================================== */

.widget-title {

    font-size: 16px;

    font-weight: 800;

    color:
        var(--article-navy);

    margin:
        0 0 15px 0;

    padding-bottom: 10px;

    border-bottom:
        2px solid
        var(--article-rule);

    position: relative;
}


.widget-title::after {

    content: "";

    position: absolute;

    bottom: -2px;

    right: 0;

    width: 40px;

    height: 2px;

    background:
        var(--article-accent);
}


/* ==========================================================
   MOST READ WIDGET
========================================================== */

.most-read-widget {

    background:
        var(--article-card);

    border:
        2px solid
        var(--article-rule);

    border-radius:
        var(--article-radius-lg);

    padding: 20px;

    margin-bottom: 25px;

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.03);
}


.most-read-header {

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 10px;

    margin-bottom: 16px;

    padding-bottom: 12px;

    border-bottom:
        1px solid
        var(--article-rule);
}


.most-read-title {

    margin: 0;

    font-size: 16px;

    font-weight: 900;

    color:
        var(--article-navy);

    display: flex;

    align-items: center;

    gap: 8px;
}


.most-read-title i {

    color:
        var(--article-accent);
}


.most-read-label {

    font-size: 11px;

    background:
        #f1f5f9;

    color:
        #64748b;

    padding:
        5px 8px;

    border-radius: 6px;

    font-weight: 700;

    white-space: nowrap;
}


.most-read-list {

    display: flex;

    flex-direction: column;

    gap: 0;
}


.most-read-item {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    text-decoration: none;

    padding:
        13px 0;

    border-bottom:
        1px solid
        #f1f5f9;

    transition:
        background 0.2s;
}


.most-read-item:last-child {

    border-bottom: none;

    padding-bottom: 0;
}


.most-read-item:first-child {

    padding-top: 0;
}


.most-read-number {

    width: 30px;

    flex-shrink: 0;

    font-size: 22px;

    line-height: 1;

    font-weight: 900;

    color:
        #cbd5e1;

    text-align: center;

    transition:
        color 0.2s;
}


.most-read-item:hover
.most-read-number {

    color:
        var(--article-accent);
}


.most-read-content {

    min-width: 0;

    flex: 1;
}

.most-read-title-text {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    line-height: 1.5;

    /* البديل الحديث والمعياري لإزالة التنبيه وتثبيت العرض */
    overflow: hidden;
    display: -webkit-box;
    display: box;
    -webkit-box-orient: vertical;
    box-orient: vertical;

    /* دعم تحديد عدد الأسطر (سطرين) مع وبدون البادئة */
    -webkit-line-clamp: 2;
    line-clamp: 2;

    transition: color 0.2s;
}

.most-read-item:hover
.most-read-title-text {

    color:
        var(--article-accent);
}


.most-read-views {

    margin:
        5px 0 0 0;

    font-size: 11px;

    color:
        #94a3b8;
}


.most-read-empty {

    padding:
        30px 10px;

    text-align: center;

    color:
        #94a3b8;

    font-size: 13px;
}


/* ==========================================================
   RELATED SIDEBAR
========================================================== */

.related-card {

    display: flex;

    gap: 12px;

    margin-bottom: 15px;

    padding-bottom: 12px;

    border-bottom:
        1px solid
        #f1f5f9;

    text-decoration: none;
}


.related-card:last-child {

    border: none;

    margin: 0;

    padding: 0;
}


.related-img {

    width: 80px;

    height: 65px;

    border-radius:
        var(--article-radius-sm);

    flex-shrink: 0;

    overflow: hidden;

    background:
        #334155;
}


.related-img img {

    width: 100%;

    height: 100%;

    object-fit: cover;
}


.related-title {

    font-size: 13px;

    font-weight: 700;

    color:
        var(--article-navy);

    line-height: 1.4;
}


.related-date {

    color:
        var(--article-ink-soft);

    font-size: 11px;
}


/* ==========================================================
   NEWSLETTER
========================================================== */

.newsletter-widget {

    background:
        #0f172a;

    color: #fff;
}


.newsletter-widget
.widget-title {

    color: #fff;

    border-bottom-color:
        #334155;
}


.newsletter-text {

    font-size: 12px;

    color:
        #94a3b8;

    margin-bottom: 12px;
}


.newsletter-input {

    width: 100%;

    padding:
        8px 12px;

    border-radius: 8px;

    border: none;

    margin-bottom: 10px;

    font-size: 13px;

    box-sizing: border-box;
}


.newsletter-button {

    width: 100%;

    background:
        var(--article-accent);

    color: #fff;

    border: none;

    padding: 8px;

    border-radius: 8px;

    font-weight: 700;

    cursor: pointer;
}

/* ==========================================================
   TRENDING SIDEBAR
   Placement Zone: trending_sidebar
   بدون Tailwind
========================================================== */

.trending-widget {
    background: var(--article-card);
    border: 2px solid var(--article-rule);
    border-radius: var(--article-radius-lg);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

/* ==========================================================
   TRENDING HEADER
========================================================== */

.trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--article-rule);
}

.trending-title {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: var(--article-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trending-title i {
    color: var(--article-accent);
}

.trending-label {
    font-size: 11px;
    background: #f1f5f9;
    color: #64748b;
    padding: 5px 8px;
    border-radius: 6px;
    font-weight: 700;
    white-space: nowrap;
}

/* ==========================================================
   TRENDING LIST
========================================================== */

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ==========================================================
   TRENDING CARD
========================================================== */

.trending-card {
    display: block;
    width: 100%;
    text-decoration: none;
    overflow: hidden;
    border-radius: var(--article-radius-md);
    background: #e2e8f0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trending-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* ==========================================================
   TRENDING IMAGE
========================================================== */

.trending-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

.trending-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.trending-card:hover .trending-image img {
    transform: scale(1.05);
}

/* ==========================================================
   TRENDING IMAGE PLACEHOLDER
========================================================== */

.trending-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 36px;
}

/* ==========================================================
   TRENDING OVERLAY
========================================================== */

.trending-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.90) 0%,
        rgba(0, 0, 0, 0.40) 50%,
        transparent 100%
    );
    pointer-events: none;
}

/* ==========================================================
   TRENDING CONTENT
========================================================== */

.trending-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 16px;
    z-index: 2;
}
.trending-card-title {
    margin: 0;
    color: #fff !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;

    /* البديل الحديث والمعياري لإزالة التنبيه وتثبيت العرض */
    overflow: hidden;
    display: -webkit-box;
    display: box;
    -webkit-box-orient: vertical;
    box-orient: vertical;

    /* دعم تحديد عدد الأسطر (سطرين) مع وبدون البادئة */
    -webkit-line-clamp: 2;
    line-clamp: 2;

    text-shadow: 0 1px 3px rgba(243, 244, 245, 0.6);
}

/* ==========================================================
   TRENDING EMPTY STATE
========================================================== */

.trending-empty {
    padding: 35px 10px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* ==========================================================
   RESPONSIVE — TABLET & MOBILE
========================================================== */

@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .trending-widget {
        padding: 15px;
    }
    .trending-card-title {
        font-size: 14px;
        line-height: 1.5;
    }
    .trending-content {
        padding: 12px;
    }
}
