.documents {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 120px 46px 0;
}

.documents__inner {
    width: 100%;
}

.documents__header {
    display: flex;
    margin-bottom: 32px;
    align-items: flex-start;
}

.documents__label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 50%;
}

.documents__label-dot {
    width: 6px;
    height: 6px;
    background-color: rgba(40, 77, 138, 1);
    flex-shrink: 0;
}

.documents__label-text {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 15px;
    text-transform: lowercase;
    color: var(--blue-284d8a);
}

.documents__title {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 32px;
    line-height: 119%;
    text-transform: uppercase;
    color: var(--black-292929);
    width: 50%;
    margin: 0;
}

.documents__grid {
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: flex-end;
}

.documents__card {
    display: flex;
    max-width: 339px;
    margin: -1px;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    background: var(--white-ffffff);
    border: 1px solid var(--line-dadada);
    padding: 32px 46px 32px 32px;
}

.documents__card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.documents__card-title {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 138%;
    text-transform: uppercase;
    color: var(--black-292929);
    margin: 0;
    min-height: 88px;
}

.documents__card-date {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 143%;
    color: var(--grey-808080);
    margin: 0;
}

.documents__card-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 143%;
    color: var(--blue-284d8a);
    transition: opacity 0.3s;
}

.documents__card-link:hover {
    opacity: 0.8;
}

.documents__card-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.documents__card-file-info {
    font-weight: 700;
}

@media (max-width: 1440px){
    .documents__card{
        max-width: 25%;
    }
}

@media (max-width: 1024px) {
    .documents__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .documents__card {
        grid-column: span 1 !important;
    }
}

/* Mobile: 550px and below */
@media (max-width: 769px) {
    .documents {
        padding: 60px 14px 0;
    }

    .documents__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .documents__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 0;
        width: 100%;
    }

    .documents__label {
        width: auto;
        gap: 6px;
    }

    .documents__label-text {
        font-size: 14px;
        font-weight: 600;
    }

    .documents__title {
        width: 100%;
        font-size: 32px;
        letter-spacing: -1.5px;
        line-height: 110%;
    }

    .documents__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        gap: 0;
    }

    .documents__card {
        max-width: none;
        width: 100%;
        padding: 14px;
        gap: 10px;
        margin: -1px;
    }

    .documents__card-content {
        gap: 6px;
    }

    .documents__card-title {
        font-size: 14px;
        line-height: 18px;
        min-height: auto;
    }

    .documents__card-date {
        font-size: 13px;
    }

    .documents__card-link {
        font-size: 13px;
    }

    .documents__card-link svg {
        width: 14px;
        height: 14px;
    }
}
