/* Services Listing Page */
.services-listing-section {
    padding: 45px 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Results Count */
.results-count {
    margin-bottom: 30px;
    padding: 15px 20px;
    background: rgba(81, 177, 70, 0.1);
    border-radius: 10px;
    border-left: 4px solid #51b146;
}

.results-count p {
    margin: 0;
    color: #004b6b;
    font-weight: 500;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Service Card Header */
.service-card-header {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(81, 177, 70, 0.1), rgba(0, 75, 107, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    z-index: 2;
    position: relative;
}

.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Service Card Content */
.service-card-content {
    padding: 25px;
}

.service-card-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.service-card-title a {
    color: #004b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-card-title a:hover {
    color: #51b146;
}

.service-card-subtitle {
    color: #51b146;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 15px 0;
}

.service-card-excerpt {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Service Features Preview */
.service-features-preview {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(81, 177, 70, 0.05);
    border-radius: 10px;
    border-left: 3px solid #51b146;
}

.feature-preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.feature-preview-item:last-child {
    margin-bottom: 0;
}

.feature-preview-item i {
    color: #51b146;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.feature-preview-item span {
    color: #333333;
    font-weight: 500;
}

/* Service Stats */
.service-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 75, 107, 0.05);
    border-radius: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #004b6b;
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-item i {
    color: #51b146;
    font-size: 0.8rem;
}

/* Service Card Footer */
.service-card-footer {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.view-service-btn,
.contact-service-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.view-service-btn {
    background: linear-gradient(135deg, #51b146, #004b6b);
    color: #ffffff;
    flex: 1;
    justify-content: center;
}

.view-service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.4);
}

.contact-service-btn {
    background: transparent;
    color: #51b146;
    border: 2px solid #51b146;
    padding: 8px 16px;
    font-size: 0.8rem;
}

.contact-service-btn:hover {
    background: #51b146;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.3);
}

.view-service-btn i,
.contact-service-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.view-service-btn:hover i,
.contact-service-btn:hover i {
    transform: translateX(3px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background: rgba(81, 177, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #51b146;
    font-size: 2rem;
}

.no-results h3 {
    color: #004b6b;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-results p {
    color: #666666;
    margin-bottom: 0;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    color: #004b6b;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.3);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #004b6b;
    text-decoration: none;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(81, 177, 70, 0.3);
}

.pagination-number.active {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
    box-shadow: 0 3px 10px rgba(81, 177, 70, 0.3);
}

.pagination-dots {
    color: #999999;
    font-weight: 600;
    padding: 0 5px;
}

/* Contact Modal */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.contact-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    animation: slideInUp 0.3s ease-out;
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.contact-modal-header h3 {
    margin: 0;
    color: #004b6b;
    font-size: 1.3rem;
}

.close-contact-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-contact-modal:hover {
    color: #51b146;
}

.contact-modal-body p {
    color: #666666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(81, 177, 70, 0.05);
    border-radius: 15px;
    border-left: 4px solid #51b146;
}

.contact-method i {
    color: #51b146;
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.contact-method h4 {
    margin: 0 0 5px 0;
    color: #004b6b;
    font-size: 1rem;
}

.contact-method a {
    color: #51b146;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: #004b6b;
}

/* Dark Theme */
.dark-theme .services-listing-section {
    background: #1a1a1a;
}

.dark-theme .results-count {
    background: rgba(81, 177, 70, 0.1);
}

.dark-theme .results-count p {
    color: #eeeff1;
}

.dark-theme .service-card {
    background: #2d2d2d;
}

.dark-theme .service-card-header {
    background: linear-gradient(135deg, rgba(81, 177, 70, 0.1), rgba(0, 75, 107, 0.1));
}

.dark-theme .service-card-title a {
    color: #eeeff1;
}

.dark-theme .service-card-title a:hover {
    color: #51b146;
}

.dark-theme .service-card-subtitle {
    color: #51b146;
}

.dark-theme .service-card-excerpt {
    color: #cccccc;
}

.dark-theme .service-features-preview {
    background: rgba(81, 177, 70, 0.1);
}

.dark-theme .feature-preview-item span {
    color: #e0e0e0;
}

.dark-theme .service-stats {
    background: rgba(0, 75, 107, 0.1);
}

.dark-theme .stat-item {
    color: #eeeff1;
}

.dark-theme .no-results {
    background: #2d2d2d;
}

.dark-theme .no-results h3 {
    color: #eeeff1;
}

.dark-theme .no-results p {
    color: #cccccc;
}

.dark-theme .pagination-btn {
    background: #2d2d2d;
    color: #eeeff1;
    border-color: #444444;
}

.dark-theme .pagination-btn:hover {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
}

.dark-theme .pagination-number {
    background: #2d2d2d;
    color: #eeeff1;
    border-color: #444444;
}

.dark-theme .pagination-number:hover {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
}

.dark-theme .pagination-number.active {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
}

.dark-theme .pagination-dots {
    color: #999999;
}

.dark-theme .contact-modal-content {
    background: #2d2d2d;
}

.dark-theme .contact-modal-header h3 {
    color: #eeeff1;
}

.dark-theme .contact-modal-body p {
    color: #cccccc;
}

.dark-theme .contact-method {
    background: rgba(81, 177, 70, 0.1);
}

.dark-theme .contact-method h4 {
    color: #eeeff1;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .services-listing-section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 767.98px) {
    .services-listing-section {
        padding: 40px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card-content {
        padding: 20px;
    }
    
    .service-card-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .view-service-btn,
    .contact-service-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .pagination-numbers {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .pagination-btn {
        order: 1;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .service-card-header {
        height: 150px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-card-title {
        font-size: 1.1rem;
    }
    
    .service-card-excerpt {
        font-size: 0.9rem;
    }
    
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

