/**********************
Variables
**********************/
:root {
    --blue-buttons: #055E8B;
    --background-light-blue: #f4f9fb;
    --heading-fonts: 'Noto Serif JP', serif;
    --paragraph-p: 'Source Sans Pro', sans-serif;
    --text-color: #003D5C;
    --benefits-bg-color: #EEF7FC;
    --underline-color: #22B3FC;
    --blue-button-hover: #1074a7;
    --white-color: #ffffff;
    --light-blue-gray-bg: #F2F7F9;
}
body {
    font-family: 'Noto Serif JP', serif;
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-color);
}
p {
    color: var(--text-color);
}

/**********************
Navigation
**********************/
.navbar-expand-lg .navbar-nav .nav-link{
    color: var(--text-color);
}
.navbar {
    padding-top: 1em;
    padding-bottom: 1em;
}
.navbar li {
    margin: 1em;
}
.navbar {
    box-shadow: 0 2px 20px 0px rgb(0 0 0 / 4%);
}
.membership-form-nav a.nav-link  {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.membership-form-nav-circle {
    display: flex;
    height: 8px;
    width: 8px;
    background-color: var(--text-color);
    border-radius: 100%;
}
.membership-form-nav-line {
    display: flex;
    background-color: var(--text-color);
    width: 5px;
    height: 40px;
    border-radius: 2px;
}
.membership-form-body .navbar {
    background-color: var(--white-color);
}
/**********************
Fonts
**********************/
h1,h2,h3,h4,h5,h6 {
    font-family: var(--heading-fonts);
}
.home-hero-text {
    padding-left: 4em;
    padding-right: 4em;
}
.loans-products-heading {
    text-align: center;
}
.home-hero-text h1 {
    font-size: 2.6em;
    line-height: 200%;
    font-weight: 400;
}
.loans-products-heading h1 {
    font-size: 3em;
    line-height: 150%;
    font-weight: 600;
}
.loans-products-heading h1 span {
    border-bottom: 4px solid var(--underline-color);
}
.loans-products-card h2 {
    font-size: 1.7em;
}
.home-hero-text p {
    font-family: var(--paragraph-p);
    font-size: 1.25em;
    width: 84%;
    line-height: 180%;
    margin-top: 1em;
    margin-bottom: 3.5em;
}
.loans-products-heading p {
    font-size: 1.2em;
    margin-top: 1.5em;
}
.home-hero-text span.home-hero-text-bold, .our-intro-text-bold {
    font-weight: 700;
}
.home-hero-text span.home-hero-text-red {
    color: #D01414;
}
.products-intro-text {
    width: 80%;
    margin: auto;
}
.products-intro h2:nth-child(1) {
    line-height: 200%;
    font-family: var(--paragraph-p);
}
.products-intro-text span.our-intro-text-bold {
    font-family: var(--heading-fonts);
}
.products-intro-text span {
    font-family: var(--);
}
.products-intro h2:nth-child(2) {
    margin-top: 1em;
    font-size: 2.8em;
    font-weight: 700;
}
.loans-home-benefits p {
    display: flex;
    background-color: var(--benefits-bg-color);
    padding: 1em 2em;
    border-radius: 11px;
    transition: all .5s;
}
.loans-home-benefits span {
    margin-right: 0.3em;
    font-size: 20px;
}
.loans-home-text h2 {
    font-weight: 700;
}
.loans-home-text h2 + p {
    margin-top: 1.3em;
    font-size: 1.1em;
}
.invest-heading h2, .contacts-home-heading h2 {
    font-size: 2.5em;
    font-weight: 600;
}
.invest-heading p, .contacts-home-heading p {
    width: 78%;
    line-height: 220%;
    margin-top: 1.5em;
    margin-bottom: 3em;
}
.contacts-home-heading p {
    color: var(--white-color);
}
.invest-benefits h3 {
    font-size: 1.5em;
}
.invest-benefits p {
    font-size: 0.95em;
    line-height: 190%;
    margin-top: 1.2em;
}
.contacts-home-form label, .contacts-home-form textarea {
    color: #fff;
}
.loans-products-card-benefits {
     margin: 2em 0;
}
.loans-products-card-benefits p {
    display: flex;
    line-height: 160%;
}
.membership-form-nav-text {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
    font-weight: 600;
}
.membership-form-heading h1 {
    font-weight: 700;
}
.membership-form-heading p {
    width: 75%;
    line-height: 190%;
    margin-top: 1.4em;
    font-size: 1.1em;
}
.membership-form-card-title {
    font-family: var(--paragraph-p);
    font-weight: 800;
}
.membership-form-card-text {
    color: #214C62;
}
.membership-form-card-heading h2 {
    font-family: var(--paragraph-p);
    font-weight: 900;
}
form h3 {
    font-family: var(--paragraph-p);
    font-weight: 700;

}
.applicants-bio-data .membership-form-card-text  {
    margin-bottom: 5em;
}
.membership-form-card-heading h2 {
    font-family: var(--paragraph-p);
    font-weight: 900;
}
.membership-form-card-title {
    margin-bottom: 0.5em;
}
form h3 {
    font-family: var(--paragraph-p);
    font-weight: 700;
}
.applicants-bio-data .membership-form-card-text  {
    margin-bottom: 5em;
}
.steps ul {
    list-style: none;
    display: flex;
    justify-content: center;
}
.steps ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
}
.steps ul li.first.current {
    color: #22B3FC !important;
    font-weight: 800;
    margin-left: 1em;
    margin-right: 1em;
}

