.common_hero_section {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 385px;
    display: flex;
    align-items: center;
    justify-content: start;
    text-align: left;
    color: var(--white);
}

.common-hero-content{
    --hero-content-offset: max(138px, 5.19vw);
    width: calc(357px + var(--hero-content-offset));
    padding: 47px 0 42px var(--hero-content-offset);
    margin-bottom: 17px;
    background: var(--button-color);
}
.common_hero_section.finance {
    background-image: url(/images/hero-images/header-finance.jpg);
}
#reviews .common_hero_section {
    background-image: url(/images/hero-images/header-reviews.jpg);
}
#team-section .common_hero_section {
    background-image: url(/images/hero-images/header-team.jpg);
}
#car-sourcing .common_hero_section {
    background-image: url(/images/hero-images/header-carsourcing.jpg);
}
#about .common_hero_section {
    background-image: url(/images/hero-images/header-whoweare.jpg);
}
#servicing-page .common_hero_section {
    background-image: url(/images/hero-images/header-service.jpg);
}
#contactus .common_hero_section {
    background-image: url(/images/hero-images/header-contact.jpg);
    height: 302px;
}

.common_hero_section .btn.dark-btn {
    width: 274px;
    height: 57px;
    background: transparent;
    border: 1px solid var(--white);
    padding: 15px;
    text-transform: none;
}
.common_hero_section p {
    margin: 5px 0 16px;
    color: var(--white);
    font-size: 16px;
    font-weight: 400;
    line-height: 21px;
}
.common_hero_section h1 {
    color: var(--white);
    font-size: 32px;
    font-weight: 600;
    line-height: 36px;
    margin: 0;
}
@media screen and (max-width: 992px) {
    #contactus .common_hero_section {
        height: 180px;
    }
}
@media screen and (max-width: 767px) {
    .common_hero_section .common-hero-content {
        text-align: center;
        width: 100%;
        max-width: 400px;
        padding: 30px 20px;
        margin-bottom: 0;
    }
    
    .common_hero_section {
        height: 300px;
        padding-inline: 15px;
        justify-content: center;
        padding-bottom: 15px;
        align-items: center;
    }
    #reviews .common_hero_section {
        background-position: center left -600px;
    }
    .common_hero_section h1 {
        font-size: 26px;
        line-height: 30px;
        margin-inline: auto;
    }
    .common_hero_section p {
        font-size: 16px;
        line-height: 19px;
    }

   .common_hero_section .btn.dark-btn {
        width: 100%;
        max-width: 289px;
    }
}

/* cashforcars common hero start */

.common_hero_section.cashforcars {
    justify-content: space-between;
    padding-right: 143px;
    gap: 30px;
    background-image: url(/images/hero-images/hero-cashforcars.jpg);
}

.common_hero_section.cashforcars .right-content h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 16px;
    text-transform: capitalize;
    text-align: left;
    color: var(--white);
    margin-left: -8px;
}
.common_hero_section.cashforcars .right-content h3 img {
    margin-right: 23px;
    margin-top: -3px;
}

.common_hero_section.cashforcars .right-content p {
   font-size: 15px;
    font-weight: 400;
    line-height: 21px;
    text-align: left;
    color: var(--white);
    margin-left: 0;
    margin-bottom: 0;
    text-transform: none;
    width: 92%;
}

.common_hero_section.cashforcars .right-content {
    display: flex;
    width: 680px;
    min-height: 168px;
    padding: 28px 44px 20px 48px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.50);
    align-items: start;
    margin-top: 6px;
}

@media screen and (min-width:991px) and (max-width:1600px) {
    .common_hero_section.cashforcars {
        padding-right: 3%;
        padding-left: 3%;
    }
}

@media screen and (min-width:1200px) and (max-width:1300px) {
    .common_hero_section.cashforcars .right-content{
        padding-left: 30px;
    }
}
@media screen and (min-width:768px) and (max-width:1200px) {
    .common_hero_section.cashforcars {
        flex-direction: column;
        height: auto;
        padding-bottom: 50px;
        padding-top: 50px;
        gap: 20px;
    }
}
@media screen and (min-width:768px) and (max-width:992px) {
    .common_hero_section.cashforcars{
        padding-inline:4% ;
    }
}

@media screen and (min-width:1200px) {
    .common_hero_section.cashforcars .right-content{
        margin-top: 20px;
    }
}
@media screen and (max-width:767px) {
    .common_hero_section.cashforcars {
        flex-direction: column;
        height: auto;
        padding-bottom: 30px;
        gap: 10px;
        align-items: center;
        justify-content: center;
        padding: 25px 20px 45px;
    }
    
    .common_hero_section.cashforcars .right-content {
        width: 100%;
        gap: 20px;
        padding: 22px 20px;
        flex-direction: column-reverse;
        align-items: center;
    }

    .common_hero_section.cashforcars .right-content h3 {
        font-size: 17px;
        margin-bottom: 15px;
        text-align: center;
        line-height: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-inline: auto;
        align-items: center;
    }
    .common_hero_section.cashforcars .right-content h3 img {
        margin: 0;
    }
    .common_hero_section.cashforcars .right-content p {
        font-size: 14px;
        margin-bottom: 0;
        line-height: 18px;
        text-align: center;
        margin-inline: auto;
    }

    #cashforcars .common_hero_section {
        gap: 30px;
        flex-direction: column;
        height: auto;
        padding-top: 50px;
    }
    #car-sourcing .common_hero_section .dark-btn {
        width: 100%;
        font-size: 14px;
    }
}

@media screen and (min-width:560px) and (max-width:767px) and (orientation: landscape) {
    .common_hero_section.cashforcars .right-content {
        width: 500px;
    }
}

@media screen and (max-width:331px){
    #car-sourcing .common_hero_section .dark-btn {
        font-size: 12px;
    }
}