.dobozok-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.doboz-item {
    padding: 20px;
    background-color: #ffffff;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 10px;

}

.doboz-item.active {
    background-color: #81cc2a;
    color: #fff;
    transform: translateY(-5px);

}

.doboz-item:hover {
    background-color: #81cc2a;
    color: #fff;
    transform: translateY(-5px);

}

.doboz-item.active .ikon {
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.doboz-item.active .ikon svg {
    fill: #81cc2a;
    transition: fill 0.3s ease;
}

.doboz-item h3 {
    margin: 10px 0;
    font-family: "Ubuntu", Sans-serif;
    font-size: 21px;
    font-weight: 600;
    text-align: left;
    width: 270px;
    line-height: 28px;
    transition: color 0.3s ease;
}

.doboz-item p {
    margin-bottom: 40px;
    font-family: "Ubuntu", Sans-serif;
    font-weight: 300;
    font-size: 15px;
    text-align: left;
    line-height: 26px;
    margin-bottom: 15px;
    transition:  ease, color 0.3s ease;
}

.doboz-item.active p {
    font-weight: 400;
    color: #ffffff; /* Aktív állapotban szöveg színe */
}

.doboz-item .gomb {
    padding: 10px 20px;
    text-decoration: none;
    opacity: 0; /* Kezdetben láthatatlan */
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    background-color: #fff;
    color: #000000;
    border-radius: 5px;
    font-size: 14px;
    font-family: "Ubuntu", Sans-serif;
    font-weight: 500;
    width: 100px;
    padding: 10px 0px;
    text-align: center;
}

.doboz-item.active .gomb, 
.doboz-item:hover .gomb {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}



.doboz-item .ikon {
    margin-bottom: 10px;
    background-color: #81cc29;
    border-radius: 50%;
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.ikon svg {
    width: 60px;
    height: auto;
    fill: white;
    transition: fill 0.3s ease;
}

.doboz-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0; /* Alapértelmezés szerint láthatatlan */
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.doboz-item.active .overlay {
    opacity: 1; /* Aktív osztály esetén látható */
    background-image: url('https://aeve.anyhub.hu/wp-content/uploads/2025/01/Asset.png');
    filter: grayscale(100%); /* Fekete-fehér */
}

.doboz-item * {
    position: relative;
    z-index: 1; /* A tartalom a háttér előtt marad */
}

@media (max-width: 767px) {
.dobozok-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

}