/* ============================================================
   EBPT9 — Timeline Features (سيلا ميد ترافيل)
   Namespace  : ebpt9
============================================================ */
/* 1. Variables & Colors */
.ebpt9 {
    --ebpt9-bg: #E8F7F8;
    --ebpt9-text: #4A5B78;
    --ebpt9-title: #0B2E59;
    --ebpt9-subtitle: #4A5B78;
    --ebpt9-eyebrow: #0B2E59;
    --ebpt9-eyebrow-bg: #FFFFFF;
    --ebpt9-eyebrow-dot: #0B9AA5;
    --ebpt9-border: #C9EEF0;

    --ebpt9-line: #C9EEF0;
    --ebpt9-line-fill: #0B9AA5;
    --ebpt9-point-bg: #FFFFFF;
    --ebpt9-point-border: #0B9AA5;
    --ebpt9-point-dot: #0B9AA5;

    --ebpt9-card-bg: #FFFFFF;
    --ebpt9-card-title: #0B2E59;
    --ebpt9-card-text: #4A5B78;
    --ebpt9-card-border: #C9EEF0;
    --ebpt9-card-shadow: rgba(11, 46, 89, 0.12);

    --ebpt9-accent: #0B9AA5;
    --ebpt9-num-color: #C9EEF0;

    --ebpt9-icon-bg: #E8F7F8;
    --ebpt9-icon-color: #0B9AA5;
    --ebpt9-icon-border: #C9EEF0;

    --ebpt9-padding-top: 4rem;
    --ebpt9-padding-bottom: 4rem;
}

/* 2. Reset داخل الـ namespace */
*, .ebpt9 *, .ebpt9 *::before, .ebpt9 *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 3. Base Styles — Mobile */
.ebpt9 {
    position: relative;
    overflow: hidden;
    background: var(--ebpt9-bg);
    padding-top: var(--ebpt9-padding-top);
    padding-bottom: var(--ebpt9-padding-bottom);
    font-family: "El Messiri", sans-serif;
}

.ebpt9__shape-1,
.ebpt9__shape-2 {
    position: absolute;
    border-radius: 50%;
    background: #FFFFFF;
    opacity: 0.5;
    z-index: 0;
}
.ebpt9__shape-1 {
    width: 9rem;
    height: 9rem;
    top: -3rem;
    left: -3rem;
}
.ebpt9__shape-2 {
    width: 7rem;
    height: 7rem;
    bottom: 1.5rem;
    right: -2rem;
}

.ebpt9__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.ebpt9__header {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 3rem;
}

.ebpt9__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.75rem, 3vw, 0.85rem);
    font-weight: 600;
    color: var(--ebpt9-eyebrow);
    background: var(--ebpt9-eyebrow-bg);
    border: 0.0625rem solid var(--ebpt9-border);
    border-radius: 3rem;
    padding: 0.5rem 1.1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 0.5rem 1.25rem rgba(11, 46, 89, 0.06);
}

.ebpt9__eyebrow::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--ebpt9-eyebrow-dot);
    flex-shrink: 0;
}

.ebpt9__title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    font-weight: 700;
    color: var(--ebpt9-title);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.ebpt9__subtitle {
    font-size: clamp(0.9rem, 3.5vw, 1.05rem);
    color: var(--ebpt9-subtitle);
    line-height: 1.85;
}

.ebpt9__timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-right: 2.75rem;
}

.ebpt9__line {
    position: absolute;
    top: 0;
    right: 0.75rem;
    width: 0.1875rem;
    height: 100%;
    background: var(--ebpt9-line);
    border-radius: 1rem;
}

.ebpt9__line-fill {
    width: 100%;
    height: 0%;
    background: var(--ebpt9-line-fill);
    border-radius: 1rem;
    transition: height 0.2s linear;
}

