/* ----------------------------------------------------------- */
/* :root - تعريف متغيرات CSS موحدة */
/* ----------------------------------------------------------- */
:root {
    --primary-color: #1a73e8;
    --primary-hover: #115bbd;
    --secondary-color: #6c757d;
    --secondary-hover: #5a6268;
    --accent-color: #28a745;
    --accent-hover: #218838;
    --danger-color: #dc3545;
    --danger-hover: #bd2130;
    --light-bg: #f5f7fa;
    --dark-text: #202124;
    --border-color: #dadce0;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --header-height: 70px;
}

/* ----------------------------------------------------------- */
/* إصلاحات عامة للأنماط */
/* ----------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(to bottom, #f0f5ff, #f8f9fa 200px);
    min-height: 100vh;
    position: relative;
    color: var(--dark-text);
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* إصلاحات الروابط */
a {
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform-origin: right;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

/* إصلاحات العناوين */
h1, h2, h3, h4, h5, h6 {
    position: relative;
    padding-bottom: 15px;
    color: var(--dark-text);
    margin-bottom: 20px;
    font-weight: bold;
}

h1::after, h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* إصلاحات الأزرار */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 115, 232, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 8px rgba(95, 99, 104, 0.2);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(95, 99, 104, 0.3);
}

.btn-outline-info {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-info:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-icon i {
    margin-left: 8px;
}

/* إصلاحات الحاويات */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----------------------------------------------------------- */
/* مكونات الصفحة الرئيسية */
/* ----------------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 20%, transparent 20%);
    background-size: 30px 30px;
    transform: rotate(30deg);
    opacity: 0.3;
}

.search-form-home {
    max-width: 800px;
    margin: 30px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.search-form-home .input-group {
    position: relative;
    flex: 1 1 calc(33.333% - 10px);
    min-width: 200px;
    margin-bottom: 0;
}

.search-form-home .input-group i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    color: #777;
    z-index: 2;
}

.search-form-home .input-group input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-form-home .input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
    outline: none;
}

.search-form-home button {
    flex: 0 0 auto;
    padding: 12px 25px;
    white-space: nowrap;
    align-self: center;
}

/* ----------------------------------------------------------- */
/* بطاقات المهنيين */
/* ----------------------------------------------------------- */
.professional-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.professional-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.professional-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(26, 115, 232, 0.05));
    opacity: 0;
    z-index: -1;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.professional-card:hover::before {
    opacity: 1;
    transform: scale(1.03);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.professional-card .profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--primary-color);
    transition: var(--transition);
}

.professional-card:hover .profile-image {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.professional-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
    padding-bottom: 0;
}

.professional-card h3::after {
    display: none;
}

.professional-card p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.professional-card .rating {
    margin-top: 10px;
    margin-bottom: 15px;
}

.professional-card .button {
    margin-top: 15px;
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
}

.professional-card .button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 168, 83, 0.3);
}

/* ----------------------------------------------------------- */
/* الهيدر المحسّن */
/* ----------------------------------------------------------- */
.main-header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-header.header-scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--dark-text);
    font-size: 1.8rem;
    font-weight: 700;
    gap: 10px;
    white-space: nowrap;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 5px;
}

.logo-text {
    color: var(--primary-color);
    transition: var(--transition);
}

.logo:hover .logo-text {
    color: var(--primary-hover);
}

.main-nav .nav-list {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .nav-list li a {
    color: var(--dark-text);
    font-weight: 500;
    padding: 10px 0;
    transition: var(--transition);
    position: relative;
}

.main-nav .nav-list li a:hover {
    color: var(--primary-color);
}

.main-nav .nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav .nav-list li a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ----------------------------------------------------------- */
/* الفوتر المحسّن */
/* ----------------------------------------------------------- */
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;
}

