/* input(25,44): run-time error CSS1019: Unexpected token, found ' '
input(25,44): run-time error CSS1019: Unexpected token, found ' '
input(25,44): run-time error CSS1063: Expected calculation unit, found ' '
input(25,44): run-time error CSS1064: Expected calculation product, found ' '
input(25,44): run-time error CSS1065: Expected calculation sum, found ' '
input(25,44): run-time error CSS1034: Expected closing parenthesis, found ' '
input(25,44): run-time error CSS1042: Expected function, found ' '
input(25,44): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' ' */
:root {
  /* Base font size for rem calculations */
  --base-font-size: 16px;

  /* Transition timing functions */
  --timeline-primary-timing: cubic-bezier(0.4, 0, 0.2, 1);
  --timeline-secondary-timing: ease-in-out;

  /* Transition durations */
  --timeline-fast: 0.15s;
  --timeline-medium: 0.25s;
  --timeline-slow: 0.3s;

  /* Colors */
  --timeline-background: #163e70;
  --timeline-dot-border: #b9c8da;
  --timeline-dot-active: #b9c8da;
  --timeline-tab-background: #03203d;
  --timeline-tab-border: #2c3c55;
  --timeline-text-color: #ffffff;
  --timeline-shadow-color: rgba(0, 0, 0, 0.1);
}

.timelinesliderpanel {
  margin-top: calc(clamp(6.25rem, 6.818vw + 1.886rem, 9.25rem));
}
  
  /* ==========================================
   * TABS
   * ========================================== */
   .time-period-tabs {
    display: flex;
    width: 100%;
    font-family: "ABCDiatypeBold", "Arial", sans-serif;
    font-weight: 700;
}

.tab {
    flex: 1;
    padding: 0.9375rem 0; /* 15px */
    text-align: center;
    font-size: 1.5rem; /* 24px */
    font-family: "ABCDiatypeBold", "Arial", sans-serif;
    font-weight: 700;
    color: var(--timeline-text-color);
    background-color: var(--timeline-tab-background);
    border-right: 0.0625rem solid var(--timeline-tab-border); /* 1px */
    cursor: pointer;
    transition: background-color var(--timeline-medium) var(--timeline-secondary-timing);
    line-height: 1.2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab:last-child {
    border-right: none;
}

.tab.active {
    background-color: var(--timeline-background);
}

/* ==========================================
* TIMELINE SECTION
* ========================================== */
.timeline-section {
    width: 100%;
    background-color: var(--timeline-background);
    color: var(--timeline-text-color);
    padding: 2.8125rem; /* 45px */
    position: relative;
    height: 37rem; /* 592px */
    height: 100%;
    overflow: hidden;
}

.timeline-container {
    max-width: 62.5rem; /* 1000px */
    max-width: 80%;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

/* ==========================================
* TIMELINE WRAPPER
* ========================================== */
.timeline-wrapper {
    --left-fade-opacity: 0;
    --right-fade-opacity: 1;
    position: relative;
    overflow: hidden;
    height: 6.25rem; /* 100px */
    display: flex;
    align-items: center;
}

/* Fade effects */
.timeline-container::before,
.timeline-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6.25rem; /* 100px */
    pointer-events: none;
    z-index: 10;
    transition: opacity var(--timeline-medium) var(--timeline-secondary-timing);
    will-change: opacity;
}

.timeline-container::before {
    left: -1.25rem; /* -20px */
    background: linear-gradient(to right, rgb(22, 62, 112) 0, rgba(31, 49, 87, 0) 100%);
    opacity: var(--left-fade-opacity);
}

.timeline-container::after {
    right: -1.25rem; /* -20px */
    background: linear-gradient(to left, rgb(22, 62, 112) 0, rgba(31, 49, 87, 0) 100%);
    opacity: var(--right-fade-opacity);
}

/* ==========================================
* TIMELINE BASE
* ========================================== */
.timeline,
.timeline-progress {
    height: 0.25rem; /* 4px */
    transform: translateY(-50%);
    top: 50%;
    z-index: 1;
    position: absolute;
}

.timeline {
    width: 100%;
    background-color: #fff;
}

/* ==========================================
* TIMELINE PROGRESS
* ========================================== */
.timeline-progress {
    background-color: var(--timeline-dot-border);
    transition: width var(--timeline-medium) var(--timeline-primary-timing), left var(--timeline-medium) var(--timeline-primary-timing);
    will-change: width, left;
}

.timeline-progress-no-transition {
    transition: none !important;
}

/* ==========================================
* TIMELINE DOTS CONTAINER
* ========================================== */
.timeline-dots-container {
    position: relative;
    display: flex;
    z-index: 2;
    height: 100%;
    align-items: center;
    will-change: transform, opacity;
}

.timeline-dots-animate {
    transition: transform var(--timeline-medium) var(--timeline-primary-timing);
}

.timeline-dots-fade {
    transition: opacity var(--timeline-fast) var(--timeline-secondary-timing);
}

.timeline-dots-container > div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: width var(--timeline-medium) var(--timeline-secondary-timing), padding var(--timeline-medium) var(--timeline-secondary-timing);
}

