.finance-tools-page {
    background: #f4f7fa !important;
    color: #172033;
}

.finance-tools-page .tools-hero {
    align-items: center;
    background-color: #1d2738;
    background-image: url('/web/assets/banner/finance-calculator-banner-2.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    min-height: 370px;
    overflow: hidden;
    padding: 82px 0 88px;
    position: relative;
}

.finance-tools-page .tools-hero::before {
    background: rgba(7, 15, 30, 0.68);
    content: '';
    inset: 0;
    position: absolute;
}

.finance-tools-page .tools-hero__content {
    position: relative;
    z-index: 1;
}

.finance-tools-page .tools-hero__eyebrow,
.finance-tools-page .tools-directory__eyebrow {
    align-items: center;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    gap: 8px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.finance-tools-page .tools-hero__eyebrow {
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 6px;
    color: #ffffff;
    margin-bottom: 18px;
    padding: 7px 10px;
}

.finance-tools-page .tools-hero h1 {
    color: #ffffff !important;
    font-size: 46px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.12;
    margin: 0 0 14px;
    max-width: 720px;
}

.finance-tools-page .tools-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.65;
    margin: 0;
    max-width: 650px;
}

.finance-tools-page .tools-hero__facts {
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 16px 28px;
    margin-top: 30px;
}

.finance-tools-page .tools-hero__facts span {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.finance-tools-page .tools-hero__facts strong {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.finance-tools-page .tools-directory {
    background: #f4f7fa;
    padding: 54px 0 66px;
}

.finance-tools-page .tools-directory__heading {
    align-items: end;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    margin-bottom: 26px;
}

.finance-tools-page .tools-directory__eyebrow {
    color: var(--pc, #123ea5);
    margin-bottom: 7px;
}

.finance-tools-page .tools-directory__heading h2 {
    color: #172033;
    font-size: 29px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0;
}

.finance-tools-page .tools-directory__heading p {
    color: #667085;
    line-height: 1.6;
    margin: 0;
    max-width: 480px;
    text-align: right;
}

.finance-tools-page .tools-toolbar {
    align-items: center;
    border-bottom: 1px solid #dce3eb;
    border-top: 1px solid #dce3eb;
    display: flex;
    gap: 16px 24px;
    justify-content: space-between;
    padding: 18px 0;
}

.finance-tools-page .tools-search {
    flex: 0 1 390px;
    min-width: 230px;
    position: relative;
}

.finance-tools-page .tools-search__icon {
    color: #758195;
    left: 15px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.finance-tools-page .tools-search input {
    background: #ffffff;
    border: 1px solid #ccd5e0;
    border-radius: 7px;
    color: #172033;
    font-size: 14px;
    height: 46px;
    outline: 0;
    padding: 0 44px 0 42px;
    width: 100%;
}

.finance-tools-page .tools-search input:focus {
    border-color: var(--pc, #123ea5);
    box-shadow: 0 0 0 3px rgba(var(--pc-rgb, 18, 62, 165), 0.12);
}

.finance-tools-page .tools-search__clear {
    align-items: center;
    background: #eef2f6;
    border: 0;
    border-radius: 5px;
    color: #536174;
    cursor: pointer;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 30px;
}

.finance-tools-page .tools-search__clear:hover,
.finance-tools-page .tools-search__clear:focus {
    background: #dfe5ec;
    color: #172033;
}

.finance-tools-page .tools-filters {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.finance-tools-page .tools-filter {
    align-items: center;
    background: #ffffff;
    border: 1px solid #ccd5e0;
    border-radius: 6px;
    color: #4e5b70;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 500;
    gap: 7px;
    min-height: 39px;
    padding: 8px 12px;
}

.finance-tools-page .tools-filter:hover,
.finance-tools-page .tools-filter:focus,
.finance-tools-page .tools-filter.is-active {
    background: rgba(var(--pc-rgb, 18, 62, 165), 0.09);
    border-color: var(--pc, #123ea5);
    color: #172033;
}

.finance-tools-page .tools-filter img {
    display: block;
    height: 20px;
    object-fit: contain;
    width: 20px;
}

.finance-tools-page .tools-results-bar {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    min-height: 46px;
}

.finance-tools-page .tools-results-bar p {
    color: #667085;
    font-size: 13px;
    margin: 0;
}

.finance-tools-page .tools-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finance-tools-page .tool-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    color: #172033;
    display: grid;
    gap: 14px;
    grid-template-columns: 62px minmax(0, 1fr) 32px;
    min-height: 156px;
    padding: 18px;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.finance-tools-page .tool-card[hidden] {
    display: none !important;
}

.finance-tools-page .tool-card:hover,
.finance-tools-page .tool-card:focus {
    border-color: var(--pc, #123ea5);
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.09);
    color: #172033;
    text-decoration: none;
    transform: translateY(-2px);
}

.finance-tools-page .tool-card__icon {
    align-items: center;
    background: #f3f6fa;
    border: 1px solid #e2e7ee;
    border-radius: 8px;
    display: inline-flex;
    height: 62px;
    justify-content: center;
    overflow: hidden;
    width: 62px;
}

.finance-tools-page .tool-card__icon img {
    display: block;
    filter: none !important;
    height: 48px;
    object-fit: contain;
    width: 48px;
}

.finance-tools-page .tool-card:hover .tool-card__icon img,
.finance-tools-page .tool-card:focus .tool-card__icon img {
    filter: none !important;
}

.finance-tools-page .tool-card__content,
.finance-tools-page .tool-card__category,
.finance-tools-page .tool-card__title,
.finance-tools-page .tool-card__description {
    display: block;
    min-width: 0;
}

.finance-tools-page .tool-card__category {
    color: #7b8798;
    font-size: 10px;
    line-height: 1.3;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.finance-tools-page .tool-card__title {
    color: #172033;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 7px;
    overflow-wrap: anywhere;
}

.finance-tools-page .tool-card__description {
    color: #667085;
    font-size: 12px;
    line-height: 1.55;
}

.finance-tools-page .tool-card__arrow {
    align-items: center;
    border: 1px solid #dce3eb;
    border-radius: 50%;
    color: var(--pc, #123ea5);
    display: inline-flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.finance-tools-page .tool-card:hover .tool-card__arrow,
.finance-tools-page .tool-card:focus .tool-card__arrow {
    background: rgba(var(--pc-rgb, 18, 62, 165), 0.09);
    border-color: var(--pc, #123ea5);
}

.finance-tools-page .tools-empty {
    border: 1px dashed #c6d0dc;
    border-radius: 8px;
    padding: 50px 20px;
    text-align: center;
}

.finance-tools-page .tools-empty__icon {
    align-items: center;
    background: #e9eef4;
    border-radius: 50%;
    color: #667085;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    margin-bottom: 12px;
    width: 48px;
}

.finance-tools-page .tools-empty h3 {
    color: #172033;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px;
}

.finance-tools-page .tools-empty p {
    color: #667085;
    margin: 0;
}

.finance-tools-page .tools-disclaimer {
    align-items: flex-start;
    color: #667085;
    display: flex;
    font-size: 12px;
    gap: 8px;
    line-height: 1.55;
    margin: 28px 0 0;
}

.finance-tools-page .tools-disclaimer i {
    color: var(--pc, #123ea5);
    margin-top: 3px;
}

@media (max-width: 1199.98px) {
    .finance-tools-page .tools-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .finance-tools-page .tools-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .finance-tools-page .tools-search {
        flex-basis: auto;
        max-width: 520px;
        width: 100%;
    }

    .finance-tools-page .tools-filters {
        justify-content: flex-start;
    }
}

@media (max-width: 991.98px) {
    .finance-tools-page .tools-hero {
        min-height: 340px;
        padding: 68px 0 74px;
    }

    .finance-tools-page .tools-hero h1 {
        font-size: 39px;
    }

    .finance-tools-page .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finance-tools-page .tools-directory__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .finance-tools-page .tools-directory__heading p {
        max-width: 620px;
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .finance-tools-page .tools-hero {
        min-height: 305px;
        padding: 54px 0 58px;
    }

    .finance-tools-page .tools-hero h1 {
        font-size: 32px;
    }

    .finance-tools-page .tools-hero p {
        font-size: 15px;
        line-height: 1.55;
    }

    .finance-tools-page .tools-hero__facts {
        gap: 12px 18px;
        margin-top: 24px;
    }

    .finance-tools-page .tools-directory {
        padding: 38px 0 48px;
    }

    .finance-tools-page .tools-directory__heading {
        margin-bottom: 20px;
    }

    .finance-tools-page .tools-directory__heading h2 {
        font-size: 24px;
    }

    .finance-tools-page .tools-toolbar {
        padding: 14px 0;
    }

    .finance-tools-page .tools-search {
        min-width: 0;
    }

    .finance-tools-page .tools-filters {
        flex-wrap: nowrap;
        margin: 0 -15px;
        overflow-x: auto;
        padding: 0 15px 7px;
        scrollbar-width: thin;
    }

    .finance-tools-page .tools-filter {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .finance-tools-page .tools-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .finance-tools-page .tool-card {
        min-height: 132px;
        padding: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .finance-tools-page .tool-card {
        transition: none;
    }
}
