.home {
    width: 100%;
    height: fit-content;
    
    display: inline-flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

.main-image {
    height: 797px;
    background: white;

    justify-content: flex-start;
    align-self: stretch;
    align-items: flex-start;
    display: inline-flex
}

.image-frame {
    background-image: url(../media/banner.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;

    flex: 1 1 0;
    align-self: stretch;
    padding-left: 10px;
    padding-right: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    gap: 10px;
    display: inline-flex
}

.slide-header {
    color: white;
    font-size: 80px;
    font-weight: 700;

    text-decoration: underline;
    text-align: center;
}

.secondary-image {
    background-image: url(../media/banner4.jpg);
}

.slide1, .slide2{
    padding: 100px;

    justify-content: center;
    align-items: center;

    align-self: stretch;
    display:inline-flex;
    flex-direction: column;

    overflow: hidden;
    gap: 50px;
}

.slide-truck {
    padding: 100px;

    justify-content: center;
    align-items: center;

    align-self: stretch;
    
    display: inline-flex;

    overflow: hidden;
    gap: 100px;
}

.container1 {
    background: #01285A;

    width: 960px;
    height: fit-content;

    padding: 120px;
    padding-right: 50px;
    padding-left: 50px;
    
    border-radius: 20px; 

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container2 {
    background: #ffffff;

    width: 960px;
    height: fit-content;

    padding: 100px;
    padding-right: 50px;
    padding-left: 50px;

    border-radius: 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.container-truck {
    background: #ffffff;

    width: 960px;
    height: fit-content;

    padding: 100px;
    padding-right: 50px;
    padding-left: 50px;

    border-radius: 20px; 

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.text1 {
    color: white;
    font-size: 30px;
    font-weight: 400;

    flex: 1 1 0;
    text-align: center;
    word-wrap: break-word;
}

.text2 {
    color: #01285A;
    font-size: 30px;
    font-weight: 400;

    flex: 1 1 0;
    text-align: center;
    word-wrap: break-word;
}

.image {
    border-radius: 20px;
}

/* Carousel */

.carousel-height {
    height: 700px;
}
.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel header */

.carousel-header {
    position: absolute;
    top: 43%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    
    color: white;
    font-size: 80px;
    font-weight: 700;
}

/* MEDIA SCREEN PROPERTIES */

@media only screen and (max-width: 1050px){
    .text1, .text2 {
        font-size: 25px;
    }

    .container-truck {
        width: 70%;
    }
}

@media only screen and (max-width: 991px){

    .container1, .container2 {
        width: 90%;
    }
    .slide-truck {
        flex-direction: column;
    }
}

@media only screen and (max-width: 1395px) {
    .slide-truck {
        flex-direction: column;
    }
    .container-truck {
        width: 70%;
    }
}

/* MEDIA PROPERTIES */

@media only screen and (max-width: 960px) {
    .container-truck {
        width: 507px;
    }
    .container1, .container2 {
        width: 507px;
    }
    .slide1, .slide2 {
        gap: 50px;
    }
}

@media only screen and (max-width: 550px) {
    .container-truck {
        width: 350px;
    }
    .container1, .container2 {
        width: 350px;
    }
    .image {
        width: 350px;
    }

    /* Text properties */

    .carousel-header {
        font-size: 60px;
        top: 45%;
    }

    .spacer-image-text {
        font-size: 60px !important;
    }

    .slide-header {
        font-size: 50px;
    }
}

@media only screen and (max-width: 380px) {
    .container-truck {
        width: 290px;
    }
    .container1, .container2 {
        width: 290px;
    }
    .image {
        width: 290px;
    }

    /* Text properties */

    .text1, .text2 {
        font-size: 18px;
    }

    .spacer-image-text {
        font-size: 50px !important;
    }
}

@media only screen and (max-width: 320px) {

    .container-truck {
        width: 250px;
    }

    .container1, .container2 {
        width: 250px;
    }

    .image {
        width: 250px;
    }

    .slide1, .slide2 {
        gap: 30px;
    }
    
    /* Text properties */

    .slide-header {
        font-size: 45px;
    }

    .carousel-header {
        font-size: 50px;
    }
}

/* Modern home page refresh */
.home {
    display: flex;
    background: transparent;
}

.carousel {
    position: relative;
}

.carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(11, 31, 58, 0.78), rgba(11, 31, 58, 0.28) 52%, rgba(242, 159, 5, 0.16)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.36));
}

.carousel-inner {
    box-shadow: none;
}

.carousel-height {
    height: min(82vh, 760px);
    min-height: 560px;
}

.carousel-image,
.carousel-video {
    height: 100%;
    object-fit: cover;
}

.carousel-header {
    z-index: 2;
    top: 50%;
    left: clamp(24px, 8vw, 112px);
    max-width: min(760px, 84vw);
    transform: translateY(-50%);
    font-size: clamp(54px, 8vw, 104px);
    line-height: 0.95;
    font-weight: 800;
    text-align: left;
}

.carousel-header::after {
    content: "";
    display: block;
    width: 92px;
    height: 6px;
    margin-top: 22px;
    border-radius: 8px;
    background: var(--accent);
}

.slide1,
.slide2,
.slide-truck {
    width: 100%;
    padding: clamp(58px, 8vw, 112px) clamp(18px, 6vw, 96px);
    gap: clamp(28px, 5vw, 72px);
}

.slide1 {
    background: #f8fafc;
}

.slide2 {
    background: #eef4f1;
}

.slide-header {
    margin: 0;
    color: var(--navy);
    font-size: clamp(34px, 5.6vw, 72px);
    line-height: 1;
    text-decoration: none;
    text-shadow: none;
}

.slide-header::after {
    content: "";
    display: block;
    width: 82px;
    height: 5px;
    margin: 18px auto 0;
    border-radius: 8px;
    background: var(--accent);
}

.container1,
.container2,
.container-truck {
    width: min(100%, 1040px);
    padding: clamp(30px, 6vw, 72px);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.container1 {
    background:
        linear-gradient(135deg, rgba(47, 125, 90, 0.18), transparent 48%),
        var(--navy);
}

.container2,
.container-truck {
    background: rgba(255, 255, 255, 0.94);
}

.text1,
.text2 {
    font-size: clamp(19px, 2.2vw, 29px);
    line-height: 1.55;
}

.text2 {
    color: var(--text);
}

.slide-truck {
    background: #f8fafc;
}

.image {
    width: min(100%, 520px);
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

@media only screen and (max-width: 991px) {
    .slide-truck {
        flex-direction: column;
    }
}

@media only screen and (max-width: 550px) {
    .carousel-height {
        min-height: 470px;
    }

    .carousel-header {
        left: 24px;
        font-size: clamp(46px, 16vw, 66px);
    }

    .container1,
    .container2,
    .container-truck {
        width: 100%;
    }
}