/* ==========================================
* TIMELINE DOT & DOT CONTAINER
* ========================================== */
.timeline-dot-container {
    position: relative;
    z-index: 99;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: width var(--timeline-medium) var(--timeline-secondary-timing), padding var(--timeline-medium) var(--timeline-secondary-timing);
}

.timeline-dot {
    position: relative;
    width: 1rem; /* 16px */
    height: 1rem; /* 16px */
    background-color: #fff;
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    z-index: 100;
    pointer-events: auto;
    flex-shrink: 0;
    transition: transform var(--timeline-fast) var(--timeline-primary-timing), width var(--timeline-fast) var(--timeline-primary-timing), height var(--timeline-fast) var(--timeline-primary-timing),
        background-color var(--timeline-fast) var(--timeline-secondary-timing);
    will-change: transform, width, height;
}

.timeline-dot.in-past {
    background-color: var(--timeline-dot-active);
}

.timeline-dot.active {
    width: 1.5rem; /* 24px */
    height: 1.5rem; /* 24px */
    background-color: var(--timeline-dot-active);
    border: none;
    transform: scale(1.3);
    z-index: 10;
}

.timeline-dot.active > .timeline-dot-year {
    font-family: "UntitledSerifBold", "Georgia", serif;
    font-weight: 700;
}

.timeline-dot.active .timeline-dot-year {
    top: 1.625rem; /* 26px */
}

.timeline-dot-year {
    position: absolute;
    top: 1.5625rem; /* 25px */
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.125rem; /* 18px */
    font-weight: 500;
    color: var(--timeline-text-color);
    white-space: nowrap;
    transition: top var(--timeline-medium) var(--timeline-secondary-timing);
    font-family: "UntitledSerifBold", "Georgia", serif;
}

/* ==========================================
* TIMELINE NAVIGATION
* ========================================== */
.timeline-navigation-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    top: -5.3125rem; /* -85px */
}

.timeline-navigation {
    width: 100%;
    max-width: calc(100% + 10rem);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    position: relative;
}

.timeline-nav-button {
    pointer-events: auto;
    z-index: 6;
    width: 5.125rem; /* 82px */
    height: 5.125rem; /* 82px */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity var(--timeline-fast) var(--timeline-secondary-timing), transform var(--timeline-fast) var(--timeline-secondary-timing);
    background: transparent;
    border: none;
    opacity: 0.7;
}

.timeline-nav-button:hover {
    opacity: 1;
}

.timeline-nav-button:active {
    transform: translateY(-30%);
}

.timeline-nav-button.hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s var(--timeline-fast), opacity var(--timeline-fast) var(--timeline-secondary-timing);
}

.timeline-nav-button svg {
    width: 5.125rem; /* 82px */
    height: 5.125rem; /* 82px */
    fill: #fff;
    transition: fill var(--timeline-medium) var(--timeline-secondary-timing);
}

