﻿body {
    color: var(--Inchcape-Dark-Blue);
}

.secondBannerContainer {
    display: flex;
}

.secondBannerImageContainer {
    display: flex;
    justify-content: end;
}

.secondBannerImage {
    display: block;
    position: relative;
    width: 100%;
}

.secondBannerDesktop {
    position: relative;
    display: inline-block;
    width: 100vw;
    min-height: 507px;
    height: auto;
}

    .secondBannerDesktop .image-second-banner-desktop {
        display: block;
        max-width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        z-index: 10;
        min-height: 507px;
        right: 0%;
        clip-path: polygon(54% 0, 100% 0, 100% 100%, 12% 100%);
    }

.secondBannerOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--Inchcape-Blue);
}


.secondBannerImageMobile {
    display: none;
}

.secondBannerImage img {
    width: 100%;
    height: auto;
}

.secondBannerTextContainer {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: 0rem 5rem 1rem 7rem;
    position: absolute;
    width: 50%;
}

    .secondBannerTextContainer img {
        object-fit: cover;
    }

    .secondBannerTextContainer a {
        text-decoration: none;
        color: var(--Inchcape-Dark-Blue);
        border: 1px solid var(--Inchcape-Dark-Blue);
        padding: 1rem 2rem;
        width: 50%;
        display: flex;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

        .secondBannerTextContainer a:hover {
            background-color: var(--Inchcape-Dark-Blue);
            color: var(--Inchcape-White);
        }

.secondBannerText {
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100%;
    font-family: AvantGarde Bk BT;
}

    .secondBannerText h5 {
        line-height: 50px;
        font-size: 3rem;
    }

.detailImageContainer {
    display: flex;
    justify-content: center;
}

    .detailImageContainer img {
        width: 30%;
        height: auto;
    }

.secondBannerMobile {
    display: none;
    flex-direction: column;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: xx-large;
}

    .secondBannerMobile p {
        font-weight: normal;
        font-size: medium;
    }

    .secondBannerMobile a {
        text-decoration: none;
        color: #00233A;
        border: 1px #00233A solid;
        padding: 0.5rem 3rem;
        font-size: x-large;
        width: 96%;
        display: flex;
        justify-content: center;
    }

.secondBannerTextContainerMobile {
    background-color: var(--Inchcape-Blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.secondBannerTextMobile {
    display: none;
    flex-direction: column;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 2rem;
}

    .secondBannerTextMobile h5 {
        font-size: 3rem;
        line-height: 50px;
        text-align: center;
    }

.mobileImageContainer img {
    position: relative;
    width: 100%;
}


/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .secondBannerContainer {
        display: flex;
        align-content: center;
        justify-content: center;
    }

    .secondBannerText {
        position: relative;
        top: 5em;
        align-items: center;
        font-size: xx-large;
        white-space: nowrap;
        font-weight: bold;
    }

        .secondBannerText p {
            font-size: medium;
            white-space: normal;
        }



    .secondBannerImageMobile {
        display: flex;
    }

    .secondBannerImage {
        display: none;
    }

    .secondBannerTextContainer {
        padding: 0;
        width: 75%
    }

        .secondBannerTextContainer a {
            width: 125%;
        }

    .detailImageContainer {
        display: none;
    }

    .secondBannerButton {
        font-size: x-large;
    }

    .secondBannerDesktop {
        display: none;
    }

    .secondBannerMobile {
        display: inline-block;
        width: 100%;
        flex-direction: column;
        display: flex;
        align-items: center;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {

    .secondBannerText {
        font-weight: bold;
    }

        .secondBannerText p {
            font-size: xx-small;
        }

        .secondBannerText a {
            font-size: x-small;
            padding: 0.5rem 0.5rem;
        }

    .secondBannerTextContainer {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        padding: 0rem 5rem 1rem 7rem;
        position: absolute;
        width: 75%;
    }

    .secondBannerDesktop {
        display: none;
    }

    .secondBannerMobile {
        display: inline-block;
    }

    .secondBannerTextContainerMobile .secondBannerText {
        position: absolute;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .secondBannerText p {
        font-size: x-small;
    }

    .secondBannerText h5 {
        font-size: 1rem;
        font-weight: bold;
    }

    .secondBannerButton {
        white-space: nowrap;
    }

    .secondBannerTextContainer {
        width: 50%;
    }

    .secondBannerDesktop {
        display: none;
    }

    .secondBannerMobile {
        display: inline-block;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .secondBannerText p {
        font-size: small;
    }

    .secondBannerText h5 {
        font-size: 2rem;
        font-weight: bold;
    }

    .secondBannerDesktop {
        display: inline-block;
    }

    .secondBannerMobile {
        display: none;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .secondBannerText p {
        font-size: large;
    }

    .secondBannerText h5 {
        font-size: 3rem;
        font-weight: bold;
    }

    .secondBannerText a {
        font-size: large;
    }
}
