.footer-wrapper {
    position: relative;
    z-index: 2;
}
.widget-area {
    padding-top: 80px;
    padding-bottom: 40px;
}

.footer-links {
    ul {
        padding: 0;
        margin: 0;
    }
    li {
        font-family: $body-font;
        display: inline-block;
        padding-right: 15px;
        margin-right: 10px;
        position: relative;
        &:after {
            content: "";
            height: 20px;
            width: 1px;
            background-color: $body-color;
            position: absolute;
            top: 50%;
            right: 0;
            margin: -10px 0;
        }
        &:last-child {
            margin-right: 0;
            padding-right: 0;
            &:after {
                display: none;
            }
        }
    }
    a {
        font-family: inherit;
        color: $body-color;
        &:hover {
            color: $theme-color;
        }
    }
}

.copyright-wrap {
    padding: 22px 0;
    background-size: 100% auto;
}

.copyright-text {
    margin: 0;
    a {
        color: $theme-color;
        &:hover {
            color: $white-color;
        }
    }
}

.th-widget-contact {
    max-width: 265px;
    margin-bottom: -0.3em;
    margin-top: -0.3em;
}
.footer-contact {
    &-wrap {
        display: grid;
        grid-template-columns: auto auto auto;
        justify-content: space-between;
    }
    display: flex;
    align-items: center;
    gap: 20px;
    &_icon {
        @include equal-size-lineHeight(70px);
        min-width: 70px;
        font-size: 30px;
        background-color: $white-color;
        color: $theme-color;
        border-radius: 5px;
        text-align: center;
        position: relative;
        &:before {
            content: "";
            height: 100%;
            width: 100%;
            background-color: $title-color;
            border-radius: inherit;
            position: absolute;
            top: -10px;
            left: -10px;
            z-index: -1;
            transition: 0.3s ease-in-out;
        }
        &:hover {
            &:before {
                top: 0;
                left: 0;
            }
        }
    }
    &_text {
        display: block;
        color: $body-color;
        margin-bottom: 5px;
    }
    &_link {
        display: inline-block;
        color: $body-color;
        font-size: 20px;
        font-weight: 600;
        &:hover {
            color: $title-color;
        }
    }
}

.info-box {
    display: flex;
    margin-bottom: 20px;
    &:last-child {
        margin-bottom: -5px;
    }
    &_icon {
        font-size: 20px;
        background-color: transparent;
        color: $theme-color;
        text-align: center;
        margin-right: 10px;
    }
    &_title {
        font-family: $body-font;
        font-weight: 600;
        margin-bottom: 10px;
        margin-top: -0.5em;
    }
    &_text {
        display: block;
        color: $body-color;
        margin-top: -0.35em;
        margin-bottom: 0;
    }
    &_link {
        display: inline-block;
        color: $body-color;
        &:hover {
            color: $theme-color;
        }
    }
}

.footer-newsletter {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding-left: 60px;
    .newsletter-title {
        max-width: 425px;
        margin-bottom: 0;
    }
}
.footer-layout1 {
    background-color: #080e1c;
    --body-color: #CDCDCD;
    overflow: hidden;
    .footer-top {
        background-color: $theme-color;
        position: relative;
        z-index: 2;
        padding: 50px 0;
    }
    .footer-logo {
        padding: 45px 45px 45px 0;
    }
    .shape-left,
    .shape-right {
        position: absolute;
        z-index: -1;
    }
    .shape-left {
        top: 0;
        left: 0;
    }
    .shape-right {
        bottom: 65px;
        right: 0;
    }
    .logo-bg {
        position: absolute;
        left: 0;
        top: 0;
        background-color: $white-color;
        height: 100%;
        width: 33%;
        z-index: -1;
        clip-path: polygon(
            100% 0,
            calc(100% - 60px) 50%,
            100% 100%,
            0 100%,
            0 0
        );
        &:before {
            content: "";
            height: 100%;
            width: calc(100% - 10px);
            background-color: $title-color;
            position: absolute;
            top: 0;
            left: 0;
            clip-path: polygon(
                100% 0,
                calc(100% - 60px) 50%,
                100% 100%,
                0 100%,
                0 0
            );
        }
    }
}

