/* Custom Horizontal Timeline Style */

.appstechy-horizontal-timeline-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Section Header Style */
.appstechy-timeline-header-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.appstechy-timeline-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
    display: inline-block;
    position: relative;
}

.appstechy-timeline-divider {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.appstechy-timeline-divider-line {
    display: block;
    width: 60px;
    height: 3px;
    background-color: #0082c3; /* Theme accent color */
}

/* Timeline Swiper Container */
.appstechy-timeline-swiper-outer {
    position: relative;
    padding: 0 50px; /* Leave space for navigation arrows on left/right */
}

.appstechy-timeline-swiper-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Connecting Line */
.appstechy-timeline-connecting-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 105px; /* Default offset matches the badge + node sizing */
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 1;
    pointer-events: none;
}

/* Swiper Wrapper */
.appstechy-timeline-swiper-container .swiper-wrapper {
    display: flex;
    z-index: 2;
}

/* Swiper Slide */
.appstechy-timeline-swiper-slide {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* Badge Container (Upper Circle) */
.appstechy-timeline-badge-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.appstechy-timeline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0082c3; /* Default blue */
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Node Container (Circle on the line) */
.appstechy-timeline-node-container {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.appstechy-timeline-node-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #0b0b0b;
    border: 2px solid #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.appstechy-timeline-node-circle i,
.appstechy-timeline-node-circle svg {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    line-height: 1;
}

/* Text Content (Below the line) */
.appstechy-timeline-content-container {
    margin-top: 25px;
    padding: 0 15px;
    box-sizing: border-box;
}

.appstechy-timeline-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 10px 0;
    transition: all 0.3s ease;
}

.appstechy-timeline-item-desc {
    font-size: 14px;
    color: #a5a5a5;
    line-height: 1.6;
    margin: 0;
}

/* Navigation Style (Arrows) */
.appstechy-timeline-prev,
.appstechy-timeline-next {
    position: absolute;
    top: 105px; /* Aligns vertically with the center line */
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    color: #0b0b0b;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.appstechy-timeline-prev {
    left: 0;
}

.appstechy-timeline-next {
    right: 0;
}

.appstechy-timeline-prev i,
.appstechy-timeline-next i,
.appstechy-timeline-prev svg,
.appstechy-timeline-next svg {
    font-size: 14px;
}

/* Hover & Active States */
.appstechy-timeline-prev:hover,
.appstechy-timeline-next:hover {
    background-color: #0082c3;
    color: #ffffff;
}

.appstechy-timeline-swiper-slide.is-active .appstechy-timeline-badge {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 130, 195, 0.4);
}

.appstechy-timeline-swiper-slide.is-active .appstechy-timeline-node-circle {
    background-color: #0082c3;
    color: #ffffff;
    border-color: #0082c3;
}

/* Responsiveness adjustments */
@media (max-width: 768px) {
    .appstechy-timeline-swiper-outer {
        padding: 0 40px;
    }
    .appstechy-timeline-title {
        font-size: 28px;
    }
}
