/* ================================
   Journey Section
   ================================ */

.journey {
    background-color: #000000;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFFFFF;
}

.journey-header {
    text-align: center;
    margin-bottom: 60px;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.journey-header h2 {
    font-size: 40px;
    line-height: 45px;
    font-weight: 400;
    margin-bottom: 36px;
}

.journey-header p {
    font-size: 18px;
    color: #fff;
    line-height: 22px;
}

/* Clips overflow, fades edges with mask */
.journey-cards-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

/* Animated flex row  -  contains all 12 cards (6 real + 6 clones) */
.journey-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 36s linear infinite;
}

/* Pause on hover so users can read cards */
.journey-cards-container:hover .journey-track {
    animation-play-state: paused;
}

/* Seamless loop: translate by exactly half the track width */
@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


.journey-card {
    background-color: #161618;
    border-radius: 0;
    min-width: 320px;
    max-width: 320px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.journey-card:hover {
    background-color: #1e1e20;
    transform: translateY(-6px);
}

.card-number {
    font-size: 30px;
    line-height: 24px;
    font-weight: 500;
    color: #3A3A3A;
    margin-bottom: 80px;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.journey-card:hover .card-number {
    transform: scale(1);
    color: #FAFF48;
}

.card-title {
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.card-desc {
    font-size: 16px;
    line-height: 22px;
    color: #979797;
    margin-bottom: auto;
    /* Push any items below to bottom */
}

.book-counseling-btn {
    margin-top: 30px;
    background-color: #FAFF48;
    color: #000000;
    border: 1px solid #FAFF48;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s;
    width: fit-content;
}

.book-counseling-btn:hover {
    background-color: #FCFF95;
    border: 1px solid #C4CA00;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .journey {
        padding: 60px 15px;
        align-items: flex-start;
    }

    .journey-header {
        text-align: center;
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 40px;
    }

    .journey-header h2 {
        font-size: 30px;
        line-height: 35px;
    }

    .journey-card {
        min-width: 280px;
        max-width: 280px;
        padding: 30px 20px;
    }

    .card-number {
        margin-bottom: 60px;
    }
}

@media (max-width: 426px) {
    .journey-header {
        width: 80%;
    }

    .journey-cards-container {
        gap: 15px;
    }

    .card-title {
        font-size: 18px;
        line-height: 22px;
    }

    .card-desc {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (max-width: 340px) {
    .journey-header {
        width: 90%;
    }

    .journey-card {
        min-width: 260px;
        max-width: 260px;
    }
}