/* hero styles | START */
.search-container {
    width: 500px;
    margin: 2rem auto;
}

.search-container h2 {
    font-size: 28px;
    color: var(--color-1);
    text-align: center;
    margin-bottom: 1.5rem;
}

.search-form {
    width: 100%;
    padding: 0.5rem;
    height: 62px;
    background: var(--color-1);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-input {
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    padding: 1rem;
    background: #fff;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.search-button {
    height: 100%;
    padding: 0 1rem;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    border: none;
    outline: none;
    background: var(--color-2);
    cursor: pointer;
    color: #fff;
    font-weight: 500;
}

.head,
.sub-head {
    text-align: center;
}

h2.head {
    margin-bottom: 2.5rem;
    font-weight: bold;
    font-size: 34px;
}

.sub-head {
    margin: 1rem auto 2rem;
    line-height: 20px;
    max-width: 60%;
}

h1 {
    font-size: 52px;
}

.bank-img_wrapper {
    margin: 2rem 0 0;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.bank-img_wrapper img {
    mix-blend-mode: multiply;
    /* filter: grayscale(100); */
    transition: 0.3s ease;
}

.bank-img_wrapper img:hover {
    filter: grayscale(0);
}
.home-hero{
    margin-top: 100px;
}

.home-hero .desc {
    text-align: center;
    margin: 3rem auto 0;
    max-width: 80%;
}

.link-outline_btn {
    margin: 2rem auto;
    text-align: center;
}
/* hero styles | END */

/* how it works styles | START */
.how-it_works {
    background: #f8f8f8;
}

.how-it_works--wrapper {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
}

.how-it_works--item {
    border-radius: 8px;
    padding: 1rem;
    transition: 0.2s ease-in-out;
    margin-bottom: 0.5rem;
    border: 2px solid var(--color-1);
}

.how-it_works--wrapper > div {
    flex-basis: 40%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.how-it_works--item {
    margin: unset;
    flex: 1 1 230px;
}

.how-it_works--item:hover {
    background-color: var(--color-1);
    color: #fff;
}

.how-it_works--item h3 {
    font-size: 24px;
    margin-bottom: 0.85rem;
}

/* how it works styles | END */

/* top banks styles | START */
.top-banks_wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    align-items: stretch;
    gap: 1.25rem;
    white-space: normal;
    overflow: visible;
    padding: 1.5rem 0;
}

.popular-banks_wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    align-items: stretch;
    gap: 1.25rem;
    white-space: normal;
    overflow: visible;
    padding: 1.5rem 0;
}

.top-bank_item,
.item-comp_wrapper {
    background: #fff;
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 16, 68, 0.07);
    position: relative;
    height: 100%;
}

.top-bank_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.top-bank_item h3,
.top-bank_item h5 {
    white-space: normal;
    color: var(--color-1);
    margin: 0.35rem 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.rates-wrapper {
    margin-top: 0.4rem;
}

.item-desc {
    font-size: 14px;
    line-height: 18px;
    color: var(--color-5);
    margin-top: 0.65rem;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.top-bank_item img {
    width: 100%;
    max-width: 160px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.top-bank_item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    background-color: var(--color-1);
    color: #fff;
    margin-top: 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.item-comp_wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-comp_wrapper > div {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.vs {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    position: static;
    transform: none;
    background-color: #2e5090;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.popular-bank_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.popular-bank_item h3 {
    white-space: normal;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.popular-bank_item img {
    max-width: 100px;
    width: 100%;
    height: 56px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.item-comp_wrapper a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem;
    margin-top: 1rem;
    color: #fff;
    background-color: var(--color-1);
    border-radius: 6px;
    font-weight: 600;
}

/* top banks styles | END */

/** MEDIA QUERIES **/
@media screen and (max-width: 1536px) {
}

@media screen and (max-width: 1420px) {
    h1 {
        font-size: 42px;
    }
}

@media screen and (max-width: 1280px) {
    .sub-head {
        line-height: 20px;
        max-width: 100%;
    }
    .home-hero .desc {
        max-width: 100%;
    }
}

@media screen and (max-width: 1024px) {
    h1 {
        font-size: 36px;
    }

    .how-it_works--wrapper {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
}

@media screen and (max-width: 640px) {
    .search-container {
        width: 75%;
    }
}

@media screen and (max-width: 500px) {
    h1 {
        font-size: 24px;
    }
    .sub-head {
        font-size: 12px;
    }
}

@media screen and (max-width: 420px) {
    .search-container {
        width: 90%;
    }
}

@media screen and (max-width: 360px) {
    .nav-buttons a {
        display: none;
    }
}
