/* Blog Styles */
.blog-main {
    background-color: var(--color-background-default, #F7F5F2);
    padding-bottom: 80px;
}

/* Minimal header with gradient */
.blog-header-minimal {
    background: linear-gradient(135deg, var(--color-primary, rgba(0, 33, 34)) 0%, var(--color-primary-light, #2a3845) 100%);
    padding: 160px 0 163px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.blog-header-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,128C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
    background-size: cover;
}

.blog-title-minimal {
    font-size: 36px;
    font-weight: 600;
    color: white;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    position: relative;
    z-index: 1;
}

.archive-prefix {
    font-size: 20px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 8px;
}

/* Screen reader text for SEO */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

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

/* Featured Post */
.featured-post {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 60px;
}

.featured-post-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.featured-image {
    position: relative;
    overflow: hidden;
    background: var(--color-background-default, #F7F5F2);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E0E0E0 0%, #F5F5F5 100%);
}

.featured-text {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-block;
    background: var(--color-secondary, #f3a37d);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
    width: fit-content;
}

.featured-categories {
    margin-bottom: 16px;
}

.category-badge {
    display: inline-block;
    background: var(--color-primary, rgba(0, 33, 34));
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    margin-right: 8px;
    transition: background-color 0.3s ease;
}

.category-badge:hover {
    background: var(--color-teal, #5ea89f);
}

.featured-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.featured-title a {
    color: var(--color-text-primary, #2A2F32);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: var(--color-primary, rgba(0, 33, 34));
}

.featured-meta {
    color: var(--color-text-secondary, #8B9296);
    font-size: 14px;
    margin-bottom: 20px;
}

.featured-meta span {
    margin-right: 16px;
}

.featured-excerpt {
    color: var(--color-text-primary, #2A2F32);
    line-height: 1.6;
    margin-bottom: 24px;
}

.read-more-btn {
    display: inline-block;
    color: var(--color-primary, rgba(0, 33, 34));
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    transform: translateX(4px);
}

/* Categories Section */
.blog-categories {
    margin-bottom: 60px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-primary, #2A2F32);
    margin-bottom: 32px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.category-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary, rgba(0, 33, 34));
}

.category-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary, #2A2F32);
    margin-bottom: 4px;
}

.category-count {
    font-size: 13px;
    color: var(--color-text-secondary, #8B9296);
}

/* Top Posts Section */
.top-posts-section {
    margin-bottom: 60px;
}

.top-posts-grid {
    display: grid;
    gap: 24px;
}

.top-post-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.top-post-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.top-post-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-secondary, #f3a37d);
    flex-shrink: 0;
    line-height: 1;
}

.top-post-content {
    display: flex;
    gap: 20px;
    flex: 1;
    align-items: center;
}

.top-post-image {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.top-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-post-text {
    flex: 1;
}

.category-tag {
    display: inline-block;
    background: var(--color-background-default, #F7F5F2);
    color: var(--color-text-primary, #2A2F32);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 8px;
    transition: background-color 0.3s ease;
}

.category-tag:hover {
    background: var(--color-primary, rgba(0, 33, 34));
    color: white;
}

.top-post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.top-post-title a {
    color: var(--color-text-primary, #2A2F32);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-post-title a:hover {
    color: var(--color-primary, rgba(0, 33, 34));
}

.top-post-meta {
    font-size: 13px;
    color: var(--color-text-secondary, #8B9296);
}

.top-post-meta span {
    margin-right: 12px;
}

.read-time {
    position: relative;
    padding-left: 16px;
}

.read-time::before {
    content: '•';
    position: absolute;
    left: 4px;
}

/* Recent Posts Grid */
.recent-posts-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.view-all-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary, rgba(0, 33, 34));
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-all-link:hover {
    color: var(--color-teal, #5ea89f);
    transform: translateX(4px);
}

/* Archive page styles */
.archive-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E0E0E0;
}

.archive-breadcrumb {
    margin-bottom: 16px;
}

.archive-breadcrumb a {
    color: var(--color-primary, rgba(0, 33, 34));
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.archive-breadcrumb a:hover {
    color: var(--color-teal, #5ea89f);
    transform: translateX(-4px);
    display: inline-block;
}

.archive-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.archive-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary, #8B9296);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.archive-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-primary, #2A2F32);
}

.archive-description {
    width: 100%;
    margin-top: 12px;
    color: var(--color-text-secondary, #8B9296);
    font-size: 15px;
    line-height: 1.6;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
    background: var(--color-background-default, #F7F5F2);
}

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

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

.post-content {
    padding: 24px;
}

.post-category {
    display: inline-block;
    background: var(--color-primary, rgba(0, 33, 34));
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 12px;
    transition: background-color 0.3s ease;
}

.post-category:hover {
    background: var(--color-teal, #5ea89f);
}

.post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-title a {
    color: var(--color-text-primary, #2A2F32);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--color-primary, rgba(0, 33, 34));
}

.post-meta {
    font-size: 13px;
    color: var(--color-text-secondary, #8B9296);
    margin-bottom: 12px;
}

.post-excerpt {
    color: var(--color-text-primary, #2A2F32);
    line-height: 1.5;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a {
    background: white;
    color: var(--color-text-primary, #2A2F32);
    border: 1px solid #E0E0E0;
}

.pagination a:hover {
    background: var(--color-primary, rgba(0, 33, 34));
    color: white;
    border-color: var(--color-primary, rgba(0, 33, 34));
}

.pagination .current {
    background: var(--color-primary, rgba(0, 33, 34));
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-title {
        font-size: 36px;
    }
    
    .blog-subtitle {
        font-size: 16px;
    }
    
    .featured-post-content {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 240px;
    }
    
    .featured-text {
        padding: 32px 24px;
    }
    
    .featured-title {
        font-size: 24px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .top-post-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .top-post-number {
        font-size: 24px;
    }
    
    .top-post-content {
        width: 100%;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .blog-container {
        padding: 0 24px;
    }
}