/* Category Page Styles */
.category-page {
    padding: var(--spacing-xl) 0;
}



.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.2;
}

/* Posts Section Styles */
.posts-section {
    margin: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.posts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

/* Featured Post Styles */
.post-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.post-card.featured::before {
    content: "Featured";
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--primary-color);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.post-card.featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.post-card.featured .post-thumbnail {
    position: relative;
    overflow: hidden;
}

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

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

.post-card.featured .post-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Regular Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.post-card .post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.post-card .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-card .post-content {
    padding: var(--spacing-md);
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
}

.post-category a {
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    transition: background 0.3s ease;
}

.post-category a:hover {
    color: #ffffff;
}

.post-date {
    color: var(--text-muted);
    font-weight: 500;
}

/* Post Title */
.post-title {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.post-card.featured .post-title {
    font-size: 1.5rem;
}

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

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

/* Post Excerpt */
.post-excerpt {
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 var(--spacing-md) 0;
    font-size: 0.875rem;
}

.post-card.featured .post-excerpt {
    font-size: 1rem;
}

/* Post Footer */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
}

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

.post-read-time {
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-page {
        padding: var(--spacing-lg) 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .post-card.featured {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .post-card.featured .post-content {
        padding: var(--spacing-md);
    }
    
    .post-card.featured .post-title {
        font-size: 1.25rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .post-card .post-content {
        padding: var(--spacing-sm);
    }
    
    .post-title {
        font-size: 1.125rem;
    }
    
    .post-excerpt {
        font-size: 0.8rem;
    }
    
    .post-footer {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .post-card.featured .post-title {
        font-size: 1.125rem;
    }
    
    .post-title {
        font-size: 1rem;
    }
}
