/* ملف خدمات أصولى - services.css */
.nospercent-single-service {
    padding: 20px 0;
}

.service-breadcrumb {
    margin-bottom: 20px;
    color: #6c757d;
    font-size: 14px;
}

.service-breadcrumb a {
    color: #002c4b;
    text-decoration: none;
}

.service-breadcrumb a:hover {
    text-decoration: underline;
}

.service-header {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.service-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.service-type-badge.legal {
    background: #28a745;
}

.service-type-badge.engineering {
    background: #007bff;
}

.service-header h1 {
    color: #002c4b;
    margin: 10px 0;
    font-size: 28px;
}

.service-provider {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 16px;
}

.service-price .price {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
}

.service-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.service-main {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-main h2 {
    color: #002c4b;
    border-bottom: 2px solid #002c4b;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 22px;
}

.description-content,
.terms-content {
    line-height: 1.8;
    color: #495057;
    font-size: 16px;
}

.service-reviews {
    margin-top: 40px;
}

.review-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    background: #fafafa;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: bold;
    color: #002c4b;
}

.review-date {
    color: #6c757d;
    font-size: 0.9em;
}

.review-rating {
    color: #ffc107;
    margin-bottom: 10px;
}

.review-content {
    color: #495057;
    line-height: 1.6;
}

.no-reviews {
    text-align: center;
    color: #6c757d;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    font-style: italic;
}

.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.provider-info,
.service-stats {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.provider-info h3,
.service-stats h3 {
    color: #002c4b;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 18px;
}

.provider-details p {
    margin-bottom: 10px;
    color: #495057;
    font-size: 14px;
}

.service-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.request-service-btn,
.view-more-services-btn {
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 16px;
}

.request-service-btn {
    background: #002c4b;
    color: white;
}

.request-service-btn:hover {
    background: #001a33;
    color: white;
    text-decoration: none;
}

.view-more-services-btn {
    background: #28a745;
    color: white;
}

.view-more-services-btn:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    font-size: 18px;
    font-weight: bold;
    color: #002c4b;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8em;
    color: #6c757d;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #002c4b;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.service-type {
    background: #002c4b;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 14px;
}

.service-price {
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
    margin: 10px 0;
}

.service-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.service-link {
    display: inline-block;
    background: #002c4b;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.service-link:hover {
    background: #001a33;
    color: white;
}

@media (max-width: 768px) {
    .service-content {
        grid-template-columns: 1fr;
    }
    
    .service-header {
        padding: 20px;
    }
    
    .service-main {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-header h1 {
        font-size: 24px;
    }
    
    .service-type-badge {
        position: static;
        margin-bottom: 15px;
        display: inline-block;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* أنماط أرشيف الخدمات من archive-service.php */
.services-archive-page {
    padding: 20px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.services-hero {
    background: linear-gradient(135deg, #002c4b 0%, #004275 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.services-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.services-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.services-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    background: #f1f1f1;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    background: #002c4b;
    color: white;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 30px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.legal-service .service-badge {
    background: #28a745;
}

.engineering-service .service-badge {
    background: #007bff;
}

.service-image {
    height: 180px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: #002c4b;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.service-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9rem;
}

.service-provider, .service-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #495057;
}

.service-rating {
    color: #ffc107;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.service-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: #28a745;
}

.service-btn {
    padding: 8px 20px;
    background: #002c4b;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-btn:hover {
    background: #001a33;
    color: white;
}

.no-services {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.no-services i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.no-services h3 {
    color: #495057;
    margin-bottom: 10px;
}

.no-services p {
    color: #6c757d;
}

@media (max-width: 768px) {
    .services-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: center;
    }
    
    .search-box {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .services-hero p {
        font-size: 1rem;
    }
}

/* إضافة هذه الأنماط إلى ملف services.css */
.service-subtypes {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border-right: 3px solid #002c4b;
}

.service-subtypes strong {
    color: #002c4b;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.subtypes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.subtype-tag {
    background: #002c4b;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-block;
    margin: 2px;
}

/* للخدمات الهندسية */
.engineering-service .service-subtypes {
    border-right-color: #28a745;
}

.engineering-service .subtype-tag {
    background: #28a745;
}

.engineering-service .service-subtypes strong {
    color: #28a745;
}

/* أنماط الخدمة المفردة من single-service.php */
.single-service-container {
    padding-bottom: 40px;
}

.service-hero {
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
}

.service-breadcrumb {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.service-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.service-breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

.service-breadcrumb span {
    color: white;
}

.service-breadcrumb i {
    font-size: 12px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.service-type-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 14px;
}

.service-type-badge.legal {
    background: #28a745;
}

.service-type-badge.engineering {
    background: #007bff;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.service-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.service-price {
    margin-bottom: 25px;
}

.service-price .price {
    font-size: 2rem;
    font-weight: 700;
}

.request-service-btn {
    display: inline-block;
    padding: 15px 30px;
    background: white;
    color: #002c4b;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.request-service-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.service-details {
    margin-top: 40px;
}

.service-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.service-main-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.content-section {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    color: #002c4b;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.description-content {
    line-height: 1.8;
    color: #495057;
    font-size: 16px;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li i {
    color: #28a745;
}

.reviews-summary {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.average-rating {
    text-align: center;
}

.score {
    font-size: 2.5rem;
    font-weight: 700;
    color: #002c4b;
}

.out-of {
    font-size: 1.2rem;
    color: #6c757d;
}

.stars {
    color: #ffc107;
    margin: 5px 0;
}

.total-reviews {
    color: #6c757d;
    font-size: 0.9rem;
}

.rating-bars {
    flex-grow: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rating-bar span:first-child {
    width: 60px;
    color: #495057;
    font-size: 0.9rem;
}

.bar {
    flex-grow: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: #ffc107;
    border-radius: 4px;
}

.rating-bar span:last-child {
    width: 40px;
    text-align: right;
    color: #6c757d;
    font-size: 0.9rem;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #002c4b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.reviewer-name {
    font-weight: 600;
    color: #002c4b;
}

.review-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.review-rating {
    color: #ffc107;
}

.review-content {
    color: #495057;
    line-height: 1.6;
}

.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-reviews i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.sidebar-widget h3 {
    color: #002c4b;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.provider-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
}

.detail-item .label {
    font-weight: 600;
    color: #495057;
}

.detail-item .value {
    color: #6c757d;
    text-align: left;
}

.detail-item a {
    color: #002c4b;
    text-decoration: none;
}

.detail-item a:hover {
    text-decoration: underline;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #002c4b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-weight: 700;
    color: #002c4b;
    font-size: 1.1rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.side-btn {
    display: block;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.side-btn:last-child {
    margin-bottom: 0;
}

.request-service-btn.side-btn {
    background: #002c4b;
    color: white;
}

.request-service-btn.side-btn:hover {
    background: #001a33;
}

.more-services-btn.side-btn {
    background: #28a745;
    color: white;
}

.more-services-btn.side-btn:hover {
    background: #218838;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.social-btn.facebook {
    background: #3b5998;
}

.social-btn.twitter {
    background: #1da1f2;
}

.social-btn.linkedin {
    background: #0077b5;
}

.social-btn.whatsapp {
    background: #25d366;
}

@media (max-width: 992px) {
    .service-layout {
        grid-template-columns: 1fr;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .service-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .service-hero {
        padding: 30px 0;
    }
}

// انماط لتعديل ارشيف الخدمات
<style>
.services-archive-page {
    padding: 20px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.services-hero {
    background: linear-gradient(135deg, #002c4b 0%, #004275 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.services-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.services-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.services-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    background: #f1f1f1;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    background: #002c4b;
    color: white;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    align-items: stretch; /* هذا التعديل */
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex; /* هذا التعديل */
    flex-direction: column; /* هذا التعديل */
    height: 100%; /* هذا التعديل */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 30px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.legal-service .service-badge {
    background: #28a745;
}

.engineering-service .service-badge {
    background: #007bff;
}

.service-image {
    height: 180px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 20px;
    flex-grow: 1; /* هذا التعديل */
    display: flex; /* هذا التعديل */
    flex-direction: column; /* هذا التعديل */
}

.service-content h3 {
    color: #002c4b;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.service-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1; /* هذا التعديل */
}

.service-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9rem;
}

.service-provider, .service-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #495057;
}

.service-rating {
    color: #ffc107;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    margin-top: auto; /* هذا التعديل */
}

.service-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: #28a745;
}

.service-btn {
    padding: 8px 20px;
    background: #002c4b;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-btn:hover {
    background: #001a33;
    color: white;
}

.no-services {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.no-services i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.no-services h3 {
    color: #495057;
    margin-bottom: 10px;
}

.no-services p {
    color: #6c757d;
}

@media (max-width: 768px) {
    .services-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
        display: grid;
        /* هذا السطر يضمن أن الأزرار تتوزع بشكل متناسق في صفوف متعددة */
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
        /* تعديل إضافي: إزالة الحدود لتتناسب مع التصميم الجديد */
        border: none;
    }
    
    .filter-btn {
        width: 100%;
        padding: 12px 10px;
        font-size: 14px;
        text-align: center;
        flex-grow: 1;
        /* هذا السطر يضمن أن الأزرار تكون دائرية بالكامل */
        border-radius: 30px !important;
    }

    .search-box {
        width: 100%;
        margin-top: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .services-hero p {
        font-size: 1rem;
    }
}
</style>

<style>
/* أنماط النوافذ المنبثقة */
.nospercent-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    overflow-y: auto;
}

.nospercent-modal .modal-content {
    background: #fff;
    border-radius: 15px;
    margin: 50px auto;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.nospercent-modal h3 {
    background: linear-gradient(135deg, #002c4b, #004d80);
    color: white;
    padding: 20px;
    margin: 0;
    text-align: center;
    font-size: 1.3rem;
}

.terms-content, .confirm-content {
    padding: 25px;
    max-height: 300px;
    overflow-y: auto;
}

.terms-content h4 {
    color: #002c4b;
    margin: 20px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.terms-agreement {
    padding: 20px;
    background: #f8f9ff;
    border-top: 1px solid #e8f0fe;
}

.terms-agreement label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}

.modal-actions {
    padding: 20px;
    background: #f8f9ff;
    border-top: 1px solid #e8f0fe;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.close-terms-modal, .close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-terms-modal:hover, .close-modal:hover {
    background: rgba(255,255,255,0.3);
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #002c4b;
}

.service-details-confirm {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #e8f0fe;
}

@media (max-width: 768px) {
    .nospercent-modal .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .modal-actions {
        flex-direction: column;
    }
}
</style>

 <style>
    /* أنماط النوافذ المنبثقة */
    .nospercent-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.8);
        z-index: 9999;
        overflow-y: auto;
    }

    .nospercent-modal .modal-content {
        background: #fff;
        border-radius: 15px;
        margin: 50px auto;
        max-width: 500px;
        position: relative;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    .nospercent-modal h3 {
        background: linear-gradient(135deg, #002c4b, #004d80);
        color: white;
        padding: 20px;
        margin: 0;
        text-align: center;
        font-size: 1.3rem;
    }

    .terms-content, .confirm-content {
        padding: 25px;
        max-height: 300px;
        overflow-y: auto;
    }

    .terms-content h4 {
        color: #002c4b;
        margin: 20px 0 10px 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .terms-content p {
        color: #555;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .terms-agreement {
        padding: 20px;
        background: #f8f9ff;
        border-top: 1px solid #e8f0fe;
    }

    .terms-agreement label {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-weight: 600;
    }

    .modal-actions {
        padding: 20px;
        background: #f8f9ff;
        border-top: 1px solid #e8f0fe;
        display: flex;
        gap: 15px;
        justify-content: center;
    }

    .close-terms-modal, .close-modal {
        position: absolute;
        top: 15px;
        left: 15px;
        font-size: 24px;
        font-weight: bold;
        color: white;
        cursor: pointer;
        background: rgba(255,255,255,0.2);
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s;
    }

    .close-terms-modal:hover, .close-modal:hover {
        background: rgba(255,255,255,0.3);
    }

    .loading-spinner {
        text-align: center;
        padding: 20px;
        color: #002c4b;
    }

    .service-details-confirm {
        background: #f8f9ff;
        padding: 15px;
        border-radius: 8px;
        margin: 15px 0;
        border: 1px solid #e8f0fe;
    }

    /* أنماط التقييمات */
    .service-rating-overview {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 10px 0;
    }

    .rating-stars {
        color: #ffc107;
        font-size: 18px;
    }

    .rating-text {
        color: #666;
        font-weight: 600;
    }

    /* أنماط الأزرار */
    .request-service-btn {
        background: linear-gradient(135deg, #002c4b, #004d80);
        color: white;
        border: none;
        padding: 15px 25px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        font-size: 16px;
        width: 100%;
        text-align: center;
        display: block;
        margin-bottom: 15px;
        transition: all 0.3s ease;
    }

    .request-service-btn:hover {
        background: linear-gradient(135deg, #004d80, #002c4b);
        transform: translateY(-2px);
    }

    .view-more-services-btn {
        background: #28a745;
        color: white;
        padding: 15px 25px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
        width: 100%;
        text-align: center;
        display: block;
        transition: all 0.3s ease;
    }

    .view-more-services-btn:hover {
        background: #218838;
        transform: translateY(-2px);
    }

    .nospercent-btn-primary {
        background: linear-gradient(135deg, #002c4b, #004d80);
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .nospercent-btn-primary:hover {
        background: linear-gradient(135deg, #008a5f, #00b383);
        transform: translateY(-2px);
    }

    .nospercent-btn-secondary {
        background: #6c757d;
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .nospercent-btn-secondary:hover {
        background: #5a6268;
        transform: translateY(-2px);
    }

    /* إحصائيات الخدمة */
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-item {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        background: #002c4b;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .stat-number {
        font-weight: 700;
        color: #002c4b;
        font-size: 1.2rem;
    }

    .stat-label {
        color: #6c757d;
        font-size: 0.9rem;
    }

    @media (max-width: 768px) {
        .nospercent-modal .modal-content {
            margin: 20px;
            width: calc(100% - 40px);
        }
        
        .modal-actions {
            flex-direction: column;
        }
        
        .service-content {
            grid-template-columns: 1fr;
        }
        
        .service-sidebar {
            order: -1;
        }
    }
    </style>