:root {
    --hido-green: #37b268;
}
.hido-nav-wrapper .nav li:first-child {
    margin-right: 1.3em !important;
}

/* ===============================
   CONTAINER
================================ */
.hido-tabs-container {
    direction: rtl;
    margin: 60px 0;
}

/* ===============================
   NAV WRAPPER (الخلفية الموحدة)
================================ */
.hido-nav-wrapper {
    background: #f6faf8;
    border-radius: 20px;
    padding: 18px;
}

/* ===============================
   NAV GRID
================================ */
.hido-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    direction: rtl;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* آخر عنصر بعرض كامل */
.hido-steps .nav-item.full {
    grid-column: span 2;
}

/* ===============================
   NAV BUTTON (محاذاة صحيحة)
================================ */
.hido-steps .nav-link {
    display: flex;
    /* flex-direction: row-reverse;  */
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    width: 100%;
    min-height: 44px;

    padding: 8px 14px;
    border-radius: 12px;

    background: transparent;
    border: 1px solid transparent;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    color: #1f3d2b;
    text-align: right;

    cursor: pointer;
    transition: all 0.2s ease;
}

/* ===============================
   ICON
================================ */
.step-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;

    /* لون الهوية */
    filter: brightness(0) saturate(100%) invert(52%) sepia(40%) saturate(508%)
        hue-rotate(90deg);
}

/* ===============================
   ACTIVE / HOVER
================================ */
.hido-steps .nav-link.active {
    background: #ffffff;
    border-color: var(--hido-green);
    color: var(--hido-green);
}

.hido-steps .nav-link:hover {
    background: #ffffff;
}

/* ===============================
   TAB CONTENT
================================ */
.hido-tab-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 420px;
}

/* ===============================
   IMAGES
================================ */
.timeline-img {
    max-height: 75vh;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ===============================
   CTA BUTTON
================================ */
.hido-download-btn {
    background-color: #1eab5b;
    color: #fff !important;
    border: 2px solid #1eab5b;
    padding: 8px 16px !important;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.hido-download-btn:hover {
    background-color: transparent;
    color: #1eab5b !important;
}

/* ===============================
   MOBILE
================================ */
/* @media (max-width: 768px) {
    .hido-tabs-container {
        margin: 30px 0;
    }

    .hido-steps {
        grid-template-columns: 1fr;
    }

    .hido-steps .nav-item.full {
        grid-column: span 1;
    }

    .hido-tab-content {
        margin-top: 20px;
        padding: 20px;
        min-height: auto;
    }
} */
/* ===============================
   MOBILE & SMALL SCREENS
================================ */
/* ===============================
   RESPONSIVE – SAME DESKTOP SHAPE
/* ===============================
   FORCE SAME LAYOUT ON MOBILE
================================ */

/* نجبر الصف أن يبقى أفقي */
@media (max-width: 768px) {
    .hido-tabs-container {
        display: flex;
        flex-direction: row; /* 👈 لا stack */
        gap: 12px;
    }

    /* القائمة (يمين) */
    .hido-tabs-container > .col-lg-4 {
        width: 45%;
        flex: 0 0 45%;
        max-width: 45%;
    }

    /* المحتوى / الصورة (يسار) */
    .hido-tabs-container > .col-lg-8 {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* تصغير navs */
    .hido-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .hido-steps .nav-link {
        font-size: 10px;
        padding: 6px 10px;
        min-height: 38px;
    }

    .step-icon {
        width: 12px;
        height: 12px;
    }

    /* تصغير الصورة */

    .timeline-img {
        max-height: 69vh;
        margin-top: 5vh;
        text-align: center;
        margin-right: -50px;
        max-width: 140%;
        justify-content: center;
    }

    .hido-tab-content {
        padding: 4px;
        min-height: auto;
    }
    .hido-nav-wrapper {
        padding: 0px;
    }
}

/* شاشات صغيرة جدًا */
@media (max-width: 390px) {
    .hido-tabs-container > .col-lg-4 {
        width: 48%;
        flex: 0 0 48%;
    }

    .hido-tabs-container > .col-lg-8 {
        width: 52%;
        flex: 0 0 52%;
    }

    .hido-steps .nav-link {
        font-size: 12px;
    }
}
