/* General Styles for Recommendations */
.cre-course-row, .cre-job-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.cre-course-item, .cre-job-item {
    flex: 1 1 calc(25% - 20px); /* Adjusts for a 4-column layout */
    max-width: calc(25% - 20px);
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cre-course-item:hover, .cre-job-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cre-course-item h3, .cre-job-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.cre-course-item p, .cre-job-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.cre-view-course, .cre-view-job {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.cre-view-course:hover, .cre-view-job:hover {
    background: #005a87;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cre-course-item, .cre-job-item {
        flex: 1 1 calc(50% - 20px); /* Adjusts for a 2-column layout on tablets */
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .cre-course-item, .cre-job-item {
        flex: 1 1 100%; /* Single-column layout on mobile devices */
        max-width: 100%;
    }
}
