/* ==========================================================================
   Cooper Suite: Split Screen Timeline Widget Styles
   ========================================================================== */

:root {
    --ivt-accent: #d32f2f;
    --ivt-text-dark: #0a0a0a;
    --ivt-text-muted: #52525b;
    --ivt-line-color: #d1d5db;
    --ivt-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ivt-split-wrap {
    --cooper-frame-lateral: 60px;
    position: relative;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.ivt-split-wrap.is-sticky-pin {
    height: var(--ivt-scroll-travel, 250vh);
    min-height: 250vh;
    position: relative;
    margin: 0 auto;
}

.ivt-split-wrap.is-sticky-pin .ivt-timeline-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    z-index: 2;
}

.ivt-timeline-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #ffffff;
    height: 100vh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    width: 100%;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    font-family: var(--ivt-font-family);
    box-sizing: border-box;
}

.ivt-timeline-container * {
    box-sizing: border-box;
}

.ivt-left-col {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 64px 50px 64px var(--cooper-frame-lateral, 60px);
    background: #ffffff;
    z-index: 2;
}

.ivt-header-block {
    max-width: 460px;
}

.ivt-eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ivt-accent);
    margin-bottom: 18px;
}

.ivt-main-heading {
    font-size: clamp(2.3rem, 3.4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.028em;
    color: var(--ivt-text-dark);
    margin: 0;
}

.ivt-nav-track-wrapper {
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.ivt-nav-track {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ivt-nav-line {
    position: absolute;
    right: 7.5px;
    top: 22px;
    bottom: 22px;
    width: 1px;
    background-color: var(--ivt-line-color);
    z-index: 1;
    display: block !important;
    pointer-events: none;
}

.ivt-nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

.ivt-nav-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.ivt-nav-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    height: 44px !important;
    outline: none;
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: none !important;
}

.ivt-nav-btn:focus-visible {
    outline: 2px solid var(--ivt-accent);
    outline-offset: 4px;
    border-radius: 2px;
}

.ivt-year-text {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.01em;
    text-align: right;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1;
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: none !important;
}

.ivt-nav-item.is-active .ivt-year-text {
    color: var(--ivt-accent);
    font-size: 20px;
    font-weight: 700;
}

.ivt-marker-slot {
    width: 16px !important;
    height: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2;
    flex-shrink: 0;
}

.ivt-marker-square {
    display: block;
    width: 5px;
    height: 5px;
    background-color: #9ca3af;
    position: relative;
    z-index: 3;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ivt-nav-item.is-active .ivt-marker-square {
    background-color: var(--ivt-accent);
    width: 8px;
    height: 8px;
}

.ivt-nav-item:not(.is-active):hover .ivt-year-text {
    color: #374151;
}

.ivt-nav-item:not(.is-active):hover .ivt-marker-square {
    background-color: #6b7280;
}

.ivt-details-wrapper {
    position: relative;
    max-width: 420px;
    min-height: 100px;
    margin-top: 40px;
}

.ivt-detail-card {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.ivt-detail-card.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.ivt-detail-title {
    font-size: clamp(1.35rem, 1.8vw, 1.65rem);
    font-weight: 700;
    color: var(--ivt-text-dark);
    line-height: 1.25;
    margin: 0 0 10px 0;
    letter-spacing: -0.015em;
}

.ivt-detail-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ivt-text-muted);
    margin: 0;
}

.ivt-right-col {
    position: relative;
    overflow: hidden;
    height: 100%;
    background-color: #0f172a;
}

.ivt-gallery-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

.ivt-gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
    z-index: 1;
}

.ivt-gallery-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.ivt-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ==========================================================================
   Elementor Active Breakpoints Adaptations
   - Widescreen: min-width: 1920px
   - Tablet Portrait: max-width: 1024px
   - Mobile Portrait: max-width: 767px
   ========================================================================== */

/* Widescreen (1920px and above) */
@media (min-width: 1920px) {
    .ivt-timeline-container {
        height: 100vh;
        min-height: 100vh;
        max-height: none;
    }
    .ivt-left-col {
        padding: 80px 70px 80px var(--cooper-frame-lateral, 60px);
    }
    .ivt-header-block {
        max-width: 540px;
    }
    .ivt-main-heading {
        font-size: 3.8rem;
    }
}

/* Tablet Portrait (1024px and below) */
@media (max-width: 1024px) {
    .ivt-split-wrap {
        --cooper-frame-lateral: 40px;
    }

    .ivt-timeline-container {
        grid-template-columns: 1fr;
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
        max-height: none;
    }

    .ivt-left-col {
        padding: 44px var(--cooper-frame-lateral, 40px) 40px var(--cooper-frame-lateral, 40px);
    }

    .ivt-nav-track-wrapper {
        position: static;
        transform: none;
        margin: 28px 0;
    }

    .ivt-nav-track {
        align-items: flex-start;
    }

    .ivt-nav-line {
        display: none !important;
    }

    .ivt-nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
    }

    .ivt-nav-item {
        width: auto;
    }

    .ivt-nav-btn {
        background: #f3f4f6 !important;
        padding: 8px 16px !important;
        border-radius: 20px;
        flex-direction: row-reverse !important;
        gap: 8px !important;
        height: auto !important;
    }

    .ivt-nav-item.is-active .ivt-nav-btn {
        background: rgba(211, 47, 47, 0.1) !important;
    }

    .ivt-nav-item.is-active .ivt-year-text {
        font-size: 15px;
    }

    .ivt-right-col {
        height: 420px;
    }
}

/* Mobile Portrait (767px and below) */
@media (max-width: 767px) {
    .ivt-split-wrap {
        --cooper-frame-lateral: 16px;
    }

    .ivt-timeline-container {
        margin: 0 auto;
        border-radius: 0;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .ivt-left-col {
        padding: 30px var(--cooper-frame-lateral, 16px) 28px var(--cooper-frame-lateral, 16px);
    }

    .ivt-main-heading {
        font-size: 2rem;
    }

    .ivt-nav-track-wrapper {
        margin: 22px 0;
    }

    .ivt-nav-list {
        gap: 8px;
    }

    .ivt-nav-btn {
        padding: 6px 12px !important;
    }

    .ivt-nav-item.is-active .ivt-year-text {
        font-size: 13.5px;
    }

    .ivt-details-wrapper {
        margin-top: 25px;
        min-height: 80px;
    }

    .ivt-detail-title {
        font-size: 1.35rem;
    }

    .ivt-detail-desc {
        font-size: 13.5px;
    }

    .ivt-right-col {
        height: 280px;
    }
}