/* ----------------------------------------------------------- */
/* صفحة تفاصيل المهني */
/* ----------------------------------------------------------- */
.professional-profile {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.professional-profile::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.05;
    z-index: -1;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.profile-header .profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.profile-info h1::after {
    display: none;
}

.profile-info p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.contact-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.contact-button i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.contact-button:hover i {
    transform: scale(1.2);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.profile-section {
    background-color: #fcfdff;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.profile-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.profile-section ul {
    list-style: none;
    padding: 0;
}

.profile-section ul li {
    margin-bottom: 10px;
    color: var(--dark-text);
}

.profile-section ul li strong {
    color: var(--primary-color);
}

.work-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.work-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.work-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#map {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-top: 20px;
}

#map:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ----------------------------------------------------------- */
/* نظام التقييم */
/* ----------------------------------------------------------- */
.rating {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 193, 7, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    margin: 10px 0;
}

.rating .stars {
    display: inline-flex;
}

.rating .stars i {
    font-size: 1.2rem;
    color: #ffc107;
    margin-left: 2px;
}

.rating .stars i.half::before {
    content: "\f5c0";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.rating .rating-value {
    font-weight: 700;
    margin: 0 5px 0 8px;
    color: #ff9800;
}

.rating .rating-count {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* ----------------------------------------------------------- */
/* التصميم المتجاوب */
/* ----------------------------------------------------------- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .professionals-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .main-nav .nav-list {
        gap: 15px;
    }
    
    .search-form-home .input-group {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 15px;
        line-height: 1.6;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-header .profile-image {
        margin-bottom: 20px;
    }
    
    .contact-links, .social-links {
        justify-content: center;
    }
    
    .search-form-home {
        flex-direction: column;
    }
    
    .search-form-home .input-group {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .search-form-home button {
        width: 100%;
    }
    
    .d-lg-block {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .professional-card {
        padding: 15px;
    }
    
    .work-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    #map {
        height: 300px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-img {
        height: 35px;
    }
}

/* ----------------------------------------------------------- */
/* خطوط وأيقونات */
/* ----------------------------------------------------------- */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/fa-solid-900.woff2') format('woff2');
}

.fas {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* ----------------------------------------------------------- */
/* تأثيرات بصرية */
/* ----------------------------------------------------------- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    min-height: 20px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------------------- */
/* نماذج وعناصر إدارية */
/* ----------------------------------------------------------- */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--dark-text);
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.login-container, 
.admin-form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-color: var(--light-bg);
    padding: 20px;
}

.login-box, 
.admin-form {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

/* ----------------------------------------------------------- */
/* لوحة التحكم */
/* ----------------------------------------------------------- */
.dashboard-layout {
    display: flex;
    gap: 30px;
    padding: 30px 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.dashboard-sidebar {
    background-color: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    min-width: 250px;
    flex: 1;
}

.dashboard-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    flex: 2;
}

.info-box {
    background-color: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

/* ----------------------------------------------------------- */
/* الجداول */
/* ----------------------------------------------------------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.data-table thead th {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 15px;
    text-align: right;
    font-weight: bold;
}

.data-table tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.data-table tbody tr:hover {
    background-color: #e9ecef;
}

.data-table .actions {
    white-space: nowrap;
}

.data-table .actions .action-button {
    margin-left: 5px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* ----------------------------------------------------------- */
/* رسائل التنبيه */
/* ----------------------------------------------------------- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-align: center;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ----------------------------------------------------------- */
/* عناصر خاصة بالصور */
/* ----------------------------------------------------------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.portfolio-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    position: relative;
    text-align: center;
}

.portfolio-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-item .delete-button {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--danger-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.portfolio-item .delete-button:hover {
    opacity: 1;
}

.no-results, .no-professional-found {
    text-align: center;
    padding: 50px 20px;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.no-results i, .no-professional-found i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

/* ----------------------------------------------------------- */
/* أزرار إضافية للـ JavaScript */
/* ----------------------------------------------------------- */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s, opacity 0.3s;
}

#scrollToTopBtn:hover {
    background-color: var(--primary-hover);
}

/* حالة القائمة النشطة */
body.menu-open {
    overflow: hidden;
}

/* تنسيقات التقييمات */
.reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.review-item {
    background-color: #fbfdff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    direction: ltr; /* النجوم من اليسار لليمين */
}

.client-name {
    font-weight: bold;
    font-size: 1.2em;
    color: #34495e;
    flex-grow: 1;
    text-align: right; /* الاسم على اليمين */
}

.review-stars {
    flex-shrink: 0;
    display: flex;
}

.review-stars .fas.fa-star.gold-star {
    color: #f39c12;
    margin: 0 1px;
}

.review-stars .far.fa-star {
    color: #ddd;
    margin: 0 1px;
}

.review-comment {
    margin-bottom: 15px;
    color: #555;
    font-size: 1em;
    line-height: 1.6;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-right: 3px solid #3498db; /* خط زخرفي على اليمين */
}

.review-date {
    font-size: 0.85em;
    color: #888;
    display: block;
    text-align: left; /* التاريخ على اليسار */
}

/* 6. أيقونة الواتساب العائمة */
@keyframes pulse-img {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.whatsapp-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    animation: pulse-img 2s infinite;
}

.whatsapp-floating-btn:hover .whatsapp-icon-img {
    animation: none;
    transform: scale(1.1);
}

/* زر الاتصال العائم الجديد */
.phone-floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
.phone-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    animation: pulse-img 2s infinite;
    padding: 5px; /* يفضل أن يكون البادينغ على الـ button نفسه إذا كان الهدف هو المساحة حول الأيقونة */
}