/*
/**********************
Buttons
**********************/
button span, .nav-buttons a span {
    font-size: 20px !important;
    padding: 0 !important;
    margin-left: 0.5em;
    transition: all .45s ease-out;
}
button.btn, .nav-buttons a {
    transition: all .3s ease-in;
    transition-delay: .03s;
}
button.btn:hover, .nav-buttons a:hover  {
   transform:scale(0.96);
}
button:hover span, .nav-buttons a:hover span {
    transform: translatex(0.35em);
}
button.btn, .nav-buttons a{
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--paragraph-p);
    text-decoration: none;
}
.nav-buttons a:nth-child(2), .home-hero-text button,
.loans-home-buttons button, .invest-heading button,
.membership-form-card-row-btn button {
    background-color: var(--blue-buttons);
    color: #fff;
    border-radius: 11px;
}
.nav-buttons a {
    padding: 0.85em;
    display: flex;
    align-items: center;
    border-radius: 11PX;
}
.nav-buttons a:nth-child(1) {
    margin-right: 2em;
}
.home-hero-text button, .loans-home-buttons button, .invest-heading button,
.contacts-home-heading button, .contacts-home-form button, 
.loans-products-card button.btn {
    padding: 1em 2em;
}
.loans-home-buttons button:nth-child(2) {
    margin-left: 1em;
    background-color: #ffffff;
    border-color: var(--blue-buttons);
    color: var(--blue-buttons);
}
.nav-buttons, .loans-home-buttons {
    display: flex;
    align-items: center;
}
.contacts-home-heading button, .contacts-home-form input,
.contacts-home-form textarea {
    background-color: var(--blue-buttons);
    color: #fff;
    border: 1px solid #fff;
    transition: all .3s;
}
.contacts-home-form button {
    width: auto;
    background-color: #fff;
    color: var(--blue-buttons);
    margin-top: 1.5em;
    margin-left: 12px;
    font-weight: 600;
}
.contacts-home-heading button:hover {
    background-color: var(--white-color);
    color: var(--text-color);
    font-weight: 600;
}
.contacts-home-form button:hover {
    background-color: #fff;
    box-shadow: none;
    border: none;
}
.loans-products-card button.btn {
    width: 100%;
}
.nav-buttons a:nth-child(1), .loans-products-card button.btn {
    border: 1px solid var(--blue-buttons);
    background-color: transparent;
    color: var(--blue-buttons);
}
.blue-button:hover, button.btn.blue-button:hover,
.membership-form-card-row-btn button:hover{
    background-color: var(--blue-button-hover);
    color: #fff;
}
.membership-form-card-row-btn button {
    width: 209px;
    height: 58px;
    font-family: var(--paragraph-p);
}
/*********************
Images / Icons
**********************/
.home-hero-image {
    background-image: url(/images/optimized/hero-home-image.jpg);
    height: 100%;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    transition: all .5s;
}
.home-hero-image:hover {
    transform: scale(1.07);
}
.loans-home-image img, .savings-home-image img{
    width:90%;
    border-radius: 7px;
    transition: all .5s;
}
.loans-home-image {
    overflow: hidden;
}
.loans-home-image img:hover {
    transform: scale(1.05);
    border-radius: 11px;
}
.loans-products-card-image {
    background-image: linear-gradient(to bottom, rgba(0,0,0,.1) 60%, rgba(0,0,0, 0.8)), url(/images/optimized/individual-loan.jpg);
}
.group-loans-products-card-image {
    background-image: linear-gradient(to bottom, rgba(0,0,0,.1) 60%, rgba(0,0,0, 0.8)), url(/images/optimized/group-loan.jpg);
}
.loans-products-card-image, .group-loans-products-card-image {
    background-size: cover;
    background-repeat: no-repeat;
    height: 280px;
    border-radius: 7px;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 1.3em;
    background-size: 100%;
    transition: all .5s;
}
.loans-products-card-benefits p span {
    padding-right: 0.5em;
    color: #055E8B;
}
.loans-products-card:hover .loans-products-card-image {
    background-image: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0, 0.8)), url(/images/optimized/individual-loan.jpg);
}
.loans-products-card:hover .group-loans-products-card-image {
    background-image: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0, 0.8)), url(/images/optimized/group-loan.jpg);
}
.loans-products-card .loans-products-card-image:hover,
.loans-products-card .group-loans-products-card-image:hover {
    background-size: 105%;
}

