
body{
    /* background-color: #3D3C43; */
    /* padding: 0 4rem; */
}





.background__section {
    position: relative;
    background-image: linear-gradient(rgba(83, 83, 83, 0.5), rgba(83, 83, 83, 0.5)), url("../images/banner/photo-1604153806126-de074b474fe4-ezgif.com-avif-to-jpg-converter.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 0;
    width: 100%;
    height: 90vh;
}



.background__text__content{
    margin-top: 14rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.background__text__content h1{
    color: #fff;
    font-weight: 600;

}

.background__text__content .short_article{
    color: #fff;
    width: 30%;
    text-align: center;
    font-size: 17px;
    font-weight: 500;

}
.search-container {
    position: relative;
    width: 100%;
    max-width: 700px; 
    margin-bottom: 1rem;
}

.search-container input {
    width: 600px;
    padding: 10px 40px 10px 10px;
    border: 1px solid #ccc;
    border-radius: 9px;
}

.search-container i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.dropdown_input_section {
    display: flex;
    gap: 1rem;
}

.dropdown-container {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    /* max-width: 200px; */
}

.dropdown-container select {
    width: 500px;
    padding: 10px 40px 10px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    appearance: none; 
    background-color: #fff;
    font-size: 14px;
}

.dropdown-container i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
}

.recent_blog {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.recent_blog h1{
    color: #fff;
    font-weight: 600;
}

.sorting{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #cccbd0;
    width: 200px;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.sorting span{
    font-size: 15px;
    font-weight: 500;
    opacity: 0.8;
}

.cases__section{
    display: flex;
    /* align-items: center; */
    justify-content: center;
    
    background-color: #3D3C43;
  
}

.second-container{
    background-color: #3D3C43;
}
.container-form{
    /* height: 100%; */
    background-color: #fff;
    padding: 2rem 2rem;
    border-radius: 0.7rem;
    
    width: 50%;
}

.container-form form{
    width: 100%;
}

.container-form .dropdown-container{
    margin-top: 0.9rem;
}

.container-form select{
    margin-top: 0.3rem;
    width: 100%;
}

.container-form .dropdown-container i {
    position: absolute;
    right: 10px;
    top: 70%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
}

.container-form h4{
    font-size: 16px;
    font-weight: 600;
}

 .boxes{
    width: 300px;
    background-color: #fff;
    /* height: 400px; */
    border-radius: 0.6rem;
    padding-bottom: 1.4rem;
}
.images-section {
    border-top-left-radius: 0.6rem;
    border-top-right-radius: 0.6rem;
    overflow: hidden; /* Ensures child images don't spill outside the border radius */
}

 .main-content{
    padding-top: 0.5rem;
}



 .boxes h4{
    font-size: 15px;
    text-align: center;
    
}

.container-boxes{
    display: flex;
    align-items: center;
    /* justify-content: center; */
    flex-wrap: wrap;
    gap: 3rem;
    position: relative;
    margin-left: 3rem;
    
    
}


.container-boxess{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 3rem;
    position: relative;
    margin-left: 3rem;
    padding-bottom: 2rem;
    
    
}

.images-section img{
    width: 100%;
    padding: 0;
}

.small-article {
    
}

.small-article span{
    font-size: 12px;
    line-height: 15px;
}

.button button{
    background-color: #990000;
    color: #fff;
   
    border: none;
    padding: 0.2rem 1.3rem;
    border-radius: 5px;
}
.button{
    margin-top: 2.5rem;
}

.buttonn button{
    width: 100%;
    background-color: #990000;
    color: #fff;
    /* margin-left: 1rem; */
    border: none;
    padding: 0.2rem 1.3rem;
    border-radius: 5px;
}

/* Responsive CSS for Case Archive */

/* Mobile and tablet styles */
@media screen and (max-width: 992px) {
    /* Hero section */
    .background__section {
        height: auto;
        padding: 50px 0 40px;
    }
    
    .background__text__content {
        margin-top: 5rem;
        padding: 0 15px;
    }
    
    .background__text__content .short_article {
        width: 90%;
    }
    
    /* Search and filters */
    .search-container input {
        width: 100%;
        max-width: 100%;
    }
    
    .dropdown_input_section {
        flex-direction: column;
        gap: 0.5rem;
        width: 90%;
    }
    
    .dropdown-container select {
        width: 100%;
    }
    
    /* Cases section layout */
    .cases__section {
        flex-direction: column;
        
    }
    
    .container-form {
        width: 90%;
        margin: 0 auto 2rem;
        padding: 1.5rem;
    }
    
    .container-boxes,
    .container-boxess {
        margin-left: 0;
        justify-content: center;
        padding: 0 15px;
    }
    
    /* Case cards */
    .boxes {
        width: 100%;
        max-width: 340px;
    }
}

/* Small mobile styles */
@media screen and (max-width: 576px) {
    /* Further adjustments for very small screens */
    .background__text__content h1 {
        font-size: 24px;
    }
    
    .background__text__content .short_article {
        width: 100%;
        font-size: 15px;
    }
    
    .sorting {
        width: 100%;
    }
    
    .dropdown-container {
        margin-top: 1.5rem;
    }
    
    .container-form .dropdown-container {
        margin-top: 1.5rem;
    }
    
    .buttonn {
        margin-top: 1.5rem;
    }
    
    .boxes h4 {
        font-size: 14px;
    }
    
    .small-article span {
        font-size: 11px;
    }
    
    .button button,
    .buttonn button {
        padding: 0.2rem 1rem;
        font-size: 14px;
    }
}

/* Fix for the double chevron in dropdown */
@media screen and (max-width: 992px) {
    .dropdown-container i {
        right: 15px;
    }
}

/* Second container responsiveness */
@media screen and (max-width: 992px) {
    .second-container {
        padding: 15px;
    }
}