.documents-section {
    box-sizing: border-box;
    /* Side inset, single source at every breakpoint (.documents-section__
       header/__track don't add their own) — one variable instead of
       repeating the same padding declaration with only this number
       changed in each media block below. Same scheme as team-section. */
    --docs-pad-x: 20px;
    padding: 96px var(--docs-pad-x);
    background: #FFFFFF;
}

@media (min-width: 500px) {
    .documents-section {
        --docs-pad-x: 40px;
    }
}

@media (min-width: 768px) {
    .documents-section {
        --docs-pad-x: 60px;
    }
}

@media (min-width: 900px) {
    .documents-section {
        --docs-pad-x: 96px;
    }
}

/*
 * flex-direction:column + gap replaces what used to be a position:absolute
 * header floating over track's own hardcoded top-padding "clearance" —
 * header and track are now just two plain stacked children (same fix as
 * team-section/style.css).
 */
.documents-section__inner {
    box-sizing: border-box;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.documents-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.documents-section__title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 108%;
    letter-spacing: -0.03em;
    color: #023A85;
}

.documents-section__highlight {
    color: rgba(252, 169, 58, 1);
}

.documents-section__nav {
    display: flex;
    gap: 16px;
}

.documents-section__arrow {
    box-sizing: border-box;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #023A85;
    border-radius: 50%;
    background: transparent;
    color: #023A85;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.documents-section__arrow:hover {
    background: #023A85;
    color: #FFFFFF;
}

/* Set by assets/js/main.js's generic carousel IIFE once the track is
   scrolled all the way to that end. */
.documents-section__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.documents-section__arrow:disabled:hover {
    background: transparent;
    color: #023A85;
}

.documents-section__track {
    box-sizing: border-box;
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.documents-section__track::-webkit-scrollbar {
    display: none;
}

.document-card {
    flex: 0 0 auto;
    width: 260px;
    scroll-snap-align: start;
    box-sizing: border-box;
    padding: 32px 24px;
    border-radius: 24px;
    background: #E7F1FF;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.document-card__preview {
    display: contents;
}

.document-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(2, 58, 133, 0.08);
}

.document-card__title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.03em;
    color: #023A85;
}

.document-card__download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #023A85;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.document-card__download .icon-arrow {
    width: 20px;
    height: 20px;
    color: #023A85;
}

.document-card__download:hover {
    gap: 12px;
}

.document-card__download--disabled {
    color: rgba(2, 58, 133, 0.4);
}

@media (max-width: 768px) {
    .documents-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .documents-section__title {
        font-size: 26px;
    }

    .documents-section__track {
        /* Half the leftover space on each side (viewport minus one
           220px card) — the first card sits centered at rest instead
           of flush against the edge, and the next card's edge peeks in
           from the right by whatever's left after the 24px gap. */
        padding: 0 calc((100% - 220px) / 2);
    }

    .document-card {
        width: 220px;
        /* start (the base rule) snaps each card flush to the track's
           edge — center is what actually produces the peek-carousel
           look together with the padding above. */
        scroll-snap-align: center;
    }
}
