﻿/*#region Banner*/

.bannerSwiper {
    width: 100%;
    max-width: 1200px !important;
    height: 250px !important;
    margin: 0 auto;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    padding-bottom: 30px; /* Pagination boşluğu */
}

    .bannerSwiper.swiper-horizontal {
        padding: 0 !important;
    }


    .bannerSwiper .swiper-slide {
        width: 100%;
        height: 100%;
    }


        .bannerSwiper .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

    /* Pagination bullets */
    .bannerSwiper .swiper-pagination-bullet {
        background: rgba(0, 0, 0, 0.5);
        opacity: 1;
    }

    .bannerSwiper .swiper-pagination-bullet-active {
        background: #00A651;
    }

/* Responsive */
@media (max-width: 768px) {
    .bannerSwiper {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .bannerSwiper {
        height: 150px;
    }
}
/*#endregion*/

/*#region Brandss*/

.brands {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    border-bottom: 1px solid var(--gray);
    padding: 1rem 0;
    margin: 3rem 0;
    max-width: calc(1200px - 2rem);
    overflow: hidden;
}

    .brands a {
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        justify-content: center;
        background: var(--gray);
        padding: 1rem;
        border-radius: 10px;
    }

        .brands a img {
            width: 50px;
        }

/*#endregion*/
/*#region Welcome*/
#Welcome > div {
    max-width: 575px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    #Welcome > div > h1 {
        font-size: 53px;
        line-height: 60px;
    }

        #Welcome > div > h1 span {
            color: var(--green);
        }

    #Welcome > div > p {
        margin: 1rem 0;
        font-size: 16px;
        width: 100%;
    }

    #Welcome > div > span {
        display: flex;
        gap: 1rem;
        align-items: center;
    }

#Welcome::before {
    content: "";
    max-width: 491px;
    height: 367px;
    width: 100%;
    background: var(--gray);
    position: absolute;
    top: -160px;
    right: 28px;
    z-index: -1;
}

#Welcome > img {
    width: 620px;
    position: absolute;
    right: -25px;
    bottom: -82px;
}

/*#endregion*/

/*#region Feature Cars*/

#FeatureCars {
    margin-top: 7rem;
}

    #FeatureCars > div:first-of-type {
        display: flex;
        justify-content: space-between;
        margin-bottom: 2rem;
    }

h6 {
    font-size: 18px;
}

h4 {
    color: var(--green);
    font-size: 25px;
    max-width: 650px;
}

#FeatureCars > div:first-of-type a {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: end;
}

/* Swiper container genişliği ve padding */
.swiper {
    width: 100%;
    max-width: 1200px;
    padding-bottom: 50px;
    margin: 0 auto;
}


/* Her slide flex ve ortalama */
.swiper-slide {
    display: flex;
    justify-content: center;
}

.swiper-horizontal {
    touch-action: pan-y;
    margin: 0;
    height: 490px;
    padding: 10px !important;
}

.swiper-pagination-clickable .swiper-pagination-bullet {
    cursor: pointer;
}

.swiper-pagination-bullet {
    background: var(--gray) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: var(--green) !important;
}
/* Responsive düzenleme */
@media (max-width: 992px) {
    .swiper {
        max-width: 100%;
    }

    .carBox {
        width: 45%; /* 2 sütun */
    }
}

@media (max-width: 600px) {
    .carBox {
        width: 90%; /* 1 sütun */
    }
}
/*#endregion*/

/*#region Financing Options*/

#FinancingOptions {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    margin-top: 1rem;
    gap: 3rem;
}

    #FinancingOptions > img {
        width: 80%;
        margin: auto;
        object-fit: contain;
    }

    #FinancingOptions > div > div {
        display: flex;
        flex-direction: column;
        margin-top: 1.5rem;
        gap: 1rem;
    }

        #FinancingOptions > div > div > div {
            display: flex;
            gap: 1rem;
        }

            #FinancingOptions > div > div > div > span {
            }

            #FinancingOptions > div > div > div:last-of-type > span {
                width: 37px;
                height: 25px;
            }

            #FinancingOptions > div > div > div > span i {
                width: 16px;
                height: 15px;
                display: flex;
                align-items: center;
                justify-content: center;
                background: var(--green);
                border-radius: 50%;
                z-index: 1;
                color: var(--white);
                font-size: 12px;
                padding: 4px;
            }

            #FinancingOptions > div > div > div > p {
                color: #000000;
                display: flex;
                flex-direction: column;
                gap: 4px;
                font-size: 13px;
            }

                #FinancingOptions > div > div > div > p > span {
                    font-size: 15px;
                }

