.egeszseg-container {
    margin: 0 auto;
    padding: 20px 0;
    max-width: 100%;
}

.egeszseg-grid {
    display: grid;
    gap: 20px;
    margin: 0 auto;
    min-width: 0;
}

/* A tile: mindig div, az Elementor a-tag reset nem érinti */
.egeszseg-item {
    position: relative;
    display: block;
    aspect-ratio: 5 / 3;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    overflow: hidden;
    border-radius: 20px;
    box-sizing: border-box;
    min-width: 0;
    /* padding az inline style-ban az admin beállításából */
}

.egeszseg-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Fedő link – a teljes tile kattintható, de a div kapja a paddinget */
.egeszseg-link-cover {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    background: transparent;
    cursor: pointer;
}

/* Cím és tartalom a link fölé kerül */
.egeszseg-title,
.egeszseg-content {
    position: relative;
    z-index: 2;
}

.egeszseg-item .egeszseg-title,
h3.egeszseg-title {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: bold !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
    border: none !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.egeszseg-content {
    color: #ffffff;
    font-size: 11px;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    word-break: break-word;
    overflow-wrap: break-word;
}

.egeszseg-content p,
.egeszseg-content span,
.egeszseg-content a,
.egeszseg-content li,
.egeszseg-content [class*="Mso"] {
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: inherit !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
}

.egeszseg-content p:last-child {
    margin-bottom: 0 !important;
}

/* Reszponzív */
@media (max-width: 768px) {
    .egeszseg-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* Mobil nézet: biztosítjuk hogy a padding-left elég legyen a border-radius miatt */
    .egeszseg-item {
        padding-left: 35px !important;
    }

    /* Konténer: megakadályozzuk a theme negatív margin eltolást */
    .egeszseg-container {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .egeszseg-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
