/* SECTION-SLIDER */
.section-slider {
    width: 100%;
    height: 500px;
    margin-top: 0;
    z-index: 2;
}

.swiper-container {
    height: 100%;
    width: 100%;
}

.swiper-slide {
    position: relative;
    background-color: #2b2b2b;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.section-slider .row{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
}

/* SECTION PROFESSIONALISM */
.section-professionalism .row {
    background-color: #f5f5f5;
    padding: 15px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.red-box {
    color: #fff;
    padding: 7px 15px;
    margin: 0;
    font-size: 170%;
    font-weight: 400;
    text-transform: uppercase;
    border: 4px solid #002546;
    background-color: #dd2a1b;
    width: 100%;
}

.info-box-description {
    margin: 30px 10px;
    font-size: 90%;
    font-weight: 500;
    line-height: 145%;
}

.info-box-description span {
    font-size: 100%;
    font-weight: 500;
    display: inline-block;
}

.left-box {
    height: 100%;
    flex: 0 1 45%;
    margin: 10px 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.left-box div {
    width: 100%;
}

.right-box {
    flex: 0 1 55%;
    margin: 20px auto;

    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.right-box ion-icon {
    font-size: 1500%;
}

/* SECTION NEWS */
.news {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.news-box {
    width: 23%;
    margin: 0 auto;
    color: #002546;
    display: flex;
    flex-direction: column;
    align-items: start;
    overflow: hidden;
}

.news-img {
    width: 100%;
    margin-bottom: 10px;
}

.news-img img {
    width: 100%;
    height: auto;
}

.news-description {
    width: 100%;
    font-size: 90%;
    line-height: 130%;
    text-overflow: ellipsis;
}

.news-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    margin-right: 15px;
    text-align: right;
}

.section-news .btn:link,
.section-news .btn:visited,
.section-news .btn:hover,
.section-news .btn:active {
    font-size: 90%;
    color: #dd2a1b;
    margin-top: 40px;
    float: right;
}

.section-news .btn:link ion-icon,
.section-news .btn:visited ion-icon,
.section-news .btn:hover ion-icon,
.section-news .btn:active ion-icon {
    font-size: 90%;
}

/* SECTION BTN LINKS */
.btn-box {
    width: 100%;
    height: 300px;

    display: flex;
}

.catalogue-box,
.stock-box {
    position: relative;
    height: 100%;
    transform: skew(-40deg);
    transition: all 0.4s;

    flex: 1;
}

.catalogue-box {
    margin-left: -20%;
    border-right: 4px solid #fff;
}

.stock-box {
    margin-right: -20%;
    border-left: 4px solid #ffffff;
    overflow: hidden;
}

.catalogue-details,
.stock-details {
    position: absolute;
    width: 140%;
    height: 100%;
    transform: skew(40deg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
}

.catalogue-details {
    right: -40%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(background_img/truck-parts.jpeg);
}

.stock-details {
    left: -40%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(background_img/writing-man.jpeg);
}

.catalogue-details:link p,
.catalogue-details:visited p,
.catalogue-details:hover p,
.catalogue-details:active p,
.stock-details:link p,
.stock-details:visited p,
.stock-details:hover p,
.stock-details:active p {
    color: #fff;
    font-size: 160%;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.4s;
}

.catalogue-box:hover,
.stock-box:hover {
    flex: 1.45;
}

/* SECTION FORM */
.section-form {
    margin-bottom: 100px;
}

.section-form span {
    font-size: 100%;
    font-weight: 300;
    float: right;
    margin: 50px 30px 0 auto;
}

.form-box {
    margin-bottom: 20px;

    display: flex;
    justify-content: space-between;
}

.form-box:last-of-type {
    margin-bottom: 0;
}

label {
    height: auto;
    font-size: 95%;
    font-weight: 500;
    padding-top: 10px;

    flex: 0 1 35%;
}

input[type=text],
input[type=email],
input[type=tel],
select,
textarea,
button[type=submit] {
    border: 1px solid #002546;
    border-radius: 4px;
    transition: border 0.3s, background-color 0.3s;
}

input[type=text]:hover,
input[type=email]:hover,
input[type=tel]:hover,
select:hover,
textarea:hover {
    border: 1px solid #888;
    background-color: #eee;
}

input[type=text],
input[type=email],
input[type=tel],
select,
textarea {
    height: 45px;
    padding: 7px;

    flex: 0 1 65%;
}

textarea {
    height: 140px;
    resize: none;
}

button[type=submit] {
    color: #fff;
    background-color: #dd2a1b;
    font-weight: 500;
    padding: 12px 20px;
    margin-bottom: 0;
    transition: background-color 0.5s, color 0.5s;
    cursor: pointer;
    border-width: 2px;
}

button[type=submit]:hover {
    background-color: #eb4f41;
}

button[type=submit] ion-icon {
    margin-bottom: -3px;
    margin-left: 5px;
}

/*
*
*
*   QUARIES
*
*
*/


@media only screen and (max-width: 1140px) {
    /* SECTION SLIDER */

    .btn {
        margin-left: 30px;
    }

    .news-box {
        width: 22%;
    }
    
    .contact-form {
        margin: 0 30px;
    }

    /* SECTION NEWS */
    .news-box {
        width: 30%;
        height: auto;
    }

    .news-box h3 {
        font-size: 100%;
    }

    .news-box p {
        font-size: 90%;
    }

    .news-btn {
        font-size: 80%;
    }

    /* SECTION BTN LINKS */
    .btn-box {
        height: 200px;
    }

    .catalogue-details:link p,
    .catalogue-details:visited p,
    .catalogue-details:hover p,
    .catalogue-details:active p,
    .stock-details:link p,
    .stock-details:visited p,
    .stock-details:hover p,
    .stock-details:active p {
        font-size: 140%;
    }

    /* SECTION PROFESSIONALISM */
    .left-box {
        flex: 1;
    }

    .right-box {
        display: none;
    }

    /* SECTION FORM */
    .form-box {
        flex-direction: column;
        max-width: 100%;
        margin: 0 0 10px 0;
        font-size: 20px;
    }

    label {
        margin-bottom: 5px;
    }

    input[type=text],
    input[type=email],
    input[type=tel],
    select,
    textarea {
        width: 100%;
    }

    textarea {
        padding-bottom: 70px;
    }

    button[type="submit"] {
        width: fit-content;
        margin: 0 auto;
        margin-top: 20px;
    }
}

@media only screen and (max-width: 780px) {
    /* SECTION NEWS */
    .news {
        flex-direction: column;
        width: 90%;
        margin: 0 5%;
        font-size: 20px;
    }

    .news-box {
        width: 100%;
        margin-bottom: 40px;
    }

    .news-img {
        height: 250px;
        overflow: hidden;
    }

    .news-img img {
        position: relative;
        object-fit: cover;
    }

    .news-title {
        font-size: 120%;
    }

    .news-description p {
        font-size: 100%;
    }
}

@media only screen and (max-width: 480px) {
    /* SECTION SLIDER */
    .section-slider {
        height: 300px;
    }

    h1 {
        font-size: 150%;
        margin-top: 0;
    }

    /* SECTION NEWS */
    .news-box {
        width: 100%;
        margin-bottom: 40px;
    }

    .news-img {
        height: 150px;
        overflow: hidden;
    }

    .news-img img {
        position: relative;
        object-fit: cover;
    }

    .news-title {
        font-size: 120%;
    }

    .news-description p {
        font-size: 100%;
    }

    /* SECTION BTN LINKS */
    .catalogue-box {
        margin-left: -40%;
    }

    .stock-box {
        margin-right: -40%;
    }

    .catalogue-details:link p,
    .catalogue-details:visited p,
    .catalogue-details:hover p,
    .catalogue-details:active p,
    .stock-details:link p,
    .stock-details:visited p,
    .stock-details:hover p,
    .stock-details:active p {
        font-size: 110%;
    }
}