.diagnostika {
    position: relative;
    text-align: center;
    margin-top: 20px;
}

.diagnostika img {
    max-width: 100%;
    height: auto;
}

.tags {
    position: absolute;
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Allow clicks to pass through */
}

.tag {
    background-color: rgba(240, 240, 240, 0.8);
    border-radius: 20px;
    padding: 10px 20px;
    /*margin: 5px;*/
    margin: 40px;
    cursor: pointer;
    width: 200px;
    transition: background-color 0.3s;
    text-align: center;
    pointer-events: all; /* Re-enable clicks for these elements */
}

.tag:hover {
    background-color: rgba(208, 208, 208, 0.8);
}

.description {
    margin-top: 40px;
}

.tag i {
    margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .tags {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .tag {
      /*  width: 50%;
        margin: 0;
        margin-top: 10px;*/
        width: 35%;
        margin: 36px;
        margin-top: 10px;
        font-size: 14px;

    }
}
@media (max-width: 769px) {
    .tags {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .tag {
    /*    width: 50%;
        margin: 0;
        margin-top: 10px;*/
        width: 33%;
        margin: 45px;
        margin-top: 64px;
        font-size: 14px;
    }
}
@media (max-width: 425px) {
    .tags {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
    .tag {
        /*width: 90%;*/ /* Adjust width as necessary */
        /*  margin: 0;
          margin-top: 10px;*/
        width: 40%;
        margin: 18px;
        margin-top: 10px;
        font-size: 11px;
    }
}
@media (max-width: 375px) {
    .tags {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
    .tag {
        /*width: 90%;*/ /* Adjust width as necessary */
      /*  margin: 0;
        margin-top: 10px;*/
        width: 40%;
        margin: 18px;
        margin-top: 10px;
        font-size: 11px;
    }
}
