/* ==========================================================================
   Kidan Process Steps Widget - Horizontal Scrollable Timeline
   ========================================================================== */

.kidan-process-steps {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 40px 0;
    position: relative;
}

/* Hide scrollbar by default */
.kidan-process-steps::-webkit-scrollbar {
    height: 8px;
    display: none;
}

.kidan-process-steps::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.kidan-process-steps::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.kidan-process-steps::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Show scrollbar if enabled */
.kidan-process-steps.show-scrollbar::-webkit-scrollbar {
    display: block;
}

/* Steps Container */
.kidan-steps-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    width: max-content;
    padding: 0 20px;
}

/* Individual Step */
.kidan-process-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    flex-shrink: 0;
}

/* Step Header - Number on left, Image on right */
.kidan-step-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

/* Step Number - Left side */
.kidan-step-number {
    font-family: 'Gantari', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2;
    color: #FFFFFF;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Step Image - Right side */
.kidan-step-image {
    width: 90px;
    height: 90px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.kidan-step-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Hover Effect */
.kidan-process-step:hover .kidan-step-image {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Step Content */
.kidan-step-content {
    width: 100%;
}

/* Step Title */
.kidan-step-title {
    font-family: 'Gantari', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    color: #FFFFFF;
    margin: 0 0 12px 0;
}

/* Step Description */
.kidan-step-description {
    font-family: 'Gantari', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Connector Wave */
.kidan-step-connector {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    flex-shrink: 0;
    height: 90px; /* Match image height */
    align-self: flex-start;
    margin-top: 0; /* Remove margin to align with images */
    margin-left: -210px;
}

.kidan-step-connector img,
.kidan-step-connector svg {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Stretch to fill container */
    display: block;
}

/* Animation on scroll into view */
@keyframes kidan-step-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kidan-process-step {
    animation: kidan-step-fade-in 0.6s ease-out forwards;
}

.kidan-process-step:nth-child(1) {
    animation-delay: 0s;
}

.kidan-process-step:nth-child(2) {
    animation-delay: 0.1s;
}

.kidan-process-step:nth-child(3) {
    animation-delay: 0.2s;
}

.kidan-process-step:nth-child(4) {
    animation-delay: 0.3s;
}

.kidan-process-step:nth-child(5) {
    animation-delay: 0.4s;
}

.kidan-process-step:nth-child(6) {
    animation-delay: 0.5s;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .kidan-process-steps {
        padding: 20px 0;
    }

    .kidan-steps-container {
        padding: 0 10px;
    }

    .kidan-step-number {
        font-size: 16px;
    }

    .kidan-step-image {
        width: 70px;
        height: 70px;
        padding: 15px;
    }

    .kidan-step-title {
        font-size: 16px;
    }

    .kidan-step-description {
        font-size: 13px;
    }

    .kidan-step-connector {
        width: 150px;
        top: 30px;
    }
}

@media screen and (max-width: 480px) {
    .kidan-step-image {
        width: 60px;
        height: 60px;
        padding: 12px;
    }

    .kidan-step-title {
        font-size: 14px;
    }

    .kidan-step-description {
        font-size: 12px;
    }

    .kidan-step-connector {
        width: 100px;
    }
}