/*#endregion*/

/*#region Why Choose Us*/
#WhyChooseUs {
    margin-top: 7rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

    #WhyChooseUs > div:first-of-type {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #WhyChooseUs > div:last-of-type {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

        #WhyChooseUs > div:last-of-type > div {
            display: flex;
            flex-direction: column;
            height: max-content;
            background: var(--gray);
            border-radius: 10px;
            padding: 40px 20px;
            position: relative;
            min-height: 95px;
        }

            #WhyChooseUs > div:last-of-type > div > i {
                position: absolute;
                top: -20px;
                width: 50px;
                height: 50px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 20px;
                transform: translateX(-50%);
                left: 50%;
            }

            #WhyChooseUs > div:last-of-type > div:first-of-type > i {
                background: #cf8dba;
            }

            #WhyChooseUs > div:last-of-type > div:nth-of-type(2) > i {
                background: #8f8fd2;
            }

            #WhyChooseUs > div:last-of-type > div:nth-of-type(3) > i {
                background: #d69999;
            }

            #WhyChooseUs > div:last-of-type > div:last-of-type > i {
                background: #66b27d;
            }

            #WhyChooseUs > div:last-of-type > div > p {
                display: flex;
                flex-direction: column;
                gap: 5px;
                align-items: center;
                margin-top: 10px;
                text-align: center;
                font-size: 13px;
                padding: 0 10px;
            }

                #WhyChooseUs > div:last-of-type > div > p > span {
                    font-size: 20px;
                    font-weight: 600;
                    max-width: 290px;
                    text-align: center;
                }

            #WhyChooseUs > div:last-of-type > div > span {
                position: absolute;
                bottom: -20px;
                transform: translateX(-50%);
                left: 50%;
                width: 40px;
                height: 40px;
                border-radius: 50%;
                align-items: center;
                justify-content: center;
                display: flex;
                font-size: 12px;
            }

            #WhyChooseUs > div:last-of-type > div:first-of-type > span {
                background: #cf8dba;
            }

            #WhyChooseUs > div:last-of-type > div:nth-of-type(2) > span {
                background: #8f8fd2;
            }

            #WhyChooseUs > div:last-of-type > div:nth-of-type(3) > span {
                background: #d69999;
            }

            #WhyChooseUs > div:last-of-type > div:last-of-type > span {
                background: #66b27d;
            }

/*#endregion*/

/*#region Our Review*/

#OurReview {
    margin-top: 7rem;
}

    #OurReview > div:first-of-type {
        display: flex;
        justify-content: space-between;
        margin-bottom: 2rem;
    }


        #OurReview > div:first-of-type a {
            display: flex;
            align-items: center;
            justify-content: center;
            align-self: end;
        }

.comment {
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    transition: 300ms;
}

    .comment:hover {
        box-shadow: 0 0 6px var(--green);
    }


    .comment > p:first-of-type {
        user-select: none;
        cursor: pointer;
        text-align: center;
        background: var(--gray);
        padding: 40px 30px;
        border-radius: 10px;
        font-size: 14px;
        transition: 300ms;
        min-height: 120px;
        color: var(--black);
        align-items: center;
        display: flex;
    }

    .comment > p:last-of-type {
        display: flex;
        font-size: 12px;
        flex-direction: column;
        gap: 4px;
        position: absolute;
        bottom: -40px;
        align-items: center;
        justify-content: center;
        align-self: center;
        transition: 300ms;
    }

        .comment > p:last-of-type > img {
            width: 70px;
            border-radius: 50%;
            align-self: center;
        }

        .comment > p:last-of-type > span {
            font-weight: 600;
        }

/*#endregion*/

/*#region Get In Touch*/

