a:focus,
a:hover {
    color: #23527c;
    text-decoration: none;
}

.blog-box {
    padding: 10px;
    height: 50rem;
}

.blog-content {
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #fff;
}

.blog-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.blog-content h2 a {
    color: #333;
    text-decoration: none;
    font-size: 22px;
    transition: color 0.3s ease;
}

.blog-content a:hover h2 {
    color: #82074a;
}

.blog-content:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.blog-content p {
    margin-bottom: 10px;
    font-weight: 400;
    text-align: justify;
}

.blog-content .btn-primary {
    background-color: #82074a;
    border-color: #82074a;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.blog-content .btn-primary:hover {
    background-color: #590337;
    transform: scale(1.05);
}

.pager {
    list-style-type: none;
    padding: 0;
    gap: 10px;
    display: flex; /* Flexbox for pagination items */
    justify-content: center; /* Center pagination items */
    margin-top: 20px;
}

.pager li {
    display: inline-block;
    margin-top: 20px;
}

.pager a {
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #ccc;
    color: #333;
    transition: background-color 0.3s ease;
    margin-right: 10px;
    margin-top: 10px;
}

.pager a.active_link {
    background-color: #82074a;
    color: white;
}

.pager a:hover {
    background-color: #ddd;
}

/* -------------------------------------------------------------- */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    /* Space between the items */
}

.blog-post {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.blog-content {
    padding: 15px;
}

.blog-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.blog-content h2 a {
    color: #333;
    text-decoration: none;
    font-size: 22px;
    transition: color 0.3s ease;
}

.blog-content a:hover h2 {
    color: #82074a;
}

.blog-content p {
    margin-bottom: 10px;
}

.blog-link {
    text-decoration: none;
    color: inherit;
}

/* Responsive Design: Stack the blog posts on smaller screens */
@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr; /* Stack to 1 column on smaller screens */
    }

    .pager {
        flex-direction: column; /* Stack pagination vertically on mobile */
    }

    .pager a {
        margin: 5px 0;
    }
}
