/* Hide overflow in page */
body {
    overflow-x: hidden !important;
}

.banner-images-mobile {
    display: none;
}

/* Carrousel section styles */
.box-buttom-wrapper {
    position: absolute;
    right: 0;
    top: 40%;
    text-align: right;
}

#buttonSecondary {
    margin-top: 3%;
    width: 15.625rem;
    background-color: #18BDE6;
    border-width: 0px;
    padding: 0.75rem;
}

    #buttonSecondary a {
        color: #fff;
        text-decoration: none;
    }

#firstBlackTransparentColumn {
    position: absolute;
    background-color: rgba(0,0,0,0.6);
    margin-left: 10%;
    flex-direction: column;
    justify-content: center;
    padding: 2%;
    top: 11.75rem;
    height: 26.9rem;
}

#blackTransparentColumn {
    position: absolute;
    background-color: rgba(0,0,0,0.6);
    margin-left: 10%;
    flex-direction: column;
    justify-content: center;
    padding: 2%;
    top: 11.75rem;
    height: 26.9rem;
}

.carrousel-logo-wrapper {
    display: grid;
    grid-template-columns: repeat(8, auto);
    width: 100%;
    justify-content: space-around;
    align-items: center;
}

    .carrousel-logo-wrapper img {
        max-width: 5rem;
        width: 100%;
    }

.carrousel-image-wrapper img {
    height: auto;
    object-fit: contain;
}


#buttonPrimary {
    background-color: #18BDE6;
    border-width: 0px;
    width: 15.625rem;
}

#firstButtonPrimary {
    background-color: #18BDE6;
    border-width: 0px;
    width: 15.625rem;
}

.title {
    margin-bottom: 0;
}

/* Section of form bottoms (bottoms right after banner) */

.containerTest {
    --bs-gutter-x: 0rem;
    width: 100%;
    background-color: #F0F1F2;
}

#colTest {
    height: 10.375rem;
    background-color: white;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-block: 2rem;
    margin-inline: 2rem;
}

#colService {
    height: 10.375rem;
    background-color: #002239;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-block: 2rem;
}

#subtitleElement2 {
    color: #002239;
}

/* Block section about premium brands (multi car logos) */

#blockTitle {
    margin-top: 3rem;
    height: 9.375rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#blockBrandsTop {
    height: 9.375rem;
    width: 100%;
}

#blockBrandsBottom {
    height: 9.375rem;
    width: 100%;
}

#rowBrands {
    height: 100%;
    width: 100%;
}

.boxBrandsPremium {
    display: flex;
    align-items: center;
    justify-content: center;
}

#brandIcon {
    width: 8.25rem;
}

#colLogos {
    display: flex;
    justify-content: center;
    align-items: center;
}

.textBackgroundBlack {
    background-color: rgba(0,0,0,0.6);
    width: 80%;
    padding: 0.625rem;
    border-radius: 0.3125rem;
    margin-left: 10%;
    margin-top: 32%;
}


#connectBlock {
    background-color: #002239;
    height: 17.5rem;
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#textFooter {
    color: white;
    text-align: center;
}

#textFooter1 {
    color: white;
    text-align: center;
    font-weight: 200;
    font-size: 30px;
}

#blockForm {
    height: 6.25rem;
    width: 60%;
}

#divTop {
    height: 3.75rem;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: 0%;
}

#divBottom {
    height: 2.5rem;
    width: 100%;
    display: flex;
}

#elementNote {
    margin-bottom: 2px;
}

#formView {
    width: 90%;
}

#buttonForm {
    background-color: #6A9C08;
    width: 100%;
    border-width: 0px;
}

.col.columnWithBorder:before {
    content: "";
    position: absolute;
    bottom: -1rem;
    z-index: 1;
    border-top: 1rem solid white;
    border-right: 1rem solid transparent;
    border-left: 1rem solid transparent;
    border-bottom: none;
}

@media screen and (min-width: 320px) and (max-width: 700px) {
    .carrousel-logo-wrapper img {
        max-width: 2rem;
        width: 100%;
    }

    #individual_new_container {
        display: none;
    }

    #individual_new_container_mobile {
        display: flex;
        height: 13rem;
        padding-right: 0px;
        padding-left: 0px;
    }

    .carrousel-image-wrapper img {
        height: 15rem;
        object-fit: cover;
    }

    #brandIcon {
        width: 2.25rem;
    }

    #blockTitle {
        margin-top: 0rem !important;
    }

    #containerNews {
        height: auto;
        background-color: #F0F1F2;
        padding: 0%;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    #rowNews {
        padding: 0rem;
        height: auto;
        margin: 0px;
    }

    #colNews {
        height: 70%;
    }

    .textBackgroundBlack {
        background-color: rgba(0,0,0,0.6);
        width: 100%;
        padding: 0.625rem;
        border-radius: 0rem;
        height: 30%;
        margin: 0px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #blockForm {
        width: 90%;
    }

    #aRefNews {
        width: 100%;
    }
}


