/* Blog Grid Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta i {
    color: #1e3a8a;
}

.blog-content h2 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.blog-content h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h2 a:hover {
    color: #1e3a8a;
}

.blog-content p {
    color: #666;
    line-height: 1.6;
    margin: 1rem 0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #e3a816;
}

/* Blog Detail Styles */
.blog-detail-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.blog-post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.blog-header {
    position: relative;
}

.blog-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin: 2rem;
    color: #333;
}

.blog-body {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.blog-body p {
    margin-bottom: 1.5rem;
}

.blog-body h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #333;
}

.blog-body ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-body li {
    margin-bottom: 0.5rem;
}

.blog-footer {
    padding: 2rem;
    border-top: 1px solid #eee;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: #e3a816;
}

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-number:hover {
    background: #1e3a8a;
    color: #fff;
}

.page-number.active {
    background: #1e3a8a;
    color: #fff;
}

.prev,
.next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.prev:hover,
.next:hover {
    color: #1e3a8a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-header h1 {
        font-size: 2rem;
        margin: 1.5rem;
    }

    .blog-featured-image {
        height: 300px;
    }

    .blog-body {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .pagination-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Error Message Styles */
.error-message {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    color: #e74c3c;
}