/* ==========================================================================
   Interactive Road-Map Timeline Stylesheet
   ========================================================================== */

.timeline-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    padding: 1rem 0 1rem 2.8rem;
    box-sizing: border-box;
}

/* কন্টিনিউয়াস ভার্টিক্যাল রুট/কানেক্টিং লাইন */
.timeline-grid::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    bottom: 1.5rem;
    left: 15px;
    width: 3px;
    background: linear-gradient(180deg, #ea580c 0%, #1e3a8a 70%, #cbd5e1 100%);
    border-radius: 4px;
}

/* মূল কার্ড */
.timeline-card {
    position: relative;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border-light, #e2e8f0);
    border-left: 4px solid var(--brand-blue, #1e3a8a);
    border-radius: 12px;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

/* টাইমলাইন নোড (কানেক্টিং লাইনের ওপর ডট) */
.timeline-card::before {
    content: "";
    position: absolute;
    left: -2.8rem;
    top: 1.8rem;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ffffff;
    border: 3.5px solid var(--brand-blue, #1e3a8a);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.15);
    z-index: 2;
    transition: transform 0.25s ease, background 0.25s ease;
}

.timeline-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.timeline-card:hover::before {
    transform: translateX(-50%) scale(1.2);
    background: var(--brand-blue, #1e3a8a);
}

/* অরেঞ্জ/লেটেস্ট কার্ড ভ্যারিয়েন্ট */
.timeline-card.card-orange {
    border-left-color: var(--brand-orange, #ea580c);
    border-top: none;
}

.timeline-card.card-orange::before {
    border-color: var(--brand-orange, #ea580c);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.2);
}

.timeline-card.card-orange:hover::before {
    background: var(--brand-orange, #ea580c);
}

/* ব্লু কার্ড ভ্যারিয়েন্ট */
.timeline-card.card-blue {
    border-left-color: var(--brand-blue, #1e3a8a);
    border-top: none;
}

/* ব্যাজ */
.t-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-blue, #1e3a8a);
    background: #eff6ff;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    border: 1px solid #dbeafe;
}

.t-badge.badge-orange {
    background: #fff7ed;
    color: var(--brand-orange, #ea580c);
    border-color: #ffedd5;
}

.t-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin-bottom: 0.55rem;
    line-height: 1.35;
}

.t-desc {
    font-size: 0.88rem;
    color: var(--text-muted, #475569);
    line-height: 1.6;
    margin: 0;
}

/* মোবাইল রেসপনসিভ */
@media (max-width: 768px) {
    .timeline-grid {
        padding-left: 2rem;
        gap: 1.5rem;
    }

    .timeline-grid::before {
        left: 10px;
    }

    .timeline-card {
        padding: 1.2rem 1.1rem;
    }

    .timeline-card::before {
        left: -2rem;
        top: 1.5rem;
        width: 13px;
        height: 13px;
        border-width: 3px;
    }

    .t-title {
        font-size: 1.05rem;
    }

    .t-desc {
        font-size: 0.84rem;
    }
}
