 /* Base Styles */
:root {
    --primary-color: #2F80ED;
    --secondary-color: #F2994A;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --text-color: #555;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat-Arabic', 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.blog-article-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

/* Blog Header */
.blog-header {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.blog-header-content {
    flex: 1;
    min-width: 300px;
}

.blog-header-image {
    flex: 1;
    min-width: 300px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.back-link:hover {
    color: var(--secondary-color);
}

.blog-title {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--light-color);
    padding: 5px 12px;
    border-radius: 20px;
}

.featured-image {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    height: 100%;
    object-fit: cover;
}

/* Main Content Layout */
.blog-main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.article-content {
    flex: 2;
    min-width: 300px;
}

.blog-sidebar {
    flex: 1;
    min-width: 300px;
}

/* Article Content */
.article-body {
    margin-bottom: 40px;
}
.article-body img{
    object-fit: fill    ;
}
.content-image {
    border-radius: 10px;
    margin-bottom: 30px;
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

.article-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-text p {
    margin-bottom: 20px;
}

/* Social Sharing */
.social-sharing {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.social-sharing h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-3px);
}

.facebook { background-color: #3b5998; }
.twitter { background-color: #1da1f2; }
.whatsapp { background-color: #25d366; }
.linkedin { background-color: #0077b5; }

/* Comments Section */
.comments-section {
    margin-top: 50px;
}

.section-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* Comment Form */
.comment-form-container {
    background: var(--light-color);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.comment-form-container h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.1);
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.submit-btn:hover {
    background: #1a6fd8;
    transform: translateY(-2px);
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.form-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.form-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
}

/* Comments List */
.comments-list {
    margin-bottom: 30px;
}

.comment-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.comment-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.comment-author i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.comment-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.comment-body {
    line-height: 1.7;
}

.hidden-comment {
    display: none;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Sidebar */
.sidebar-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.sidebar-title {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* Popular Posts */
.sidebar-post {

    margin-bottom: 20px;
    transition: var(--transition);
}

.sidebar-post:hover {
    transform: translateX(-5px);
}

.post-link {
    display: flex;
    gap: 15px;
}

.post-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.sidebar-post:hover .post-image img {
    transform: scale(1.05);
    object-fit: contain;
}

.post-content {
    flex: 1;
}

.post-content h4 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 5px;
    line-height: 1.4;
}

.post-meta {
    font-size: 1.5rem;
    color: var(--text-color);
}

/* Newsletter */
.newsletter p {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1.2rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.subscribe-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.subscribe-btn:hover {
    background: #e08a3a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header {
        flex-direction: column-reverse;
    }

    .blog-title {
        font-size: 1.8rem;
    }

    .blog-main-content {
        flex-direction: column;
    }

    .article-content, .blog-sidebar {
        width: 100%;
    }

    .post-link {
        flex-direction: column;
    }

    .post-image {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .blog-article-container {
        padding: 0 15px;
        margin-top: 80px;
    }

    .blog-title {
        font-size: 1.5rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 8px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-icons {
        justify-content: center;
    }
}

