/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/


.custom-category-posts {
    width: 100%;
    margin: 10px 0;
}

.custom-category-posts *,
.custom-category-posts *::before,
.custom-category-posts *::after {
    box-sizing: border-box;
}

.custom-category-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.custom-category-posts-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.custom-category-posts-link {
    text-decoration: none;
    font-weight: 600;
}

.custom-category-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.custom-category-post-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.custom-category-post-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

.custom-category-post-card:hover .custom-category-post-image img {
    transform: scale(1.04);
}

.custom-category-post-content {
    padding: 20px;
}

.custom-category-post-meta {
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
}

.custom-category-post-heading {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.5;
}

.custom-category-post-heading a {
    color: inherit;
    text-decoration: none;
}

.custom-category-post-excerpt {
    margin-bottom: 16px;
    color: #4b5563;
    line-height: 1.8;
}

.custom-category-post-read-more {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
}

.custom-category-posts-error,
.custom-category-posts-empty {
    padding: 15px;
    background: #f3f4f6;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .custom-category-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .custom-category-posts-grid {
        grid-template-columns: 1fr;
    }

    .custom-category-posts-header {
        align-items: flex-start;
        flex-direction: column;
    }
}