/* Category Teaser Grid Styles */
.category-teaser-grid {
    padding: 4rem 0;
    margin-bottom: 0;
}

/* Category Header */
.category-header {
    padding: 1rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: #333;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    padding: 0 1rem;
}

.category-teaser {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    background: #e9ecef;
    text-decoration: none;
    max-height: 350px;
    margin-bottom: 0.75rem;
}

.category-image {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.no-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-placeholder:before {
    content: "📄";
    font-size: 2rem;
    color: #adb5bd;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 60, 51, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-meta {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.category-title {
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    margin: 0;
    padding: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hover effects */
.category-teaser:hover .category-overlay {
    opacity: 1;
}

.category-teaser:hover .category-title,
.category-teaser:hover .post-meta {
    transform: translateY(0);
}

.category-teaser:hover img {
    transform: scale(1.1);
}

/* No posts found message */
.no-posts-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    color: #666;
}

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

.pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    background: #fff;
    border: 1px solid #dee2e6;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-numbers.current {
    background: #333;
    color: #fff;
    border-color: #333;
}

.pagination .page-numbers:hover:not(.current) {
    background: #f8f9fa;
    border-color: #adb5bd;
}

/* Container width classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .category-teaser-grid,
    .category-header {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 0;
    }

    .category-title {
        font-size: 1.25rem;
    }

    .category-overlay {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {

    .category-teaser-grid,
    .category-header {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .category-overlay {
        padding: 1rem;
    }

    .post-meta {
        font-size: 0.8rem;
    }
}