@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Caveat:wght@600;700&display=swap');

/* Collapse the wide 100px section gutters back to the default container-fluid
   padding on smaller screens, matching .header-menu-wrapper's own breakpoint. */
@media (max-width: 1366px) {
    .padding-right-100px {
        padding-right: 0;
    }
    .padding-left-100px {
        padding-left: 0;
    }
}

/* Match the content width and responsive gutters of the transfers page. */
.home-page-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-right: 42px;
    padding-left: 42px;
}
@media (max-width: 991px) {
    .home-page-container {
        padding-right: 24px;
        padding-left: 24px;
    }
}
@media (max-width: 767px) {
    .home-page-container {
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* Home transfers section heading; cards use the shared listing styles. */
.home-transfers {
    padding: 48px 0 30px;
    background: linear-gradient(120deg, #f8fbff, #f4f8fd);
}
.home-transfers-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}
.home-transfers-copy {
    min-width: 0;
}
.home-transfers-copy h2 {
    margin: 0 0 10px;
    color: #253352;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}
.home-transfers-copy p {
    margin: 0;
    color: #4a5672;
    font-size: 18px;
    line-height: 1.6;
}
.home-transfers-more {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.home-transfers-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #dbe7ff;
    border-radius: 12px;
    color: #287dfa;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    transition: background-color .2s, border-color .2s;
}
.home-transfers-link:hover {
    border-color: #287dfa;
    background: #eaf2ff;
    color: #1764dc;
}
.home-transfers-link:focus-visible {
    outline: 2px solid #287dfa;
    outline-offset: 3px;
}
@media (max-width: 767px) {
    .home-transfers {
        padding-top: 32px;
    }
    .home-transfers-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .home-transfers-copy h2 {
        font-size: 32px;
    }
    .home-transfers-copy p {
        font-size: 16px;
    }
}

/* ==== Home hero ==== */
.fm-hero {
    background: #F8FAFC;
    padding-top: 70px;
    padding-bottom: 70px;
    overflow: hidden;
}
.fm-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
}
.fm-hero-copy {
    position: relative;
    z-index: 2;
    flex: 1 1 480px;
    max-width: 780px;
    min-width: 0;
}
.fm-hero-visual-col {
    position: relative;
    z-index: 1;
    flex: 0 1 420px;
    min-width: 0;
    /* the main photo is wider than its frame and sticks out to the left (see .fm-hero-visual-main);
       reserve that space so the search bar and value texts never run under the photo */
    margin-left: 220px;
}
.fm-hero-visual {
    min-width: 0;
}
@media (max-width: 1300px) {
    .fm-hero-visual-col {
        flex-basis: 340px;
    }
}
.fm-hero-eyebrow {
    display: block;
    color: #1D6FE8;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.fm-hero-title {
    font-size: 44px;
    font-weight: 800;
    color: #253352;
    line-height: 1.15;
    margin-bottom: 16px;
}
.fm-hero-accent {
    color: #1D6FE8;
}
.fm-hero-subtext {
    font-size: 16px;
    color: #4a5672;
    margin-bottom: 28px;
    max-width: 560px;
}
.fm-hero-values {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 36px;
}
.fm-hero-value {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1 1 0;
    min-width: 0;
}
.fm-hero-value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #EDF4FF;
    color: #1D6FE8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.fm-hero-value strong {
    display: block;
    font-size: 15px;
    color: #253352;
    margin-bottom: 2px;
}
.fm-hero-value-desc {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: #4a5672;
}
@media (max-width: 767px) {
    .fm-hero-values {
        flex-wrap: wrap;
    }
    .fm-hero-value {
        flex: 1 1 45%;
    }
}
@media (max-width: 480px) {
    .fm-hero-value {
        flex: 1 1 100%;
    }
}
.fm-hero-visual {
    position: relative;
    padding: 10px 70px 10px 0;
    overflow: visible;
}
.fm-hero-frame {
    position: relative;
    width: 90%;
    aspect-ratio: 2 / 3;
}
.fm-hero-visual-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 166%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    display: block;
}
.fm-hero-frame-tagline {
    position: absolute;
    left: -162px;
    bottom: 29px;
    max-width: 70%;
    margin: 0;
    color: #fff;
    font-family: 'Caveat', cursive;
    font-size: 32px;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(37, 51, 82, .35);
}
.fm-hero-frame-tagline-underline {
    display: block;
    width: 110px;
    height: 10px;
    margin-top: 2px;
}
.fm-hero-thumbs {
    position: absolute;
    top: -4px;
    right: 0;
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.fm-hero-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(37, 51, 82, .14);
    border: 4px solid #fff;
}
.fm-hero-thumb img,
.fm-hero-thumb-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EDF4FF;
    color: #1D6FE8;
    font-size: 24px;
    margin: 0;
}
.fm-hero-thumb-label {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    color: #253352;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 16px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(37, 51, 82, .12);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.fm-hero-thumb-label:hover,
.fm-hero-thumb-label:focus-visible {
    background: #1D6FE8;
    color: #fff;
    text-decoration: none;
    transform: translateX(-50%) translateY(-2px);
}
.fm-hero-thumb-label:focus-visible {
    outline: 3px solid rgba(29, 111, 232, .3);
    outline-offset: 2px;
}
.fm-hero-thumb-label i {
    color: #1D6FE8;
}
.fm-hero-thumb-label:hover i,
.fm-hero-thumb-label:focus-visible i {
    color: #fff;
}
@media (min-width: 992px) and (max-width: 1650px) {
    /* the photo barely extends left of its column, so it does not run under the search bar and value texts */
    .fm-hero-visual-col {
        margin-left: 20px;
    }
    .fm-hero-visual-main {
        width: 105%;
    }
    .fm-hero-frame-tagline {
        left: 12px;
    }
}
@media (max-width: 991px) {
    .fm-hero-title {
        font-size: 32px;
    }
    .fm-hero-row {
        justify-content: center;
    }
    .fm-hero-copy {
        flex-basis: 100%;
        max-width: 100%;
    }
}
.hero-search-wrap {
    max-width: 760px;
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.hero-search-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 16px;
    padding: 6px;
    gap: 0;
    box-shadow: 0 4px 14px rgba(37, 51, 82, .08);
}
.hero-search-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: #4a5672;
    padding: 15px 34px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
    white-space: nowrap;
}
.hero-search-tab:hover:not(.is-active) {
    background: #EDF4FF;
    color: #1D6FE8;
}
.hero-search-tab.is-active {
    background: #1D6FE8;
    color: #fff;
}
.hero-search-tab:not(.is-active) + .hero-search-tab:not(.is-active)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: #E4E7EC;
}
.hero-search-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 16px;
    padding: 10px 10px 10px 24px;
    margin-top: 16px;
    box-shadow: 0 14px 34px rgba(37, 51, 82, .1);
}
.hero-search-icon {
    color: #1D6FE8;
    font-size: 22px;
    flex-shrink: 0;
    display: flex;
}
.hero-search-field {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
    min-width: 0;
    cursor: pointer;
}
.hero-search-label {
    cursor: pointer;
}
.hero-search-label {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #253352;
    margin: 0;
}
.hero-search-select {
    border: none;
    outline: none;
    background: transparent;
    color: #4a5672;
    font-family: inherit;
    font-size: 14px;
    padding: 0;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}
