/* Blog Styles */
.masthead {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    position: relative;
}

.masthead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.masthead .container {
    position: relative;
    z-index: 1;
}

.post-heading h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-heading .meta {
    font-size: 1.2rem;
    font-style: italic;
    margin: 1.5rem 0;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 8px;
}

.post-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.post-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: #34495e;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Related Posts */
.related-posts {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

/* Pagination Styles */
.pagination-wrapper {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.pagination .page-item {
    margin: 0 3px;
}

.pagination .page-item .page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    color: #2c3e50;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    min-width: 38px;
    text-align: center;
}

.pagination .page-item.active .page-link {
    color: #fff;
    background-color: #2c3e50;
    border-color: #2c3e50;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination .page-item .page-link:hover {
    color: #fff;
    text-decoration: none;
    background-color: #2c3e50;
    border-color: #2c3e50;
}

/* Fix for large pagination arrows */
.pagination svg {
    display: none;
}

/* Hide SVG elements and use text instead */
.pagination .page-link[rel="prev"]::before {
    content: 'Prev';
}

.pagination .page-link[rel="next"]::after {
    content: 'Next';
}

/* Target specific elements */
.pagination .page-link[aria-label="pagination.previous"] span,
.pagination .page-link[aria-label="pagination.next"] span {
    display: none;
}

.pagination .page-link[aria-label="pagination.previous"]::before {
    content: 'Prev';
}

.pagination .page-link[aria-label="pagination.next"]::after {
    content: 'Next';
}

/* Responsive styles */
@media (max-width: 768px) {
    .pagination .page-item .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 32px;
    }
}

/* Tags */
.tags .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    margin: 0.2rem;
    background-color: #f1f1f1;
    color: #333;
    font-weight: normal;
}

.tags .badge:hover {
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
}