/* =====================================================
   TEKCOM Timeline Slider Widget
   ===================================================== */

.tekcom-timeline-widget {
    --tl-primary: #193250;
    --tl-text: #6b7280;
    --tl-line: #dcebfd;
    overflow: visible;
}

/* Section */
.tekcom-timeline-widget .tekcom-timeline-section {
    padding: 4rem 0;
    background: #fff;
    position: relative;
    overflow: visible;
}

/* ── Timeline Nav ───────────────────────────────────── */
.tekcom-timeline-widget .tekcom-timeline-nav-wrapper {
    position: relative;
    width: 100%;
    scroll-behavior: smooth;
}

@media (max-width: 992px) {
    .tekcom-timeline-widget .tekcom-timeline-nav-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tekcom-timeline-widget .tekcom-timeline-nav-wrapper::-webkit-scrollbar {
        display: none;
    }

    .tekcom-timeline-widget .tekcom-timeline-nav-inner {
        min-width: 800px;
    }
}

.tekcom-timeline-widget .tekcom-timeline-nav-inner {
    position: relative;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

/* ── Year Labels ────────────────────────────────────── */
.tekcom-timeline-widget .tekcom-timeline-years {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 2;
    overflow: visible;
}

.tekcom-timeline-widget .tekcom-year-labels-container {
    position: relative;
    height: 100%;
    max-width: none;
    padding: 0;
}

.tekcom-timeline-widget .tekcom-year-labels-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.tekcom-timeline-widget .tekcom-year-label {
    position: absolute;
    bottom: -15px;
    transform: translateX(-50%);
    font-weight: 600;
    color: #546e7a;
    font-size: 1.1rem;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), font-size 0.3s, color 0.3s;
    white-space: nowrap;
    cursor: pointer;
}

@media (max-width: 768px) {
    .tekcom-timeline-widget .tekcom-year-label {
        font-size: 0.85rem;
    }
}

.tekcom-timeline-widget .tekcom-year-label.tekcom-active {
    transform: translate(-50%, -45px);
    color: #1a3b5d;
    font-size: 1.3rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .tekcom-timeline-widget .tekcom-year-label.tekcom-active {
        font-size: 1rem;
        transform: translate(-50%, -35px);
    }
}

/* ── Swiper ─────────────────────────────────────────── */
.tekcom-timeline-widget .tekcom-hero-swiper {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 2rem;
    overflow: visible !important;
    width: 100%;
    z-index: 2;
}

/* ── Icon Dots Track ────────────────────────────────── */
.tekcom-timeline-widget .tekcom-icon-dots {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 1;
}

.tekcom-timeline-widget .tekcom-icon-dots-track {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    border-top: 1px solid #dcebfd;
    padding: 0;
}

/* Vertical Lines */
.tekcom-timeline-widget .tekcom-vertical-line {
    position: absolute;
    top: -10em;
    width: 1px;
    height: 100vh;
    background: #dcebfd;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
}

/* Moving Indicator */
.tekcom-timeline-widget .tekcom-icon-indicator {
    position: absolute;
    top: 50%;
    left: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translate(-50%, -50%);
    z-index: 5;
}

.tekcom-timeline-widget .tekcom-icon-indicator .tekcom-icon-image {
    width: 50px;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .tekcom-timeline-widget .tekcom-icon-indicator .tekcom-icon-image {
        width: 35px;
    }
}

/* Static Dots */
.tekcom-timeline-widget .tekcom-static-dot {
    position: absolute;
    top: -6px;
    width: 12px;
    height: 12px;
    background: #dcebfd;
    border-radius: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: background 0.3s;
}

.tekcom-timeline-widget .tekcom-static-dot.tekcom-active {
    background: transparent;
}

/* ── Slide Content ──────────────────────────────────── */
.tekcom-timeline-widget .swiper-slide>.tekcom-container {
    max-width: none;
    width: 100%;
    padding: 0;
}

.tekcom-timeline-widget .tekcom-hero-slide {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    padding-top: 2rem;
    width: 100%;
}

.tekcom-timeline-widget .tekcom-hero-content {
    flex: 1;
    max-width: 450px;
    padding-top: 1rem;
    position: relative;
    margin-left: 10%;
}

@media (max-width: 992px) {
    .tekcom-timeline-widget .tekcom-hero-content {
        margin-left: 2rem;
        margin-right: 2rem;
    }
}

.tekcom-timeline-widget .tekcom-hero-content h2 {
    font-size: 2.5rem;
    color: #193250;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

/* Square accent behind title */
.tekcom-timeline-widget .tekcom-hero-content h2::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 60px;
    height: 60px;
    background: #eaf6ff;
    z-index: -1;
}

.tekcom-timeline-widget .tekcom-hero-content p {
    color: #6b7280;
    margin-bottom: 3rem;
    font-size: 1rem;
    line-height: 1.7;
}

.tekcom-timeline-widget .tekcom-hero-image {
    flex: none;
    width: calc(100% - 40%);
    height: 550px;
    overflow: hidden;
    position: relative;
    margin-left: auto;
}

.tekcom-timeline-widget .tekcom-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/* ── Nav Buttons ────────────────────────────────────── */
.tekcom-timeline-widget .tekcom-slide-nav-buttons {
    display: flex;
    gap: 1rem;
}

.tekcom-timeline-widget .tekcom-custom-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
    padding: 0;
}

.tekcom-timeline-widget .tekcom-custom-nav-btn svg {
    width: 100%;
    height: 100%;
    transform: scale(0.35);
}

.tekcom-timeline-widget .tekcom-custom-nav-btn:hover {
    border-color: #193250;
    color: #193250;
    background: rgba(25, 50, 80, 0.05);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1200px) {
    .tekcom-timeline-widget .tekcom-hero-content {
        margin-left: 5%;
        max-width: 380px;
    }

    .tekcom-timeline-widget .tekcom-hero-image {
        height: 400px;
    }
}

@media (max-width: 992px) {
    .tekcom-timeline-widget .tekcom-hero-slide {
        flex-direction: column;
        gap: 2rem;
        padding-top: 1rem;
    }

    .tekcom-timeline-widget .tekcom-hero-content {
        margin-left: 0;
        max-width: 100%;
        text-align: center;
        order: 2;
    }

    .tekcom-timeline-widget .tekcom-hero-content h2::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .tekcom-timeline-widget .tekcom-hero-image {
        width: 100%;
        height: 350px;
        order: 1;
    }

    .tekcom-timeline-widget .tekcom-slide-nav-buttons {
        justify-content: center;
        margin-top: -1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .tekcom-timeline-widget .tekcom-hero-content h2 {
        font-size: 2rem;
    }

    .tekcom-timeline-widget .tekcom-hero-image {
        height: 250px;
    }
}