* {
    box-sizing: border-box;
}

body {
    font-family: 'NanumSquareAceb';
    font-family: 'NanumSquareAcb';
    font-family: 'NanumSquareAcr';
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden; 
}

h2 {
    color: #2b2b2b;
    word-break: keep-all; 
    overflow-wrap: break-word;
    font-family: 'NanumSquareAcb';
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #5A3FFF;
    overflow: hidden; 
}



.trade-in {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 0px;
}

.trade-in img {
    width: 100%;
    max-width: 400px;
    margin-top: -30px;
    margin-right: 30px;
}

.trade-in img {
    cursor: pointer;
}


.content {
    margin-top: 40px;
    padding: 0px 20px;
    z-index: 10;
}

.content h3 {
    color: #FFDB4E;
    font-size: 17px;
    margin-bottom: 12px;
}

.content h1 {
    color: #ffffff;
    font-size: 38px;
    line-height: 145%;
    margin-top: 0px;
    font-family: 'NanumSquareAceb';
}

.content p {
    color: #ffffff;
    font-size: 16px;
    font-family: 'NanumSquareAcr';
}

@media (min-width: 1400px) {
    header {
        height: 640px;
    }

    .trade-in {
        flex-direction: row;
        padding-bottom: 0px;
        padding-left: 100px;
    }

    .trade-in img {
        max-width: 1000px;
        height: 600px;
        width: auto;
        margin-top: 0px;
        margin-right: 0px;
    }

    .content {
        margin-top: 0;
        margin-right: -200px;
        text-align: left;
    }

    .content h3 {
        font-size: 20px;
    }
    
    .content h1 {
        font-size: 40px;
    }
    
    .content p {
        font-size: 16px;
        font-family: 'NanumSquareAcr';
    }
}

@media (max-width: 1400px) {
    .trade-in img {
        content: url('src/main_banner_mo.jpg');
    }
}




.benefits {
    margin: 60px auto;
    max-width: 1280px;
    padding: 0px 20px;
    text-align: center;
}

.benefits h2 {
    text-align: center;
    margin-bottom: 20px;
    line-height: 140%;
    font-weight: 800;
}

.benefit-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; 
}

.benefit {
    flex: 1 1 calc(25% - 20px); 
    min-width: 240px;
    margin: 10px;
    padding: 52px 20px 48px 20px;
    text-align: center;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0px 8px #3a38761A;
}

.benefit img {
    width: 108px;
    height: auto;
}

.benefits p {
    line-height: 80%;
    color: #2b2b2b;
    font-family: 'NanumSquareAcr';
}

.benefit p.title {
    font-size: 16px;
    font-weight: 600;
    color: #2b2b2b;
    font-family: 'NanumSquareAcb';
}

.benefit p.subtitle {
    font-size: 14px;
    color: #656565;
    font-family: 'NanumSquareAcr';
}

@media (max-width: 1280px) {
    .benefit-container {
        justify-content: center; 
    }

    .benefit {
        flex: 1 1 calc(33.33% - 20px); 
        max-width: calc(33.33% - 20px); 
    }
}

@media (max-width: 992px) {
    .benefit {
        flex: 1 1 calc(50% - 20px); 
        max-width: calc(50% - 20px); 
    }
}

@media (max-width: 768px) {
    .benefit {
        flex: 1 1 90%; 
        max-width: 90%; 
    }
}









.instructions {
    text-align: center;
    padding: 36px;
    background-color: #F1F1FB;
    margin: 0 auto;
}

.instructions h2 {
    margin-bottom: 20px;
}

.instructions .buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.instructions .button {
    width: 114px;
    height: 38px;
    background-color: #534DF8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 15px;
}

.instructions .button:hover {
    background-color: #423EC6;
}

@media (max-width: 600px) {
    .instructions .buttons {
        flex-direction: column;
        align-items: center;
    }
}





.estimate-apply {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin: 60px auto; 
    max-width: 1280px; 
    padding: 0px 20px;
}

.estimate, .apply {
    flex: 1 1 45%;
    margin: 10px;
    text-align: center;
    padding: 16px 20px 16px 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    box-shadow: 0 0px 8px #3a38761A;
}

.estimate {
    background-color: #D0E5FB;
}

.apply {
    background-color: #CFDEFE;
}

.estimate img, .apply img {
    width: 250px;
    height: auto;
}

.estimate-apply p {
    font-size: 13px;
    color: #000000ab;
    margin-top: 12px;
}

.estimate-apply .button {
    width: 180px;
    height: 46px;
    background-color: #534DF8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 18px;
    margin-top: 10px;
}

.estimate-apply .button:hover {
    background-color: #423EC6;
}

@media (min-width: 970px) {
    .estimate-apply {
        flex-direction: row;
    }
    .estimate img, .apply img {
        width: 400px;
        height: auto;
    }
}





.steps {
    margin: 60px auto; 
    max-width: 1280px; 
    padding: 0px 20px;
    text-align: center; 
}

.steps h2 {
    text-align: center;
    margin-bottom: 20px;
}

.step-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.step {
    flex: 1 1 200px;
    max-width: 300px;
    margin: 10px;
    padding: 16px 20px 20px 20px;
    text-align: center;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0px 8px #3a38761A;
}

.step img {
    width: 50px;
    height: auto;
    margin-bottom: 5px;
}

.step p {
    font-size: 15px;
    font-weight: 500;
    color: rgb(62, 62, 62);
    font-family: 'NanumSquareAcb';
}

.step h4 {
    font-size: 15px;
    font-family: 'NanumSquareAcb';
    color: #9c9c9c;
    margin-bottom: 16px;
}




footer {
    background-color: #f0f0f0;
    color: rgb(82, 82, 82);
    padding: 40px 0px 20px 0px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    text-align: left; 
    padding: 0 20px;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-content h4 {
    margin: 5px 0px 10px 0px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-content h5{
    margin-top: 15px;
    color:#a8a8a8;
}
