/* Blog Archive Template Styles */

.blog-archive-wrapper {
    width: 100%;
    padding: 72px 16px 80px;
}

.blog-archive-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Page Title */
.blog-archive-title {
    color: #2C2C2C;
    text-align: center;
    font-family: "Helvetica Neue";
    font-size: 44px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    margin: 0 0 56px;
}

/* Category Filter */
.blog-category-filter {
    max-width: 1260px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 64px;
}

.category-btn {
    padding: 16px 32px;
    background-color: #ffffff;
    border: 1px solid #EAEAEA;
    border-radius: 100px;
    font-size: 20px;
    font-weight: 500;
    color: #2C2C2C;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-btn:hover {
    background-color: #F4F8FC;
    border-color: #E8F1F8;
    color: #1E73BE;
}

.category-btn.active {
    background-color: #F4F8FC;
    border-color: #E8F1F8;
    color: #1E73BE;
}

/* Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    max-width: 1250px;
    margin: 0 auto 40px;
}

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Post Card */
.blog-post-card {
    background-color: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-title-excerpt{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-thumbnail {
    width: 100%;
    height: 228px;
    border-radius: 12px;
    overflow: hidden; 
}

.post-thumbnail img{
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

.post-card-content {
    padding: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #625D5E;
}

.post-category {
    display: flex;
    align-items: center; 
    padding: 4px 12px; 
    color: #1E73BE;
    font-weight: 500;
    border-radius: 32px;
    background: #F4F8FC;
}

.post-category svg {
    width: 16px;
    height: 16px;
}

.post-date {
    color: #999999;
}

/* Post Title */
.post-card-content h2.post-title { 
color:  #2C2C2C;
font-family: "Helvetica Neue";
font-size: 24px;
font-style: normal;
font-weight: 500;
line-height: normal;
    margin: 0;
}

.post-title a {
    color: #2C2C2C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #1E73BE;
}

/* Post Excerpt */
.post-excerpt {
    overflow: hidden;
    color: #625D5E;
    font-family: "Helvetica Neue";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; 
    flex-grow: 1;
}

/* Post Author */
.post-author {
    display: flex;
    align-items: center;
    gap: 8px; 
}

.post-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    color: #2C2C2C;
font-family: "Helvetica Neue";
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 24px; 
}

/* No Posts Message */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #999999;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.blog-pagination ul {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.blog-pagination li {
    margin: 0;
}

.blog-pagination a,
.blog-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 5px 6px;
    background-color: #ffffff; 
    border-radius: 12px;
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-pagination a:hover {
    background-color: #f0f0f0;
    border-color: #d0d0d0;
}

.blog-pagination .current {
    background-color: #E8F1F8;
    color: #1E73BE; 
}

.blog-pagination .prev,
.blog-pagination .next {
    padding: 0;
}

.blog-pagination svg {
    width: 12px;
    height: auto;
}

.blog-pagination .dots {
    border: none;
    background: transparent;
    color: #999999;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-archive-title {
        font-size: 36px;
    }
    
    .blog-category-filter {
        gap: 12px;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .post-title {
        font-size: 20px;
    }
    .post-thumbnail{
        height: 192px;
    }
}

@media (max-width: 480px) {
    .blog-archive-wrapper {
        padding: 28px 16px 32px;
    }
    
    .blog-archive-title {
        font-size: 20px;
        margin-bottom: 32px;
    }
    
    .blog-category-filter {
        margin-bottom: 40px;
    }
}