/* نفس متغيرات الألوان المستخدمة في index.css لضمان التناسق */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* الأساسيات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;          /* الخط أوضح قليلاً */
    line-height: 1.7;
    background-color: var(--bg-color);
    color: var(--text-color);
    direction: rtl;
    padding-top: 80px;        /* مساحة للنافبار الثابت */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* لمسات جمالية عامة */
a, button {
    transition: var(--transition);
}

a:focus-visible, button:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.45);
    outline-offset: 2px;
    border-radius: 12px;
}

/* ========== شريط التنقل في صفحة we (بنفس ستايل الهيدر الرئيسي) ========== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-logo a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    animation: fadeDown 650ms ease both;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;       /* أوضح من 500 */
    font-size: 0.97rem;
    padding: 6px 14px;
    border-radius: 999px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.06);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

.nav-toggle {
    display: none;
}

/* ========== محتوى الصفحة (الكارت الذي يبنيه we.js) ========== */

#main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 20px 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* الكارت */
.content-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 2rem 2rem;
    max-width: 900px;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
    gap: 2rem;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    animation: fadeUp 700ms ease both;
}

.content-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* الصورة */
.feature-img {
    width: 100%;
    border-radius: 14px;
    height: 260px;
    object-fit: cover;
    background-color: #eee;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.content-card:hover .feature-img {
    transform: scale(1.03);
}

/* النص */
.feature-text {
    font-size: 1.07rem;        /* أكبر قليلاً */
    line-height: 1.9;
    color: var(--text-color);  /* أغمق من light-text */
    font-weight: 500;          /* أوضح من العادي */
}

/* عنوان اختياري داخل الكارت لو أضفته في المستقبل */
.content-card h1 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 700;
}

/* ========== الفوتر الخاص بصفحة we، منسّق قريب من footer الأساسي ========== */

.final-nav {
    margin-top: auto;
    background-color: var(--card-bg);
    color: var(--light-text);
    border-top: 1px solid #e5e7eb;
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;          /* أوضح قليلاً */
}

.final-nav .texts p {
    margin-bottom: 0.25rem;
    font-weight: 500;            /* أوضح */
}

.final-nav .links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.final-nav .links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.final-nav .links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ========== Responsive ========== */

@media (max-width: 992px) {
    .content-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 0.75rem;
        height: auto;
        padding: 0.75rem 20px;
    }

    .nav-menu {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    #main-content {
        padding-top: 7rem;
    }

    .content-card {
        padding: 1.5rem 1.25rem;
    }

    .final-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nav-logo a {
        font-size: 1.2rem;
    }

    .feature-text {
        font-size: 1.02rem;
    }
}