﻿#content_site {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel{
    width: 100%;
}

.carousel-item {
    height: 530px;
}

    .carousel-item img {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
    }

span {
    background-color: transparent !important;
}

#main_site {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background-color: white;
    position: relative;
}

    #main_site > div:first-child {
        position: absolute;
        top: -50px;
        background-color: white;
    }

.div_site {
    display: flex;
    flex-wrap: wrap;
    padding: 40px 20px;
}

    .div_site .col-8 {
        display: flex;
        justify-content: center;
        flex-direction: column;
        font-family: 'Times New Roman', Times, serif;
    }

        .div_site .col-8 strong {
            font-size: 18px !important;
        }

            .div_site .col-8 strong span {
                font-size: 18px !important;
            }

#main_site .div_site:nth-of-type(odd) {
    background-color: white;
}

#main_site .div_site:nth-of-type(even) {
    background: linear-gradient(100deg, #110C6C, #327DA0);
    color: #FFD700;
}

.scrollable-div {
    width: 980px;
    height: 250px;
    overflow: hidden;
    margin-bottom: 10px;
    scroll-behavior: smooth;
    display: flex;
    align-items: center;
}

.scrollable-content {
    display: inline-flex;
}

    .scrollable-content .item {
        scroll-snap-align: center;
        background-color: red;
        margin-right: 20px;
        min-width: 300px;
        height: 230px;
        text-align: center;
        box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
    }

        .scrollable-content .item img {
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            width: 100%;
            height: 100%;
        }

.bxs-left-arrow,
.bxs-right-arrow {
    cursor: pointer;
    font-size: 35px;
}

.item_home {
    width: 30%;
    flex: 0 0 auto;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    margin: 30px 1.5%;
    height: 350px;
    display: flex;
    flex-direction: column;
    padding: 0;
}

    .item_home .item_img {
        height: 50%;
        position: relative;
    }

    .item_home img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        position: absolute;
        top: -10px;
        left: -10px;
    }

    .item_home .item_text {
        height: 50%;
        padding: 10px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

        .item_home .item_text p {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            margin: 5px 0 0 0;
        }

        .item_home .item_text .read_more {
            margin-top: 8px;
            font-weight: 700;
            color: rgb(170, 170, 170);
            text-decoration: none;
        }

            .item_home .item_text .read_more:hover {
                font-weight: 800;
                color: rgb(100, 100, 100);
            }

@media only screen and (max-width: 992px) {
    #main_site > div:first-child {
        position: relative;
    }

    #main_site > div:nth-child(2) {
        margin-top: 0 !important;
    }
}

@media only screen and (max-width: 800px) {
    #main_site > div:first-child {
        top: 0;
    }

    .div_site .col-8 {
        width: 100%;
    }

    .div_site .col-4 {
        width: 100%;
    }

    .item_home {
        width: 46%;
        margin: 30px 2%;
    }
}

@media only screen and (max-width: 600px) {
    .row {
        width: 100%;
    }

    .carousel-item {
        height: 350px;
    }

    .carousel-caption {
        bottom: 0;
        padding-bottom: 3px;
        font-size: 14px;
    }

    .scrollable-div {
        width: 700px;
        height: 200px;
        margin-left: 30px;
    }

    .scrollable-content .item {
        min-width: 214px;
        height: 180px;
    }

    .item_home {
        width: 90%;
        margin: 30px auto;
    }
}
