.hirek-content {
    background-color: #ffffff72;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 40px auto;
    box-sizing: border-box;
}

.hirek-content h1.oldalcim {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.cikk {
    width: 300px;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(49, 48, 48, 0.1);
}

.cikk-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    color: white;
    text-decoration: none;
}

.cikk-kep {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: block;
}

.cikk-link:hover .cikk-kep {
    transform: scale(1.05);
}

.cikk-cim-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.6);
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    border-radius: 0 0 8px 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.no-image {
    width: 300px;
    height: 250px;
    background: #ccc;
    color: #333;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    text-align: center;
}

.no-image .cikk-cim-link {
    margin-top: 10px;
    color: #007BFF;
    text-decoration: underline;
    font-weight: normal;
}
.oldalcim{
    text-align: center;
}
@media (max-width: 992px) {
    .cikkek-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .cikk {
        height: auto;
        aspect-ratio: 4 / 3;
    }
}