/* General styles */
.carrousel-wrapper {
    padding: 0.5rem 0rem;
}

.carrousel-logo-wrapper {
    display: grid;
    grid-template-columns: repeat(7, auto);
    width: 100%;
    justify-content: space-around;
    align-items: center;
}

    .carrousel-logo-wrapper img:hover {
        filter: grayscale(0);
    }

/* Modify styles for Bootstrap carousel*/
.carousel-indicators [data-bs-target] {
    background-color: black !important;
}



.banner-image, .news-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
}

.news-image {
    display: flex;
    align-items: end;
}

    .news-image:hover {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }

.banner-image .row:first-child {
    height: 100% !important;
}

.banner-information {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url();
    height: 100%;
    padding: 6rem 3rem 3rem 3rem;
}

    .banner-information h1 {
        color: white;
    }

    .banner-information h3 {
        color: white;
    }

    .banner-information p {
        color: white;
    }

    .banner-information h1 {
        font-weight: 700;
        font-size: 3.2rem;
    }

    .banner-information h3 {
        font-size: 1.2rem;
        margin-bottom: 3rem;
    }

    .banner-information p {
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 3rem;
    }

.btn-primary {
    background-color: #18BDE6 !important;
    border-width: 0px !important;
    width: 15.625rem !important;
}

    .btn-primary:hover {
        color: #002239;
    }

.btn-primary-blue {
    background-color: #002239 !important;
    border-width: 0px !important;
    width: 15.625rem !important;
    color: white !important;
}

    .btn-primary-blue:hover {
        color: #18BDE6 !important;
    }

#premium-brands .row {
    margin: 0;
}

#premium-brands-title {
    text-align: center;
    margin: 2rem 0rem;
}

    #premium-brands-title h3 {
        color: #002239;
        font-weight: 700;
    }

.premium-brand-item {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0rem 11rem;
}

#news-section {
    background: #F0F1F2;
}

.news-details-home {
    color: white !important;
}

.premium-items {
    display: flex;
    justify-content: center;
}

.premium-brand-container {
    display: flex;
    align-content: center;
}

.brand-img {
    width: 5rem;
}

/* Styles for phones*/
@media (max-width: 481px) {

    .banner-image {
        height: 8rem;
    }

    .carrousel-logo-wrapper img {
        filter: grayscale(1);
        max-width: 2rem;
        width: 100%;
    }

    #premium-brands {
        margin-bottom: 3rem;
    }

    #news-articles {
        min-height: 90rem;
    }

    .banner-information {
        padding: 4rem 2rem 2rem 2rem;
    }

    .premium-brand-item {
        padding: 0rem 3rem;
    }

        .premium-brand-item a img {
            max-width: 3.5rem !important;
        }
}

/* Styles for tablets*/
@media (min-width: 482px) and (max-width: 980px) {
    .carrousel-logo-wrapper img {
        filter: grayscale(1);
        max-width: 4rem;
        width: 100%;
    }

    #premium-brands {
        margin-bottom: 1rem;
    }

    #news-section {
        padding: 3rem 3rem;
    }

    #news-articles {
        min-height: 40rem;
    }

    .premium-brand-item {
        padding: 0rem 5rem;
    }

        .premium-brand-item a img {
            max-width: 5rem !important;
        }
}

/* Styles for dekstops */
@media (min-width:961px) {
    .carrousel-logo-wrapper img {
        filter: grayscale(1);
        width: 5rem;
    }

    .banner-image {
        height: 27rem;
    }

    #premium-brands {
        margin-bottom: 3rem;
    }

    #news-section {
        padding: 3rem 2rem;
    }

    #news-articles {
        min-height: 40rem;
    }

    .premium-brand-item {
        padding: 0rem 9rem;
    }

    .brand-icon {
        min-width: 5rem !important;
    }

    .brand-icon-resize {
        min-width: 10rem !important;
    }
}

.banner-container {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
}

.banner-images {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3;
}

