@import 'init';

/* banner */
.banner {
    display: none !important;
    &.active {
        display: block !important;
    }
    .carousel-caption {
        top: 50%;
        bottom: unset;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .title {
        margin-left: auto;
        margin-right: auto;
    }
}
.carousel-control-prev,
.carousel-control-next {
    opacity: 1;
}
@icon-size: 42px;
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: unset;
    width: @icon-size;
    height: @icon-size;
    &::before {
        font-family: 'Font Awesome 5 Free';
        font-weight: 700;
        font-size: @icon-size;
        color: white;
    }
}
.carousel-control-prev-icon::before {
    content: '\f0a8';
}
.carousel-control-next-icon::before {
    content: '\f0a9';
}
.carousel-indicators {
    margin-bottom: 6rem;
}
.carousel-indicators [data-bs-target] {
    color: white;
    background: transparent;
    border: 2px solid white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    opacity: 1;
    text-indent: 0;
    margin-left: 7px;
    margin-right: 7px;
    &.active {
        background-color: white;
    }
}
.carousel-item {
    img {
        object-fit: cover;
        height: ~'calc(100vh - 112px)';
    }
    .overlay {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: rgba(0,0,0,0.4);
    }
}
@media only screen and (max-width: 991px) {
    .carousel-item img {
        height: 500px;
    }
}
@media only screen and (max-width: 767px) {
    .banner {
        padding-top: 0;
        padding-bottom: 0;
    }
    .carousel-indicators {
        display: none;
    }
    @icon-size: 18px;
    .carousel-control-prev-icon, 
    .carousel-control-next-icon {
        width: @icon-size;
        height: @icon-size;
        &::before {
            font-size: @icon-size;
        }
    }
    
    .carousel-item img {
        height: ~'calc(100vh - 102px)';
    }
}
#home-about, #testimonials {
    h1, .title {
        .title-80
    }
}
#home-about {
    text-align: center;
}
.home-2-wrapper {
    display: flex;
    margin-bottom: 10px;
    .info, .image {
        width: 50%;
        min-height: 475px;
    }
    .info {
        padding: 2rem 9rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-color: @khaki;
        color: white;
        a {
            text-decoration: none;
            color: @cream;
        }
    }
    .image {
        background-size: cover;
        background-position: center;
    }
    &:nth-child(even) {
        .info {
            order: 2;
            background-color: @cream;
            color: black;
            a {
                color: black;
            }
        }
        .image {
            order: 1;
        }
    }
}
#testimonials {
    scroll-margin-top: 110px;
    padding-top: 6rem;
    padding-bottom: 10rem;
    margin-top: -4rem;
    .sup-title, .title {
        text-align: center;
    }
    .slick-prev, .slick-next {
        &:before {
            color: black;
        }
    }
    .slick-dots li {
        button {
            border: 2px solid black;
            border-radius: 50%;
            &::before {
                display: none;
            }
        }
        &.slick-active button {
            background-color: black;
        }
    }
    .slick-track {
        display: flex;
        align-items: stretch;
    }
}
.testimonial-wrapper {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    border: 2px solid @gray-border;
    border-radius: 10px;
    padding: 2.75rem;
    display: flex !important;
    flex-direction: column;
/*    justify-content: space-between;*/
    justify-content: flex-start;
    height: auto;
    gap: 1rem;
    .author {
        font-weight: 700;
        color: @khaki;
    }
}
@media only screen and (max-width: 1399px) {
    .home-2-wrapper .info {
        padding-left: 4rem;
        padding-right: 4rem;
    }
    .testimonial-wrapper {
        padding: 1rem;
    }
}
@media only screen and (max-width: 991px) {
    .carousel-indicators {
        display: none;
    }
    #home-about, #testimonials {
        h1, .title {
            font-size: 3em;
        }
    }
    .home-2-wrapper {
        .info, .image {
            min-height: unset;
        }
        .info {
            width: 100%;
        }
        .image {
            display: none;
        }
    }
    #testimonials {
        padding-bottom: 4rem;
        .slick-dots {
            bottom: -25px;
        }
    }
    .testimonial-wrapper {
        gap: 1.5rem;
    }
}
@media only screen and (max-width: 767px) {
    #home-about, #testimonials {
        h1, .title {
            font-size: 2em;
        }
    }
    .home-2-wrapper {
        .info {
            padding: 1rem;
        }
    }
    #testimonials {
        padding-bottom: 2rem;
        .slick-prev {
            left: -8px;
        }
        .slick-next {
            right: -8px;
        }
    }
    .testimonial-wrapper {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
        gap: 1rem;
    }
}