/* Clearance Wrapper */
.clearance-wrapper {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

/* Clearance Banner Section */
.clearance-section {
    margin: 2px 0 5px 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    background-color: #183838;
}

/* Rest of the styles remain identical to the refined clearance.css above */
.clearance-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.clearance-image-wrapper {
    flex: 0 0 66.666%;
    height: 500px;
    background-color: #183838;
    position: relative;
    overflow: hidden;
    display: block;
}

.clearance-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    display: block !important;
    visibility: visible;
}

.clearance-image-wrapper[data-image-status="failed"] {
    background-color: #ff0000;
}

.clearance-text-wrapper {
    flex: 0 0 33.333%;
    background-color: #183838;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    font-family: 'Poppins', sans-serif;
}

.clearance-text-wrapper h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.clearance-text-wrapper h5 {
    font-size: 1.25rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.clearance-link {
    text-decoration: underline;
    transition: color 0.3s ease;
}

.clearance-link:hover {
    color: #FFF4CA;
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .clearance-container {
        flex-direction: column;
        min-height: 0;
    }
    .clearance-image-wrapper {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
        min-height: 200px;
    }
    .clearance-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        position: static;
    }
    .clearance-text-wrapper {
        flex: 0 0 auto;
        width: 100%;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }
    .clearance-text-wrapper h2 {
        font-size: 1.25rem;
    }
    .clearance-text-wrapper h5 {
        font-size: 0.875rem;
    }
}

/* Small Mobile (max-width: 576px) */
@media (max-width: 576px) {
    .clearance-image-wrapper {
        height: 150px;
        min-height: 150px;
    }
    .clearance-text-wrapper {
        padding: 0.75rem;
    }
    .clearance-text-wrapper h2 {
        font-size: 1rem;
    }
    .clearance-text-wrapper h5 {
        font-size: 0.75rem;
    }
}

/* iPad (768–1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .clearance-image-wrapper {
        height: 300px;
    }
    .clearance-text-wrapper {
        padding: 1.5rem;
    }
    .clearance-text-wrapper h2 {
        font-size: 1.5rem;
    }
    .clearance-text-wrapper h5 {
        font-size: 1rem;
    }
}

/* 12-inch (1025–1365px) */
@media (min-width: 1025px) and (max-width: 1365px) {
    .clearance-image-wrapper {
        height: 400px;
    }
    .clearance-text-wrapper {
        padding: 1.75rem;
    }
    .clearance-text-wrapper h2 {
        font-size: 1.75rem;
    }
    .clearance-text-wrapper h5 {
        font-size: 1.125rem;
    }
}

/* 16-inch (1536–1920px) */
@media (min-width: 1536px) and (max-width: 1920px) {
    .clearance-image-wrapper {
        height: 600px;
    }
    .clearance-text-wrapper h2 {
        font-size: 2.25rem;
    }
    .clearance-text-wrapper h5 {
        font-size: 1.5rem;
    }
}

/* 23-inch (1921–2559px) */
@media (min-width: 1921px) and (max-width: 2559px) {
    .clearance-image-wrapper {
        height: 700px;
    }
}

/* 27-inch (2560–3839px) */
@media (min-width: 2560px) and (max-width: 3839px) {
    .clearance-image-wrapper {
        height: 750px;
    }
    .clearance-text-wrapper h2 {
        font-size: 2.5rem;
    }
    .clearance-text-wrapper h5 {
        font-size: 1.5rem;
    }
}

/* 32-inch (3840px and up) */
@media (min-width: 3840px) {
    .clearance-image-wrapper {
        height: 800px;
    }
    .clearance-text-wrapper h2 {
        font-size: 2.75rem;
    }
    .clearance-text-wrapper h5 {
        font-size: 1.75rem;
    }
}
