.search-and-filter{
    display: flex;
    justify-content: center;
    padding-bottom: 40px;
    padding-top: 40px;
    gap: 20px;
    background-color:var(--primary-color);
}
.filter select{
    height: 100%;
    background: transparent;
    color: white;
    padding: 0 8px;
    outline: none;
}
.filter select option{
    background-color: var(--primary-color);
}
.search{
  background: white;
  width: 50vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 10px;
  border-radius: 5px;
}
.search input{
   background: transparent;
   width: 100%;
   outline: none;
   padding: 5px 10px;
   font-size: 1.2em;
   border: none;
}
.search img{
    width: 15px;
}
.course-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
    padding-bottom: 50px;
    padding-top: 20px;
}
.single-card{
    height: fit-content;
    border: 1px solid black;
    padding: 15px;
    border-radius: 15px;
}
.single-card h2{
    margin: 8px 0;
}
.single-card > p{
    border-bottom: 2px solid rgba(0, 0, 0, 0.203);
    padding-bottom: 10px;
}
.poster{
    position: relative;
}
.poster > img{
    width: 100%;
    height: 50vh;
    border-radius: 11px;
}
.purchase-btn a{
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
   color: white;
   background-color: var(--primary-color);
   padding: 12px 0;
   border-radius: 8px;
   transition: all 0.5s ease;
}
.purchase-btn a:hover{
    background-color:  var(--secondary-color);
}
.purchase-btn a img{
    width: 20px;
    filter: var(--white-filter);
}
.level-price{
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width:767px) {
    .search-and-filter{
        display: flex;
        flex-direction: column-reverse;
    }
    .search{
        width: 100%;
    }
    .course-grid{
        display: grid;
        grid-template-columns: 1fr;
    }
    .filter{
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .filter select{
        padding: 5px 0;
    }
}