/* style.css - النظام الأساسي للتنسيق البصري الفخم لموقع خبراء العدل بالمغرب */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #1b4332;       /* أخضر ملكي داكن */
    --primary-light: #2d6a4f;      /* أخضر متوسط */
    --primary-pale: #e8f5e9;       /* أخضر باهت للخلفيات */
    --secondary-color: #c7923e;     /* ذهبي ملكي دافئ */
    --secondary-light: #dfb36c;    /* ذهبي فاتح */
    --dark-neutral: #1f2937;       /* رمادي داكن للنصوص الأساسية */
    --light-neutral: #f8fafc;      /* خلفية الصفحة الأساسية */
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -2px rgba(0,0,0,0.05);
    --font-main: 'Cairo', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* التنسيق العام */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--light-neutral);
    color: var(--dark-neutral);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* شريط التنبيهات العلوي */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 2px solid var(--secondary-color);
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.top-info span {
    margin-left: 20px;
}

.top-info i {
    color: var(--secondary-color);
    margin-left: 5px;
}

/* الهيدر الرئيسي */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.logo-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--secondary-color);
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* قائمة التنقل */
.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-neutral);
    padding: 8px 12px;
    border-radius: 6px;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background-color: var(--primary-pale);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* واجهة العرض الرئيسية - Hero */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(27,67,50,0.92) 0%, rgba(45,106,79,0.85) 100%), 
                url('../images/court-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 120px 20px 140px;
    text-align: center;
    border-bottom: 5px solid var(--secondary-color);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-light);
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
}

/* شريط البحث السريع */
.search-container {
    max-width: 750px;
    margin: 0 auto;
    background: var(--white);
    padding: 12px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(199, 146, 62, 0.3);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding-right: 15px;
}

.search-input-wrapper input {
    width: 100%;
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--dark-neutral);
    background: transparent;
}

.search-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--primary-color);
    font-family: var(--font-main);
    border: none;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(199, 146, 62, 0.4);
    filter: brightness(1.05);
}

/* الحاويات العامة والمساحات */
.section {
    padding: 80px 20px;
}

.section-alt {
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* كلمة الرئيس */
.president-speech {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.president-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--secondary-color);
    aspect-ratio: 4/3;
    background-color: var(--primary-color);
}

.president-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.president-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    border-right: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.president-badge h4 {
    font-size: 1rem;
    font-weight: 700;
}

.president-badge p {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.speech-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.speech-text p {
    color: #4b5563;
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: justify;
}

.signature {
    margin-top: 30px;
    font-style: italic;
    font-weight: 600;
    color: var(--primary-light);
}

/* قسم الإحصائيات */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 60px 20px;
    border-top: 3px solid var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px 20px;
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-color);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 5px;
    display: block;
}

.stat-label {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* بطاقات الأخبار والأنشطة */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(199, 146, 62, 0.3);
}

.news-image {
    position: relative;
    height: 200px;
    background-color: var(--primary-pale);
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.news-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-link:hover {
    color: var(--primary-color);
}

/* قسم الفوتر - Footer */
footer {
    background-color: #111827;
    color: #e5e7eb;
    padding: 70px 20px 30px;
    border-top: 4px solid var(--secondary-color);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #9ca3af;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    color: #9ca3af;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9ca3af;
}

.footer-contact i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* تنسيقات صفحات البحث (جدول الخبراء) */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 4px solid var(--secondary-color);
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.search-filters-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-top: -40px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.filter-btn {
    background-color: var(--primary-color);
    color: var(--white);
    font-family: var(--font-main);
    border: none;
    padding: 14px 25px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    background-color: var(--primary-light);
}

.clear-btn {
    background-color: #f1f5f9;
    color: #475569;
    font-family: var(--font-main);
    border: 1px solid #cbd5e1;
    padding: 14px 25px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.clear-btn:hover {
    background-color: #cbd5e1;
}

/* بطاقات وقائمة الخبراء */
.experts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.expert-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 25px;
    align-items: center;
    transition: var(--transition-smooth);
}

.expert-card:hover {
    border-color: var(--secondary-light);
    box-shadow: var(--shadow-md);
    transform: scale(1.01);
}

.expert-avatar {
    width: 70px;
    height: 70px;
    background-color: var(--primary-pale);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    border: 2px solid var(--primary-light);
}

.expert-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.expert-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.expert-tag {
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.tag-spec {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.tag-court {
    background-color: #fef3c7;
    color: #b45309;
}

.tag-reg {
    background-color: #f0fdf4;
    color: #15803d;
}

.expert-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

.expert-contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.expert-contact-info i {
    color: var(--primary-light);
}

.expert-action {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn-phone {
    background-color: var(--primary-pale);
    color: var(--primary-color);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(45, 106, 79, 0.2);
}

.action-btn-phone:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

/* صفحة القوانين */
.laws-table-container {
    background-color: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.laws-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.laws-table th,
.laws-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.laws-table th {
    background-color: var(--primary-pale);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.laws-table tr:hover {
    background-color: #f8fafc;
}

.law-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fee2e2;
    color: #dc2626;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.law-download-btn:hover {
    background-color: #dc2626;
    color: var(--white);
}

/* صفحة اتصل بنا */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 40px;
}

.contact-info-card {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    padding: 40px;
    border-bottom: 5px solid var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.contact-info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--secondary-light);
}

.contact-detail-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-detail-item i {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-top: 4px;
}

.contact-detail-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-detail-item p {
    color: #d1d5db;
    font-size: 0.9rem;
}

.contact-form-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    padding: 14px 35px;
    font-family: var(--font-main);
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(45,106,79,0.3);
}

/* خريطة المقر */
.map-container {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-top: 40px;
}

/* صفحة تفاصيل الخبر */
.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.news-detail-image {
    height: 450px;
    background-color: var(--primary-pale);
}

.news-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-detail-content {
    padding: 40px;
}

.news-detail-meta {
    display: flex;
    gap: 20px;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.news-detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-detail-meta i {
    color: var(--secondary-color);
}

.news-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 25px;
}

.news-detail-text {
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.9;
    text-align: justify;
}

.news-detail-text p {
    margin-bottom: 20px;
}

/* صفحة هياكل المجلس */
.council-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.member-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
    padding: 30px 20px;
    transition: var(--transition-smooth);
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--primary-pale);
    margin: 0 auto 20px;
    border: 3px solid var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.member-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.member-role {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.member-specialty {
    font-size: 0.85rem;
    color: #64748b;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* التجاوب للتصفح بالهاتف */
@media (max-width: 991px) {
    .president-speech {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .expert-card {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .expert-contact-info {
        justify-content: center;
    }
    .expert-tag-row {
        justify-content: center;
    }
    .expert-action {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
    }
    .nav-menu {
        display: none; /* يتم تشغيله بالجافاسكربت لاحقاً */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        border-radius: 0;
    }
    .nav-menu a::after {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .search-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
    }
    .search-input-wrapper {
        width: 100%;
        padding-right: 0;
        margin-bottom: 10px;
    }
    .search-btn {
        width: 100%;
        border-radius: 10px;
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
