/* Blog Page Template Styles */

.blog-page {
    background-color: var(--color-3);
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--color-1) 0%, var(--color-2) 100%);
    padding: 4rem 0;
    text-align: center;
}

.blog-title {
    color: var(--color-6);
    font-size: 4rem;
    line-height: 4.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.blog-intro {
    color: var(--color-6);
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Blog Posts Section */
.blog-posts {
    background-color: var(--color-3);
    padding: 4rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Post Card */
.post-card {
    background-color: var(--color-6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.post-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-title {
    font-size: 1.5rem;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.post-card-title a {
    color: var(--color-3);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-title a:hover {
    color: var(--color-1);
}

.post-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--color-4);
}

.post-date {
    font-weight: 500;
}

.post-categories a {
    color: var(--color-1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-categories a:hover {
    color: var(--color-2);
}

.post-card-excerpt {
    color: var(--color-3);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more-link {
    color: var(--color-1);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: var(--color-2);
}

/* Pagination */
.blog-pagination {
    text-align: center;
    margin-top: 3rem;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.blog-pagination ul.page-numbers {
    list-style: none; /* Remove default list styling */
    padding: 0;
    margin: 0;
    display: inline-flex; /* Align items horizontally */
    justify-content: center;
    background: none; /* Override background coming from generic .page-numbers rule */
}

.blog-pagination ul.page-numbers li {
    margin: 0 0.25rem; /* Space between items */
}

/* Ensure only the individual links get the pill styling */
.blog-pagination ul.page-numbers li .page-numbers {
    display: inline-block;
    padding: 0.75rem 1rem;
    background-color: var(--color-6);
    color: var(--color-3);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.blog-pagination ul.page-numbers li .page-numbers:hover,
.blog-pagination ul.page-numbers li .page-numbers.current {
    background-color: var(--color-1);
    color: var(--color-6);
}

.blog-pagination .prev,
.blog-pagination .next {
    font-weight: 600;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 3rem;
    background-color: var(--color-6);
    border-radius: 12px;
}

.no-posts h2 {
    color: var(--color-3);
    margin-bottom: 1rem;
}

.no-posts p {
    color: var(--color-4);
    font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-title {
        font-size: 3rem;
        line-height: 3.5rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 3rem 0;
    }
    
    .blog-title {
        font-size: 2.5rem;
        line-height: 3rem;
    }
    
    .blog-intro {
        font-size: 1.125rem;
    }
    
    .blog-posts {
        padding: 3rem 0;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card-content {
        padding: 1.25rem;
    }
    
    .post-card-title {
        font-size: 1.375rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 2rem 0;
    }
    
    .blog-title {
        font-size: 2rem;
        line-height: 2.5rem;
    }
    
    .blog-posts {
        padding: 2rem 0;
    }
    
    .post-card-content {
        padding: 1rem;
    }
    
    .post-card-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
} 