.hero-search-divider {
    flex-shrink: 0;
    width: 1px;
    align-self: stretch;
    background: #E4E7EC;
    margin: 4px 0;
}
.hero-search-field .bootstrap-select {
    width: 100% !important;
}
.hero-search-field .bootstrap-select .hero-bs-btn.btn {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    box-shadow: none;
    color: #4a5672;
    font-family: inherit;
    font-size: 14px;
    padding: 0;
    text-align: left;
    height: auto;
}
.hero-search-field .bootstrap-select .hero-bs-btn.btn:focus,
.hero-search-field .bootstrap-select .hero-bs-btn.btn:active,
.hero-search-field .bootstrap-select.open .hero-bs-btn.btn {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #4a5672 !important;
}
.hero-search-field .bootstrap-select .filter-option {
    overflow: hidden;
}
.hero-search-field .bootstrap-select .hero-bs-btn.btn::after {
    display: none;
}
.hero-search-field .bootstrap-select[disabled] .hero-bs-btn.btn,
.hero-search-field .bootstrap-select .hero-bs-btn.btn[disabled] {
    opacity: 1;
    color: #4a5672;
}
.hero-search-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    border: none;
    background: #1D6FE8;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 16px 26px;
    border-radius: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease;
}
.hero-search-submit:hover {
    background: #155FCF;
    color: #fff;
}
@media (max-width: 575px) {
    .hero-search-tabs {
        display: flex;
        width: 100%;
        justify-content: center;
    }
    .hero-search-tab {
        flex: 1 1 auto;
        justify-content: center;
        padding: 10px 8px;
    }
    .hero-search-bar {
        flex-wrap: wrap;
        padding: 14px;
    }
    .hero-search-icon {
        display: none;
    }
    .hero-search-field {
        flex: 1 1 100%;
    }
    .hero-search-divider {
        width: 100%;
        height: 1px;
        align-self: auto;
        margin: 4px 0;
    }
    .hero-search-submit {
        width: 100%;
        justify-content: center;
    }
}
