/* Footer CSS */

@use 'responsive';
@use 'variables'as var;

.footer-area {
    .footer-widget-area {
        ul {
            li {
                a {
                    display: flex;
                    align-items: center;
                    color: var.$text;
                    margin-bottom: 0.375rem;
                    font-size: 1rem;
                    font-weight: 700;

                    i {
                        color: var.$heading;
                        font-size: 14px;
                        margin-right: 0.5rem;
                    }

                    &:hover,
                    &:focus {
                        color: var.$primary;
                    }
                }

                &:last-child {
                    a {
                        margin-bottom: 0;
                    }
                }
            }
        }

        .form-control {
            height: 45px;
            padding: 8px 20px;
        }

        .btn {
            padding: 0.5rem 1.75rem;
        }
    }

    .footer-social-icon {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        
        > a {
            font-size: 1rem;
            color: var.$text;
    
            &:hover,
            &:focus {
                color: var.$primary;
            }
        }
    }

    .copywrite-wrapper {
        background-color: var.$text-gray;
        padding: 1.25rem 1.5rem;

        @media #{responsive.$breakpoint-lg} {
            padding: .75rem 1.75rem;
        }
    }

    .copywrite-text {

        p {
            font-weight: 700;
            font-size: 1rem;
            color: var.$heading;
        }

        span {
            color: var.$heading;
        }        

        a {
            color: var.$primary;
        }
    }

    .footer-nav {

        li {
            line-height: 1.5;

            a {
                color: var.$heading;
                margin: 0 .5rem;
                font-size: 1rem;
                font-weight: 700;

                @media #{responsive.$breakpoint-lg} {
                    margin: 0 .75rem;
                }

                &:hover,
                &:focus {
                    color: var.$primary;
                }
            }

            &:first-child {
                a {
                    margin-left: 0;
                }
            }

            &:last-child {
                a {
                    margin-right: 0;
                }
            }
        }
    }

    .language-dropdown {

        .btn {
            padding: 0;
            font-size: 1rem;
            box-shadow: none;
        }

        .dropdown-menu {
            min-width: 6rem;
            width: 7.5rem;
            border: 1px solid var.$border;
            border-radius: 0.25rem;
            box-shadow: 0 0.25rem 0.25rem 0 rgba(15, 30, 150, 0.2);

            .dropdown-item {
                color: var.$text;
                font-size: 1rem;
                font-weight: 500;

                &:hover,
                &:focus {
                    color: var.$primary;
                    background-color: transparent;
                }
            }
        }
    }

    &.footer-2 {
        background-color: var.$heading;

        .footer-widget-area ul li a i {
            color: var.$text-gray;
        }
    }
}