.timeline-nav-button:hover svg {
    fill: var(--timeline-dot-active);
}

/* ==========================================
* CONTENT SECTION
* ========================================== */
.content-section {
    display: flex;
    padding: 0;
    background-color: #ffffff;
    border-bottom-left-radius: 0.3125rem; /* 5px */
    border-bottom-right-radius: 0.3125rem; /* 5px */
    min-height: 12.5rem; /* 200px */
    box-shadow: 0 0.25rem 0.5rem var(--timeline-shadow-color); /* 0 4px 8px */
}

.year-heading {
    font-size: 4rem; /* 64px */
    font-weight: 700;
    color: var(--timeline-text-color);
    margin-bottom: 1.25rem; /* 20px */
    font-family: "ABCDiatype";
}

.timeline-section .content {
    color: var(--timeline-text-color);
    font-size: 1.5rem; /* 24px */
    line-height: 1.2;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    column-gap: 2.8125rem; /* 45px */
    transition: opacity var(--timeline-fast) var(--timeline-secondary-timing);
    will-change: opacity;
    max-width: 95%;
    padding-left: 0rem; /* 20px */
}
    .timeline-section .content p {
        font-size: 1.5rem; /* 24px */
        line-height: 1.2;
        font-family: 'UntitledSerif';
    }
.content p + p {
    margin-top: 1rem;
}

.content .year-heading {
    line-height: 1;
}

.content-fade {
    opacity: 0;
}

.content-show {
    opacity: 1;
}

/* ==========================================
* CONTENT LAYOUT
* ========================================== */
.image-container {
    width: 40%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 6.25rem; /* 100px */
    height: 6.25rem; /* 100px */
}

.text-container {
    width: 60%;
    padding: 1.875rem; /* 30px */
    color: #333;
}

.full-width-timeline-content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.full-width-timeline-content .year-heading {
    text-align: left;
    margin-bottom: 1.25rem; /* 20px */
}

.full-width-timeline-content .timeline-year-copy-container {
    height: 18.75rem; /* 300px */
    position: relative;
    overflow: hidden;
}

.full-width-timeline-content .timeline-year-copy {
    max-height: 18.75rem; /* 300px */
    overflow-y: auto;
    padding-right: 0.75rem;
}

.left-timeline-content.is-image {
    width: 100%;
    min-width: 40%;
    max-width: 40%;
}

.left-timeline-content.is-image img {
    opacity: 0;
    transition: opacity var(--timeline-medium) var(--timeline-secondary-timing);
    max-width: 100%;
}

.left-timeline-content.is-image img.loaded {
    opacity: 1;
}

/* ==========================================
* YEAR CONTENT
* ========================================== */
.timeline-year-copy {
    height: 17.1875rem; /* 275px */
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
    padding-right: 0.75rem;
}

.timeline-year-copy::-webkit-scrollbar {
    width: 0.375rem; /* 6px */
}

.timeline-year-copy::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.timeline-year-copy::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 0.1875rem; /* 3px */
}

.timeline-year-copy-container {
    position: relative;
}

.timeline-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3.125rem; /* 50px */
    background: linear-gradient(to bottom, rgba(22, 62, 112, 0) 0%, #163e70 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--timeline-medium) var(--timeline-secondary-timing);
    will-change: opacity;
}

.timeline-diamond {
    position: absolute;
    width: 1rem; /* 16px */
    height: 1rem; /* 16px */
    background-color: var(--timeline-dot-active);
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    z-index: 3;
}

.timeline-diamond-left {
    left: -0.625rem; /* -10px */
}

.timeline-diamond-right {
    right: -0.9375rem; /* -15px */
}

