/* Download Centre */
.downloads-page {
    color: #071528;
    background: #ffffff;
}

/* Hero */
.downloads-hero {
    padding: 175px 0 105px;
    color: #ffffff;
    background:
        linear-gradient(
            120deg,
            rgba(0, 104, 201, 0.22),
            transparent 48%
        ),
        #06182d;
}

.downloads-hero__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(320px, 0.85fr);
    gap: clamp(60px, 9vw, 140px);
    align-items: end;
}

.downloads-hero h1 {
    margin: 20px 0 0;
    color: #ffffff;
    font-size: clamp(58px, 6.5vw, 92px);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.96;
}

.downloads-hero__intro {
    padding-left: 36px;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.downloads-hero__intro p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    line-height: 1.75;
}

/* Library */
.downloads-library {
    padding: 80px 0 120px;
    background: #f3f6f9;
}

.downloads-toolbar {
    display: flex;
    padding-bottom: 32px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid #ccd6e1;
}

.downloads-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.downloads-filters a {
    display: inline-flex;
    min-height: 42px;
    padding: 9px 16px;
    align-items: center;
    color: #405066;
    font-size: 13px;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #d3dce6;
}

.downloads-filters a:hover,
.downloads-filters a.is-active {
    color: #ffffff;
    background: #0068c9;
    border-color: #0068c9;
}

.downloads-search {
    display: flex;
    flex: 0 0 auto;
}

.downloads-search input {
    width: 240px;
    height: 44px;
    padding: 0 14px;
    color: #071528;
    font: inherit;
    background: #ffffff;
    border: 1px solid #c8d3df;
    border-right: 0;
    outline: none;
}

.downloads-search input:focus {
    border-color: #0068c9;
    box-shadow: inset 0 0 0 1px #0068c9;
}

.downloads-search button {
    min-width: 88px;
    height: 44px;
    padding: 0 16px;
    color: #ffffff;
    font-weight: 700;
    background: #071528;
    border: 0;
    cursor: pointer;
}

.downloads-results-heading {
    display: flex;
    padding: 28px 0;
    align-items: center;
    justify-content: space-between;
}

.downloads-results-heading p {
    margin: 0;
    color: #647286;
    font-size: 13px;
    font-weight: 600;
}

/* Cards */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.download-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #d8e0e9;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.download-card:hover {
    border-color: #aec9e1;
    box-shadow: 0 24px 50px rgba(7, 31, 58, 0.1);
    transform: translateY(-5px);
}

.download-card__visual {
    position: relative;
    display: flex;
    min-height: 210px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    color: #0068c9;
    background:
        linear-gradient(
            135deg,
            #edf5fc,
            #dcecf8
        );
}

.download-card__visual::after {
    position: absolute;
    right: -50px;
    bottom: -80px;
    width: 190px;
    height: 190px;
    content: "";
    border: 1px solid rgba(0, 104, 201, 0.18);
    border-radius: 50%;
}

.download-card__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-card__visual > span {
    position: relative;
    z-index: 1;
    font-size: 46px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.download-card__body {
    display: flex;
    padding: 30px;
    flex: 1;
    flex-direction: column;
}

.download-card__type {
    margin: 0 0 14px;
    color: #0068c9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.download-card h2 {
    margin: 0 0 18px;
    color: #071528;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.download-card__excerpt {
    margin-bottom: 22px;
    color: #5b697b;
    font-size: 14px;
    line-height: 1.7;
}

.download-card__excerpt p {
    margin: 0;
}

.download-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.download-card__meta span {
    display: inline-flex;
    min-height: 28px;
    padding: 5px 9px;
    align-items: center;
    color: #526176;
    font-size: 11px;
    font-weight: 700;
    background: #f0f4f8;
    border: 1px solid #dce3eb;
}

.download-card__product {
    margin-bottom: 20px;
    color: #0068c9;
    font-size: 12px;
    font-weight: 600;
}

.download-card__action {
    display: flex;
    padding-top: 18px;
    margin-top: auto;
    align-items: center;
    justify-content: space-between;
    color: #0068c9;
    font-size: 12px;
    font-weight: 700;
    border-top: 1px solid #dce3eb;
    text-transform: uppercase;
}

.download-card__action span {
    font-size: 18px;
}

.download-card__action.is-disabled {
    color: #8995a5;
}

/* Pagination */
.downloads-pagination {
    display: flex;
    margin-top: 48px;
    justify-content: center;
    gap: 6px;
}

.downloads-pagination .page-numbers {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #304158;
    background: #ffffff;
    border: 1px solid #d3dce6;
}

.downloads-pagination .page-numbers.current,
.downloads-pagination .page-numbers:hover {
    color: #ffffff;
    background: #0068c9;
    border-color: #0068c9;
}

/* Empty State */
.downloads-empty {
    padding: 90px 30px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #d8e0e9;
}

.downloads-empty h2 {
    margin: 16px auto 28px;
    color: #071528;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.035em;
}

/* Responsive */
@media (max-width: 1080px) {
    .downloads-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .downloads-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .downloads-search input {
        width: 100%;
    }

    .downloads-search {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .downloads-hero {
        padding: 135px 0 75px;
    }

    .downloads-hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .downloads-hero h1 {
        font-size: clamp(48px, 15vw, 66px);
    }

    .downloads-hero__intro {
        padding-left: 0;
        border-left: 0;
    }

    .downloads-library {
        padding: 58px 0 80px;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .downloads-search button {
        min-width: 78px;
    }
}