/* ============================================
   TIMELINE SECTION — Final
   ============================================ */

.timeline-milestones-section {
    padding: 0px 0 60px;
    background: #ffffff;
}

.timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-header .cmntle {
    margin-bottom: 12px;
}

.timeline-subtitle {
    font-size: 20px;
    color: #1a1a1a;
    margin: 0;
    font-weight: 400;
}

.timeline-line-wrapper {
    margin-bottom: 30px;
    width: 100%;
}

.timeline-years-row {
    display: flex;
    align-items: flex-end;
    padding-bottom: 10px;
}

.timeline-year-label {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    color: #cccccc;
    text-align: center;
    line-height: 1;
    transition: color 0.3s ease;
    cursor: pointer;
}

.timeline-year-label.active {
    color: #E3120B;
}

.timeline-line-full {
    position: relative;
    width: 100%;
    height: 28px;
    display: flex;
    align-items: center;
}

.timeline-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9C27B0 0%, #E91E63 100%);
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    width: 100%;
}

.timeline-line-full .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.timeline-dots {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    height: 28px;
}

.timeline-dot-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 28px;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: block;
    border: 1px solid #cccccc;
    position: relative;
    z-index: 3;
}

.timeline-dot.active {
    background: #E3120B;
    border-color: #E3120B;
    box-shadow: 0 0 0 4px rgba(227, 18, 11, 0.15);
}

body.page-template-about { 
    overflow-x: hidden;
}
/* ── Carousel — overflow visible for tooltips ── */

.timeline-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
    z-index: 4;
}

.timeline-carousel {
    overflow: visible !important;
}

.timeline-carousel .owl-item {
    opacity: 1 !important;
    overflow: visible !important;
}

.timeline-carousel .owl-nav {
    display: none !important;
}

.timeline-carousel .owl-dots {
    display: none !important;
}

/* ── Item + Card ─────────────────────────────── */
.timeline-item {
    padding: 0;
    overflow: visible;
}

.timeline-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 20px;
    box-shadow: 0 10px 24px -4px rgba(0,0,0,0.08),
                0 4px 8px -4px rgba(0,0,0,0.06);
    min-height: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 8px;
    overflow: visible; /* MUST be visible for tooltips */
    position: relative;
    z-index: 1;
}

.timeline-card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
    transform: translateY(-2px);
    z-index: 10;
}

/* ── Tooltip Wrapper ─────────────────────────── */
.tl-wrap {
    position: relative;
}

/* ── Title — 2 lines ─────────────────────────── */
.timeline-title {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    margin: 0 0 14px 0;
    line-height: 1.45;
    text-align: center;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

/* ── Description — 4 lines ───────────────────── */
.timeline-description {
    font-size: 14px;
    line-height: 1.75;
    color: #62666D;
    text-align: center;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.timeline-description p {
    margin: 0 0 6px 0;
    font-size: 16px;
    line-height: 24px;
    color: #62666D;
}

.timeline-description p:last-child {
    margin-bottom: 0;
}

/* ── Tooltip Base ────────────────────────────── */
.tl-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 12px);
    background: #ffffff;
    color: #333333;
    font-size: 13px;
    line-height: 1.65;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    min-width: 500px;
    max-width: 500px;
    z-index: 99999;
    white-space: normal;
    font-weight: 400;
    text-align: left;
    pointer-events: none;
}

/* Arrow pointing down */
.tl-tooltip-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffffff;
}

/* Title tooltip — show on title hover only */
.tl-title-wrap:hover .tl-tooltip--title {
    display: block;
}

/* Description tooltip — show on description hover only */
.tl-desc-wrap:hover .tl-tooltip--desc {
    display: block;
}

/* ── Custom Dots ─────────────────────────────── */
.timeline-custom-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}

.tl-custom-dot {
    width: 32px;
    height: 8px;
    border-radius: 4px;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    outline: none !important;
    box-shadow: none !important;
    display: block;
}

.tl-custom-dot:hover {
    background: #aaaaaa;
}

.tl-custom-dot.active {
    background: #E3120B;
    width: 40px;
}

/* ── Responsive ──────────────────────────────── */

@media (min-width: 1200px) { 
    .timeline-carousel .owl-stage-outer {
    padding: 16px 0 10px;
    overflow: visible !important;
    }
}
@media screen and (min-width: 768px) and (max-width: 1199px) {
    .timeline-milestones-section { padding: 0px 0 50px; }
    .timeline-card { padding: 22px 16px; min-height: 180px; }
    .timeline-title { font-size: 17px; }
    .timeline-description { font-size: 13px; }
    .timeline-year-label { font-size: 17px; }
    .tl-tooltip { min-width: 360px; max-width: 360px; }
}

@media screen and (max-width: 767px) {
    .timeline-milestones-section { padding: 0px 0 40px; }
    .timeline-header { margin-bottom: 36px; }
    .timeline-subtitle { font-size: 15px; }
    .timeline-card { padding: 20px 14px; min-height: 160px; margin: 0 4px; }
    .timeline-title { font-size: 16px; }
    .timeline-description { font-size: 13px; }
    .timeline-dot { width: 14px; height: 14px; }
    .timeline-year-label { font-size: 14px; }
    .tl-custom-dot { width: 24px; height: 6px; }
    .tl-custom-dot.active { width: 32px; }
    .tl-tooltip { min-width: 260px; max-width: 90vw; }
}

@media screen and (max-width: 575px) {
    .timeline-year-label { font-size: 12px; }
    .timeline-dot { width: 12px; height: 12px; }
    .timeline-card { padding: 18px 12px; min-height: auto; }
    .timeline-title { font-size: 15px; }
    .tl-tooltip { min-width: 220px; max-width: 90vw; }
}

@media screen and (max-width: 480px) {
    .timeline-line-wrapper { display: none; }
}