/* ==========================================
* RESPONSIVE STYLES
* ========================================== */
@media all and (max-width: 75em) {
    /* 1200px */
    .timeline-container {
        max-width: 75%;
    }

    .timeline-navigation-wrapper {
        margin-top: 0.5rem;
    }

    .timeline-nav-button {
        width: 3.5rem;
        height: 3.5rem;
    }

    .timeline-nav-button svg {
        width: 3.5rem;
        height: 3.5rem;
    }

    .tab {
        font-size: 1.25rem; /* 20px */
        padding: 0.75rem 0.5rem; /* 12px 8px */
        hyphens: auto;
    }

    .content {
        font-size: 1.25rem; /* 20px */
    }

    .full-width-timeline-content .timeline-year-copy-container {
        height: unset;
    }

    .timeline-year-copy {
        height: 11rem;
    }

    .year-heading {
        font-size: 3.5rem; /* 56px */
    }
}

@media all and (max-width: 62.5em) {
    /* 1000px */
    .timeline-navigation-wrapper {
        margin-top: 0.5rem; /* 20px */
    }

    .timeline-wrapper {
        margin-bottom: 0.5rem; /* 80px */
    }

    .tab {
        font-size: 1.125rem; /* 18px */
    }

    .timeline-section {
        padding: 1.5rem 2rem 3rem; /* 32px */
        height: auto;
    }

    .content {
        align-items: center;
    }

    .year-heading {
        font-size: 3rem; /* 48px */
    }

    .content .is-image img {
        max-width: 18.75rem;
    }
}

@media all and (max-width: 53.0625rem) {
  
    .timeline-section {
        padding: 1.5rem; /* 24px */
    }

    .content .is-image {
        display: none;
    }

    .tab {
        font-size: 1rem; /* 16px */
        padding: 0.625rem 0.25rem; /* 10px 4px */
    }

    .timeline-dot-year {
        font-size: 1rem; /* 16px */
    }

    .timeline-nav-button {
        width: 3.75rem; /* 60px */
        height: 3.75rem; /* 60px */
    }

    .timeline-nav-button svg {
        width: 3.75rem; /* 60px */
        height: 3.75rem; /* 60px */
        position: relative;
        top: -2px;
    }
    #prevBtn svg{ 
        left: -22px;
    }
    #nextBtn svg{
        right: -24px;
    }
    .year-heading {
        font-size: 2.5rem; /* 40px */
    }

    .content {
        font-size: 1.125rem; /* 18px */
    }
}

.timelinesliderpanel .dropdown-toggle {
    display: block;
    width: 100%;
    padding: 1rem 1.125rem 1rem 1.25rem;
    font-weight: 700;
    font-size: clamp(1.25rem, calc(1.25rem + (20 - 20) * ((100vw - 24.5625rem) / (1728 - 393))), 1.25rem);
    line-height: 100%;
    background-color: #03203d;
    border: 0.0625rem solid #03203d;
    letter-spacing: -0.03em;
    color: #ffffff;
    border-radius: 0;
    cursor: pointer;
    text-align: left;
    position: relative;
}
.timelinesliderpanel .dropdown-toggle svg {
    width: 2.625rem;
    background-size: contain;
    height: 2.625rem;
    border: 0;
    display: inline-block;
    margin: 0.625rem 0 0 0.625rem;
    position: absolute;
    top: -0.25rem;
    right: 0.5rem;
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
.timelinesliderpanel .dropdown-toggle svg path {
        fill: var(--timeline-text-color);
    }
.timelinesliderpanel .dropdown-menu {
    display: none;
    position: relative;
    width: 100%;
    background-color: var(--timeline-tab-background);
    border-radius: 0;
    margin-left: 0;
    padding-bottom: 0.25rem;
    margin-bottom: 0;
}
.timelinesliderpanel .dropdown-menu li {
    color: #ffffff;
    padding: 0 1.25rem;
    font-weight: 400;
    font-size: clamp(1.25rem, calc(1.25rem + (20 - 20) * ((100vw - 24.5625rem) / (1728 - 393))), 1.25rem);
    line-height: 100%;
    margin-bottom: 0.25rem;
    cursor: pointer;
}
.timelinesliderpanel .dropdown-toggle.active svg {
    -webkit-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
}
