<!-- ==========================================
CUSTOM RTL TIMELINE (HTML + CSS + JS)
========================================== -->
<div class="custom-rtl-timeline">
<!-- Step 1 -->
<div class="timeline-item">
<div class="timeline-badge">1</div>
<div class="timeline-card">
<div class="card-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><polyline points="16 11 18 13 22 9"/></svg>
</div>
<h3 class="card-title">القبول الجامعي والمنح</h3>
<p class="card-text">تأمين مقعدك الدراسي في أفضل الجامعات العالمية مع مطابقة ملفك لمنح التمويل.</p>
</div>
</div>
<!-- Step 2 -->
<div class="timeline-item">
<div class="timeline-badge">2</div>
<div class="timeline-card">
<div class="card-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><polyline points="16 11 18 13 22 9"/></svg>
</div>
<h3 class="card-title">الجامعات العالمية</h3>
<p class="card-text">خيارات أكاديمية متنوعة تغطي كافة التخصصات والدرجات العلمية.</p>
</div>
</div>
<!-- Step 3 -->
<div class="timeline-item">
<div class="timeline-badge">3</div>
<div class="timeline-card">
<div class="card-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><polyline points="16 11 18 13 22 9"/></svg>
</div>
<h3 class="card-title">جامعة شريكة</h3>
<p class="card-text">اتفاقيات تمثيل رسمية تضمن تسهيل وسرعة الإجراءات.</p>
</div>
</div>
</div>
<style>
/* Root Scope & Variables */
.custom-rtl-timeline {
direction: rtl;
position: relative;
padding-right: 20px;
padding-left: 10px;
margin: 20px auto;
max-width: 600px;
box-sizing: border-box;
font-family: inherit;
}
/* Continuous Timeline Line */
.custom-rtl-timeline::before {
content: '';
position: absolute;
top: 20px;
bottom: 20px;
right: 35px;
width: 3px;
background: linear-gradient(180deg, #e5a862 0%, #cbd5e1 100%);
z-index: 1;
}
/* Timeline Row */
.timeline-item {
position: relative;
display: flex;
align-items: flex-start;
margin-bottom: 25px;
z-index: 2;
}
.timeline-item:last-child {
margin-bottom: 0;
}
/* Badge / Step Circle */
.timeline-badge {
width: 32px;
height: 32px;
min-width: 32px;
background-color: #e5a862;
color: #ffffff;
font-weight: 700;
font-size: 14px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 0 0 4px #ffffff, 0 4px 10px rgba(0, 0, 0, 0.1);
z-index: 3;
margin-left: 15px;
margin-top: 15px;
transition: transform 0.2s ease, background-color 0.2s ease;
}
/* Card Component */
.timeline-card {
flex: 1;
background: #ffffff;
border-radius: 12px;
padding: 20px;
border: 1px solid #e2e8f0;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
position: relative;
}
/* Card Content Styles */
.card-icon {
color: #0f172a;
margin-bottom: 10px;
}
.card-title {
margin: 0 0 8px 0;
font-size: 18px;
font-weight: 700;
color: #0f172a;
}
.card-text {
margin: 0;
font-size: 14px;
line-height: 1.6;
color: #64748b;
}
/* Hover States */
.timeline-item:hover .timeline-card {
border-color: #e5a862;
transform: translateY(-4px);
box-shadow: 0 15px 30px rgba(229, 168, 98, 0.12);
}
.timeline-item:hover .timeline-badge {
background-color: #0f172a;
transform: scale(1.1);
}
</style>