#GetInTouch {
    margin-top: 7rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    #GetInTouch > div:first-of-type {
        display: flex;
        flex-direction: column;
    }



    #GetInTouch > div:last-of-type {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

        #GetInTouch > div:last-of-type > div {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

            #GetInTouch > div:last-of-type > div > div {
                display: flex;
                gap: 10px;
            }

                #GetInTouch > div:last-of-type > div > div > i {
                    background: var(--green);
                    border-radius: 50%;
                    width: 30px;
                    height: 30px;
                    display: flex;
                    font-size: 15px;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    color: var(--white);
                }

                #GetInTouch > div:last-of-type > div > div > p {
                    display: flex;
                    flex-direction: column;
                    gap: 2px;
                    color: var(--dark-gray);
                    font-size: 13px;
                }

                    #GetInTouch > div:last-of-type > div > div > p > span {
                        font-size: 20px;
                    }

    #GetInTouch form {
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: var(--gray);
        border-radius: 10px;
        width: 350px;
        justify-self: flex-end;
        padding: 20px;
    }

        #GetInTouch form input {
            background: 0;
            outline: 0;
            border: 0;
            padding: 6px 2px;
            border-bottom: 1px solid gray;
            transition: 300ms;
            width: 100%;
        }

            #GetInTouch form input:focus {
                border-color: var(--green);
            }

        #GetInTouch form button {
            margin-top: 5px;
            align-self: center;
        }

/*#endregion*/

/*#region Responsive*/

@media (max-width: 1400px) {
}

@media (max-width: 1200px) {
    .brands {
        max-width: calc(100% - 2rem);
    }

    #Welcome > img {
        width: 550px;
    }

    #Welcome::before {
        max-width: 451px;
    }

    #Welcome > div > h1 {
        font-size: 49px;
    }

    #Welcome > div > p {
        font-size: 13px;
        width: 70%;
    }

    .swiper {
        width: calc(100% - 20px);
        max-width: 992px;
    }
}

@media (max-width: 992px) {
    .brands {
        max-width: calc(100% - 2rem);
        grid-template-columns: repeat(4, 1fr);
    }

    #Welcome {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        #Welcome > img {
            width: 360px;
            height: 260px;
            object-fit: contain;
            top: 111px;
            transform: translateX(-50%);
            left: 50%;
        }

        #Welcome > div > p {
            font-size: 14px;
            width: 100%;
            margin-top: 250px;
        }

        #Welcome::before {
            content: "";
            max-width: 290px;
            height: 387px;
            width: 100%;
            background: var(--gray);
            position: absolute;
            top: -160px;
            transform: translateX(50%);
            right: 50%;
            z-index: -1;
        }

    h4 {
        font-size: 23px;
    }

    h6 {
        font-size: 16px;
    }

    .carBox {
        width: 99%;
    }

    #FinancingOptions > div > div > div > span {
        background: none;
    }

        #FinancingOptions > div > div > div > span i {
            background: var(--green);
            padding: 1px;
            color: var(--white);
        }


    #WhyChooseUs > div:last-of-type {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 1rem;
    }

    #GetInTouch form {
        width: 300px;
    }

    #GetInTouch > div:last-of-type > div > div > p > span {
        font-size: 17px;
    }

    #GetInTouch > div:last-of-type > div > div > p {
        font-size: 12px;
    }

    #GetInTouch > div:last-of-type > div > div > i {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .brands {
        grid-template-columns: repeat(3, 1fr);
    }

    #Welcome > img {
        width: 360px;
    }

    #Welcome > div > h1 {
        font-size: 39px;
        width: 80%;
    }

    h6 {
        font-size: 14px;
    }

    h4 {
        font-size: 21px;
    }

    #FinancingOptions > img {
        width: 100%;
        height: 170px;
    }

    #FinancingOptions {
        display: flex;
        flex-direction: column;
    }

    #GetInTouch > div:last-of-type {
        display: flex;
        flex-direction: column;
    }

        #GetInTouch > div:last-of-type > div {
            gap: 1rem;
            width: 100%;
        }

    #GetInTouch form {
        width: 100%;
    }

    .btnGreenLink {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    h6 {
        font-size: 12px;
    }

    h4 {
        font-size: 16px;
    }

    #WhyChooseUs > div:last-of-type {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    #Welcome > div > h1 {
        font-size: 30px;
        width: 65%;
        line-height: 42px;
    }

    #Welcome > img {
        top: 80px;
    }

    #GetInTouch form {
        width: calc(100% - 40px);
    }

    .carBox > div {
        gap: 1rem;
    }

    .carBox {
        height: max-content !important;
    }

    #Welcome > div > p {
        font-size: 14px;
        width: 100%;
        margin-top: 210px;
    }

    #Welcome > img {
        width: 300px;
    }

    .brands {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*#endregion*/
