/* Timeline Slider CSS */

.wpb-timeline-wrapper {
    position: relative;
    width: 100%;
    margin: 40px 0;
    overflow: hidden; /* Prevent horizontal scrollbar from swiper overflow */
}

/* Swiper Container */
/* Removed previous block as it is now redefined below */

/* The Horizontal Line - Fixed position above cards */
.wpb-timeline-line {
    position: absolute;
    top: 10px; /* Center of the dot (19px/2 approx) */
    left: 0;
    width: 100%;
    height: 1px;
    background: #fff;
    z-index: 0; /* Changed from 1 to 0 to be behind dots */
}

/* Swiper Container - Ensure above line */
.wpb-timeline-carousel {
    position: relative;
    z-index: 2; /* Force above line */
    width: 100%;
    padding-top: 0;
    padding-bottom: 40px; /* Space for shadows */
    padding-left: 50px; /* Space for arrows */
    padding-right: 50px; /* Space for arrows */
    box-sizing: border-box; /* Include padding in width */
    overflow: hidden; /* Hide surrounding slides */
}

/* Slide Structure */
.swiper-slide.wpb-timeline-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* width is handled by Swiper, typically auto or fixed per view */
    height: auto; /* Allow height to stretch */
    align-self: stretch; /* Stretch to fill container height */
}

/* Swiper Wrapper - Flexbox behavior for equal height slides */
.wpb-timeline-carousel .swiper-wrapper {
    align-items: stretch;
}

/* Top Part: Dot */
.wpb-timeline-top-marker {
    position: relative;
    z-index: 2;
    margin-bottom: 30px; /* Distance to box as requested */
    height: 19px;
    width: 100%;
    display: flex;
    justify-content: center; /* Center horizontally relative to slide */
}

.wpb-timeline-dot {
    width: 19px;
    height: 19px;
    border: 1px solid #fff;
    background: linear-gradient(135deg, #014576 0%, #26949D 100%);
    /* Square shape */
    z-index: 2;
}

/* Hide line overflow on wrapper */
.wpb-timeline-wrapper {
    position: relative;
    overflow: hidden; 
    padding: 0; /* Let carousel handle padding */
}

/* Bottom Part: Card */
.wpb-timeline-card {
    background: #E5F0EB;
    box-shadow: 0 0 20px rgba(0,0,0,0.11);
    width: 100%;
    /* max-width removed to fill swiper slide area respecting gap */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.wpb-timeline-image {
    width: 100%;
    height: 200px; /* Fixed height for image area */
    overflow: hidden;
}

.wpb-timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wpb-timeline-content {
    padding: 20px;
    text-align: left; /* Left aligned as requested */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wpb-timeline-year {
    font-size: 30px; /* Requested size */
    font-weight: 500; /* Requested weight */
    color: #024576;
    margin-bottom: 5px;
    text-transform: uppercase;
    line-height: 1;
}

.wpb-timeline-description {
    font-size: 18px; /* H4 size approx */
    font-weight: 700; /* H4 weight */
    color: #024576;
    margin: 0;
    line-height: 1.3;
}

/* Swiper Navigation (Optional) */
.swiper-button-prev, .swiper-button-next {
    color: #fff; /* White arrows */
    width: 40px; /* Define clickable area */
    height: 40px;
    margin-top: 0; /* Reset default margin */
    top: 50%; /* Center vertically relative to container */
    transform: translateY(-50%);
    z-index: 10; /* Ensure clickable */
}

.swiper-button-prev {
    left: 0px; /* Position in padding area */
}

.swiper-button-next {
    right: 0px; /* Position in padding area */
}
