.simple-grid {
    display: flex;
    flex-direction: column; /* 1 oszlopos elrendezés */
    gap: 20px;
}

.simple-grid-item {
    display: flex;
    align-items: stretch;
    gap: 35px;
    flex-direction: row;
}

.simple-grid-item.reverse {
    flex-direction: row-reverse; /* Fordított elrendezés: kép jobb oldalon, szöveg bal oldalon */
}

.grid-image {
width: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.grid-image  a {
    display: flex;
    width: 100%;
}

.grid-image img {
    max-width: 100%;
    height: 420px !important;
    width: 100% !important;
    border-radius: 8px !important;
    object-fit: cover;
}

.grid-text {
    width: 50%; 
    background-color: #ffffff;
    border-radius: 8px;
    padding: 45px;
    position: relative;
}

.grid-text h3 {
    margin: 0 0 10px;
    text-decoration: none;
    color: #333;
    display: flex;
    font-family: "Ubuntu", Sans-serif;
    font-size: 30px;
    margin-top: 10px;
    font-weight: 600;
    text-align: left;
    line-height: 40px;
    transition: color 0.3s ease;
    margin-bottom: 10px;
    z-index: 99;
    position: relative;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://aeve.anyhub.hu/wp-content/uploads/2025/01/Asset.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    border-radius: 8px;
    opacity: 0.2;
    z-index: 0;
}

p.grid-category {
    text-decoration: none;
    color: #81cc2a;
    font-family: "Ubuntu", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    z-index: 99;
    position: relative;
    margin-bottom: 4px;
}



.grid-text h3 a {
    text-decoration: none;
    color: inherit;
}

.grid-text h3 a:hover {
    color: #81cc2a;
}

p.grid-description {
    color: #2E2E2E;
    font-family: "Ubuntu", Sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 28px;
    margin-bottom: 20px;
    z-index: 99;
    position: relative;
    display: flex;
    width: 450px;
}

.grid-link {
    z-index: 99;
    position: relative;
    background-color: #81cc2a;
    display: inline-block;
    color: #ffffff;
    border-radius: 5px;
    font-size: 14px;
    font-family: "Ubuntu", Sans-serif;
    font-weight: 600;
    width: 200px;
    padding: 12px 0px;
    text-align: center;
}

@media (max-width: 768px) {
    .simple-grid-item {
        flex-direction: column; /* Oszlopos elrendezés mobilon */
        align-items: center;
    }

    .grid-image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .grid-text {
        width: 100%;
        background-color: #ffffff;
        border-radius: 8px;
        padding: 45px;
        position: relative;
    }

    p.grid-description {
        color: #2E2E2E;
        font-family: "Ubuntu", Sans-serif;
        font-size: 16px;
        font-weight: 300;
        line-height: 28px;
        margin-bottom: 20px;
        z-index: 99;
        position: relative;
        display: flex;
        width: 100%;
    }
}