/* background_history.css */

body {
    background-color: #2779a9;
    /* match the bottom blue gradient of the image */
    background-image: url('../assets/images/background_history/background.jpg');
    background-size: 100vw auto;
    background-position: right 0 top 8rem;
    background-repeat: no-repeat;
    /* background-attachment: fixed; */
}

.history-main {
    flex-grow: 1;
    width: 100%;
    max-width: 1536px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--margin-page, 5vw);
    padding-right: var(--margin-page, 5vw);
    padding-bottom: var(--section-gap, 128px);
}

.history-header {
    padding-top: var(--section-gap, 128px);
    padding-bottom: 4rem;
    border-bottom: 4px solid white;
}

.history-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(32px, 5vw + 16px, 56px);
    font-weight: 800;
    line-height: clamp(40px, 6vw + 20px, 90px);
    color: white;
    text-transform: uppercase;
    max-width: 100%;
    margin: 0;
    text-align: center;
    padding: 0 2rem;
}

.timeline-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter-grid, 24px);
    margin-top: 4rem;
}

.timeline-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter-grid, 24px);
    padding: 2rem;
    border: 5px solid white;
    border-radius: 24px;
    overflow: hidden;
}

.timeline-block:nth-of-type(n) {
    background-image:
        linear-gradient(to right, rgba(64, 131, 173, 0.5) 0%, rgba(20, 60, 140, 0.7) 100%),
        url('../assets/images/background_history/trial.jpg');
    background-size: cover;
    background-position: center;
}



@media (min-width: 768px) {
    .timeline-block {
        grid-template-columns: repeat(12, 1fr);
        padding: 3rem 6rem;
    }

    .timeline-col-3 {
        grid-column: span 3;
    }

    .timeline-col-4 {
        grid-column: span 4;
    }

    .timeline-col-5 {
        grid-column: span 5;
    }

    .timeline-col-9 {
        grid-column: span 9;
    }

    .order-md-1 {
        order: 1;
    }

    .order-md-2 {
        order: 2;
    }

    .order-md-3 {
        order: 3;
    }
}

.timeline-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(14px, 2vw + 10px, 20px);
    font-weight: 500;
    text-transform: uppercase;
    color: white;
    display: inline-block;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid white;
    margin-bottom: 0.5rem;
}

.timeline-year {
    font-family: 'Inter', sans-serif;
    font-size: clamp(40px, 6vw + 16px, 64px);
    font-weight: 700;
    color: white;
    margin: 0;
}

.timeline-desc {
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 1.5vw + 10px, 20px);
    font-weight: 400;
    line-height: 32px;
    color: white;
    margin: 0;
}

.timeline-heading {
    font-family: 'Inter', sans-serif;
    font-size: clamp(24px, 3vw + 12px, 32px);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    margin-bottom: 1rem;
    margin-top: 0;
}

.timeline-image-wrapper {
    position: relative;
    min-height: 300px;
    height: 16rem;
}

@media (min-width: 768px) {
    .timeline-image-wrapper {
        height: auto;
    }
}

.timeline-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top right;
    mix-blend-mode: multiply;
}

.flex-col-start {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.flex-col-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Today Section */
.scope-card {
    border-top: 4px solid var(--secondary);
    border-left: 1px solid var(--blueprint-line, #E2E5E7);
    border-right: 1px solid var(--blueprint-line, #E2E5E7);
    border-bottom: 1px solid var(--blueprint-line, #E2E5E7);
    background-color: var(--surface-container-lowest, #ffffff);
    padding: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .scope-card {
        margin-top: 0;
    }
}

.scope-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(11px, 1.2vw + 8px, 14px);
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.scope-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--blueprint-line, #E2E5E7);
}

.scope-item:last-child {
    border-bottom: none;
}

.scope-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(11px, 1.2vw + 8px, 14px);
    font-weight: 500;
    color: white;
}

/* Strategy Banner */
.strategy-banner {
    margin-top: var(--section-gap, 128px);
    margin-left: auto;
    margin-right: auto;
    max-width: 64rem;
    position: relative;
    color: white;
    padding: 2rem;
    text-align: center;
    border: 5px solid white;
    border-radius: 24px;
    overflow: hidden;
    z-index: 1;
}

.strategy-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    background-image: url('../assets/images/background_history/strategic-focus-background.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

@media (min-width: 768px) {
    .strategy-banner {
        padding: 3rem 6rem;
    }
}

.strategy-banner-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(11px, 1.2vw + 8px, 14px);
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.strategy-banner-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(28px, 4vw + 12px, 48px);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2rem;
    margin-top: 0;
    text-decoration: underline;
}

.strategy-banner-desc {
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 1.5vw + 10px, 20px);
    font-weight: 400;
    line-height: 32px;
    color: white;
    max-width: 42rem;
    margin: 0 auto;
}