/* Search bar */
.searchBar {
    width: 700px;
    display: flex;
    align-items: center;
    padding: 10px;
    padding-left: 20px;
    border-radius: 40px;
    background-color: #ededed;
    transition: box-shadow 0.25s;
}

    .searchBar:focus-within {
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.75);
    }

.searchBar-input {
    outline: none;
    border: none;
    background: transparent;
    font-size: 1rem;
    width: 100%;
    max-width: 700px;
    margin-left: 15px;
}

/* Categories slider */
.categoriesSection {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.wrapper .carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 3)-12px);
    gap: 16px;
    overflow: hidden;
}

.carousel .card {
    height: 342px;
    list-style: none;
    background: #fff;
    border-radius: 8px;
    align-items: center;
}

.card .img img {
    width: 140px;
    height: 140px;
    object-fit: cover;
}

/* Categories slider */
.swiper::before,
.swiper::after {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    content: "";
    z-index: 2;
}

.swiper::before {
    left: 0;
    background: linear-gradient(to left, rgba(255,255,255,0),white);
}

.swiper::after {
    right: 0;
    background: linear-gradient(to right, rgba(255,255,255,0),white);
}

.swiper-slide {
    width: 250px;
}

.categories {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 25px;
    height: 135px;
    width: 210px;
    background-color: white;
    border: 1px solid #c2c2c2;
    border-radius: 15px;
    box-shadow: 0px 4px 7px 0px #3d3d3d;
    transition: 0.2s;
}

    .categories:hover {
        border: 4px solid #db1a20;
        background-color: white;
        color: black;
        transform: scale(1.1);
    }

    .categories:focus {
        border: 4px solid #a70c12;
        background-color: white;
        color: black;
        transform: scale(1.1);
    }

.selectedCategory {
    border: 4px solid #a70c12;
    background-color: white;
    color: black;
    transform: scale(1.1);
}

.categoriesImg {
    width: 100%;
}

    .categoriesImg img {
        height: 80px;
        width: auto;
        object-fit: cover;
    }

.swiper-button-prev, .swiper-button-next {
    background-color: transparent;
    color: #a70c12;
    width: 60px;
    cursor: pointer;
}

/* Question & Answer */
.faq-section {
    padding-top: 5%;
    padding-bottom: 2%;
}

.faq {
    list-style: none;
    width: 100%;
}

    .faq li {
        background-color: transparent;
        border-bottom: 1px #ccc solid;
    }

.q {
    cursor: pointer;
}

    .q:hover, .faq li q:hover {
        background-color: #f2f2f2;
    }

.bi-chevron-right {
    height: auto;
    display: inline-block;
    transition: 0.3s;
}

.bi-chevron-right-rotated {
    transform: rotate(90deg);
}

.a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease;
}

.a-opened {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 2s ease;
}

.faqAns {
    margin-bottom: 1.5rem;
}