.blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.blog-post {
    display: flex;
    flex-direction: row-reverse; /* لأننا نريد النص على اليمين */
    background-color: white;
    border: 1px solid #ddd;
    width: 100%;
    max-width: 800px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    gap: 15px;
    align-items: flex-start;
}

.blog-image {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.blog-content {
    flex: 1;
}

.blog-post h2 {
    font-size: 20px;
    margin: 0 0 10px;
}

.blog-post p {
    font-size: 14px;
    color: #555;
    margin: 0 0 10px;
}

.blog-post a {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

.blog-post a:hover {
    text-decoration: underline;
}
/* تنسيقات الهاتف */
@media (max-width: 600px) {
    .blog-post {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .blog-content {
        width: 100%;
    }
}

/* تنسيقات blog_details */
        .blog-details-container {
            max-width: 900px;
            margin: 40px auto;
            background-color: #fff;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        .blog-details-header {
            display: flex;
            flex-direction: row-reverse;
            gap: 20px;
            align-items: flex-start;
            margin-bottom: 20px;
        }

        .blog-details-header img {
            max-width: 300px;
            height: auto;
            border-radius: 10px;
        }

        .blog-meta {
            color: #666;
            font-size: 14px;
            margin-top: 10px;
        }

        .blog-content {
            font-size: 16px;
            line-height: 2;
            color: #333;
            text-align: justify;
        }

        .back-link {
            display: inline-block;
            margin-top: 30px;
            padding: 8px 16px;
            background-color: #007bff;
            color: white;
            text-decoration: none;
            border-radius: 5px;
        }

        .back-link:hover {
            background-color: #0056b3;
        }