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

.tudastar-grid {
    display: grid;
    gap: 20px;
    margin: 0 auto;
    /* Az oszlopok számát inline style-ban adjuk meg */
}

.tudastar-item {
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tudastar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tudastar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 2;
    /* Padding inline style-ban van megadva */
}

.tudastar-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.tudastar-content {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.tudastar-content p {
    margin: 0 0 10px 0;
}

.tudastar-content p:last-child {
    margin-bottom: 0;
}

/* Reszponzív */
@media (max-width: 768px) {
    .tudastar-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .tudastar-item {
        height: 250px !important;
    }
    
    .tudastar-title {
        font-size: 20px;
    }
    
    .tudastar-content {
        font-size: 13px;
    }
}

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