
.tipushazak-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: "Inter", sans-serif;
    box-sizing: border-box;
}

.tipushazak-grid *,
.tipushazak-grid *::before,
.tipushazak-grid *::after {
    box-sizing: border-box;
}

.tipushaz-item {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.tipushaz-item:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* Felső div: kép + cím overlay */
.tipushaz-kep-wrap {
    width: 100%;
}

.tipushaz-kep {
    position: relative;
    width: 100%;
    aspect-ratio: 7 / 3;
    overflow: hidden;
    background: #f2f2f2;
}

.tipushaz-kep .tipushaz-img,
.tipushaz-kep img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.tipushaz-item:hover .tipushaz-kep img {
    transform: scale(1.05);
}

.tipushaz-kep-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8, #cfcfcf);
}

/* Overlay: alul fekete, felfelé átlátszó */
.tipushaz-kep::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.45) 35%,
        rgba(0, 0, 0, 0) 70%
    );
    z-index: 1;
    pointer-events: none;
}

/* Cím a képen alul */
.tipushaz-kep-cim {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 20px;
    z-index: 2;
}

.tipushaz-kep-cim .tipushaz-cim {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.tipushaz-ikon-wrap {
    border-radius: 10px;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: linear-gradient(180deg, #05d24f 0%, #00c951 100%);
    box-shadow: 0 20px 40px rgba(0, 201, 81, 0.35), 0 0 60px rgba(0, 201, 81, 0.25);
}

.tipushaz-ikon-wrap .tipushaz-ikon-img {
    max-width: 35px;
    height: auto;
    display: block;
}

.tipushaz-cim-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.tipushaz-cim-szoveg {
    display: block;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}
.tipushaz-alszoveg {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: #ffffff;
}

.tipushaz-adatok {
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex: 1;
    align-items: flex-start;
}

.tipushaz-leiras {
    flex: 1;
    margin-bottom: 18px;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    text-align: left;
    font-weight: 400;
}

.tipushaz-leiras p {
    margin: 0 0 10px;
}

.tipushaz-leiras p:last-child {
    margin-bottom: 0;
}

.tipushaz-leiras strong {
    font-weight: 600;
}

.tipushaz-gomb {
    display: inline-block;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #00ca52;
    transition: background .25s ease, color .25s ease, transform .15s ease;
    margin-top: auto;
}
.tipushaz-gomb:hover,
.tipushaz-gomb:focus {
    background: transparent;
    text-decoration: none;
}

.tipushaz-gomb:active {
    transform: translateY(1px);
}

.tipushazak-empty {
    text-align: center;
    padding: 30px;
    color: #777;
    font-family: "Inter", sans-serif;
}

/* Reszponzív */
@media (max-width: 992px) {
    .tipushazak-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .tipushazak-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Kiemelt kártya */
.tipushaz-item.tipushaz-kiemelt {
    border: 2px solid #1e3a8a;
    box-shadow: 0 6px 22px rgba(30, 58, 138, 0.18);
}

.tipushaz-item.tipushaz-kiemelt:hover {
    box-shadow: 0 12px 32px rgba(30, 58, 138, 0.25);
}

.tipushaz-badge {
    background: #1e3a8a;
    color: #fff;
    text-align: center;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 11px 15px;
}
