/* Child Categories */
.child-categories {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.child-category {
    text-align: center;
}

.child-category img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.child-category h2 {
    font-size: 1.5rem;
    margin: 0;
}

/* Taxonomy Posts */
.taxonomy-posts {
    display: grid;
    gap: 20px;
}

/* Desktop: 4 columns */
.taxonomy-posts {
    grid-template-columns: repeat(4, 1fr);
}

/* Tablet: 3 columns */
@media (max-width: 1024px) {
    .taxonomy-posts {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 2 columns */
@media (max-width: 767px) {
    .taxonomy-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

.taxonomy-post {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}
.img_taxonomy-post{
    border-radius: 50%;
}
.taxonomy-post .post-thumbnail img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.taxonomy-post h3 {
    margin-top: 15px;
    font-size: 1.25rem;
}

.taxonomy-post .post-content {
    margin-top: 10px;
    font-size: 0.9rem;
}

.p-10 {
    padding: 10px;
}

.term-header {
    text-align: center;
    margin-bottom: 30px;
}

.term-title {
    font-size: 36px;
    color: #333;
}

.term-description {
    font-size: 18px;
    color: #666;
    margin-top: 10px;
}

.taxonomy-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.taxonomy-items-grid .elementor-grid-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.taxonomy-items-grid .elementor-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.taxonomy-items-grid .elementor-grid-item img {
    transition: all 0.3s ease;
}

.taxonomy-items-grid .elementor-grid-item:hover img {
    transform: scale(1.05);
}

.taxonomy-items-grid .elementor-grid-item a {
    transition: color 0.3s ease;
}

.taxonomy-items-grid .elementor-grid-item:hover a {
    color: #007bff;
}

/* برای موبایل */
@media screen and (max-width: 768px) {
    .taxonomy-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
