@use "../autoprefixer/autoprefixer" as *;
@use "../variables/variables" as *;
  /*============================
      Footer Content
    ============================*/
.footer-content {
    margin-top: 100px;
    background: $color-white6;
    padding-top: 80px;
    padding-bottom: 80px;

    .widget-para {
        color: $color-paragraph;
        font-family: $body-font;
        font-size: 16px;
        line-height: 24px;
        font-weight: 400;
        text-transform: capitalize;
        margin-top: 16px;
    }

    .footer-input-box {
        background: $color-white;
        display: inline-flex;
        padding: 3px 4px;
        border-radius: 100px;
        margin: 25px 0;

        input {
            border-radius: 100px;
            padding-left: 18px;

            &::placeholder {
                color: $color-paragraph;
                font-family: $title-font;
                font-size: 16px;
                line-height: 26px;
                font-weight: 500;
            }
        }
    }
}

.footer-right-content {
    @include d-flex;
    flex-direction: column;
    gap: 20px;
}

.quick-links,
.popular-post,
.recent-post {
    .popular-title {
        text-align: center;
        border-bottom: 1px solid $color-white2;
        color: $color-secondary;
        font-family: $body-font;
        font-size: 20px;
        font-weight: 600;
        line-height: 26px;
        padding: 9px 0;
    }
}

.quick-links {
    border: 1px solid $color-white2;

    .quick-links-wrapper {
        @include d-flex;
        @include justify-content-center;
    }

    .quick-links-list {
        padding: 32px 0;

        li {
            margin-bottom: 14px;

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

        a {
            color: $color-secondary;
            font-family: $body-font;
            font-size: 20px;
            font-weight: 400;
            line-height: 30px;
            @include transition;

            &:hover {
                color: $color-primary;
            }
        }
    }
}

.popular-post,
.recent-post {
    border: 1px solid $color-white2;

    .popular-post-list {
        padding: 32px 30px;

        li {
            margin-bottom: 8px;

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

.popular-post-list-card {
    @include d-flex;
    @include align-items;
    flex-wrap: wrap;
    gap: 9px;

    .post-list-img {
        img {
            border-radius: 100px;
            width: 68px;
            height: 68px;
        }

        &.v2 {
            img {
                border-radius: 5px;
            }
        }
    }

    .post-list-content {
        .list-tag {
            font-family: $body-font;
            font-size: 10px;
            font-weight: 600;
            line-height: 18px;
            text-transform: uppercase;

            a {
                color: $color-paragraph;

                &:hover {
                    color: $color-primary;
                }
            }
        }

        .list-title {
            color: $color-secondary;
            font-family: $title-font;
            font-size: 14px;
            font-weight: 600;
            line-height: 20px;

            a {
                color: $color-secondary;

                &:hover {
                    color: $color-primary;
                }
            }
        }

        .date-admin {
            @include d-flex;
            @include align-items;
            gap: 7px;

            .admin-icon,
            .date-icon {
                font-size: 10px;
                font-weight: 400;
            }

            .admin,
            .date {
                @include d-flex;
                @include align-items;
                gap: 5px;
                font-family: $body-font;
                font-size: 10px;
                line-height: 20px;
                font-weight: 600;
                text-transform: uppercase;

                a {
                    color: $color-paragraph;

                    &:hover {
                        color: $color-primary;
                    }
                }
            }
        }
    }
}

.footer-social-link {
    @include d-flex;
    @include align-items;
    gap: 8px;

    li {

        a {
            line-height: 0;
            @include d-flex;
            @include justify-content-center;
            @include align-items;
            border-radius: 100px;
            min-width: 36px;
            min-height: 36px;
            border: 1px solid $color-white9;
        }

        &:nth-child(1) {
            a {
                color: #1460FF;
            }
        }

        &:nth-child(2) {
            a {
                color: #0077B5;
            }
        }

        &:nth-child(3) {
            a {
                color: #1D9BF0;
            }
        }

        &:nth-child(4) {
            a {
                color: #A40C77;
            }
        }

        &:nth-child(5) {
            a {
                color: #F00;
            }
        }
    }
}

.footer-logo {
    img {
        width: 80%;
    }
}


.footer-content {
    &.v2 {
        padding-bottom: 50px;
        margin-top: 0;

        .footer-widget {

            &.category,
            &.tranding-news,
            &.tags {
                .footer-widget-title {
                    font-size: 24px;
                    line-height: 34px;
                    color: $color-secondary;
                    margin-bottom: 20px;
                    letter-spacing: 0.5px;
                    text-transform: capitalize;
                }
            }

            &.category {



                ul {
                    li {
                        position: relative;
                        @include transition;
                        padding-bottom: 10px;

                        a {
                            color: $color-paragraph;

                            &::before {
                                content: "";
                                width: 10px;
                                height: 2px;
                                background: $color-paragraph;
                                position: absolute;
                                left: 0;
                                top: 12px;
                                opacity: 0;
                                @include transition;
                            }

                            &:hover {
                                padding-left: 20px;
                                color: $color-primary;

                                &::before {
                                    opacity: 1;
                                    background: $color-primary;
                                }

                            }
                        }

                    }
                }
            }

            &.tranding-news {
                >ul {
                    li {
                        margin-bottom: 20px;
                        @include d-flex;

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

                        .tranding-news-img {
                            img {

                                width: 80px;
                                height: 80px;
                                border-radius: 5px;
                            }
                        }

                        .tranding-recent-post-title-and-date {
                            margin-left: 15px;

                            .time-date-wrapper {
                                display: flex;
                                align-items: center;
                                flex-wrap: wrap;
                                gap: 10px;

                                .date,
                                .cat-links {
                                    display: flex;
                                    align-items: center;
                                    gap: 5px;

                                    a {
                                        font-size: 14px;
                                        line-height: 24px;
                                        color: $color-paragraph;

                                        &:hover {
                                            color: $color-primary;
                                        }

                                    }

                                    .date-icon,
                                    .car-links-icon {
                                        font-size: 14px;
                                    }
                                }
                            }

                            .tranding-recent-post-widget-title {
                                font-size: 16px;
                                line-height: 26px;
                                font-weight: 600;
                                margin: 0;
                                color: $color-paragraph;

                                &:hover {
                                    color: $color-primary;
                                }
                            }
                        }
                    }
                }
            }

            &.tags {
                ul {
                    @include d-flex;
                    flex-wrap: wrap;

                    li {
                        a {
                            font-size: 13px;
                            text-transform: uppercase;
                            display: inline-flex;
                            margin-right: 5px;
                            padding: 5px 16px 3px 16px;
                            border-radius: 5px;
                            margin-bottom: 10px;
                            color: $color-white;
                            font-weight: 600;
                            background-color: $color-primary;

                            &:hover {
                                background: $color-secondary;
                            }
                        }
                    }
                }
            }
        }
    }
}

.copyright-area {
    background: $color-white6;
    border-top: 1px solid $color-white2;
    padding: 20px 0
}

.copyright-inner {
    @include d-flex;
    @include justify-content-between;
    @include align-items;
    flex-wrap: wrap;

    .site-info {
        a {
            color: $color-primary;

            &:hover {
                color: $color-secondary;
            }
        }
    }

    .copyright-menu {
        margin-top: 10px;
        .menu {
            @include d-flex;
            @include align-items;
            flex-wrap: wrap;
            gap: 20px;

            .menu-item {
                a {
                    color: $color-paragraph;

                    &:hover {
                        color: $color-primary;
                    }
                }
            }
        }
    }
}