/* 404 Error Page Styles - Based on Figma Design */

.error404-section {
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    min-height: 800px;
    margin-top: 86px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

@media (min-width: 1400px) {
    .error404-section {
        min-height: 912px;
    }
}

@media (max-width: 991px) {
    .error404-section {
        min-height: auto;
        padding: 80px 0 60px;
    }
}

@media (max-width: 575px) {
    .error404-section {
        margin-top: 70px;
        padding: 60px 0 40px;
    }
}

/* 404 Layout - Flexbox with content left, image right */
.error404-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.error404-content {
    min-width: 540px;
    max-width: 540px;
    padding: 40px 0;
    flex-shrink: 0;
}

.error404-image {
    margin-left: 30px;
    margin-right: -140px;
    flex-shrink: 0;
}

.error404-image img {
    width: 680px;
    min-width: 680px;
    height: auto;
    display: block;
}

@media (max-width: 1399px) {
    .error404-image {
        margin-right: -100px;
    }
}

@media (max-width: 1199px) {
    .error404-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .error404-content {
        min-width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .error404-content .dmBtnBox {
        justify-content: center;
    }
    
    .error404-image {
        margin-left: 0;
        margin-right: 0;
        margin-top: 40px;
    }
    
    .error404-image img {
        width: 100%;
        min-width: auto;
        max-width: 500px;
    }
}

@media (max-width: 991px) {
    .error404-content {
        padding: 20px 0;
    }
}

.error404-title {
    font-size: 48px;
    line-height: 58px;
    font-weight: 400;
}

@media (max-width: 991px) {
    .error404-title {
        font-size: 36px;
        line-height: 46px;
    }
}

@media (max-width: 575px) {
    .error404-title {
        font-size: 30px;
        line-height: 40px;
    }
}

.error404-desc {
    font-size: 18px;
    line-height: 30px;
    color: #2c3e5c;
}

@media (max-width: 575px) {
    .error404-desc {
        font-size: 16px;
        line-height: 26px;
    }
}
