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


.grid-item {
    position: relative;
    padding: 30px;
    height: 550px;
    overflow: hidden;
    border-right: 2px solid #ffffff33;
    transition: background-color 0.3s ease;
}

/* Eltávolítjuk a jobb oldali keretet a sor utolsó elemétől */
.grid-item:nth-child(3n) {
    border-right: none;
}

/* Hover állapot minden grid elemre */
.grid-item:hover {
    background-color: rgba(115, 96, 242, 0.1); /* Halvány lila átlátszó háttér */
    border-right: 2px solid #35264b00;
}


.item-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -2;
}

.grid-item:hover .item-background {
    opacity: 0.24;
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent linear-gradient(180deg, #2653c9 0%, #241B4600 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.grid-item:hover .item-overlay {
    opacity: 0.82;
}

.item-number {
    letter-spacing: 4.64px;
    color: #FFFFFF;
    font-family: "Montserrat", Sans-serif;
    font-size: 19px;
    margin-bottom: 10px;
}

.item-divider {
    background: #FFFFFF;
    margin-bottom: 15px;
    border-radius: 250px;
    width: 28px;
    height: 7px;
}

.item-icon {
    margin-bottom: 20px;
    width: 110px;
    height: 110px;
    border: 2px solid #ffffff33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    transition: border-color 0.3s ease;
}

.grid-item:hover .item-icon {
    border-color: #FFFFFF;
}

.item-icon svg {
    fill: #FFFFFF;
    width: 65px;
    height: auto;
    transition: fill 0.3s ease;
}

.grid-item:hover .item-icon svg {
    fill: #FFFFFF;
}

.item-title {
    margin-bottom: 0px;
    width: 270px;
    letter-spacing: 0px;
    margin-top: 35px;
    height: 95px;
    color: #FFFFFF;
    font-family: "Montserrat", Sans-serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 35px;
}
.item-description {
    display: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.grid-item:hover .item-description {
    display: block;
    letter-spacing: 0px;
    color: #FFFFFF;
    font-family: "Montserrat", Sans-serif;
    font-size: 15px;
    line-height: 26px;
}

.item-link {
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    display: inline-block;
    letter-spacing: 3.64px;
    color: #FFFFFF;
    font-family: "Montserrat", Sans-serif;
    font-weight: 600;
}

.grid-item:hover .item-link {
    background: #2653c9 0% 0% no-repeat padding-box;
    border: 1px solid #FFFFFF;
    border-radius: 2000px;
    font-family: "Montserrat", Sans-serif;
    letter-spacing: 0px;
    color: #FFFFFF;
    width: 162px;
    height: 50px;
    display: flex;
    align-items: center;
    margin-top: 20px;
    font-weight: 500;
    font-size: 15px;
    justify-content: center;
}





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

 
    .item-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent linear-gradient(180deg, #2653c9 0%, #241b46c9 100%);
        opacity: 1;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .grid-item {
        position: relative;
        padding: 25px;
        height: 490px;
        overflow: hidden;
        border-right: 0px solid #35264B;
        transition: background-color 0.3s ease;

    }

    .item-link {

        color: #ffffff;

    }

    .item-icon svg {
        fill: #ffffff;
        width: 50px;
        height: auto;
        transition: fill 0.3s ease;
    }

    .item-icon {
        margin-bottom: 20px;
        width: 90px;
        height: 90px;
        border: 2px solid #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 20px;
        transition: border-color 0.3s ease;
    }
    .item-title {
        margin-bottom: 15px;
        width: 270px;
        letter-spacing: 0px;
        color: #FFFFFF;
        margin-top: 20px;
        height: auto;
        font-weight: 500;
    }

    .item-description {
        display: block;
        letter-spacing: 0px;
        color: #FFFFFF;
        font-family: "Montserrat", Sans-serif;
        font-size: 14px;
        line-height: 26px;
        margin-bottom: 0px;
    }

    .item-background {

        opacity: 1;
    
    }
}



@media (min-width: 768px) and (max-width: 1100px) {
  
    .szolgaltatasok-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .item-description {
        display: block;
        transition: all 0.3s ease;
        letter-spacing: 0px;
        color: #FFFFFF;
        font-family: "Montserrat", Sans-serif;
        font-size: 14px;
        line-height: 26px;
        margin-bottom: 0px;
    }

    .item-icon {
        margin-bottom: 20px;
        width: 95px;
        height: 95px;
    }
    .item-icon svg {
        fill: #7360f2;
        width: 50px;
        height: auto;
        transition: fill 0.3s ease;
    }

    .item-title {
        margin-bottom: 0px;
        width: 270px;
        letter-spacing: 0px;
        margin-top: 0px;
        height: 95px;
        color: #FFFFFF;
        font-family: "Montserrat", Sans-serif;
        font-size: 25px;
        font-weight: 400;
        line-height: 35px;
    }

    .grid-item {
        position: relative;
        padding: 30px;
        height: 500px;
        overflow: hidden;
        border-right: 2px solid #35264B;
        transition: background-color 0.3s ease;
    }

    .grid-item:nth-child(even) {
        border-right: none;
     }

}