/* ====================================
   تصميم احترافي لصفحة الخبر الفردي - نسخة محسنة
   ==================================== */

.news-single-page {
    background: #f8f9fa;
    padding: 20px 0 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================
   Breadcrumb - Marsad Design
   ========================= */

.news-breadcrumb {
    margin: 12px 0 20px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.news-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.news-breadcrumb li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

/* الروابط: أزرق الموقع (مثل روابط marsad) */
.news-breadcrumb a {
    color: #2563eb !important;
    /* اللون الأزرق المميز للموقع */
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    /* وزن أقل قليلاً */
    line-height: 1.3;
    padding: 4px 8px;
    border-radius: 6px;
    background: transparent;
    /* إزالة الخلفية */
    border: 1px solid transparent;
    /* إزالة الحدود */
    transition: background-color .15s ease, color .15s ease;
}

.news-breadcrumb a:hover {
    color: #1d4ed8 !important;
    /* لون أزرق أغمق عند hover */
    background: rgba(37, 99, 235, 0.05);
    /* خلفية زرقاء فاتحة */
}

.news-breadcrumb a:active {
    transform: translateY(0);
    /* إزالة التأثير */
}

.news-breadcrumb a:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.3);
    outline-offset: 1px;
}

/* الفاصل - تعديل ليتناسب مع marsad */
.news-breadcrumb .separator {
    display: inline-flex;
    align-items: center;
    color: #9ca3af;
    /* رمادي متوسط */
    font-size: 12px;
    margin: 0 2px;
    user-select: none;
}

.news-breadcrumb .separator::before {
    content: "/";
    /* استخدام الشرطة المائلة بدلاً من النقطة */
    font-size: 14px;
    font-weight: 400;
    opacity: 0.7;
}

/* العنصر الحالي */
.news-breadcrumb .current {
    color: #1f2937;
    /* رمادي داكن (مثل النص الرئيسي في الموقع) */
    font-size: 13px;
    font-weight: 700;
    /* وزن أثقل للعنصر الحالي */
    padding: 4px 8px;
    border-radius: 6px;
    background: transparent;
    /* إزالة الخلفية */
    border: 1px solid transparent;
    /* إزالة الحدود */
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RTL - تحسينات لدعم العربية */
html[dir="rtl"] .news-breadcrumb ol {
    direction: rtl;
}

/* تعديل للفاصل في RTL */
html[dir="rtl"] .news-breadcrumb .separator {
    transform: none;
    /* لا نحتاج لعكس الفاصل في العربية */
}

/* موبايل - تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .news-breadcrumb {
        margin: 10px 0 16px;
        padding: 8px 10px;
        border-radius: 6px;
    }

    .news-breadcrumb a,
    .news-breadcrumb .current {
        padding: 3px 6px;
        font-size: 12px;
    }

    .news-breadcrumb ol {
        gap: 3px 6px;
    }

    /* إخفاء بعض العناصر الوسيطة في الموبايل */
    .news-breadcrumb li:not(:last-child):not(:nth-last-child(2)):not(:first-child) {
        display: none;
    }

    /* إضافة "..." للعناصر المخفية */
    .news-breadcrumb li:not(:last-child):not(:nth-last-child(2)):not(:first-child)+li::before {
        content: "...";
        color: #9ca3af;
        padding: 0 2px;
    }
}

/* دارك مود - متوافق مع تصميم marsad */
@media (prefers-color-scheme: dark) {
    .news-breadcrumb {
        background: #ffffff;
        border-color: rgba(75, 85, 99, 0.5);
    }

    .news-breadcrumb a {
        color: #151515 !important;
        /* أزرق فاتح للدارك مود */
    }

    .news-breadcrumb a:hover {
        color: #93c5fd !important;
        background: rgba(96, 165, 250, 0.1);
    }

    .news-breadcrumb .separator {
        color: #6b7280;
    }

    .news-breadcrumb .current {
        color: #141415;
        /* نص فاتح في الدارك مود */
    }

    .news-breadcrumb a:focus-visible {
        outline-color: rgba(96, 165, 250, 0.4);
    }
}