.ebpt9__item {
    position: relative;
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ebpt9--in {
    opacity: 1;
    transform: translateY(0);
}

.ebpt9__point {
    position: absolute;
    top: 0.25rem;
    right: -2.75rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--ebpt9-point-bg);
    border: 0.1875rem solid var(--ebpt9-point-border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0.25rem 0.75rem rgba(11, 46, 89, 0.15);
}

.ebpt9__point-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--ebpt9-point-dot);
}

/* الكارت: محاذاة الأيقونة والنصوص في المنتصف */
.ebpt9__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--ebpt9-card-bg);
    border: 0.0625rem solid var(--ebpt9-card-border);
    border-radius: 1.5rem;
    border-top: 0.3rem solid var(--ebpt9-accent);
    box-shadow: 0 1rem 2.5rem var(--ebpt9-card-shadow);
    padding: 2rem 1.5rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ebpt9__card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 1.5rem 3rem var(--ebpt9-card-shadow);
}

/* 🟢 الرقم: إرجاعه للتنسيق القديم (خلفية كبيرة شفافة/مطلقة) */
.ebpt9__num {
    position: absolute;
    top: 0.75rem;
    left: 1.25rem;
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 800;
    color: var(--ebpt9-num-color);
    line-height: 1;
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

/* الأيقونة والنصوص تتوسط الكارت مع z-index فوق الرقم */
.ebpt9__icon-wrapper {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--ebpt9-icon-bg);
    border: 0.0625rem solid var(--ebpt9-icon-border);
    margin-bottom: 1rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.ebpt9__step-icon {
    font-size: 1.5rem;
    color: var(--ebpt9-icon-color);
}

.ebpt9__card:hover .ebpt9__icon-wrapper {
    background: var(--ebpt9-accent);
    transform: scale(1.05);
}

.ebpt9__card:hover .ebpt9__step-icon {
    color: #FFFFFF;
}

.ebpt9__card-title {
    position: relative;
    z-index: 1;
    font-size: clamp(1rem, 4vw, 1.15rem);
    font-weight: 700;
    color: var(--ebpt9-card-title);
    margin-bottom: 0.6rem;
    text-align: center;
}

.ebpt9__card-text {
    position: relative;
    z-index: 1;
    font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    color: var(--ebpt9-card-text);
    line-height: 1.8;
    text-align: center;
}

/* 4. Breakpoints */
@media (min-width: 481px) {
    .ebpt9__timeline { gap: 3rem; }
}

@media (min-width: 601px) {
    .ebpt9__card { padding: 2.25rem 2rem 1.75rem; }
}

@media (min-width: 769px) {
    .ebpt9__timeline {
        padding-right: 0;
    }
    .ebpt9__line {
        right: 50%;
        transform: translateX(50%);
    }
    .ebpt9__item {
        width: 50%;
    }
    .ebpt9__item--a {
        padding-left: 3rem;
        margin-right: 50%;
    }
    .ebpt9__item--b {
        padding-right: 3rem;
        margin-right: 0;
        margin-left: 50%;
    }

    .ebpt9__item--a .ebpt9__card,
    .ebpt9__item--b .ebpt9__card {
        text-align: center;
        align-items: center;
    }

    .ebpt9__item--a .ebpt9__point {
        right: -1.75rem;
    }
    .ebpt9__item--b .ebpt9__point {
        right: auto;
        left: -1.75rem;
    }
}

@media (min-width: 1025px) {
    .ebpt9__container { padding-left: 2rem; padding-right: 2rem; }
    .ebpt9__timeline { gap: 4rem; }
    .ebpt9__card { padding: 2.5rem 2.25rem 2rem; }
}

@media (min-width: 1281px) {
    .ebpt9 { padding-top: 5.5rem; padding-bottom: 5.5rem; }
    .ebpt9__header { margin-bottom: 4rem; }
}

@media (min-width: 1441px) {
    .ebpt9__container { max-width: 82rem; }
}

@media (min-width: 1921px) {
    .ebpt9__container { max-width: 92rem; }
    .ebpt9 { padding-top: 7rem; padding-bottom: 7rem; }
}