.phone-floating-btn:hover .phone-icon-img {
    animation: none;
    transform: scale(1.1);
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/webfonts/fa-brands-400.woff2') format('woff2');
    font-display: swap;
}



/* تحديد حجم وارتفاع السطر لعنوان h1 داخل section لمنع "قفز" المحتوى */
section h1 {
    font-size: 24px; /* يمكنك تعديل هذا الحجم ليتناسب مع تصميمك */
    line-height: 1.2; /* هذا يضمن أن ارتفاع السطر ثابت */
    font-weight: bold;
}

#map {
    height: 400px; /* يمكن تعديل القيمة حسب الحاجة */
    width: 100%;
}
/* أزرار الاتصال العائمة */
.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; /* أو أي لون آخر يناسب تصميمك */
}
/* تنسيقات صفحة المقال */
.post-page {
    padding: 60px 0;
}

.blog-post {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.post-header {
    text-align: center;
    margin-bottom: 30px;
}

.post-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-featured-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

.post-content {
    line-height: 1.8;
    color: #34495e;
    font-size: 1.1rem;
}

/* تنسيق العناصر داخل محتوى المقال */
.post-content h1,
.post-content h2,
.post-content h3 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 15px;
    padding-right: 20px;
}

.post-content blockquote {
    font-style: italic;
    border-right: 4px solid #3498db;
    padding-right: 20px;
    margin: 20px 0;
    color: #7f8c8d;
}

.post-content pre, .post-content code {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 6px;
    font-family: monospace;
    overflow-x: auto;
}

.alert.error {
    background-color: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
}
/* --- Blog Page Styles --- */
.blog-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/images/blog-hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.blog-hero p {
    font-size: 1.2rem;
    font-weight: 300;
}

.featured-posts,
.blog-posts {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #3498db;
    margin: 10px auto 0;
    border-radius: 2px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-card .post-content {
    padding: 20px;
}

.post-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card h3 a {
    color: #34495e;
    text-decoration: none;
    transition: color 0.3s;
}

.post-card h3 a:hover {
    color: #3498db;
}

.post-card p {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.post-meta span {
    font-size: 0.85rem;
    color: #95a5a6;
}

.no-featured-posts {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}