/* ==========================================
   SINGLE NEWS
========================================== */

/* الصفحة كاملة بدون كارد أبيض */
.lwf-single-news {
    width: 100%;
    background: transparent;
}

.lwf-single-news-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* ==========================================
   المقال
========================================== */

.lwf-single-news-article {
    width: 100%;
    background: transparent;
}

/* ---------- Featured Image ---------- */

.lwf-single-news-image {
    width: min(900px, 100%);
    margin: 30px auto 0;
    overflow: hidden;
    background: transparent;
    border-radius: 14px;
}

.lwf-single-news-image img {
    display: block;
    width: 70%;
    height: auto;
    max-width: 100%;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 14px;
}

/* ---------- News Content ---------- */

.lwf-single-news-content {
    width: min(1080px, 100%);
    margin: 28px auto 0;
    text-align: right;
}

.lwf-single-news-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    margin-bottom: 12px;
    background: #087f3f;
    color: #fff;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
}

.lwf-single-news-title {
    margin: 0 0 10px;
    color: #111827;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.35;
    font-weight: 800;
}

.lwf-single-news-date {
    display: block;
    margin-bottom: 24px;
    color: #3C3C3C;
    font-size: 13px;
    font-weight: 600;
}

.lwf-single-news-body {
    color: #20242b;
    font-size: 17px;
    line-height: 2;
}

.lwf-single-news-body p {
    margin: 0 0 18px;
}

.lwf-single-news-body img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   مشاركة الخبر
========================================== */

.lwf-news-share {
    width: min(1080px, calc(100% - 40px));
    margin: 38px auto 0;
    text-align: center;
}

.lwf-news-share h3 {
    margin: 0 0 18px;
    color: #111827;
    font-size: 22px;
    font-weight: 800;
}

.lwf-share-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    direction: ltr;
}

.lwf-share-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid #d5d9df;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    cursor: pointer;
    text-decoration: none;
    background: #fff;
    color: #111827;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.lwf-share-btn:hover {
    transform: translateY(-2px);
    border-color: #aeb5bf;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .08);
}

.lwf-share-btn::before,
.lwf-share-btn::after {
    content: none !important;
    display: none !important;
}

.lwf-share-btn svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.lwf-share-btn:nth-child(1) svg,
.lwf-share-btn:nth-child(4) svg {
    width: 25px;
    height: 25px;
}

/* ==========================================
   رسالة نسخ الرابط
========================================== */

.lwf-copy-toast {
    position: fixed;
    top: 18px;
    right: 18px;
    min-width: 300px;
    max-width: calc(100vw - 36px);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #e8f8ed;
    color: #111827;
    border: 1px solid #c8e8d2;
    border-radius: 7px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    direction: rtl;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    z-index: 999999;
}

.lwf-copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lwf-copy-toast-check {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
}

/* ==========================================
   أخبار ذات صلة
========================================== */

.lwf-related-news {
    width: min(1180px, calc(100% - 40px));
    margin: 55px auto 60px;
}

.lwf-related-header {
    margin-bottom: 22px;
}

.lwf-related-header h2 {
    margin: 0;
    color: #111827;
    font-size: 28px;
    font-weight: 800;
    text-align: right;
}

.lwf-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.lwf-related-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 14px;
}

.lwf-related-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.lwf-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.lwf-related-card:hover .lwf-related-image img {
    transform: scale(1.03);
}

.lwf-related-content {
    padding: 15px 16px 18px;
    text-align: right;
}

.lwf-related-type {
    display: inline-flex;
    align-items: center;

    margin-bottom: 5px;
    padding: 4px 8px;

    background: #087f3f;
    color: #fff;

    border-radius: 6px;

    font-size: 10px;
    font-weight: 700;

    line-height: 1.2;
}

.lwf-related-date {
    display: block;
    margin-bottom: 7px;
    color: #8b95a7;
    font-size: 12px;
}

.lwf-related-content h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 800;
}

.lwf-related-content h3 a {
    color: #111827;
    text-decoration: none;
}

.lwf-related-content h3 a:hover {
    color: #087f3f;
}

/* ---------- Empty ---------- */

.lwf-single-news-empty {
    width: min(900px, calc(100% - 40px));
    margin: 50px auto;
    text-align: center;
}

/* ==========================================
   Responsive
========================================== */

@media (max-width: 900px) {

    .lwf-single-news-container,
    .lwf-news-share,
    .lwf-related-news {
        width: calc(100% - 28px);
    }

    .lwf-single-news-image {
        margin-top: 22px;
         width: 100%;
    }

    .lwf-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    .lwf-single-news-image img {
    width: 85%;
}

    .lwf-single-news-title {
        font-size: 18px;
    }

    .lwf-single-news-body {
        font-size: 14px;
        line-height: 1.9;
    }

    .lwf-share-buttons {
        gap: 9px;
    }

    .lwf-share-btn {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .lwf-share-btn svg {
        width: 21px;
        height: 21px;
    }

    .lwf-related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lwf-related-card {
    display: flex;
    flex-direction: row;

    align-items: stretch;

    height: 150px;
}

.lwf-related-image {
    flex: 0 0 42%;
    width: 42%;
    height: 100%;

    aspect-ratio: auto;
}

.lwf-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lwf-related-content {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 12px 14px;

    text-align: right;
}

.lwf-related-type {
    align-self: flex-start;
}

.lwf-related-date {
    margin-bottom: 5px;
}

.lwf-related-content h3 {
    font-size: 13px;
    line-height: 1.55;
}

    .lwf-related-header h2 {
        font-size: 18px;
    }

    .lwf-copy-toast {
        top: 12px;
        right: 12px;
        min-width: 0;
        width: calc(100vw - 24px);
    }
}

/* ==========================================
   French / LTR
========================================== */

.lwf-single-news--fr {
    direction: ltr;
}

.lwf-single-news--fr .lwf-single-news-content {
    text-align: left;
}

.lwf-single-news--fr .lwf-single-news-body {
    text-align: left;
}

.lwf-single-news--fr .lwf-related-header h2 {
    text-align: left;
}

.lwf-single-news--fr .lwf-related-content {
    text-align: left;
}

.lwf-single-news--fr .lwf-copy-toast {
    direction: ltr;
    left: 18px;
    right: auto;
}

@media (max-width: 768px) {

    .lwf-single-news--fr .lwf-related-content {
        text-align: left;
    }

    .lwf-single-news--fr .lwf-copy-toast {
        left: 12px;
        right: auto;
    }
}