﻿/* =========================================================================
   Component: _process-elite.css
   Chức năng: Giao diện Timeline quy trình cứu hộ cực kỳ mượt mà
   ========================================================================= */

.process-elite-section {
    padding: 100px 0;
    background-color: #08080a; /* Nền tối chuyển sắc nhẹ so với khối Dịch vụ */
}

/* Typography giữ nguyên theo hệ thống */
.text-gray {
    color: #8892b0;
}

.text-gradient-red {
    background: linear-gradient(to right, #ff4b2b, #ff416c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Khung chứa Timeline --- */
.timeline-elite-wrapper {
    position: relative;
    padding-top: 40px; /* Nhường chỗ cho Node số đè lên */
}

/* Đường ray ngang cho Desktop */
.timeline-track {
    position: absolute;
    top: 60px; /* Căn giữa với các Node */
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05); /* Ray nền mờ */
    z-index: 1;
}

/* Luồng ánh sáng chạy trên đường ray ngang */
.track-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, transparent, var(--brand-yellow), var(--brand-red), transparent);
    animation: light-travel 3s ease-in-out infinite;
}

@keyframes light-travel {
    0% {
        left: -30%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* --- Khối từng bước (Step) --- */
.timeline-step {
    position: relative;
    padding: 0 15px;
    text-align: center;
    z-index: 2;
}

/* Nút đánh số (Node) */
.step-node {
    width: 44px;
    height: 44px;
    background: #111;
    border: 2px solid var(--brand-yellow);
    color: var(--brand-yellow);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.2);
    position: relative;
    transition: all 0.4s ease;
    z-index: 3; /* Đè lên tia laser */
}

    .step-node.node-red {
        border-color: var(--brand-red);
        color: var(--brand-red);
        box-shadow: 0 0 15px rgba(211, 47, 47, 0.2);
    }

/* Thẻ nội dung (Glassmorphism card) */
.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px 20px;
    height: calc(100% - 74px); /* Tính trừ đi chiều cao của Node và margin */
    transition: all 0.4s ease;
}

.step-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.step-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 15px;
}

.step-desc {
    color: #8892b0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Hiệu ứng Hover vào Step */
.timeline-step:hover .step-node {
    transform: scale(1.15);
    background: var(--brand-yellow);
    color: #000;
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.5);
}

    .timeline-step:hover .step-node.node-red {
        background: var(--brand-red);
        color: #fff;
        box-shadow: 0 0 25px rgba(211, 47, 47, 0.5);
    }

.timeline-step:hover .step-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.timeline-step:hover .step-icon {
    opacity: 1;
    transform: scale(1.1);
}

.btn-hover-white:hover {
    background: #fff;
    color: #000 !important;
}

/* =========================================================================
   Responsive: Chuyển Timeline thành Trục Dọc trên Mobile/Tablet
   ========================================================================= */
@media (max-width: 991.98px) {
    .timeline-step {
        display: flex;
        text-align: left;
        padding: 0;
        margin-bottom: 30px;
    }

    /* Đưa node sang mép trái */
    .step-node {
        margin-bottom: 0;
        margin-right: 20px;
        flex-shrink: 0;
    }

    .step-card {
        padding: 20px;
        height: auto;
        width: 100%;
    }

    /* Trục dọc nối các Node trên Mobile */
    .mobile-track {
        position: absolute;
        top: 44px; /* Bắt đầu từ dưới đáy của Node */
        left: 21px; /* Căn giữa Node (44px / 2 - 1px độ dày viền) */
        width: 2px;
        height: calc(100% + 30px - 44px); /* Kéo dài xuyên qua margin-bottom */
        background: linear-gradient(to bottom, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.01) 100%);
        z-index: 1;
    }
}
