@font-face {
    font-family: "Yati Sans";
    src: url("../fonts/YatiSansVariation.ttf") format("truetype");
    font-style: normal;
}

.footer-wrapper {
    background-image: var(--footer-background-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.footer-container {
    padding-top: 60px;
    padding-bottom: 30px;
    font-family: "Yati Sans";
}

.footer-container header.title {
    font-size: 1.20833333rem;
    font-weight: 600;
}

.footer-line {
    border-bottom: 1px solid #846ca6;
    margin-top: 30px;
    margin-right: 20px;
}

.footer-social {
    margin-top: 0.9375rem;
    border-top: 1px solid var(--secondary-color);
    padding-top: 2rem;
    width: fit-content;
}

.footer-social a {
    text-decoration: none;
    color: transparent;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.footer-social a:hover {
    opacity: 0.8;
}

.footer-social-img {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 10px;
    object-fit: contain;
    color: #fff;
    transition: all 0.5s;
}

.footer-social-img:hover {
    transform: scale(1.5);
}

.footer-nav {
    margin-top: 30px;
}

.footer-nav-title {
    color: white;
    margin-bottom: 20px;
}

.footer-nav-list {
    list-style: none;
    padding-left: 0px;
}

.footer-nav-list li {
    margin-top: 14px;
}

.footer-nav-list a {
    text-decoration: none;
    color: white;
    padding-top: 10px;
}

.footer-nav-list a:hover {
    text-decoration: underline;
}

.footer-contact_container {
    margin-top: 30px;
}

.footer-contact-title {
    color: white;
    margin-bottom: 20px;
}

.footer-contact-info {
    display: flex;
}

.footer-contact-info svg {
    color: #fff;
    width: 1.438rem;
    height: 1.438rem;
    object-fit: contain;
    margin-right: 10px;
}

.footer-contact-info:first-of-type {
    align-items: center;
}

.footer-contact-info:first-of-type svg {
    margin-top: 0;
    margin-bottom: 0;
}

.footer-contact-info a {
    text-decoration: none;
}

.footer-contact-info p,
.footer-contact-info a {
    cursor: pointer;
    color: white;
    width: fit-content;
}

.footer-contact-info a:hover,
.footer-contact-info p:hover {
    text-decoration: underline;
}

.footer-copyright-container {
    width: 100%;
    border-top: 1px solid var(--secondary-color);
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright-container p {
    font-size: 0.875rem;
    font-weight: 400;
}

.footer-copyright {
    padding-left: 0px !important;
    padding-top: 20px;
}

.footer-copyright-text {
    color: white;
}

.footer-privacy-policy {
    padding-right: 0px !important;
    padding-top: 20px;
}

.footer-privacy-policy-text {
    color: white;
    text-align: end;
}

.premiumCalculatorsSubmenu {
    list-style-type: none;
    color: #7c8ba6;
}

.premiumCalculatorsSubmenuList {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
    height: 0;
    margin-bottom: -14px;
}

.premiumCalculatorsSubmenuList li,
.moreProductSubmenuList li {
    list-style-type: none;
}

.premiumCalculatorsSubmenuList a,
.moreProductSubmenuList a {
    color: #cdcdcd;
    opacity: 0.8;
}

/* .premiumCalculatorsContainer:hover > .premiumCalculatorsSubmenuList, */
.premiumCalculatorsContainer .show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    height: auto;
    margin-bottom: 0;
}

.premiumCalculatorsContainer:hover > .premiumCalculatorsSubmenu,
#moreProductContainer:hover > .moreProduct {
    text-decoration: underline;
}

.moreProductSubmenuList {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    height: 0;
    margin-bottom: -10px;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease,
        height 0.2s ease, margin 0.2s ease;
}

/* #moreProductContainer:hover > .moreProductSubmenuList, */
#moreProductContainer .show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    height: auto;
    margin-bottom: 0;
}

.footer-contact-link {
    color: white;
    text-decoration: none;
}

.footer-contact-link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .footer-container .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-nav-title {
        cursor: pointer;
        position: relative;
        padding-right: 20px;
    }

    .footer-nav-title::after {
        background-image: url("../images/footer/up.png");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;

        width: 1.117692307692308rem;
        height: 0.6415384615384615rem;

        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .footer-nav-list.hidden {
        display: none;
    }

    .footer-nav.open .footer-nav-title::after,
    .footer-nav-title.active::after {
        background-image: url("../images/footer/down.png");
    }

    .premiumCalculatorsSubmenu::after {
        background-image: url("../images/footer/up.png");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;

        width: 1.117692307692308rem;
        height: 0.6415384615384615rem;

        display: inline-block;
        margin-left: 0.5em;
        content: "";
    }

    .premiumCalculatorsSubmenu.active::after {
        background-image: url("../images/footer/down.png");
    }

    .footer-nav-list {
        display: none;
        padding-left: 15px;
    }

    .footer-nav.open .footer-nav-list {
        display: block;
    }

    .footer-contact-info svg {
        margin-bottom: 5px;
    }

    .footer-social {
        display: flex;
        justify-content: center;
        padding-bottom: 40px;
        border-bottom: 1px solid #846ca6;
    }

    .footer-social-img {
        margin: 0 5px;
    }

    .footer-copyright {
        display: none;
    }

    .footer-privacy-policy-text {
        text-align: center;
    }

    .footer-nav-container {
        border-bottom: 1px solid #846ca6;
    }

    .footer-line {
        display: none;
    }
}
