/* Seção .courses-*: manter em sincronia com public/assets/scss/_home.scss (o site também carrega style.min.css compilado a partir desse SCSS). */
.courses-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 820px;
    margin: 60px auto 0;
}

.courses-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.courses-main-course {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(
        115deg,
        #051638 17.57%,
        #0b1f42 45.36%,
        #041b48 69.68%,
        #04163a 83.59%
    );
}

@media (max-width: 768px) {
    .courses-main-course {
        flex-direction: column;
        gap: 32px;
    }
}

.courses-wrapper-main-course-data {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .courses-wrapper-main-course-data {
        align-items: center;
    }
}

.courses-wrapper-images {
    display: flex;
    align-items: center;
    gap: 16px;
}

.courses-wrapper-images img {
    width: 120px;
    height: 240px;
}

@media (max-width: 768px) {
    .courses-wrapper-images img {
        width: 100px;
        height: 200px;
    }
}

.courses-main-course-title {
    color: #fff;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 500;
    margin: 0 0 8px;
}

@media (max-width: 768px) {
    .courses-main-course-title {
        text-align: center;
    }
}

.courses-main-course-description {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 18px;
}

@media (max-width: 768px) {
    .courses-main-course-description {
        text-align: center;
    }
}

.courses-main-course-button {
    border-radius: 8px;
    background: #ffbc00;
    display: flex;
    width: fit-content;
    height: 37px;
    padding: 10px 28px;
    justify-content: center;
    align-items: center;
    color: #081e45;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    outline: none;
}

.courses-main-course-button:hover {
    background: #ffc700;
}

.courses-main-course-button:active {
    background: #ffb200;
}

.courses-main-course-button:disabled {
    background: #ffbc00;
    cursor: not-allowed;
}

.courses-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.courses-card-link {
    text-decoration: none;
    color: inherit;
}

.courses-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    width: calc(273px - 16px);
    background: transparent;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.courses-card-image {
    width: 100%;
    height: 134px;
}

.courses-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.courses-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: 0 0 16px 16px;
    background: #fff;
}

.courses-card-content-tag {
    border-radius: 4px;
    background: #ede9fe;
    display: inline-flex;
    height: 20px;
    padding: 3px 10px;
    align-items: flex-start;
    color: #5b21b6;
    font-size: 11px;
    font-weight: 700;
    width: fit-content;
}

.courses-card-content-title {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.courses-card-content-description {
    color: #888;
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

.courses-evaluation {
    margin-top: 8px;
    border-top: 1px solid #f0f0f0;
    padding: 8px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.courses-evaluation i {
    color: #2e7d32;
    font-size: 20px;
}

.courses-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

