.widget {
    padding: 0;
    background-color: $smoke-color2;
    margin-bottom: 32px;
    position: relative;

    &[data-overlay]:before {
        z-index: -1;
    }

    .th-social {
        a {
            background-color: #4D5765;
           // border-radius: 14px;
            color: $white-color;

            &:hover {
                background-color: $theme-color;
                color: $white-color;
            }

        }
    }

    &.widget-author {
        padding: var(--widget-padding-y, 30px) var(--widget-padding-x, 30px);
        background-color: $smoke-color2;
        border-radius: 30px;
        margin-right: 16px;

        @include ml {
            margin: 0;
        }

        @include sm {
            padding: 25px;
        }

        .author-widget-wrap {
            display: flex;
            align-items: center;
            gap: 30px;

            @include sm {
                display: block;
                text-align: center;
            }

            .avater {
                min-width: 189px;
                display: grid;
                align-content: center;
                justify-content: center;
                border-radius: 15px;

                @include sm {
                    margin-bottom: 25px;
                }

                img {
                    border-radius: 15px;
                }
            }

            .box-title {
                margin-bottom: 3px;
            }

            .desig {
                color: $body-color;
                display: block;
                margin-bottom: 5px;
            }

            .author-bio {
                margin-bottom: -0.3rem;
            }
        }
    }

    &.widget_categories {
        &.style2 {

            a {
                border: none;

                &:before {
                    color: $body-color;
                }

                &:hover {
                    background-color: $title-color;
                    color: $theme-color;

                    &:before {
                        color: $theme-color;
                    }
                }
            }
        }
    }

    &.widget_quote {
        .widget-form {
            padding: 40px 40px 24px 40px;
            @include vxs {
                padding: 30px 30px 24px 30px;
            }
        }

        .form-group {
            margin-bottom: 16px;
        }

        select,
        .form-control,
        .form-select,
        textarea,
        input {
            height: 56px;
            background-color: transparent;
            font-size: 16px;
            border: 1px solid $smoke-color;
            font-family: var(--body-font);
            transition: 0.4s ease-in-out;

            &:focus {
                border-color: $theme-color;
            }
        }


        textarea.form-control,
        textarea {
            min-height: 59px;
        }

        .th-btn {
            padding: 15px 24px;
        }

        .form-btn {
            padding: 0 40px 40px;
        }
    }



    .service-info {
        ul {
            li {
                display: flex;
                justify-content: space-between;
                padding: 24px 40px;
                font-weight: 400;
                font-size: 18px;
                color: $title-color;

                @include xl {
                    padding: 24px 20px;
                }

                &:not(:last-child) {
                    border-bottom: 1px solid rgba(153, 153, 153, 0.15);
                }

                span {
                    position: relative;
                    top: unset;
                    right: unset;
                    font-weight: 400;
                    font-size: 16px;
                    background-color: transparent;

                    i {
                        color: $theme-color;
                        font-size: 12px;
                    }

                }
            }
        }

        .service-btn {
            padding: 10px 40px 40px;

            @include xl {
                padding: 10px 24px 24px;
            }

            .th-btn {
                display: flex;
                padding: 15px 30px;

                &:before {
                    width: 490px; 
                }

                &:hover {
                    border-color: $title-color;
                }
            }
        }
    }
}

.sidebar-area {
    margin-left: 15px;

    @include lg {
        margin-left: 0;
    }
}

.widget_title {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    font-family: $title-font;
    background: rgba(108, 109, 113, 0.15);
    border-bottom: 1px solid $title-color;
    padding: 30px 32px;
    line-height: 1em;
    margin: -0.12em 0 0px 0;
}

.widget {
    &.widget_search {
        padding: 0;
        border: none;
    }

    .search-form {
        position: relative;
        display: flex;

        input {
            flex: 1;
            height: 62px;
            border-radius: 100px;
            padding-right: 56px;
            background-color: $smoke-color2;
            border: none;
            border-radius: 0px;
        }

        button {
            border: none;
            font-size: 20px;
            color: $title-color;
            border-radius: 4px;
            display: inline-block;
            background-color: transparent;
            padding: 0;
            text-align: center;
            position: absolute;
            top: 18px;
            right: 21px;
        }
    }
}

/* download-media ---------------------*/