/**********************
Sections
**********************/
.home-hero-text, .membership-form {
    padding-top: 4em;
    padding-bottom: 4em;
}
.membership-form-body {
    background-color: var(--background-light-blue);
}
.loans-products {
    padding-top: 4em;
    padding-bottom: 5em;
}
.home-hero-section .col-md-7 {
    background-color: var(--background-light-blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.home-hero-section .col-md-5 {
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}
.products-intro {
    padding: 5em 0;
}
.loans-home-benefits {
    margin-top: 2em;
    margin-bottom: 4em;
}
.loans-home .col-md-6:nth-child(2) {
    display: flex; 
    align-items: center;
}
.savings-home, .contacts-home {
    margin-top: 5em;
}
.invest {
    margin-top: 10em;
}
.contacts-home {
    background-color: var(--blue-buttons);
    padding-top: 6em;
    padding-bottom: 6em;
}
.contacts-home-heading {
    color: var(--white-color);
}
.membership-form-card {
    background-color: var(--white-color);
    padding: 3em 4em;
    border-radius: 5px;
}
.membership-form-card-heading {
    margin-bottom: 5em;
}
/**********************
Cards / Containers
**********************/
.invest-benefits {
    padding: 2em;
    border: 1px solid #055E8B;
    width: 80%;
    margin: auto;
    border-radius: 11px;
    margin-bottom: 1.5em;
    transition: all .5s;
}
.invest-benefits:hover, .loans-home-benefits p:hover {
    background-color: var(--blue-buttons);
    transform: scale(1.03);
    color: var(--white-color);
}
.invest-benefits:hover p, .invest-benefits:hover  h3{
    color: var(--white-color);
}
.loans-products-card {
    max-width: 100%;
    width: 400px;
    border: 1px solid #E3F3FB;
    padding: 1.5em;
    border-radius: 7px;
    margin-top: 4em;
    margin-left: 1em;
    margin-right: 1em;
    transition: all .8s;
}
.loans-products-card:hover {
    background-color: var(--blue-buttons);
    transform: scale(1.04);
    box-shadow: 0px 10px 25px rgba(0,0,0, 0.3);
}
.loans-products-card:hover p {
    color: #fff;
}
.loans-products-card:hover button.btn {
    background-color: #fff;
    font-weight: 600;
}
.loans-products-card:hover p span {
    color: #fff;
}
.blue-button:hover {
    background-color: var;
} 

/**********************
Form
**********************/
.contacts-home-form form textarea {
    height: 100px;
}
.contacts-home-form label {
    font-size: 0.95em;
    font-weight: 300;
    font-family: var(--paragraph-p);
    margin-left: 1.5em;
    margin-top: 0.1em;
}
.contacts-home-form textarea {
    height: 150px !important;
}
.contacts-home-form input.form-control, 
.contacts-home-form textarea.form-control {
    border-radius: 11px;
    margin-bottom: 1em;
}
.contacts-home-form input.form-control:focus,
 .contacts-home-form textarea.form-control:focus{
    background-color: var(--blue-buttons);
    box-shadow: none;
    border-color: #fff;
    color: #fff;
    border-width: 3px;
}
.contacts-home-form input.form-control:focus~label,
.contacts-home-form textarea.form-control:focus~label {
    color: #fff;
    opacity: 1;
}
.membership-form-card label {
    font-weight: 600;
    margin-bottom: 0.5em;
    font-size: 0.96em;
}
.membership-form-card .form-check-label {
    font-weight: 400;
}
.membership-form-card .form-check-inline {
    margin-top: 0.8em;
}
.membership-form-card input[type="text"],
.membership-form-card input[type="number"],
.membership-form-card input[type="email"],
.membership-form-card input[type="date"],
.membership-form-card select
 {
    height: 50px;
    border-color: #93AFBD;
}
.membership-form-card-row {
    margin-bottom: 5em;
}
label.specimen-signature-label {
    width: auto;
    margin-bottom: 0em;
    display: flex;
    align-items: end;
    font-size: 1.8em;
    text-decoration: underline;
    font-weight: 400;
}
.specimen-signature-input {
    width: 50%;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}
.specimen-signature-row {
    margin-bottom: 2em;
}
.specimen-signature-paragraph {
    line-height: 200%;
    width: 80%;
}
.membership-form-card-row-btn-add {
    margin-top: -3.5em;
    margin-bottom: 4em;
}
.membership-form-card-row-btn-add .btn {
    width: auto;
    color: #055E8B;
    font-size: 1.2em;
}
.membership-form-card-row-btn-add .btn span {
    margin-right: 0.5em;
}
.membership-form-card-sub-title+p, .guardian-sub-title {
    margin-bottom: 2.5em;
}
/**********************
Media Queries
**********************/
@media screen and (max-width: 1351px) { 
    .home-hero-text p {
        width: 95%;
    }
}
@media screen and (max-width: 1212px) { 
    .home-hero-text h1 {
        font-size: 2.5em;
    }
}
@media screen and (max-width: 1111px) { 
    .home-hero-text h1 {
        font-size: 2.2em;
    }
}
@media screen and (max-width: 1008px) { 
    .home-hero-text h1 {
        font-size: 2em;
    }
}
@media screen and (max-width: 940px) { 
    .home-hero-text {
        padding-left: 2em;
        padding-right: 2em;
    }
}
@media screen and (max-width: 830px) { 
    .home-hero-text h1 {
        font-size: 1.8em;
    }
}
@media screen and (min-width: 576px) {
    .loans-products-card-container {
        display: flex;
        justify-content: center;
    }
}
@media screen and (max-width: 992px) {
    .home-hero-text p {
        width: 100%;
        font-size: 1.15em;
    }
    .invest-benefits {
        width: 100%;
    }
}
@media screen and (max-width: 768px) {
    .home-hero-text h1 {
        font-size: 2.2em;
    }
    .home-hero-text p {
        width: 85%;
    }
    .home-hero-image {
        height: 380px;
        background-position: 50% 28%;
}
@media screen and (max-width: 576px) {
    .loans-products-card {
        margin: auto;
    }
    .home-hero-text h1 {
        font-size: 1.8em;
    }
    .home-hero-text p {
        width: 100%;
    }
    .home-hero-image {
        height: 300px;
        background-position: 50% 28%;
    }

}