#footer {
    background-color: #F1F8F6 !important;
    margin-top: 5.5714rem;
}

#footer .block-newsletter {
    display: none;
    border-radius: 16px;
    background: var(--secondary-3-color);
    padding: 2.2857rem 3.5rem 3.4286rem 3.5rem;
    flex: 0 0 32%;
}

#footer .block-newsletter .block-title {
    color: #FFF;
    font-size: 3.4286rem;
    font-style: normal;
    font-weight: 400;
    line-height: 3.5714rem; /* 104.167% */
    letter-spacing: -0.0686rem;
    border: none;
}

#footer .block-newsletter .icone {
    margin-bottom: 25px;
}

#footer .block-newsletter .text {
    color: #B5C6CE;
    font-size: 1.1429rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.7143rem; /* 150% */
    letter-spacing: -0.0229rem;
    padding-bottom: 1.7857rem;
    margin-top: 16px;
}

#footer .block-newsletter .note {
    color: #B5C6CE;
    font-size: .8571rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.7143rem;
    letter-spacing: -0.0171rem;
    padding-top: 1.1429rem;
}

#footer .newsletter-input-group {
    display: flex;
    flex-direction: column;
    gap: 1.1429rem;
    background: transparent !important;
    border: none !important;
}

#footer .newsletter-input-group input.input-subscription {
    border-radius: 8px;
    background: #313C44;
    display: flex;
    height: 3.4286rem;
    padding: .5714rem 1.1429rem;
    width: 100%;
}

#footer .footer-row {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4rem;
}

#footer .card-container {
    display: grid;
    grid-template-columns: repeat(5, calc( 20% - 20px ));
    gap: 1.7143rem;
    border-bottom: 1px solid rgba(26, 42, 50, 0.25);
    padding-bottom: 2.7143rem;
}

#footer .card-footer {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: #D1DDE1;
    border: none;
    gap: 10px;
    padding: 30px 16px;
    transition: padding-top 300ms ease-out;
    height: 120px;
}

#footer .card-footer .title {
    font-size: 21px;
    color: #1A2A32;
    line-height: 1.5714rem;
    letter-spacing: -2%;
    font-weight: 500;
}

#footer .card-footer .text {
    font-size: 1.2857rem;
    color: #1A2A32;
    line-height: 1.2857rem;
    letter-spacing: -2%;
    font-weight: 400;
}

#footer .card-footer .link {
    display: none;
    height: 36px;
}

#footer .card-footer:hover {
    background-color: #E73443;
    padding: 16px;
    justify-content: space-between;
}

#footer .card-footer:hover .title {
    color: white;
}

#footer .card-footer:hover .text {
    opacity: 0;
    height: 0;
}

#footer .card-footer:hover .link {
    display: block;
    animation: fade-in-bottom 0.3s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

#footer-container-main {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    position: relative;
    top: -3.5714rem;
    /* margin-top: 3.5714rem; */
}

#footer h5.block-title {
    color: #1A2A32;
    font-size: 1.1429rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2857rem; /* 112.5% */
    letter-spacing: -0.0229rem;
    border: none;
    margin-bottom: .8571rem;
    padding: 0;
}

#footer .block-content, #footer .block-content a {
    color: #6A7179;
    font-size: 1.1429rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.1429rem; /* 100% */
    letter-spacing: -0.0229rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}

.footer-menu-container {
    width: 100%;
}

#footer .block-iqitcontactpage {
    display: flex;
    flex-direction: column;
    gap: 2.2857rem;
    border-left: 3px var(--main-1-color) solid;
}

#footer .footer-menu {
    margin-top: 2.7857rem;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-right: 0;
    margin-left: 0;
}

#footer .block-content a::before {
    display: none;
}

#footer .block-iqitlinksmanager-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: end;
    align-content: flex-start;
    flex-grow: 1;
}

#footer .block-iqitlinksmanager-container .block {
    flex: 1 1 33.3333%;
    max-width: 33.3333%;
}

#footer-copyrights {
    background: transparent !important;
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#footer-copyrights span {
    color: #6A7179;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.7143rem; /* 171.429% */
    letter-spacing: -0.02rem;
}

#footer-copyrights .element-2 {
    gap: 2.2857rem;
    align-items: center;
}

#footer-copyrights .element-2-2 {
    gap: 1rem;
}

#footer .block-title.red {
    padding: 8px 16px;
    width: fit-content;
    border-radius: 10px;
}

 @-webkit-keyframes fade-in-bottom {
    0% {
      -webkit-transform: translateY(50px);
              transform: translateY(50px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateY(0);
              transform: translateY(0);
      opacity: 1;
    }
  }
  @keyframes fade-in-bottom {
    0% {
      -webkit-transform: translateY(50px);
              transform: translateY(50px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateY(0);
              transform: translateY(0);
      opacity: 1;
    }
  }

@media only screen and (max-width: 768px) {
    #footer .footer-row {
        flex-direction: column;
    }

    #footer .block-newsletter {
        border-radius: 0px;
    }

    #footer .card-container {
        grid-template-columns: repeat(2, auto);
        grid-template-rows: repeat(3, 1fr);
        padding-left: 15px;
        padding-right: 15px;
    }

    #footer .footer-menu {
        flex-direction: column;
    }

    #footer .block-iqitlinksmanager-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    #footer .block-iqitlinksmanager-container .block {
        flex: 1 1 50%;
        max-width: inherit;
    }

    #footer .block-iqitcontactpage {
        border-left: none;
        border-top: 3px var(--main-1-color) solid;
        border-bottom: 3px var(--main-1-color) solid;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    #footer .block-iqitcontactpage .flex-column {
        align-items: center;
    }

    #footer-copyrights {
        flex-direction: column-reverse;
        padding-left: 15px;
        padding-right: 15px;
        gap: 10px;
    }
}