.search_product_holder{
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.search_product_container{
    background: var(--light);
    border-radius: 3px;
    flex: 0 0 18%;
}

.produkty-grid-container .search_product_image {
    background: #eee;
    background: url(../images/produktbg.jpg) no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    padding-bottom: 0px;
    position: relative;
    overflow: hidden;
    max-height: 150px;
}

.produkty-grid-container div[data-width][data-height] img {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    bottom: -100%;
    margin: auto;
}

.search_product_title {
    letter-spacing: 0px;
    line-height: normal;
    font-size: 18px;
    color: #000;
    text-transform: uppercase;
    font-weight: bold;
}

.produkty-grid-container .search_product_text {
    font-size: 12px;
    display: block;
    line-height: 16px;
    color: #777;
    font-weight: normal;
    max-height: 10.5em;
    overflow: hidden;
    margin: 13px 0px 13px 0 !important;
}

.search_product_content{
    background: transparent;
    padding: 20px 30px;
}

.produkty-grid-container .search_product_content .search_product_text li {
    list-style-type: square;
    margin-left: 1em;
    padding-left: 0;
    font-size: 13px;
    line-height: 16px;
    margin-bottom: 5px;
}

.produkty-grid-container .search_product_content .search_product_text ul {
    list-style-type: square;
}

.search_product_more a, .media-box-view-image a {
    text-decoration: none !important;
    padding: 0;
    margin: 10px 0 0 0;
    color: #008cea;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    display: block;
}

.searchsub {
    padding-bottom: 60px;
}

.searchInputSubBox {
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    line-height: 40px;
    font-size: 15px;
    background: rgba(255, 255, 255, 1);
    border: 1px solid #aaa;
    outline: none;
    width: 400px;
    height: 40px;
    margin: 0 auto;
}

.searchInputSub {
    line-height: 40px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0);
    border: none;
    outline: none;
    width: 340px;
    padding: 3px 30px;
    color: #000;
    height: 40px;
}

#searchbutton {
    background: transparent;
    border: none;
}

.search_service_holder{
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.search_item {
    margin-bottom: 30px;
    display: table;
    width: 45%;
    float: left;
}

.search_itemCell {
    display: table-cell;
    padding-left: 10px;
    vertical-align: top;
    width: 70%;
}

.search_itemCellImg {
    min-height: 120px;
    text-align: center;
    vertical-align: middle;
    border: 0px solid #aaa;
}

.search_itemCellImg img {
    width: auto;
    height: auto;
    margin: 10px 0 0 0;
    max-height: 100px;
}

.search_skolenie_holder{
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.search_itemSkolenie{
    flex: 0 0 30%;
}

.search_itemSkolenie h3 {
    font-size: 18px;
    font-weight: bold;
}

@media (max-width: 1200px) {
    .search_product_container {
        flex: 0 0 23%; /* 4 columns */
    }
}

@media (max-width: 992px) {
    .search_itemSkolenie,
    .search_product_container {
        flex: 0 0 48%; /* 3 columns */
    }

    .produkty-grid-container .search_product_image {
        max-height: unset;
    }

    .search_item {
        width: 100%;
    }

    .searchInputSubBox{
        margin-bottom: 2rem;
        max-width: 400px;
        width: 100%;
    }

    .search_itemSkolenie h3 {
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) {
    .search_product_container {
        flex: 0 0 46%; /* 1 column */
    }

    .searchsub {
        padding-top: 80px !important;
        padding-bottom: 80px;
    }

    .search_itemSkolenie{
        flex: 0 0 100%; /* 1 column */
    }
}

@media (max-width: 576px) {
    .search_product_container {
        flex: 0 0 100%; /* 1 column */
    }

    .search_itemCellImg img {
        max-height: unset;
    }

    .search_itemCell{
        width: 100%;
        display: unset;
    }

    .searchInputSubBox{
        margin-bottom: 2rem;
        max-width: 300px;
        width: 100%;
    }

    .searchInputSub{
        width: 100%;
        max-width: 230px;
        padding: 0px 15px;
    }
}