/* ==========================================================================
   1. غلاف صفحة من نحن (About Hero)
   ========================================================================== */
.about-hero {
    position: relative;
    height: 50vh; /* أقصر من الهيرو الرئيسي ليكون كغلاف فقط */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1556228578-0d85b1a4d571?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
    background-attachment: fixed;
    margin-top: calc(90px + 5vh); /* مسافة للناف بار */
}

.about-hero-content {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   2. قسم خط الزمن (Timeline) - قصة المسيرة (تحديث شامل لدعم اللغات RTL/LTR)
   ========================================================================== */
.our-story-section {
    padding: 8rem 0;
    background-color: var(--bg-body);
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* ترتيب العناصر بشكل عمودي وذكي */
}

/* الخط الذهبي في المنتصف (ثابت في كل اللغات) */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: rgba(197, 155, 135, 0.3); /* روز جولد شفاف */
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); /* يضمن توسيط الخط تماماً */
    z-index: 0;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    z-index: 1;
}

/* توجيه العناصر بذكاء: flex-start يعني يمين بالعربي ويسار بالانجليزي */
.timeline-item.left {
    align-self: flex-start; 
}

/* توجيه العناصر بذكاء: flex-end يعني يسار بالعربي ويمين بالانجليزي */
.timeline-item.right {
    align-self: flex-end; 
}

/* تصميم النقطة الذهبية */
.timeline-dot {
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-body);
    border: 4px solid var(--rose-gold);
    z-index: 2;
    box-shadow: 0 0 15px rgba(197, 155, 135, 0.5);
}

/* مكان النقطة للعنصر الأول (يتأقلم مع الاتجاه تلقائياً) */
.timeline-item.left .timeline-dot {
    inset-inline-end: -10px; 
}

/* مكان النقطة للعنصر الثاني (يتأقلم مع الاتجاه تلقائياً) */
.timeline-item.right .timeline-dot {
    inset-inline-start: -10px;
}

/* صندوق المحتوى */
.timeline-content {
    padding: 30px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(197, 155, 135, 0.15);
    border-color: rgba(197, 155, 135, 0.3);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.timeline-content h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

/* ريسبونسف للموبايل (خط الزمن يصبح على الجانب بدلاً من المنتصف) */
@media (max-width: 768px) {
    .timeline-container::after {
        left: auto;
        inset-inline-start: 31px; /* الخط ينتقل للجانب في الموبايل بذكاء */
        transform: none;
    }
    
    .timeline-item {
        width: 100%;
        align-self: center !important;
        padding-inline-start: 70px;
        padding-inline-end: 25px;
    }
    
    .timeline-item.left .timeline-dot, 
    .timeline-item.right .timeline-dot {
        inset-inline-end: auto;
        inset-inline-start: 21px; /* توحيد مكان النقطة لجميع العناصر */
    }
}
/* ==========================================================================
   3. قسم الرؤية والفلسفة (Our Vision)
   ========================================================================== */
.our-vision-section {
    padding: 6rem 0 10rem;
    background-color: var(--bg-navbar); /* لون مختلف قليلاً لكسر الملل */
    border-top: 1px solid var(--border-color);
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vision-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.vision-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* إضاءة خلف الصورة */
.vision-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(197, 155, 135, 0.4) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

.vision-text h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.vision-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .vision-grid {
        grid-template-columns: 1fr;
    }
    .vision-image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
    .vision-text {
        text-align: center;
    }
}