.banner-images-mobile {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.banner-text {
    position: absolute;
    bottom: 0;
    left: 2rem;
    color: white;
    background: #00000099;
    height: 100% !important;
    width: 35%;
    padding: 3rem 1rem 1rem 2rem;
}

    .banner-text h2 {
        font-weight: bold;
        font-size: 2rem;
        text-transform: uppercase;
    }

    .banner-text h5 {
        font-size: 1.3rem;
    }

    .banner-text p {
        padding: 1.5rem 0rem;
        font-size: 0.9rem;
    }

    .banner-text .button-banner {
        background-color: #18BDE6;
        text-decoration: none;
        font-size: 1rem;
        color: white;
        cursor: pointer;
        padding: 0.5rem;
        width: 70%;
        display: block;
        text-align: center;
        border-radius: 4px;
    }

        .banner-text .button-banner:hover {
            background-color: #6A9C08;
        }



@media (min-width: 1920px) {

    /* CSS */
    .banner-image {
        height: 50rem;
    }
}


/* 
  ##Device = Desktops
  ##Screen = 1281px to 1919px
*/

@media (min-width: 1281px) and (max-width: 1919px) {

    /* CSS */
    .banner-image {
        height: 27rem;
    }
}


/* 
  ##Device = Laptops, Desktops
  ##Screen = B/w 1025px to 1280px
*/

@media (min-width: 1025px) and (max-width: 1280px) {

    /* CSS */
    .banner-image {
        height: 420px;
    }
}

/* 
  ##Device = Tablets, Ipads (portrait)
  ##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) {

    /* CSS */
    .banner-images {
        height: 20rem;
    }

    .banner-text {
        left: 0;
        width: 100%;
        padding: 2rem 1rem 1rem 1rem;
    }

}

/* 
  ##Device = Tablets, Ipads (landscape)
  ##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {

    /* CSS */
    .banner-image {
        height: 16rem;
    }

    .banner-text {
        left: 0;
        width: 100%;
        padding: 2rem 1rem 1rem 1rem;
    }
}

/* 
  ##Device = Low Resolution Tablets, Mobiles (Landscape)
  ##Screen = B/w 481px to 767px
*/

@media (min-width: 481px) and (max-width: 767px) {

    /* CSS */
    .banner-images {
        height: 13rem;
        display: none;
    }

    .banner-images-mobile {
        display: block;
    }

    .banner-text {
        left: 0;
        width: 100%;
        padding: 2rem 1rem 1rem 1rem;
    }
}

/* 
  ##Device = Most of the Smartphones Mobiles (Portrait)
  ##Screen = B/w 320px to 479px
*/

@media (min-width: 320px) and (max-width: 480px) {

    /* CSS */
    .banner-images {
        height: 13rem;
        display: none;
    }

    .banner-images-mobile {
        display: block;
    }

    .banner-text {
        left: 0;
        width: 100%;
        padding: 2rem 1rem 1rem 1rem;
    }
}

.news-title-home {
    text-align: center;
    margin: 0;
    background: #F0F1F2;
}

.news-content {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 3/2;
}

    .news-content a img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .news-content:hover img {
        transform: scale(1.125);
        transition: all 500ms ease 0s;
    }

.news-description {
    position: absolute;
    bottom: 5%;
    left: 5%;
    width: 90%;
    min-height: 5rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(homePage.css);
    border-radius: 5px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.news-content:hover .news-description {
    background: rgb(24, 189, 230);
    transition: all 500ms ease 0s;
}

@media (min-width: 961px) {
    #news-articles {
        min-height: 40rem;
    }

    .news-title-home {
        padding-top: 2rem;
    }
}

#row-description-site {
    padding: 1rem 6rem;
}

@media (min-width: 768px) and (max-width: 1024px) {

    /* CSS */
    .news-title-home {
        padding-top: 2rem;
    }
}

/* 
    ##Device = Tablets, Ipads (landscape)
    ##Screen = B/w 768px to 1024px
  */

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {

    /* CSS */
    .news-title-home {
        padding-top: 2rem;
    }
}


@media (min-width: 481px) and (max-width: 767px) {

    /* CSS */
    #row-description-site {
        padding: 1rem 2rem;
    }

    .news-title-home {
        padding-top: 2rem;
    }
}

/* 
    ##Device = Most of the Smartphones Mobiles (Portrait)
    ##Screen = B/w 320px to 479px
  */

@media (min-width: 320px) and (max-width: 480px) {

    /* CSS */
    #row-description-site {
        padding: 1rem 2rem;
    }

    #containerPremium {
        padding-top: 2rem;
        display: flex;
        flex-direction: column;
    }
}
