/* 📌 Blog Page Main Container */
.blog-main {
    padding: 20px;
    max-width: 1200px;
    margin: 160px auto 0 auto; /* Top margin is 120px, left and right auto, bottom 0 */
}

/* 📌 Blog Post Container (with border and padding) */
.blog-post {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* ✅ Prevents overlapping issues */
}

/* 📌 Blog Thumbnail (Prevent Overlapping on Read More) */
.post-thumbnail {
    width: 100%;
    max-width: 800px;
    position: relative; /* ✅ Prevents overlapping */
    z-index: 1;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* 📌 Blog Post Content */
.post-content {
    flex-grow: 1;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
}

/* 📌 Post Title */
.post-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #0056b3;
}

/* 📌 Post Meta */
.post-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

/* 📌 Post Excerpt */
.post-excerpt {
    font-size: 16px;
    color: #444;
    line-height: 1.5;
}

/* 📌 "Read More" Button (FIXED CLICK ISSUE) */
.read-more {
    display: inline-block;
    padding: 10px 15px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    position: relative;
    z-index: 999; /* ✅ Forces it to be on top */
    cursor: pointer;
}

.read-more:hover {
    background-color: #005177;
}

/* 📌 Pagination */
.pagination {
    text-align: center;
    margin-top: 30px;
}

/* 📌 Mobile Responsive Styles */
@media (max-width: 768px) {
    .blog-post {
        flex-direction: column;
    }

    .post-thumbnail {
        width: 100%; /* Makes image take full width */
        max-width: none; /* Ensures full image is displayed */
    }

    .post-content {
        position: relative;
        z-index: 2; /* Keeps "Read More" clickable */
    }
}

