.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    gap: 1.5rem;
    margin-top: 80px;
}

@media (min-width: 768px) {
    .blog-posts {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    }
}

.blog-item {
    position: relative;
    max-width: 100%;
    width: 100%;
    height: 300px;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    overflow: hidden;
    margin: 0 auto;
    background-position: center;
    background-size: 100%;
    transition: 0.3s all !important;
}

.blog-item:hover {
    background-size: 105%;
}

@media (max-width: 768px) {
    .blog-item {
        height: 50vw;
    }
}

.title {
    position: absolute;
    font-size: 18px;
    font-weight: bold;
    color: white;
    bottom: 25px;
    text-align: left;
    width: calc(100% - 40px);
}

@media (min-width: 768px) {
    .title {
        font-size: 24px;
    }
}

.overlay {
    height: 150px;
    position: absolute;
    width: 100%;
    background: linear-gradient(rgba(0, 23, 48, 0) 0%, rgba(0, 73, 150, 0.8) 100%);
    bottom: 0px;
    left: 0;
}

h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    word-wrap: break-word;
}

h3 img {
    width: 25px;
    height: 25px;
}

/*FILTR*/
.filter-text {
    white-space: nowrap;
    margin-top: 5px;
    margin-right: 15px;
    font-weight: bold;
}

.blog-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.blog-checkboxes input {
    width: 25px;
    height: 25px;
}

.blog-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 40px;
}

.blog-checkboxes label {
    display: flex;
    align-items: center;
}

.filter-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: bold;
    color: #004996;
    user-select: none;
    position: relative;
}

.job-arrow {
    height: 25px;
    width: 25px;
}

.filter-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.custom-checkbox {
    width: 25px;
    height: 25px;
    border: 1px solid #004996;
    border-radius: 5px;
    background-color: white;
    position: relative;
    transition: border-color 0.1s ease;
}

.custom-checkbox::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: red;
    border-radius: 3px;
    border: 2px solid red;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.1s ease;
}

.filter-label input[type="checkbox"]:checked+.custom-checkbox {
    border-color: red;
}

.filter-label input[type="checkbox"]:checked+.custom-checkbox::after {
    opacity: 1;
}

.filter-label input[type="checkbox"]:checked~.label-text {
    color: red;
}

/*BLOG POST*/
.blog-post-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.icon-with-text {
    display: flex;
    gap: 5px;
    align-items: center;
    width: fit-content;
}

.icon-with-text img {
    height: 22px;
    width: 22px;
}

.the-content {
    line-height: 35px;
    margin-top: 30px;
}

.the-content p {
    color: black;
    text-align: left;
    line-height: 35px;
}

.the-content li {
    margin-bottom: 5px;
}

.the-content ul,
.the-content ol {
    padding-left: 20px;
}

.blog-content {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.post-content {
    flex: 1;
    border-radius: 20px;
    box-shadow: 0 4px 50px rgba(0, 0, 0, 0.25);
    padding: 35px 25px;
    max-width: calc(50% - 10px);
}

.blog-section {
    flex: 1;
    border-radius: 20px;
    max-width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 1000px) {
    .blog-content {
        flex-wrap: wrap;
        flex-direction: column;
    }

    .post-content,
    .blog-section {
        width: 100%;
        max-width: 100%;
    }
}

.my-slider {
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.swiper-slide {
    border-radius: 20px;
    width: 100%;
    max-width: 100%;
    max-height: 400px;
    height: fit-content;
    overflow: hidden;
    position: relative;
}

.swiper-slide img,
.swiper-slide video {
    background-color: white;
    width: 100%;
    height: fit-content;
    max-height: 400px;
    display: block;
    object-fit: contain;
}

.swiper-pagination {
    position: relative;
    height: 50px;
    display: flex;
    bottom: 30px !important;
    justify-content: center;
}

@media (max-width: 1000px) {
    .swiper-pagination {
        bottom: -15px !important;
    }
}

.swiper-pagination-bullet {
    background-color: #d9d9d9;
    width: 7px;
    height: 7px;
    opacity: 100%;
}

.swiper-pagination-bullet-active {
    background-color: #004996;
    width: 9px;
    height: 9px;
    opacity: 100%;
}

/*POUZITE PRODUKTY*/
.used-products {
    width: 100%;
    box-shadow: 0 4px 50px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: clamp(20px, 4vw, 45px) clamp(15px, 3vw, 35px);
}

.used-products h3 {
    font-size: 20px;
    color: #004996;
    margin-bottom: 10px;
}

.single-product {
    margin-bottom: 20px;
}

.single-product p {
    text-align: left;
    font-size: 18px;
    line-height: 35px;
    font-weight: 500;
}

.product-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

.product-row a {
    color: white;
    background-color: #004996;
    text-decoration: none;
    padding: 3px 20px;
    border-radius: 20px;
    display: block;
    width: fit-content;
    line-height: 35px;
}

.product-row img {
    max-width: 80px;
    width: 100%;
    height: auto;
}