/* تحسينات للطباعة */
@media print {
    .news-breadcrumb {
        background: transparent;
        border: 1px solid #d1d5db;
        margin: 8px 0;
    }

    .news-breadcrumb a {
        color: #374151 !important;
    }

    .news-breadcrumb .separator {
        color: #6b7280;
    }
}

/* تخطيط الصفحة */
.news-page-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* المحتوى الرئيسي */
.news-main-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* رأس الخبر المحسن */
.news-header-pro {
    margin-bottom: 25px;
}

.news-category-tag {
    display: inline-block;
    background: linear-gradient(135deg, #0066cc 0%, #004494 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title-pro {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    font-family: 'Tajawal', sans-serif;
}

.news-meta-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.source-logo-mini {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.source-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.source-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-decoration: none !important;

}

.publish-date {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.news-stats {
    display: flex;
    gap: 15px;
}

.views-count,
.likes-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.views-count i,
.likes-count i {
    color: #0066cc;
    font-size: 14px;
}

.share-btn-mini {
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.share-btn-mini:hover {
    background: #0066cc;
    color: white;
    transform: scale(1.1);
}

/* الصورة أو الفيديو الرئيسي */
.featured-media-section {
    margin: 25px 0 35px;
    border-radius: 10px;
    overflow: hidden;
}

.video-featured {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.image-featured {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.main-featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-featured:hover .main-featured-image {
    transform: scale(1.02);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    font-size: 13px;
}

/* محتوى الخبر */
.news-content-pro {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.news-intro {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-right: 4px solid #0066cc;
    margin-bottom: 25px;
}

.intro-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.8;
    color: #1a1a1a;
    margin: 0;
}

.article-body {
    margin: 30px 0;
}

.article-body p {
    margin-bottom: 25px;
    text-align: justify;
}

.article-body h2,
.article-body h3 {
    color: #1a1a1a;
    margin: 35px 0 20px;
    font-weight: 700;
}

.article-body h2 {
    font-size: 24px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.article-body h3 {
    font-size: 20px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-right: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

/* معرض الصور */
.news-gallery {
    margin: 40px 0;
}

.gallery-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* إجراءات الخبر */
.news-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    margin-top: 30px;
    border-top: 1px solid #eee;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-source {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.btn-source:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: white;
}

.social-share {
    display: flex;
    gap: 15px;
}

.btn-share {
    background: linear-gradient(135deg, #0066cc 0%, #004494 100%);
    color: white;
}

.btn-print {
    background: #6c757d;
    color: white;
}

.btn-share:hover,
.btn-print:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* التعليقات */
.comments-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #eee;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.comments-header h3 {
    font-size: 22px;
    color: #1a1a1a;
    margin: 0;
}

.btn-add-comment {
    background: #0066cc;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
}

.comments-list {
    margin-bottom: 30px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f5;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar i {
    font-size: 40px;
    color: #ccc;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

.comment-time {
    font-size: 13px;
    color: #999;
}

.comment-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 15px 0;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.btn-like,
.btn-reply {
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-like:hover {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.1);
}

.btn-reply:hover {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-comments i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.no-comments p {
    margin: 0;
    font-size: 16px;
}

/* نموذج التعليق */
.comment-form-container {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.comment-form-container h4 {
    font-size: 18px;
    color: #333;
    margin: 0 0 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.comment-form-container .form-group textarea,
.form-group input {
    width: 98%;
    padding: 9px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, #0066cc 0%, #004494 100%);
    color: white;
    padding: 12px 30px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* الشريط الجانبي */
.news-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 18px;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.widget-title i {
    color: #0066cc;
}

/* أخبار مشابهة */
.similar-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.similar-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.similar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.similar-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.similar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.similar-image:hover img {
    transform: scale(1.1);
}

.similar-content {
    flex: 1;
}

.similar-content h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    line-height: 1.4;
}

.similar-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.similar-content h4 a:hover {
    color: #0066cc;
}

.similar-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

/* أخبار من نفس المصدر */
.source-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.source-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.source-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.source-item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.source-item-link:hover {
    color: #0066cc;
}

.source-item-title {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.source-item-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    margin-right: 10px;
}

/* أخبار شائعة */
.popular-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.popular-rank {
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #666;
    flex-shrink: 0;
}

.popular-item:nth-child(1) .popular-rank {
    background: #ff6b6b;
    color: white;
}

.popular-item:nth-child(2) .popular-rank {
    background: #ffa726;
    color: white;
}

.popular-item:nth-child(3) .popular-rank {
    background: #4ecdc4;
    color: white;
}

.popular-content {
    flex: 1;
}

.popular-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.popular-content h4 a {
    color: #333;
    text-decoration: none;
}

.popular-content h4 a:hover {
    color: #0066cc;
}

.popular-views {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #999;
}

/* أخبار من نفس الدولة */
.country-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.country-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.country-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.country-item a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
    transition: color 0.2s;
}

.country-item a:hover {
    color: #0066cc;
}

.country-item-date {
    display: block;
    font-size: 12px;
    color: #999;
}

/* أخبار ذات صلة */
.related-news-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.section-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.related-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 20px;
}

.related-category {
    margin-bottom: 10px;
}

.related-category span {
    display: inline-block;
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.related-content h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    line-height: 1.4;
}

.related-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.related-content h3 a:hover {
    color: #0066cc;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.no-items,
.no-related-news {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
    grid-column: 1 / -1;
}

/* تصميم متجاوب */
@media (max-width: 1024px) {
    .news-page-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .news-sidebar {
        position: static;
        order: 2;
    }

    .related-news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .news-main-content {
        padding: 3px;
    }

    .news-title-pro {
        font-size: 24px;
    }

    .news-meta-pro {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .meta-right {
        width: 100%;
        justify-content: space-between;
    }

    .news-actions {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .related-news-section {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .news-title-pro {
        font-size: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .related-news-grid {
        grid-template-columns: 1fr;
    }

    .similar-item {
        flex-direction: column;
    }

    .similar-image {
        width: 100%;
        height: 150px;
    }
}

/* تأثيرات الظهور */
.news-header-pro,
.featured-media-section,
.news-content-pro,
.sidebar-widget,
.related-news-section {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.sidebar-widget:nth-child(1) {
    animation-delay: 0.1s;
}

.sidebar-widget:nth-child(2) {
    animation-delay: 0.2s;
}

.sidebar-widget:nth-child(3) {
    animation-delay: 0.3s;
}

.sidebar-widget:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== تصميم إعلان المقال ===== */
.app-promo-article {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 25px;
    margin: 40px 0 30px;
    position: relative;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    /*  font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; */
}

/* شارة التطبيق */
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.app-logo-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marsad-icon {
    width: 50px;
    height: 46px;
    background: linear-gradient(135deg, #0088cc 0%, #8bceec 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    transition: all 0.3s ease;
    margin-left: 27px;
}

.app-logo-icon svg {
    width: 100%;
    height: 100%;
    color: #3b82f6;
}

.app-badge-text {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

/* عنوان الإعلان */
.promo-title {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.promo-title .highlight {
    color: #3b82f6;
    position: relative;
}

.promo-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(59, 130, 246, 0.2);
    z-index: -1;
    border-radius: 2px;
}

/* ميزات الإعلان */
.promo-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.promo-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon-small {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 10px;
    flex-shrink: 0;
}

.feature-icon-small svg {
    width: 18px;
    height: 18px;
    color: #3b82f6;
}

.promo-feature span {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}

/* وصف الإعلان */
.promo-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    border-right: 3px solid #3b82f6;
}

/* زر التحميل */
.download-btn-promo {
    display: block;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 18px 25px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
    border: none;
    cursor: pointer;
}

.download-btn-promo:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.35);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    flex-grow: 1;
}

.btn-main-text {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.btn-sub-text {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* زر الإغلاق */
.close-promo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
}

.close-promo:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

.close-promo svg {
    width: 20px;
    height: 20px;
}

/* ===== التصميم المتجاوب ===== */
@media (max-width: 768px) {
    .app-promo-article {
        padding: 20px;
        margin: 30px 0;
    }

    .promo-title {
        font-size: 1.3rem;
    }

    .promo-features {
        gap: 10px;
    }

    .promo-feature span {
        font-size: 0.9rem;
    }

    .download-btn-promo {
        padding: 16px 20px;
    }

    .btn-main-text {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .promo-features {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .promo-feature {
        flex: 1;
        min-width: 200px;
    }
}