.download-media {
    background-color: $white-color;
    box-shadow: 0px 2px 4px rgba(2, 29, 53, 0.1);
    border-radius: 10px;
    padding: 8px 8px 8px 43px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    @include lg {
        padding: 8px 8px 8px 23px;
    }

    &:not(:last-child) {
        margin-bottom: 14px;
    }

    &_title {
        font-weight: 500;
        font-size: 16px;
        line-height: 26px;
        letter-spacing: 0.02em;
        margin-bottom: 0;
    }

    &_btn {
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        background: $theme-color;
        border-radius: 6px;
        color: $white-color;
        transition: all 0.4s ease-in-out;

        &:hover {
            background: $title-color;
            color: $white-color;
        }

    }
}

.wp-block-search__label,
.widget_title {
    &.style2 {
        position: relative;
        font-size: 24px;
        font-weight: 700;
        font-family: $title-font;
        line-height: 1em;
        padding-bottom: 17px;
        margin: -0.12em 0 30px 0;

        &:after,
        &:before {
            content: '';
            height: 3px;
            width: 100%;
            background-color: #E0E0E0;
            position: absolute;
            bottom: 0;
            left: 0;
        }

        &:after {
            background-color: $theme-color;
            width: 50px;
        }
    }
}

// Call Widget --------------------
.widget_call {
    background-color: $title-color;
    position: relative;
    z-index: 2;
}

.widget-call {
    .box-title {
        margin-bottom: 5px;
    }

    .info-box {
        display: flex;

        &_link {
            font-size: 18px;
            color: $white-color;

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

        &_icon {
            width: 50px;
            height: 50px;
            min-width: 50px;
            line-height: 50px;
            font-size: 16px;
            background-color: transparent;
            border: 1px solid $theme-color;
            color: $theme-color;
            border-radius: 50%;
            text-align: center;
            margin-right: 14px;
            transition: all 0.4s ease-in-out;


            &:hover {
                background-color: $white-color;
                color: $title-color;
            }

        }

        &_subtitle {
            font-size: 14px;
            color: $white-color;
            text-transform: capitalize;
            margin-bottom: 5px;
        }

        &_text {
            font-size: 18px;
            font-weight: 500;
            color: $white-color;

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

        &:not(:last-child) {
            margin-bottom: 20px;
        }

        &:nth-child(2) {
            .info-box {
                &_icon {
                    border-color: #6D2CF8;
                    color: #6D2CF8;
                }
            }
        }

        &:nth-child(3) {
            .info-box {
                &_icon {
                    border-color: #C9F31D;
                    color: #C9F31D;
                }
            }
        }
    }
}

.widget_cta {
    position: relative;
    border-radius: 20px;
    text-align: center;
    --space: 40px;
    height: 452px;
    margin-bottom: 0;

    @include xl {
        --space: 30px;
    }


    &:before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 20px;
        opacity: 0.9;
        background: linear-gradient(180deg, rgba(62, 102, 243, 0.00) -18.65%, #0031DD 99.96%);
    }

    .cta-banner {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        padding: var(--space);
    }

    .banner-title {
        font-weight: 700;
        font-size: 30px;
        line-height: 40px;
        color: $white-color;
        margin-bottom: 20px;

        @include xl {
            font-size: 20px;
            line-height: 30px;
        }
    }

    .th-btn {
        border-radius: 30px;
    }
}

.widget_offer {
    position: relative;
    background-color: $title-color;
    padding: 32px;
    min-height: 500px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 2;

    @include lg {
        margin-right: 0;
    }

    &.style2 {
        min-height: 470px;
    }

    &:before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(3, 6, 14, 0) -9.7%, rgba(3, 6, 14, 0.5) 87.88%);
        border-radius: inherit;
        z-index: -1;

    }

    @include lg {
        padding: 30px;
    }

    .offer-banner {
        .banner-title {
            color: $white-color;
            margin-bottom: 30px;
        }

        .th-btn {
            padding: 17px 36px;

            @include lg {
                padding: 17px 30px;
            }
        }
    }
}

.widget_info {

    .info-list {
        max-width: 240px;
        margin-bottom: 30px;

        ul {
            padding: 0;

            li {
                list-style: none;
                margin-bottom: 10px;
            }

            strong {
                color: $title-color;
            }
        }
    }
}

