// Home

.hero-sec {
    padding-top: 150px;
    padding-bottom: 150px;
    position: relative;
    min-height: calc(100vh - 50px);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    border-radius: 38px;
    width: calc(100% - 50px);
    margin: 25px auto 0;
    border-bottom-right-radius: 0;

    @include breakpoint (mobile) {
        width: calc(100% - 30px);
        margin: 15px auto 0;
        border-radius: 18px;
        border-bottom-right-radius: 0;
    }

    &::before {
        content: '';
        position: absolute;
        // background-image: linear-gradient(90deg, rgb(0 0 0 / 80%) 10%, rgb(0 0 0 / 22%) 60%);
        background-image: linear-gradient(150deg, #000000, #0000000d);
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        z-index: 0;
    }

    .main-row {
        align-items: center;
    }

    .hero-txt {
        position: relative;

        h1 {
            color: $white;
        }

        p {
            color: $white;
            max-width: 550px;
            line-height: 1.6;
            font-size: 24px;
            font-weight: 500;
        }

        ul {
            li {
                font-size: 17px;
                font-weight: 500;
            }
        }
    }

    .review-bottom {
        position: absolute;
        bottom: -1px;
        right: -1px;
        background-size: 100%;
        background-position: bottom;
        padding: 73px 15px 15px 75px;
        background-repeat: no-repeat;

        @include breakpoint (mobile-s) {
            padding: 53px 15px 15px 55px;
        }

        .happy-families {
            display: flex;
            align-items: center;
            gap: 18px;
            padding: 16px 24px;
            max-width: 480px;
            position: relative;
            bottom: -12px;

            @include breakpoint (mobile-s) {
                max-width: 310px;
                position: relative;
                bottom: -14px;
                padding: 0 0;
            }
        }

        .avatars {
            display: flex;
        }

        .avatars img {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #fff;
            margin-left: -14px;

            @include breakpoint (mobile-s) {
                width: 43px;
                height: 43px;
                border: 1px solid #fff;
            }
        }

        .avatars img:first-child {
            margin-left: 0;
        }

        .content h5 {
            margin: 0;
            font-size: 18px;
            font-weight: 700;
            color: #000;

            @include breakpoint (mobile-s) {
                white-space: nowrap;
                font-size: 15px;
            }
        }

        .rating {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 4px;

            @include breakpoint (mobile-s) {
                margin-top: 0px;
            }
        }

        .stars {
            color: #f6c343;
            font-size: 18px;
            letter-spacing: 1px;
        }

        .score {
            font-weight: 600;
            font-size: 14px;
            color: #000;
        }

    }


}

.bhk-flats {

    .row {
        .col-lg-6 {
            &:first-child {
                .txt {
                    max-width: 500px;
                    margin-bottom: 90px;

                    @include breakpoint (mobile) {
                        max-width: 100%;
                        margin-bottom: 10px;
                    }
                }

                @include breakpoint (mobile) {
                    display: flex;
                    flex-direction: column-reverse;
                }
            }


        }
    }

    figure {
        border-radius: 15px;
        overflow: hidden;
        width: 100%;
        height: 600px;
        margin-bottom: 20px;

        @include breakpoint (mobile-s) {
            height: 390px;
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .bhk-rating {

        ul {
            display: flex;
            gap: 20px;
            width: 100%;
            justify-content: space-between;

            @include breakpoint (mobile-s) {
                flex-direction: column;
            }

            li {
                position: relative;

                @include breakpoint (desktop) {
                    width: calc(100% / 3);
                }

                @include breakpoint (mobile-s) {
                    width: calc(100% / 1);
                }

                &::before {
                    content: '';
                    position: absolute;
                    height: 100%;
                    width: 1px;
                    background: #d8cfcf;
                    right: -40px;

                    @include breakpoint (desktop) {
                        right: 0;
                    }

                    @include breakpoint (mobile-s) {
                        display: none;
                    }
                }

                &:last-child {
                    &::before {
                        display: none;
                    }
                }
            }
        }


    }
}

.rigt-slider-sec {
    background-color: #F7F7F7;


    .slider-right {
        margin: 40px auto;
    }

    .slide-item {
        padding: 0 15px;
        transition: all 0.4s ease;
    }

    .slide-item img {
        width: 100%;
        height: 420px;
        object-fit: cover;
        border-radius: 20px;
        transition: all 0.4s ease;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }


    .slick-center {
        opacity: 1;
    }










    .container {
        @media only screen and (max-width:2500px) {
            margin-left: auto;
            margin-right: unset;
            overflow: hidden;
            max-width: calc(100% - 15%);

            .slick-list {
                padding-left: 0 !important;
            }
        }

        @media only screen and (max-width: 1550px) {
            .container {
                max-width: calc(100% - 120px);
            }
        }

        @include breakpoint (normal) {
            max-width: calc(100% - 80px);
        }

        @media only screen and (max-width:1200px) {
            margin-left: auto;
            margin-right: auto;
            max-width: calc(100% - 5%);
        }

    }

    .slick-slider {
        @include breakpoint(normal) {
            padding-bottom: 70px;
        }
    }


    .slick-arrow {
        position: absolute;
        top: -80px;
        right: 70px;
        width: 50px;
        height: 50px;
        border: 1px solid $color-primary;
        border-radius: 100%;
        background-color: $color-primary;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #fff;

        @include breakpoint(normal) {
            top: unset !important;
            bottom: 0;
            left: 70px;
        }

        &.slick-prev {
            right: 140px;
            background-color: #D8D8D8;
            border: 1px solid #D8D8D8;
            color: #8B8989;

            @include breakpoint(normal) {
                left: 0;
                right: unset;
            }

            // i {
            //     color: $color-primary;
            // }
        }

        &:hover {
            background-color: $color-primary;
            color: #fff !important;
        }

        i {
            // color: #fff;
            font-size: 20px;
        }
    }

    .slide {
        position: relative;
        height: 450px;
        border-radius: 10px;
        overflow: hidden;

        figure {
            width: 100%;
            height: 100%;

            &::before {
                content: '';
                position: absolute;
                background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 10%, rgba(0, 0, 0, 0.2) 60%);
                left: 0;
                right: 0;
                bottom: 0;
                top: 0;
                z-index: 1;
            }

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: top;
            }
        }

        &:hover .txt-grid {
            transform: translate(-50%, -10px);
        }

        .txt-grid {
            position: absolute;
            bottom: 0;
            width: 90%;
            left: 50%;
            transform: translate(-50%, 92px);
            z-index: 5;
            transition: 0.2s;

            * {
                color: #fff;
            }

            p {
                margin-bottom: 10px;
            }

            a.txt-btn-arrow {
                font-size: 16px;
            }
        }

    }

}

.two-col-sec {

    figure {
        width: 100%;
        height: 100%;
        margin-bottom: 0;
    }

    .txt {
        .txt-icn {
            display: flex;
            flex-direction: column;
            gap: 15px;

            li {
                display: flex;
                gap: 20px;

                figure {
                    width: 77px;
                    height: 77px;
                    padding: 10px;
                    background-color: #FFF5D7;
                    border-radius: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    img {
                        width: 43px;
                        object-fit: contain;
                    }
                }

                .inner-txt {
                    width: calc(100% - 77px - 21px);

                    h4 {
                        margin-bottom: 5px;
                    }
                }

            }
        }
    }



    .config-table {
        max-width: 100%;
        margin: 40px auto;
        background: #fff;
        border-radius: 12px;
        border: 1px solid #eee;
        overflow: hidden;


        .table-responsive {
            width: 100%;
            border-collapse: collapse;
        }

        @include breakpoint (mobile) {
            .table-responsive {
                display: block;
                overflow-x: auto;
                white-space: nowrap;
                -webkit-overflow-scrolling: touch;
            }

            .table-responsive thead,
            .table-responsive tbody,
            .table-responsive tr {
                width: 100%;
            }

            .table-responsive th,
            .table-responsive td {
                min-width: 220px;
                white-space: nowrap;
            }
        }

        /* Optional scrollbar styling */
        .table-responsive::-webkit-scrollbar {
            height: 6px;
        }

        .table-responsive::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        .table-responsive::-webkit-scrollbar-thumb {
            background: #c79a2b;
            border-radius: 6px;
        }



    }

    .config-table table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

    .config-table th,
    .config-table td {
        padding: 20px 26px;
        font-size: 15px;
        color: #222;
        vertical-align: middle;
    }

    .config-table thead th {
        font-weight: 600;
        text-align: center;
        background: #fff;
        border-bottom: 1px solid #eee;
        font-size: 20px;
    }

    .config-table th:not(:last-child),
    .config-table td:not(:last-child) {
        border-right: 1px solid #eee;
    }

    .config-table tbody tr:not(:last-child) td {
        border-bottom: 1px solid #f1f1f1;
    }

    .config-table td:first-child {
        text-align: left;
    }

    .config-table td:not(:first-child) {
        text-align: center;
    }

    .config-table tr:nth-child(odd) {
        background-color: #FFFBFB !important;
    }

    .icon {
        width: 19px;
        height: 19px;
        margin-right: 7px;
        position: relative;
        display: inline-block;
        top: 4px;

        &::before {
            content: "\f058";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            left: 0;
            font-size: 16px;
            top: 2px;
            transition: all 0.3s;
            line-height: 1;
            color: $color-primary;
        }

    }

}

.counter-grid {
    position: relative;
    background-color: #F7F7F7;
    border-radius: 38px;
    width: calc(100% - 50px);
    margin: auto;

    @include breakpoint (mobile) {
        width: calc(100% - 30px);
        border-radius: 18px;
    }

    .container {
        max-width: 1440px;
    }

    .counter-wrapper {
        position: relative;

        p {
            margin: 0;
            text-align: left;
            font-size: 13px;
            text-transform: uppercase;
        }
    }

    .row {
        align-items: center;

        @include breakpoint(ipad) {
            justify-content: center;
        }

        .col-6 {
            border-right: 1px solid rgba(255, 255, 255, 0.5);
            min-height: 130px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-top: 10px;
            padding-bottom: 10px;
            width: calc(100% / 5);

            @include breakpoint(ipad) {
                border: 0;
                width: calc(100% / 3 - 14px);
            }

            @include breakpoint(mobile) {
                width: calc(100% / 2 - 14px);
            }

            @include breakpoint(mobile-s) {
                width: calc(100% / 0 - 0px);
            }

            .cout-txt {
                @include breakpoint(mobile-s) {
                    width: 120px;
                }
            }


            &:last-child {
                border: 0;
            }

            .text-center {
                display: flex;
                gap: 15px;

                figure {
                    width: 77px;
                    height: 77px;
                    padding: 10px;
                    background-color: #FFF5D7;
                    border-radius: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    img {
                        width: 43px;
                        object-fit: contain;
                    }
                }

            }

        }

        .count {
            font-size: 32px;
            line-height: 1.1;
            color: $color-heading;
            text-align: left;

            @include breakpoint (desktop) {
                font-family: 28px;
            }

            @include breakpoint (normal) {
                font-size: 22px;
            }
        }
    }

    .btn.btn-arow i {
        transform: rotate(90deg);
    }

}

.apartment-detail {
    background-color: #F7F7F7;

    .row {
        @include breakpoint (mobile) {
            flex-direction: column-reverse;
        }
    }

    figure {
        border-radius: 15px;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .txt {
        .txt-icn {
            flex-direction: row;
            flex-wrap: wrap;
            margin-bottom: 30px;

            li {
                width: calc(100% / 2 - 8px);
                align-items: center;

                @include breakpoint (mobile-s) {
                    width: calc(100% / 1 - 0px);
                }

                p {
                    margin: 0;
                    font-weight: 600;
                }
            }
        }
    }
}

.our-benefits {
    .custom-accordion .accordion-item {
        border: 1px solid #eee;
        border-radius: 10px;
        margin-bottom: 12px;
        overflow: hidden;
    }

    .custom-accordion .accordion-button {
        background: #fff;
        font-size: 22px;
        font-weight: 600;
        color: #111;
        padding: 16px 20px;
        box-shadow: none;
        position: relative;
        border-bottom: 1px solid #eee;
        margin-bottom: -1px;

        @include breakpoint(normal) {
            font-size: rem(25px);
        }

        @include breakpoint(mobile) {
            font-size: rem(20px);
        }

        @include breakpoint(mobile-s) {
            font-size: rem(17px);
        }

    }

    .custom-accordion .accordion-button::after {
        display: none;

    }

    .custom-accordion .arrow {
        margin-left: auto;
        width: 26px;
        height: 26px;
        background: $color-primary;
        border-radius: 50%;
        position: absolute;
        right: 10px;
        transform: rotate(-45deg);
    }

    .custom-accordion .arrow::before {
        content: "\f061";
        color: #fff;
        font-size: 12px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
    }


    .custom-accordion .accordion-button:not(.collapsed) .arrow {
        transform: rotate(0deg);
    }

    .custom-accordion .accordion-body {
        padding: 18px 22px;
        font-size: 14px;
        color: #555;

        .icn-list {
            ul {
                flex-direction: row;

                li {
                    width: 100%;
                    position: relative;
                    color: $color-text;

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


}

.customer-reviews {

    button {
        &.slick-arrow {
            font-size: 0;
            width: 70px;
            height: 70px;
            border-radius: 100%;
            position: absolute;
            bottom: -25px;
            left: 50%;
            transform: translateX(-50%);
            background-color: $color-primary !important;
            border: 0px;
            z-index: 5;
            background-repeat: no-repeat;
            background-size: 20px;
            background-position: center;
            color: #fff !important;
            @include transition;

            &.slick-next {
                left: calc(50% + 50px);
                background-image: url('..//images/arrow-right.svg');
            }

            &.slick-prev {
                left: calc(50% - 50px);
                background-image: url('..//images/arrow-lft.svg');
            }

        }

        &:hover {
            background-size: 28px;
        }
    }

    .review-slider .slick-slide {
        padding: 0px;
        margin: 0;
        transition: all 0.4s ease;
    }

    .video-card {
        position: relative;
        border-radius: 16px;
        overflow: hidden;
    }

    .video-card video,
    .tab-video {
        width: 100%;
        height: 350px !important;
        object-fit: cover;
        border-radius: 16px;
    }

    .review-slider .slick-center {
        transform: scale(1);
        z-index: 2;
    }

    .review-slider .slick-slide {
        opacity: 0.6;
        transform: scale(0.8);
        transition: all 300ms ease;
    }

    .review-slider .slick-center {
        opacity: 1;
        transform: scale(1);
        transition: all 300ms ease;
    }

    .play-btn {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .play-btn::before {
        content: '';
        width: 56px;
        height: 56px;
        background: $color-primary;
        border-radius: 50%;
    }

    .play-btn::after {
        content: '';
        position: absolute;
        border-left: 14px solid #fff;
        border-top: 9px solid transparent;
        border-bottom: 9px solid transparent;
        margin-left: 4px;
    }

    .review-arrows {
        margin-top: 30px;
        display: flex;
        justify-content: center;
        gap: 12px;
    }

    .review-arrows .slick-prev,
    .review-arrows .slick-next {
        width: 44px;
        height: 44px;
        background: #eee;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .review-arrows .slick-next {
        background: $color-primary;
        color: #fff;
    }


    &.customer-reviews-you-tube {
        .tab-video {
            width: 100%;
            height: 100%;
            overflow: hidden;

            iframe {
                width: 100%;
                height: 100%;
            }
        }
    }

}

.video-sec {
    .tab-video {
        width: 100%;
        height: 640px;
        border-radius: 50px;
        overflow: hidden;

        @include breakpoint (mobile) {
            height: 400px;
            border-radius: 18px;
        }

        iframe {
            width: 100%;
            height: 100%;
        }
    }
}


// .sec-longevity {
//     .row {
//         align-items: center;
//     }
// }



.how-it-work {
    background-color: #F7F7F7;

    .coloum {
        overflow: hidden;
        height: 100%;

        figure {
            height: 230px;
            width: 100%;
            border-radius: 10px;
            overflow: hidden;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: top;
            }
        }

        .txt {
            padding: 20px 20px 0px;
            text-align: center;

            h5 {
                margin-bottom: 10px;
                margin-top: 8px;
            }

            p {
                font-size: 16px;
            }
        }

    }
}


.faq {

    .accordion {
        border: none;
    }

    .accordion-item {
        border: none;
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #E8E8E8;
    }

    .accordion-button {
        background-color: $light-grey;
        color: $color-text;
        letter-spacing: 0.5px;
        font-size: 18px;
        padding: 18px 20px;
        border: none;
        box-shadow: none;
        outline: none;
        transition: background-color 0.2s ease-in-out, color 0.2s;
    }

    .accordion-button:not(.collapsed) {
        background-color: $light-grey;
        color: $color-text;
        box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }

    .accordion-button::after {
        content: "+";
        font-size: 24px;
        font-weight: 400;

        color: $color-primary;
        background-image: none !important;
        transform: rotate(0deg);
        transition: transform 0.2s ease-in-out;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .accordion-button:not(.collapsed)::after {
        content: "–";
        transform: rotate(0deg);
        font-size: 24px;
        font-weight: 400;

        color: $color-primary;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .accordion-body {
        padding: 18px 20px;
        font-size: 15px;
        line-height: 1.6;
        background-color: $light-grey;
        color: #444;

        h6 {
            font-size: 18px;
        }

        p {
            color: #4d6978;
        }

        .icn-list {
            ul {
                li {
                    font-size: 17px;
                }
            }
        }


    }


    .accordion-body a {
        color: $color-primary;
        text-decoration: none;
        font-weight: 500;
    }

    .accordion-body a:hover {
        text-decoration: underline;
    }
}

.customer-reviews .review-slider .slick-center .play-btn {
    cursor: pointer;
}


button {
    font-family: $sans-serif;
}

// .table-responsive {
//     width: 100%;
//     overflow-x: auto;
//     -webkit-overflow-scrolling: touch;
//     scrollbar-width: thin;
// }

// @media (max-width: 768px) {
//     .table-responsive {
//         overflow-x: scroll;
//     }

//     table {
//         min-width: 700px;
//     }
// }