/* Styles for the "Custom Blog" page template (custom-blog.php) */

/* Prevent long words/links in the excerpt from overflowing the card */
.post-excerpt {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Keep thumbnail size consistent (stops it from growing/reflowing as it lazy-loads) */
.blog-post > img.img-fluid {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Blog Bottom Section */
.blog-bottom-section {
    background: rgba(0, 123, 255, 0.05);
    border-radius: 15px;
    padding: 40px 30px;
    margin-top: 60px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

body.dark-mode .blog-bottom-section {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

/* Pagination */
.pagination-wrapper ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
    background: transparent;
    margin-top: 30px;
}

.pagination-wrapper ul li {
    margin: 0 6px;
}

.pagination-wrapper ul li a,
.pagination-wrapper ul li span {
    display: block;
    padding: 8px 16px;
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 50px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.pagination-wrapper ul li a:hover,
.pagination-wrapper ul li span.current {
    background: rgba(0, 123, 255, 0.15);
    color: #007bff;
    border-color: rgba(0, 123, 255, 0.5);
    transform: translateY(-2px);
}
