/* Blog Archive Styles */

/* Fullwidth layout - remove sidebar */
.blog .content-area,
.archive .content-area,
.category .content-area,
.tag .content-area {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Override Storefront left-sidebar layout */
@media (min-width: 768px) {
    .blog.left-sidebar .content-area,
    .archive.left-sidebar .content-area,
    .category.left-sidebar .content-area,
    .tag.left-sidebar .content-area {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }
}

/* Fullwidth col-full */
.blog .col-full,
.archive .col-full,
.category .col-full,
.tag .col-full {
    max-width: 100%;
}

@media (min-width: 768px) {
    .blog .col-full,
    .archive .col-full,
    .category .col-full,
    .tag .col-full {
        max-width: 100%;
    }
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--border-brown) 100%);
    color: white;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F5F2E9' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 1;
}

.blog-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.blog-hero-title {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
	color: var(--bg-soft-beige);
    animation: fadeInUp 0.6s ease;
}

.blog-hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(250, 250, 247, 0.9);
    margin: 0;
    animation: fadeInUp 0.6s ease 0.1s both;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Filters */
.blog-filters {
    background: white;
    padding: 40px 20px;
    border-bottom: 1px solid var(--bg-soft-beige);
}

.blog-filters-container {
    max-width: 1200px;
    margin: 0 auto;
}

.category-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-filter-btn {
    padding: 12px 28px;
    background: var(--bg-soft-beige);
    color: var(--text-dark);
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.category-filter-btn:hover {
    background: white;
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 79, 79, 0.15);
}

.category-filter-btn.active {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 60px 20px;
    background: var(--bg-warm-white);
}

.blog-posts-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

/* Blog Post Card */
.blog-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(47, 79, 79, 0.15);
}

.blog-post-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 66.67%; /* 3:2 aspect ratio */
}

.blog-post-thumbnail a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blog-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blog-post-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-post-date,
.blog-post-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6d6d6d;
}

.blog-post-date svg,
.blog-post-category svg {
    width: 14px;
    height: 14px;
}

.blog-post-category a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-post-category a:hover {
    color: var(--border-brown);
}

.blog-post-title {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.blog-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: var(--accent-green);
}

.blog-post-excerpt {
    font-size: 15px;
    color: #6d6d6d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-post-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-green);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.blog-post-readmore:hover {
    gap: 12px;
    color: var(--border-brown);
}

.blog-post-readmore svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.blog-post-readmore:hover svg {
    transform: translateX(4px);
}

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

.pagination .page-numbers {
    padding: 12px 18px;
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--bg-soft-beige);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    .blog-hero {
        padding: 40px 20px;
    }

    .blog-hero-title {
        font-size: 36px;
    }

    .blog-hero-description {
        font-size: 16px;
    }

    .blog-filters {
        padding: 30px 20px;
    }

    .category-filter-buttons {
        gap: 10px;
    }

    .category-filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .blog-posts-section {
        padding: 40px 20px;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .blog-post-content {
        padding: 25px;
    }

    .blog-post-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 28px;
    }

    .category-filter-buttons {
        flex-direction: column;
    }

    .category-filter-btn {
        width: 100%;
        text-align: center;
    }

    .blog-post-content {
        padding: 20px;
    }
}
