:root {
    --hido-green: #37b268;
    --hido-dark: #13153e;
}

/* ===================== LAYOUT ===================== */
.hido-tamara-how {
    direction: rtl;
    position: relative;
}

.hido-tamara-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 4vw;
    align-items: stretch;
}

/* العمود المثبت (الهاتف + الخط) يكون يسار، والخطوات يمين */
.hido-tamara-pin-col {
    order: 1;
    position: relative;
}

.hido-tamara-steps {
    order: 2;
    position: relative;
}

/* ===================== STEPS (RIGHT) ===================== */
.hido-tamara-step {
    min-height: 100vh; /* كل خطوة ≈ شاشة */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    padding-inline: 2vw;
    opacity: 0.3;
    transition: 0.35s ease;
}

.hido-tamara-step.active {
    opacity: 1;
    transform: translateX(-10px);
}

.hido-tamara-step h2 {
    margin: 0 0 16px;
    font-size: clamp(2.8rem, 4vw, 4rem);
    font-weight: 800;
    color: var(--hido-green);
}

.hido-tamara-step p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.9;
    max-width: 420px;
    color: var(--hido-dark);
}

/* ===================== PINNED COLUMN ===================== */
.hido-tamara-pin-inner {
    position: relative;
    height: 70vh;
    margin-top: 15vh;
    margin-bottom: 15vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3vw;
}

/* ===================== PHONE ===================== */
.hido-tamara-phone {
    position: relative;
    width: clamp(260px, 22vw, 360px);
}

.hido-tamara-frame {
    width: 100%;
    display: block;
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.hido-tamara-screen-window {
    position: absolute;
    top: 0%;
    left: 6%;
    width: 88%;
    height: 99%;
    overflow: hidden;
    border-radius: 24px;
    z-index: 5;
}

.hido-tamara-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.hido-tamara-screen {
    width: 100%;
    height: 100%;
}

.hido-tamara-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hido-tamara-screen.is-active img {
    transform: scale(1.03);
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: brightness(1.03);
}

/* ===================== TIMELINE ===================== */
.hido-tamara-timeline {
    position: relative;
    width: 8px;
    height: 100%;
}

.hido-tamara-line-base {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
}

.hido-tamara-line-fill {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    border-radius: 999px;
    background: var(--hido-green);
    height: 0;
    box-shadow: 0 0 18px rgba(55, 178, 104, 0.6);
}

/* ===== نقاط الخط – نفس شكل النقطة المتحركة ===== */
.hido-tamara-dot,
.hido-tamara-dot-active {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--hido-green);
    box-shadow: 0 0 0 8px rgba(55, 178, 104, 0.22),
        0 0 22px rgba(55, 178, 104, 0.65);
}

/* النقاط الثابتة */
.hido-tamara-dot {
    width: 22px;
    height: 22px;
    opacity: 0.8;
}

/* النقطة المتحركة */
.hido-tamara-dot-active {
    width: 30px;
    height: 30px;
    opacity: 1;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
    .hido-tamara-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hido-tamara-pin-inner {
        height: 60vh;
        margin-top: 5vh;
        margin-bottom: 10vh;
        justify-content: center;
        gap: 24px;
    }

    .hido-tamara-phone {
        width: 60vw;
    }
}
