/* أنماط عامة */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* شريط الأخبار المتحرك */
.news-ticker {
    background-color: #f1f1f1;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.ticker-title {
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: 10px;
}

.ticker-content {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    animation: ticker 20s linear infinite;
}

.ticker-content li {
    display: inline-block;
    margin-left: 20px;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* أنماط المقالات */
.article-preview {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
}

.article-content {
    padding: 15px;
}

.article-meta {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
}

.author-thumbnail {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 10px;
    vertical-align: middle;
}

/* أنماط الإعلانات */
.advertisement {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.advertisement img {
    max-width: 100%;
    height: auto;
}

/* أنماط الويدجات */
.widget-title {
    background-color: #333;
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-size: 1.1em;
    margin-bottom: 15px;
}

/* أنماط المقال الكامل */
.full-article {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.article-featured-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* أنماط الصفحات */
.page-title {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* أنماط متجاوبة */
@media (max-width: 768px) {
    .news-ticker {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ticker-title {
        margin-bottom: 10px;
        margin-left: 0;
    }
}

/* Social Sharing Buttons */
.social-sharing {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-social:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-facebook {
    background-color: #3b5998;
}

.btn-twitter {
    background-color: #1da1f2;
}

.btn-linkedin {
    background-color: #0077b5;
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-telegram {
    background-color: #0088cc;
}

@media (max-width: 768px) {
    .social-sharing .d-flex {
        flex-wrap: wrap;
    }
    
    .btn-social {
        flex: 1 0 45%;
        margin-bottom: 10px;
    }
}

/* Article Preview Styles */
.article-preview {
    padding: 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.article-preview:hover {
    background-color: #f8f9fa;
}

.article-image {
    overflow: hidden;
    border-radius: 5px;
}

.article-image img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.article-preview:hover .article-image img {
    transform: scale(1.02);
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.article-title a {
    color: #333;
    text-decoration: none;
}

.article-title a:hover {
    color: #0d6efd;
}

.author-info {
    font-size: 0.9rem;
    color: #6c757d;
}

.author-thumbnail {
    object-fit: cover;
}

.publish-date {
    font-size: 0.8rem;
}

.views-count {
    font-size: 0.8rem;
}

.article-excerpt {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Widget Styles */
.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.categories-widget .list-group-item {
    border: none;
    padding: 0.75rem 0;
}

.categories-widget .list-group-item a {
    text-decoration: none;
    color: #495057;
}

.categories-widget .list-group-item:hover a {
    color: #0d6efd;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .article-preview {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}