main#main-course-grid {
    max-width: 1280px;
    margin: auto;
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Adjusts to screen size */
    gap: 20px;
    /* Adds spacing between items */
    max-width: 1200px;
    margin: 0 auto;
    /* Centers the grid */
    padding: 20px;
}

.course-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.course-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Enforces exact 16:9 ratio */
    overflow: hidden;
    border-radius: 5px 5px 0px 0px;
    background-color: #ddd;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 5px 5px 0px 0px;
}

/* EVALUACIONES WIDGET */

.course-post-evaluations {
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
    background: #fff;
}

.evaluation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    font-weight: bold;
}

.evaluation-title {
    width: 40%;
    text-align: left;
}

.progress-bar {
    width: 40%;
    height: 15px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
}

/* First Evaluation Bar (Red) */
#progress-first .progress {
    background: #ff9800;
}

/* Final Evaluation Bar (Blue) */
#progress-final .progress {
    background: #ff9800;
}

.evaluation-percentage {
    width: 20%;
    text-align: right;
}

#bottom-course-card {
    padding: 20px 20px 0px 20px;
}

#bottom-course-card header.entry-header {
    margin-bottom: 20px;
}

.course-post-evaluations {
    border-top: 1px solid #cccccc;
    border-radius: 0px;
    border-bottom: 1px solid #cccccc;
}

footer.entry-footer {
    padding: 20px;
}

@media screen and (max-width: 900px) {
    .evaluation-row {
        flex-direction: column;
        padding: 20px 0;
    }

    .evaluation-title {
        width: 100%;
        text-align: center;
    }

    .evaluation-percentage {
        width: 100%;
        text-align: center;
    }

    .progress-bar {
        width: 100%;
    }

    #progress-first,
    #progress-final {
        margin-bottom: 0px !important;
    }
}

/* Bottom Course Card Typography */
#bottom-course-card {
    font-family: 'Lexend', sans-serif;
}

#bottom-course-card h2.entry-title {
    font-family: 'Fraunces', serif !important;
    font-weight: 800 !important;
}

#bottom-course-card h2.entry-title a {
    font-family: 'Fraunces', serif !important;
    font-weight: 700 !important;
    font-size: 32px;
}

#bottom-course-card .entry-content {
    font-family: 'Lexend', sans-serif !important;
}

#bottom-course-card .entry-content * {
    font-family: 'Lexend', sans-serif !important;
}

.evaluation-row,
.evaluation-row * {
    font-family: 'Lexend', sans-serif !important;
}

.entry-footer,
.entry-footer * {
    font-family: 'Lexend', sans-serif !important;
}

.courses-container--shortcode h2.entry-title {
    font-size: 38px;
}