.htw-timeline-wrapper {
    position: relative;
    padding: 20px 0;
    overflow: inherit;
}

/* Inner container to clip content and provide arrow space */
.htw-timeline-slider {
    padding-bottom: 50px !important;
    overflow: hidden !important;
    /* Clip partial slides */
    margin: 0 50px;
    /* Space for arrows on sides */
}

/* Swiper wrapper for proper operation */
.htw-timeline-slider .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

/* Each slide */
.htw-milestone-slide {
    flex-shrink: 0;
    height: auto;
    box-sizing: border-box;
}

.htw-slide-inner {
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%;
    position: relative;
}

/* Date Section */
.htw-date {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    line-height: 1;
    padding-right: 20px;
}

/* Line & Marker Section */
.htw-line-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.htw-line-segment {
    width: 100%;
    height: 1px;
    background-color: #ddd;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1;
}

.htw-marker-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.htw-marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #E31E24;
    transition: transform 0.3s ease;
}

/* Content Section */
.htw-content {
    padding-right: 20px;
}

.htw-title {
    margin: 0;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    color: #333;
}

.htw-description {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    line-height: 1.5;
}

/* Swiper Navigation - positioned relative to wrapper, not slider */
.htw-timeline-wrapper .swiper-button-next,
.htw-timeline-wrapper .swiper-button-prev {
    color: #333;
    background: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    z-index: 10;
    margin-top: 0;
    /* Reset Swiper default */
}

.htw-timeline-wrapper .swiper-button-prev {
    left: 0;
    right: auto;
}

.htw-timeline-wrapper .swiper-button-next {
    right: 0;
    left: auto;
}

.htw-timeline-wrapper .swiper-button-next::after,
.htw-timeline-wrapper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

.htw-timeline-wrapper .swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.htw-timeline-wrapper .swiper-pagination {
    bottom: 10px;
}

.htw-timeline-wrapper .swiper-pagination-bullet-active {
    background-color: #E31E24;
}

/* Marker Image Styling */
.htw-marker-img {
    display: block;
    border-radius: 50%;
    object-fit: cover;
}