@include md {
    .footer-wrapper {
        .widget-area {
            padding-top: $space-mobile;
            padding-bottom: 30px;
        }
    }
}
@include sm {
    .copyright-text {
        text-align: center;
    }
}
@include xs {
    .copyright-wrap {
        background-size: cover;
    }
}


.footer-widget {
    .contact-feature {
        padding: 0 !important;
        background-color: transparent;
        box-shadow: none;
        gap: 15px;
        &:not(:last-child) {
            margin-bottom: 28px;
        }
        .icon-btn {
            --btn-size: 44px;
            font-size: 16px;
        }
        &_label {
            margin-top: -0.4em;
            font-size: 14px;
            text-transform: uppercase;
            line-height: 1.5;
        }
        &_link {
            font-size: 18px;
            margin-bottom: -0.4em;
            display: block;
        }
    }
}

.newsletter-widget {
    max-width: 300px;
    .newsletter-form {
        gap: 0;
        position: relative;
    }
    .form-group {
        margin-bottom: 0;
    }
    input {
        border-radius: 4px;
        padding: 0 65px 0 20px;
        &::placeholder {
            color: #9B9B9C;
        }
    }
    .th-btn {
        position: absolute;
        right: 0;
        min-width: auto;
        padding: 16.5px 17px;
        position: absolute;
        top: 5px;
        right: 5px;
    }
}
/* footer 2 ---------------------------------- */
.footer-layout2 {
    background-color: $title-color;
    --body-color: #CDCDCD;
    animation: footer-bg-anime 80s linear infinite;
    background-repeat: repeat-x;
    .footer-top {
        padding: 60px;
        transform: translate(0, -50%);
        margin-bottom: -91.5px;
        margin-top: 91.5px;
    }
    .sub-title {
        margin-bottom: 17px;
    }
    .sec-title {
        font-size: 30px;
    }
    .copyright-wrap {
        background: #0A0A18;
    }
}
@keyframes footer-bg-anime {
    0% {
        background-position: top right;
    }
    100% {
        background-position: top right 2000px;
    }
}
/* footer 3 ---------------------------------- */
.footer-layout3 {
    --body-color: #363739;
    background-color: $smoke-color;
    background-position: bottom;
    .footer-widget .recent-post .post-title, 
    .footer-widget .widget_title {
        color: $title-color;
    }
    .copyright-wrap {
        --body-color: #CDCDCD;
    }
}
@include lg {
    .footer-layout2 .footer-top {
        margin-bottom: -112px;
        margin-top: 112px;
    }
}

@include md {
    .footer-wrapper {
        .newsletter-form {
            max-width: 400px;
        }
    }
    .newsletter-wrap {
        .newsletter-title {
            font-size: 24px;
        }
        .newsletter-text {
            font-size: 14px;
        }
    }
    .footer-layout2 .footer-top {
        margin-bottom: -131px;
        margin-top: 131px;
        padding: 50px 40px;
    }
}

@include sm {
    .newsletter-wrap {
        flex-wrap: wrap;
        justify-content: center;
        padding-left: 0;
        border-left: none;
        gap: 20px;
        .newsletter-title {
            text-align: center;
        }
    }
    .footer-wrapper .newsletter-form {
        max-width: 550px;
        gap: 15px;
        justify-content: center;
    }
    .footer-layout2 .footer-top {
        margin-bottom: -150px;
        margin-top: 150px;
    }
}

@include xs {
    .footer-wrapper .newsletter-form {
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-layout2 .footer-top {
        margin-bottom: -170px;
        margin-top: 170px;
        padding: 50px 35px;
    }
}
.footer-layout5 {
    background-color: #080e1c;
    --body-color: #CDCDCD;
    overflow: hidden;
    .footer-top {
        position: relative;
        z-index: 2;
        padding: 40px 0;
        border-bottom: 1px solid #363739;
    }
}