.wp-block-tag-cloud,
.tagcloud {
    a {
        display: inline-block;
        font-size: 14px;
        font-weight: 500;
        font-family: $body-font;
        text-transform: capitalize;
        line-height: 1;
        padding: 10.5px 19px;
        margin-right: 5px;
        margin-bottom: 10px;
        color: $body-color;
        background-color: #F2F3FC;
        border-radius: 4px;


        &:hover {
            background-color: $theme-color;
            color: $white-color;
        }
    }
}

.wp-block-tag-cloud,
.tagcloud {
    margin-right: -10px;
    margin-bottom: -10px;
    display: inline-block;
}


.sidebar-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 354px;

    .gallery-btn {
        position: absolute;
        top: 50%;
        left: 50%;
        color: $white-color;
        visibility: hidden;
        opacity: 0;
        transform: translate(-50%, 20px);

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

    .gallery-thumb {
        overflow: hidden;
        position: relative;

        &:before {
            content: '';
            height: auto;
            width: 0;
            background-color: var(--title-color);
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            transition: 0.4s ease-in-out;
        }

        img {
            width: 100%;
        }

        &:hover {
            &:before {
                opacity: 0.8;
                padding-top: 135%;
                width: 135%;
                border-radius: 35%;
            }

            .gallery-btn {
                visibility: visible;
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }
    }
}

.recent-post {
    display: flex;

    @include vxs {
        flex-direction: column;
    }

    &-wrap {
        padding: 40px;
        @include lg {
            padding: 30px;
        }
    }

    &:not(:last-child) {
        border-bottom: 1px solid $smoke-color;
        margin-bottom: 32px;
        padding-bottom: 28px;
    }

    .media-img {
        margin-right: 16px;
        width: 80px;
        height: 80px;
        overflow: hidden;

        @include vxs {
            margin-bottom: 20px;
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: 0.4s ease-in-out;
        }
    }

    .post-title {
        font-weight: 700;
        font-size: 18px;
        line-height: 28px;
        margin-right: 10px;
        margin-bottom: 0;
        text-transform: capitalize;
    }

    .recent-post-meta {
        margin-bottom: 5px;

        a {
            text-transform: capitalize;
            font-weight: 400;
            font-size: 14px;
            color: $title-color;

            &:not(:last-child) {
                margin-right: 16px;
            }

            i {
                margin-right: 6px;
                color: $theme-color;
            }

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

    &:hover {
        .media-img {
            img {
                transform: scale(1.1);
            }
        }
    }
}

.sidebar-area {
    &.style2 {
        margin-left: 15px;

        @include lg {
            margin-left: 0;
        }
    }


    ul.wp-block-latest-posts {
        margin-bottom: 0;

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

    select,
    input {
        background-color: $white-color;
    }

    .widget .wp-block-search {
        margin-bottom: 0;
    }

    .wp-block-group__inner-container h2 {
        font-size: 20px;
        line-height: 1em;
        margin-bottom: 20px;
        margin-top: -0.07em;
    }

    ol.wp-block-latest-comments {
        padding: 0;
        margin: 0;

        li {
            line-height: 1.5;
            margin: 0 0 20px 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            padding-bottom: 20px;

            &:last-child {
                margin-bottom: 0;
                padding-bottom: 0;
                border-bottom: none;
            }
        }
    }
}

// Download Widget --------------------
.download-widget-wrap {
    .th-btn {
        width: 100%;

        &:first-child {
            margin-bottom: 20px;
        }

        &.style2 {
            color: $body-color;

            &:before,
            &:after {
                background-color: $theme-color;
            }

            &:hover {
                color: $white-color;
                border-color: $theme-color;
            }
        }
    }
}

// Banner Widget --------------------
.widget_banner {
    background-color: $title-color;
    position: relative;

    .shape1 {
        position: absolute;
        bottom: 0;
        right: 0;
    }

    .widget_title {
        color: $white-color;
    }

    &:has(.widget-map) {
        padding: 0;
        line-height: 0px;
    }
}

.widget-map {
    iframe {
        min-height: 280px;
    }
}

.widget-banner {
    height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    @media (max-width: 360px) {
        height: 280px;
    }

    .text {
        display: block;
        margin-top: -0.4em;
        margin-bottom: 15px;
        color: $white-color;
        text-transform: uppercase;
        font-weight: 500;
    }

    .title {
        color: $white-color;
        margin-bottom: 35px;
    }
}

@include xl {
    .widget-banner .title {
        font-size: 34px;
    }
}

// Widget Info ---------------------
.project-info-list {
    .contact-feature {
        padding: 17px;

        &:not(:last-of-type) {
            margin-bottom: 10px;
        }
    }
}

// Price Filter --------------
.price_slider_wrapper {
    margin-top: -0.5em;

    .price_label {
        span {
            display: inline-block;
            color: $body-color;
        }
    }

    .ui-slider {
        height: 6px;
        position: relative;
        width: 100%;
        background-color: $theme-color;
        border: none;
        margin-top: 15px;
        margin-bottom: 25px;
        cursor: pointer;
        border-radius: 0;
    }

    .ui-slider-range {
        border: none;
        cursor: pointer;
        position: absolute;
        top: 0;
        height: 100%;
        z-index: 1;
        display: block;
        background-color: $title-color;
    }

    .ui-slider-handle {
        width: 16px;
        height: 16px;
        line-height: 16px;
        border-radius: 50%;
        text-align: center;
        padding: 0;
        cursor: pointer;
        position: absolute;
        margin-top: -5px;
        z-index: 2;
        background-color: $white-color;
        border: 3px solid $title-color;
        transform: translateX(-1px);

        &:focus {
            outline: none;
            box-shadow: 1.5px 2.598px 10px 0px rgba(0, 0, 0, 0.15);
        }

        &:last-child {
            transform: translateX(-9px);
        }
    }

    button,
    .button {
        background-color: $theme-color;
        color: $white-color;
        font-weight: 500;
        line-height: 1.6;
        text-transform: capitalize;
        text-align: center;
        border: none;
        display: inline-block;
        overflow: hidden;
        position: relative;
        z-index: 2;
        padding: 7px 20px;
        min-width: 100px;
        font-size: 14px;
        border-radius: 5px;
        transition: 0.4s ease-in;

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

.widget_shopping_cart {
    .widget_title {
        margin-bottom: 30px;
        border-bottom: none;
    }

    ul {
        margin: 0;
        padding: 0;

        li {
            list-style-type: none;
        }
    }

    .mini_cart_item {
        position: relative;
        padding: 30px 30px 30px 90px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        margin-bottom: 0;
        text-align: left;

        &:first-child {
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }
    }

    .cart_list {
        a:not(.remove) {
            display: block;
            color: $body-color;
            font-size: 16px;
            font-weight: 500;
            font-family: $title-font;
            font-weight: 600;
            color: $title-color;

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

        a.remove {
            position: absolute;
            top: 50%;
            left: 95%;
            transform: translateY(-50%);
            color: $body-color;

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

        img {
            width: 75px;
            height: 75px;
            position: absolute;
            left: 0;
            top: 18px;
        }
    }

    .quantity {
        display: inline-flex;
        white-space: nowrap;
        vertical-align: top;
        margin-right: 20px;
        font-size: 14px;
        font-weight: 500;
    }

    .total {
        margin-top: 20px;
        font-size: 18px;
        color: $title-color;
        font-family: $body-font;

        strong {
            font-family: $title-font;
        }
    }

    .amount {
        padding-left: 5px;
    }
}

.sidebar-area {
    .widget_shopping_cart .th-btn {
        padding: 8px 22px;
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .sidebar-shop {
        .widget {
            padding: 30px;
        }
    }
}

@media (min-width: 992px) {
    .sidebar-shop {
        .widget {
            margin-bottom: 24px;
        }
    }
}

@include lg {

    .widget_title {
        font-size: 22px;
        margin: -0.12em 0 0px 0;
    }

    .author-widget-wrap .name {
        font-size: 22px;
    }
}

@include md {
    .sidebar-area {
        padding-top: 30px;
    }

    .widget {
        --widget-padding-y: 40px;
        --widget-padding-x: 40px;
    }

    .wp-block-tag-cloud a,
    .tagcloud a {
        padding: 10.5px 18px;
    }
}


@media (max-width: 330px) {
    .recent-post {

        .recent-post-meta a {
            font-size: 12px;
        }
    }
}