        /* جميع أنماط CSS المدمجة */
        :root {
            --primary-color: #0056b3;
            --secondary-color: #f8f9fa;
            --text-color: #333;
            --light-grey: #e9ecef;
            --border-color: #dee2e6;
            --shadow-light: rgba(0, 0, 0, 0.1);
            --gradient-start: #007bff;
            --gradient-end: #0056b3;
        }

        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: #f4f7f6;
            margin: 0;
            padding: 0;
        }

        .container {
            max-width: 1200px;
            margin: 20px auto;
            padding: 0 15px;
        }

        /* Header Styling */
        .main-header {
            background-color: #ffffff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 20px;
        }

        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: var(--primary-color);
            font-size: 1.5em;
            font-weight: bold;
        }

        .logo-img {
            height: 40px;
            margin-left: 10px;
        }

        .nav-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            gap: 20px;
        }

        .main-nav a {
            color: var(--text-color);
            text-decoration: none;
            font-weight: bold;
            transition: color 0.3s ease;
        }

        .main-nav a:hover {
            color: var(--primary-color);
        }
        
        .header-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .btn {
            padding: 8px 15px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: background-color 0.3s ease;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
            border: 1px solid var(--primary-color);
        }

        .btn-secondary {
            background-color: #f0f0f0;
            color: var(--text-color);
            border: 1px solid #ccc;
        }

        .menu-toggle {
            display: none; /* Hide by default on large screens */
            background: none;
            border: none;
            cursor: pointer;
            padding: 10px;
            position: relative;
            z-index: 1002;
        }

        .menu-toggle .bar {
            display: block;
            width: 25px;
            height: 3px;
            background-color: var(--primary-color);
            margin: 5px auto;
            transition: all 0.3s ease;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease;
        }
        
        /* Mobile Menu Styles */
        @media (max-width: 768px) {
            .header-content {
                padding: 10px;
            }

            .main-nav {
                position: fixed;
                top: 0;
                right: -100%; /* Initially hide off-screen */
                width: 70%;
                height: 100%;
                background-color: #fff;
                box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
                transition: right 0.3s ease;
                z-index: 1001;
                padding-top: 80px;
                display: flex;
                flex-direction: column;
                align-items: flex-start;
            }

            .main-header.active .main-nav {
                right: 0; /* Show on active */
            }

            .nav-list {
                flex-direction: column;
                width: 100%;
            }

            .nav-list li {
                width: 100%;
                border-bottom: 1px solid #eee;
            }
            
            .nav-list a {
                display: block;
                padding: 15px 20px;
                color: #333;
            }

            .header-actions {
                display: none;
            }

            .menu-toggle {
                display: block;
            }
            
            .main-header.active .overlay {
                opacity: 1;
                visibility: visible;
            }
        }

        /* Hero Section */
        .hero-section {
            background: linear-gradient(135deg, #0a1128 0%, #122a46 100%);
            color: white;
            padding: 80px 0;
            text-align: center;
            position: relative;
            overflow: hidden;
            border-radius: 0 0 25px 25px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
            display: flex;
            align-items: center;
            min-height: 450px;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.15);
            z-index: 1;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 900px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .profile-image-wrapper {
            width: 160px;
            height: 160px;
            border-radius: 50%;
            overflow: hidden;
            margin: 0 auto 25px;
            border: 6px solid rgba(255, 255, 255, 0.7);
            box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2);
            background-color: #fff;
            transition: transform 0.3s ease-in-out;
        }

        .profile-image-wrapper:hover {
            transform: scale(1.05);
        }

        .profile-image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .hero-section h1 {
            font-size: 3.8em;
            margin-bottom: 12px;
            font-weight: 800;
            letter-spacing: 1.5px;
            text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
            color: #ffffff;
        }

        .hero-section .profession {
            font-size: 2.2em;
            font-weight: 600;
            margin-bottom: 20px;
            color: #ffffff;
            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
        }

        .hero-section p {
            font-size: 1.3em;
            margin-bottom: 25px;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
            opacity: 0.9;
        }

        .stars {
            color: #ffd700;
            font-size: 2.4em;
            margin-bottom: 25px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
        }

        .contact-buttons {
            margin-top: 40px;
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
        }

        .contact-buttons .btn {
            display: inline-flex;
            align-items: center;
            padding: 15px 20px;
            border-radius: 35px;
            text-decoration: none;
            font-weight: bold;
            font-size: 1.2em;
            transition: all 0.3s ease;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
            position: relative;
            overflow: hidden;
        }

        .contact-buttons .btn:hover {
            transform: translateY(-5px);
        }

        .contact-buttons .btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.1);
            transition: all 0.4s ease-in-out;
            transform: skewX(-20deg);
        }

        .contact-buttons .btn:hover::after {
            left: 100%;
        }

        .contact-buttons .btn i {
            margin-left: 12px;
            font-size: 1.3em;
        }

        .contact-buttons .btn-phone {
            background-color: #28a745;
            color: white;
            border: 2px solid #28a745;
        }

        .contact-buttons .btn-phone:hover {
            background-color: #218838;
            border-color: #218838;
        }

        .contact-buttons .btn-whatsapp {
            background-color: #007bff;
            color: white;
            border: 2px solid #007bff;
        }

        .contact-buttons .btn-whatsapp:hover {
            background-color: #0056b3;
            border-color: #0056b3;
        }

        /* General Section Styling */
        .section-spacing {
            padding: 50px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .section-spacing:last-of-type {
            border-bottom: none;
        }

        .section-title {
            text-align: center;
            font-size: 2.5em;
            margin-bottom: 40px;
            color: var(--primary-color);
            position: relative;
            padding-bottom: 15px;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: var(--primary-color);
            border-radius: 2px;
        }

        /* About Section */
        .about-section .content-block {
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px var(--shadow-light);
            margin-bottom: 30px;
        }

        .about-section .contact-info {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-top: 20px;
            justify-content: center;
        }

        .about-section .contact-info div {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.1em;
            color: #555;
        }

        .about-section .contact-info div i {
            color: var(--primary-color);
            font-size: 1.3em;
        }

        .social-links {
            margin-top: 30px;
            text-align: center;
        }

        .social-links a {
            color: var(--primary-color);
            font-size: 2em;
            margin: 0 15px;
            transition: transform 0.3s ease;
        }

        .social-links a:hover {
            transform: translateY(-3px);
            color: #007bff;
        }

        /* Services Section */
        .services-section .service-item {
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px var(--shadow-light);
            margin-bottom: 30px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .services-section .service-item h3 {
            color: var(--primary-color);
            font-size: 1.8em;
            margin-top: 0;
            text-align: center;
        }

        .services-section .service-item .service-image-wrapper {
            width: 100%;
            max-height: 350px;
            overflow: hidden;
            border-radius: 8px;
            margin-top: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .services-section .service-item .service-image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Portfolio Section */
        .portfolio-section .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }

        .portfolio-section .gallery-item {
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 10px var(--shadow-light);
            transition: transform 0.3s ease;
        }

        .portfolio-section .gallery-item:hover {
            transform: translateY(-5px);
        }

        .portfolio-section .gallery-item img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            display: block;
        }

        /* Map Section */
        .map-section #map {
            height: 400px;
            border-radius: 8px;
            box-shadow: 0 2px 10px var(--shadow-light);
            margin-top: 30px;
        }

        /* FAQ Section */
        .faq-section .faq-item {
            background-color: white;
            border-radius: 8px;
            margin-bottom: 15px;
            box-shadow: 0 2px 8px var(--shadow-light);
            overflow: hidden;
        }

        .faq-section .faq-question {
            padding: 20px;
            border-bottom: 1px solid var(--border-color);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: bold;
            color: var(--primary-color);
            transition: background-color 0.3s ease;
        }

        .faq-section .faq-question:hover {
            background-color: var(--secondary-color);
        }

        .faq-section .faq-question i {
            transition: transform 0.3s ease;
        }

        .faq-section .faq-answer {
            padding: 0 20px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out, padding 0.3s ease-out;
            background-color: var(--secondary-color);
        }

        .faq-section .faq-answer p {
            padding-bottom: 20px;
            margin-top: 0;
        }

        .faq-section .faq-item.active .faq-answer {
            max-height: 500px;
            padding: 20px;
        }

        .faq-section .faq-item.active .faq-question i {
            transform: rotate(180deg);
        }

        /* Testimonials Section */
        .testimonials-section .testimonial-card {
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px var(--shadow-light);
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
        }

        .testimonials-section .testimonial-card .customer-name {
            font-weight: bold;
            color: var(--primary-color);
            margin-bottom: 5px;
        }

        .testimonials-section .testimonial-card .stars {
            font-size: 1em;
            margin-bottom: 10px;
        }

        .testimonials-section .testimonial-card .review-text {
            font-style: italic;
            color: #555;
        }

        .rating-form {
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px var(--shadow-light);
            margin-top: 40px;
        }

        .rating-form h3 {
            text-align: center;
            color: var(--primary-color);
            margin-bottom: 25px;
        }

        .rating-form .form-group {
            margin-bottom: 15px;
        }

        .rating-form label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
        }

        .rating-form input[type="text"],
        .rating-form textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--border-color);
            border-radius: 5px;
            font-size: 1em;
            box-sizing: border-box;
        }

        .rating-form .stars-input {
            display: flex;
            flex-direction: row-reverse;
            justify-content: flex-end;
            gap: 5px;
        }

        .rating-form .stars-input input {
            display: none;
        }

        .rating-form .stars-input label {
            cursor: pointer;
            color: #ccc;
            font-size: 1.8em;
            transition: color 0.2s ease;
        }

        .rating-form .stars-input label:hover,
        .rating-form .stars-input label:hover ~ label,
        .rating-form .stars-input input:checked ~ label {
            color: #ffc107;
        }

        .rating-form button {
            display: block;
            width: 100%;
            padding: 12px 20px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 1.1em;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .rating-form button:hover {
            background-color: var(--gradient-end);
        }

        .alert {
            padding: 15px;
            margin-bottom: 20px;
            border-radius: 5px;
            font-size: 1.1em;
            text-align: center;
        }

        .alert.success {
            background-color: #d4edda;
            color: #155724;
            border-color: #c3e6cb;
        }

        .alert.error {
            background-color: #f8d7da;
            color: #721c24;
            border-color: #f5c6cb;
        }

        /* Service Areas Section */
        .service-areas-section .content-block {
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px var(--shadow-light);
        }

        .service-areas-section .content-block p {
            margin-bottom: 1em;
        }

        .service-areas-section .content-block ul {
            list-style-type: disc;
            margin-right: 20px;
            padding-right: 0;
        }

        /* Call to Action Section */
        .cta-section {
            background: linear-gradient(90deg, #1a1a2e, #16213e);
            color: white;
            text-align: center;
            padding: 80px 0;
            border-radius: 15px;
            margin-top: 50px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }

        .cta-section h2 {
            font-size: 3em;
            margin-bottom: 20px;
            font-weight: bold;
            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
        }

        .cta-section p {
            font-size: 1.3em;
            margin-bottom: 40px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta-section .cta-buttons {
            display: flex;
            justify-content: center;
            gap: 25px;
            flex-wrap: wrap;
        }

        .cta-section .cta-buttons .btn {
            padding: 15px 35px;
            border-radius: 35px;
            text-decoration: none;
            font-weight: bold;
            font-size: 1.2em;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        .cta-section .cta-buttons .btn-call {
            background-color: #28a745;
            color: white;
            border: 2px solid #28a745;
        }

        .cta-section .cta-buttons .btn-call:hover {
            background-color: #218838;
            border-color: #218838;
            transform: translateY(-5px);
        }

        .cta-section .cta-buttons .btn-email {
            background-color: transparent;
            color: white;
            border: 2px solid white;
        }

        .cta-section .cta-buttons .btn-email:hover {
            background-color: white;
            color: var(--primary-color);
            transform: translateY(-5px);
        }

        /* Media Queries for responsiveness */
        @media (max-width: 992px) {
            .hero-section h1 {
                font-size: 2.8em;
            }
            .hero-section .profession {
                font-size: 1.5em;
            }
            .section-title {
                font-size: 2em;
            }
            .cta-section h2 {
                font-size: 2.5em;
            }
            .cta-section p {
                font-size: 1.1em;
            }
        }

        @media (max-width: 768px) {
            .hero-section {
                padding: 40px 0;
            }
            .hero-section h1 {
                font-size: 2.2em;
            }
            .hero-section .profession {
                font-size: 1.3em;
            }
            .contact-buttons {
                flex-direction: column;
                gap: 15px;
            }
            .contact-buttons .btn {
                width: 90%;
                margin: 0 auto;
            }
            .section-spacing {
                padding: 30px 0;
            }
            .section-title {
                font-size: 1.8em;
                margin-bottom: 30px;
            }
            .about-section .contact-info {
                flex-direction: column;
                align-items: center;
            }
            .portfolio-section .gallery-grid {
                grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            }
            .cta-section {
                padding: 60px 0;
            }
            .cta-section h2 {
                font-size: 2em;
            }
            .cta-section p {
                font-size: 1.1em;
            }
            .cta-section .cta-buttons {
                flex-direction: column;
                gap: 15px;
            }
            .cta-section .cta-buttons .btn {
                width: 70%;
                margin: 0 auto;
            }
        }

        @media (max-width: 576px) {
            .container {
                padding: 0 10px;
            }
            .profile-image-wrapper {
                width: 100px;
                height: 100px;
            }
            .hero-section h1 {
                font-size: 1.8em;
                letter-spacing: 0;
            }
            .hero-section .profession {
                font-size: 1.1em;
            }
            .section-title {
                font-size: 1.5em;
            }
            .about-section .content-block,
            .services-section .service-item,
            .rating-form,
            .service-areas-section .content-block {
                padding: 20px;
            }
            .faq-section .faq-question {
                padding: 15px;
                font-size: 0.95em;
            }
            .faq-section .faq-answer {
                padding: 0 15px;
            }
            .faq-section .faq-answer p {
                padding-bottom: 15px;
            }
            .cta-section h2 {
                font-size: 1.8em;
            }
            .cta-section p {
                font-size: 0.9em;
            }
            .cta-section .cta-buttons .btn {
                font-size: 1em;
                padding: 10px 20px;
            }
        }

        /* إضافة أنماط تنسيق الجداول */
        .content-block table,
        .service-item table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            font-size: 1em;
            line-height: 1.5;
            border: 1px solid var(--border-color);
        }

        .content-block th,
        .content-block td,
        .service-item th,
        .service-item td {
            border: 1px solid var(--border-color);
            padding: 12px 15px;
            text-align: right;
            /* لتتوافق مع اتجاه الـ RTL */
            vertical-align: top;
        }

        .content-block thead th,
        .service-item thead th {
            background-color: var(--primary-color);
            color: #fff;
            font-weight: bold;
        }

        .content-block tbody tr:nth-child(even),
        .service-item tbody tr:nth-child(even) {
            background-color: var(--secondary-color);
        }

        .content-block table caption,
        .service-item table caption {
            caption-side: top;
            font-size: 1.2em;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        /* أزرار المشاركة العائمة */
.social-share-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: scale(1.1);
}

.facebook { background-color: #3b5998; }
.twitter { background-color: #1da1f2; }
.whatsapp { background-color: #25d366; }
.linkedin { background-color: #0077b5; }
.telegram { background-color: #0088cc; }
.copy-link { background-color: #6c757d; }

/* للهواتف المحمولة */
@media (max-width: 768px) {
    .social-share-sidebar {
        flex-direction: row;
        top: auto;
        bottom: 0;
        right: 50%;
        transform: translateX(50%);
        border-radius: 8px 8px 0 0;
    }
}

img {
  /* تجعل الصورة مرنة وتتكيف مع حجم الحاوية */
  max-width: 100%;
  height: auto;
}

@font-face {
  font-family: 'Font Awesome 5 Brands';
  font-style: normal;
  font-weight: 400;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/webfonts/fa-brands-400.woff2") format("woff2");
  font-display: swap; /* هذا هو السطر الذي يجب إضافته */
}

.fas {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* ----------------------------------------------------------- */
/* الفوتر المحسّن */
/* ----------------------------------------------------------- */
footer {
    background: linear-gradient(to right, #1a1e2c, #2c3e50);
    padding: 2.5rem 0 1rem;
    color: #fff;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: right;
}

.footer-section h3 {
    color: #fff;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #d1d5db;
    transition: var(--transition);
    padding: 5px 0;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(-5px);
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #9ca3af;
    text-align: center;
}

/* تحديد حجم وارتفاع السطر لعنوان h1 داخل section لمنع "قفز" المحتوى */
section h1 {
    font-size: 24px; /* يمكنك تعديل هذا الحجم ليتناسب مع تصميمك */
    line-height: 1.2; /* هذا يضمن أن ارتفاع السطر ثابت */
    font-weight: bold;
}

#map {
    height: 400px; /* يمكن تعديل القيمة حسب الحاجة */
    width: 100%;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* لتحسين التمرير على أجهزة iOS */
}

/* هذا الكود يحل المشكلة لجميع الحالات المذكورة في التحذير */
section h1,
article h1,
nav h1,
aside h1 {
  font-size: 2rem; 
  /* يمكنك تغيير القيمة حسب تصميمك. 
  مثلاً: font-size: 24px; */
}

/* حجم الخط الأساسي للشاشات الصغيرة */
.hero-section h1 {
    font-size: 24px;
}

/* حجم الخط للشاشات المتوسطة والكبيرة (768 بكسل وما فوق) */
@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 36px;
    }
}

/* حجم الخط للشاشات الكبيرة جدًا (1200 بكسل وما فوق) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 48px;
    }
}

/* تنسيقات قسم المهنيين الآخرين */
.related-professionals-section {
    background-color: #f9f9f9; /* لون خلفية فاتح للقسم */
    padding: 40px 0;
}

.related-professionals-section .section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
    position: relative;
}

.related-professionals-section .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #007bff; /* لون مميز تحت العنوان */
    margin: 10px auto 0;
}

/* تنسيقات الشبكة (Grid) التي تحتوي على البطاقات */
.professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* يضبط عدد الأعمدة تلقائيًا */
    gap: 25px; /* المسافة بين البطاقات */
    justify-items: center;
}

/* تنسيقات البطاقة نفسها */
.professional-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* تأثير عند المرور بالماوس */
    text-decoration: none; /* إزالة الخط السفلي من الرابط */
    color: inherit; /* وراثة لون النص */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.professional-card:hover {
    transform: translateY(-5px); /* رفع البطاقة قليلًا عند المرور بالماوس */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* تنسيق حاوية الصورة */
.card-image-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* جعل الصورة دائرية */
    overflow: hidden; /* إخفاء أي جزء خارج الدائرة */
    border: 3px solid #007bff;
    margin-bottom: 15px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* لضمان تغطية الصورة للحاوية بشكل صحيح */
}

/* تنسيق محتوى البطاقة */
.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.card-title {
    font-size: 1.25em;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.card-profession {
    font-size: 0.95em;
    color: #666;
    margin: 0 0 10px 0;
}

/* تنسيق النجوم */
.stars-display {
    color: #ffc107; /* لون النجوم الذهبي */
    font-size: 1em;
    margin-bottom: 5px;
}

.stars-display .fas,
.stars-display .far {
    margin: 0 1px;
}

/* تنسيق عدد التقييمات */
.card-rating-count {
    font-size: 0.8em;
    color: #999;
    margin: 0;
}

/* أزرار الاتصال العائمة */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.floating-btn.whatsapp-btn {
    background-color: #25D366;
}

.floating-btn.phone-btn {
    background-color: #007bff; /* أو أي لون آخر يناسب تصميمك */
}