/* Wing Shack Timeline - Elementor Pro Loop Carousel */
.ws-timeline-carousel {
    --ws-timeline-line: #490000;
    --ws-timeline-red: #ed1c24;
    --ws-timeline-muted: #777777;
    --ws-timeline-height: 180px;
    --ws-timeline-gap: 16px;
    --ws-timeline-dot: 9px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-inline: 44px;
    overflow: visible;
}

.ws-timeline-carousel .swiper,
.ws-timeline-carousel .elementor-loop-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden !important;
}

.ws-timeline-carousel .swiper-wrapper {
    position: relative;
    align-items: stretch;
}

.ws-timeline-carousel .swiper-wrapper::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--ws-timeline-line);
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.ws-timeline-carousel .swiper-slide {
    position: relative;
    height: var(--ws-timeline-height) !important;
    overflow: visible;
}

.ws-timeline-carousel .ws-timeline-card,
.ws-timeline-carousel .ws-timeline-card > .e-con-inner {
    position: relative;
    min-height: var(--ws-timeline-height);
    height: var(--ws-timeline-height);
    width: 100%;
    display: block;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    z-index: 1;
}

.ws-timeline-carousel .ws-timeline-card > .e-con-inner {
    padding: 0 5px !important;
}

/* Content blocks are positioned from the center rule, not with percentage padding. */
.ws-timeline-carousel .swiper-slide:nth-child(odd) .ws-timeline-card > .e-con-inner,
.ws-timeline-carousel .swiper-slide:nth-child(even) .ws-timeline-card > .e-con-inner {
    position: absolute;
    left: 0;
    right: 0;
    height: auto;
    min-height: 0;
}

/* Odd milestones sit below the rule. */
.ws-timeline-carousel .swiper-slide:nth-child(odd) .ws-timeline-card > .e-con-inner {
    top: calc(50% + var(--ws-timeline-gap));
    bottom: auto;
}

/* Even milestones sit above the rule. */
.ws-timeline-carousel .swiper-slide:nth-child(even) .ws-timeline-card > .e-con-inner {
    top: auto;
    bottom: calc(50% + var(--ws-timeline-gap));
}

.ws-timeline-carousel .ws-timeline-card::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--ws-timeline-dot);
    height: var(--ws-timeline-dot);
    border-radius: 50%;
    background: var(--ws-timeline-red);
    transform: translate(-50%, -50%);
    z-index: 3;
}

.ws-timeline-carousel .ws-timeline-year,
.ws-timeline-carousel .ws-timeline-title,
.ws-timeline-carousel .ws-timeline-detail {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    text-align: left;
}

.ws-timeline-carousel .ws-timeline-year .elementor-heading-title,
.ws-timeline-carousel .ws-timeline-year * {
    margin: 0 0 4px !important;
    font-family: "Bricolage Grotesque", sans-serif !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    color: var(--ws-timeline-line) !important;
}

.ws-timeline-carousel .ws-timeline-title .elementor-heading-title,
.ws-timeline-carousel .ws-timeline-title * {
    margin: 0 0 4px !important;
    font-family: "Bricolage Grotesque", sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    color: var(--ws-timeline-red) !important;
}

.ws-timeline-carousel .ws-timeline-detail .elementor-heading-title,
.ws-timeline-carousel .ws-timeline-detail * {
    margin: 0 !important;
    font-family: "Bricolage Grotesque", sans-serif !important;
    font-size: 8px !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    color: var(--ws-timeline-muted) !important;
}

/* Reserve side gutters for navigation so arrows never cover timeline copy. */
.ws-timeline-carousel .elementor-swiper-button,
.ws-timeline-carousel .elementor-swiper-button-prev,
.ws-timeline-carousel .elementor-swiper-button-next {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50%;
    background: #fff !important;
    color: var(--ws-timeline-line) !important;
    box-shadow: 0 1px 6px rgba(73,0,0,.14);
    z-index: 10;
}

.ws-timeline-carousel .elementor-swiper-button-prev { left: 4px !important; }
.ws-timeline-carousel .elementor-swiper-button-next { right: 4px !important; }

.ws-timeline-carousel .elementor-swiper-button:hover,
.ws-timeline-carousel .elementor-swiper-button-prev:hover,
.ws-timeline-carousel .elementor-swiper-button-next:hover {
    color: var(--ws-timeline-red) !important;
}

@media (max-width: 1024px) {
    .ws-timeline-carousel {
        --ws-timeline-height: 190px;
        --ws-timeline-gap: 18px;
        --ws-timeline-dot: 10px;
        padding-inline: 40px;
    }
    .ws-timeline-carousel .ws-timeline-year .elementor-heading-title,
    .ws-timeline-carousel .ws-timeline-year * { font-size: 10px !important; }
    .ws-timeline-carousel .ws-timeline-title .elementor-heading-title,
    .ws-timeline-carousel .ws-timeline-title * { font-size: 12px !important; }
    .ws-timeline-carousel .ws-timeline-detail .elementor-heading-title,
    .ws-timeline-carousel .ws-timeline-detail * { font-size: 9px !important; }
}

@media (max-width: 767px) {
    .ws-timeline-carousel {
        --ws-timeline-height: 206px;
        --ws-timeline-gap: 20px;
        --ws-timeline-dot: 10px;
        padding-inline: 36px;
    }
    .ws-timeline-carousel .ws-timeline-card > .e-con-inner { padding-left: 8px !important; padding-right: 8px !important; }
    .ws-timeline-carousel .ws-timeline-year .elementor-heading-title,
    .ws-timeline-carousel .ws-timeline-year * { font-size: 11px !important; }
    .ws-timeline-carousel .ws-timeline-title .elementor-heading-title,
    .ws-timeline-carousel .ws-timeline-title * { font-size: 13px !important; }
    .ws-timeline-carousel .ws-timeline-detail .elementor-heading-title,
    .ws-timeline-carousel .ws-timeline-detail * { font-size: 10px !important; }
}
