html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Cairo', sans-serif !important;
    background: #f8f9fa;
    color: #2b2b2b;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.breadcrumb {
    font-size: 15px;
    color: #555;
    margin: 20px auto;
    max-width: 900px;
    padding: 0 20px;
    text-align: right;
}

.breadcrumb a {
    color: #d71920;
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #222;
    font-weight: 600;
}

h1 {
    text-align: right;
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #1a202c;
    line-height: 1.4;
}

.publish-date {
    text-align: right;
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.news-image-wrapper {
    width: 100%;
    max-height: 250px;
    background-color: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain; /* يعرض الصورة بكامل تفاصيلها بدون قص أو زووم */
    display: block;
    background-color: #fff;
}

.news-content {
    font-size: 1.1rem;
    line-height: 2;
    color: #4a5568;
    text-align: justify;
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
    margin-bottom: 40px;
}

/* أزرار المشاركة */
.share-section {
    background: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.share-title {
    font-weight: 700;
    color: #2d3748;
    font-size: 1rem;
    margin: 0;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.share-whatsapp { background-color: #25D366; }
.share-whatsapp:hover { background-color: #1ebe57; }

.share-facebook { background-color: #1877F2; }
.share-facebook:hover { background-color: #145dbf; }

.share-twitter { background-color: #000000; }
.share-twitter:hover { background-color: #333333; }

.share-copy { background-color: #718096; border: none; cursor: pointer; }
.share-copy:hover { background-color: #4a5568; }

/* قسم آخر الأخبار */
.related-news-section {
    margin-top: 60px;
    margin-bottom: 50px;
}

.related-title {
    font-size: 1.5rem;
    color: #1a202c;
    margin-bottom: 25px;
    text-align: right;
    border-right: 4px solid #d71920;
    padding-right: 12px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    border: 1px solid #edf2f7;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.related-img-wrap {
    width: 100%;
    height: 140px;
    background: #f1f3f5;
    overflow: hidden;
}

.related-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-body {
    padding: 15px;
}

.related-date {
    font-size: 0.8rem;
    color: #d71920;
    margin-bottom: 6px;
    display: block;
}

.related-body h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #2d3748;
    line-height: 1.4;
}

/* زر واتساب العائم */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    font-size: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 1.7rem;
    }
}
