/**
 * Taxonomy Services Category Styles
 * Enhanced styling for subcategories and services display
 */

/* General Styles */
.services_category-content {
    margin: 2rem 0;
}

.section-title {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    text-align: right;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: #0073aa;
}

/* Term Header */
.term-header-content {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.term-icon {
    flex: 0 0 80px;
    margin-left: 1.5rem;
}

.term-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.term-text {
    flex: 1;
}

.page-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    color: #333;
}

.archive-description {
    color: #666;
    line-height: 1.6;
}

/* Subcategories Section */
.subcategories-section {
    margin-bottom: 3rem;
}

.services-subcategories {
    margin-bottom: 2rem;
}

.taxonomy-display {
    display: grid;
    gap: 1.5rem;
}

.display-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .display-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .display-grid.columns-3 {
        grid-template-columns: 1fr;
    }
}

.subcategory-card {
    position: relative;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.subcategory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.subcategory-card:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background-color: #0073aa;
    opacity: 0.8;
}

.taxonomy-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.taxonomy-icon {
    margin-bottom: 1rem;
    text-align: center;
}

.taxonomy-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
    padding: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.subcategory-card:hover .taxonomy-icon img {
    transform: scale(1.1);
}

.taxonomy-content {
    text-align: center;
}

.taxonomy-name {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.term-count {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    color: #666;
    background-color: #f0f0f0;
    border-radius: 20px;
}

.term-description {
    margin: 0.75rem 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.view-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0073aa;
    transition: color 0.2s ease;
}

.view-more i {
    margin-right: 0.25rem;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.subcategory-card:hover .view-more {
    color: #005177;
}

.subcategory-card:hover .view-more i {
    transform: translateX(-3px);
}

/* Services Section */
.services-section {
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.service-thumbnail {
    position: relative;
    overflow: hidden;
}

.service-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.5rem;
}

.service-card .entry-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.service-card .entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.service-card .entry-title a:hover {
    color: #0073aa;
}

.service-card .entry-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.service-footer {
    margin-top: auto;
    text-align: left;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background-color: #0073aa;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.read-more-btn:hover {
    background-color: #005177;
}

.read-more-btn i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

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

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

.pagination {
    display: inline-flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 0.25rem;
    font-size: 0.95rem;
    color: #666;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-numbers.current {
    color: #fff;
    background-color: #0073aa;
}

.page-numbers:hover:not(.current) {
    background-color: #e9ecef;
}

/* No Content Message */
.no-services-found {
    padding: 3rem 1.5rem;
    text-align: center;
}

.no-content-message {
    display: inline-block;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.no-content-message i {
    display: block;
    margin-bottom: 1rem;
    font-size: 3rem;
    color: #ccc;
}

.no-content-message p {
    margin: 0;
    font-size: 1.1rem;
    color: #666;
}

/* RTL Specific Adjustments */
.taxonomy-item.text-align-center {
    text-align: center;
}

.service-card .entry-title,
.service-card .entry-content {
    text-align: right;
}
