/*
|--------------------------------------------------------------------------
| FILTROS
|--------------------------------------------------------------------------
*/

.course_filters {
    background: #ffffff;
    border-bottom: 1px solid #e8ecef;
    padding: 26px 0 22px;
}

.course_filters_inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.course_search_group label {
    color: #555;
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.course_search_input {
    align-items: center;
    border: 1px solid #dce2e6;
    border-radius: 8px;
    display: flex;
    padding: 0 14px;
    transition: border-color 0.20s ease, box-shadow 0.20s ease;
}

.course_search_input:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(1, 121, 55, 0.08);
}

.course_search_input i {
    color: #77828a;
    font-size: 14px;
    margin-right: 10px;
}

.course_search_input input {
    border: none;
    color: #222;
    font-size: 15px;
    height: 46px;
    outline: none;
    width: 100%;
}

.course_area_filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.course_area_filter {
    background: #f7f8f9;
    border: 1px solid #dde3e7;
    border-radius: 8px;
    color: #344047;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    padding: 9px 13px;
    transition: background 0.20s ease, border-color 0.20s ease, color 0.20s ease;
}

.course_area_filter:hover,
.course_area_filter.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.course_filter_empty {
    background: #f7f8f9;
    border: 1px solid #e1e5e8;
    border-radius: 8px;
    color: #555;
    display: none;
    font-size: 16px;
    font-weight: 700;
    margin: 30px 0 60px;
    padding: 24px;
    text-align: center;
}

#main_content .course_list .course_list_items .course-modal-trigger {
    cursor: pointer;
}

#main_content .course_list .course_list_items .course-modal-trigger:hover {
    background: #ddd;
}

#main_content .course_list .course_list_items .course-modal-trigger:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}


/*
|--------------------------------------------------------------------------
| CARDS DOS CURSOS - ALTURA IGUAL
|--------------------------------------------------------------------------
*/

#main_content .course_list .course_list_items .course_card_col {
    display: flex;
    flex-direction: column;
}

#main_content .course_list .course_list_items .course_card_col .course_item {
    height: 100%;
    margin: 8px;
}


/*
|--------------------------------------------------------------------------
| MODAL
|--------------------------------------------------------------------------
*/

#modalCurso .modal-dialog {
    max-width: 800px;
}

#modalCurso .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.20);
}


/*
|--------------------------------------------------------------------------
| HEADER DO MODAL
|--------------------------------------------------------------------------
*/

#modalCurso .modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eeeeee;
    align-items: flex-start;
}

#modalCurso .modal-course-header {
    flex: 1;
    padding-right: 15px;
}

.modal-course-category {
    display: block;
    font-size: 13px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

#modalCursoTitulo {
    width: 100%;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: #222;
}

#modalCursoTitulo .d-flex {
    gap: 15px;
}

#modalCursoTitulo span {
    flex: 1;
}

#modalCurso .close {
    font-size: 28px;
    font-weight: 400;
    opacity: .6;
}

#modalCurso .close:hover {
    opacity: 1;
}


/*
|--------------------------------------------------------------------------
| BODY DO MODAL
|--------------------------------------------------------------------------
*/

#modalCurso .modal-body {
    padding: 30px;
}


/*
|--------------------------------------------------------------------------
| INFORMAÇÕES
|--------------------------------------------------------------------------
*/

.course-info-box {
    background: #f7f8f9;
    border-radius: 8px;
    padding: 18px;
    height: 100%;
}

.course-info-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 6px;
    letter-spacing: 0.4px;
}

.course-info-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}


/*
|--------------------------------------------------------------------------
| DESCRIÇÃO
|--------------------------------------------------------------------------
*/

.course-modal-description {
    margin-top: 20px;
}

.course-modal-description h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.course-modal-description p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-line;
}

.course-modal-description-last {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eeeeee;
    margin-bottom: 0;
}

.course-modal-description-last h4 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.course-modal-description-last p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0;
}


/*
|--------------------------------------------------------------------------
| PREÇO
|--------------------------------------------------------------------------
*/

.course-modal-price {
    margin-top: 30px;
    background: #f7f8f9;
    border-radius: 10px;
    padding: 20px;
}

.course-price-label {
    display: block;
    color: #777;
    font-size: 13px;
    margin-bottom: 4px;
}

.course-price-value {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #222;
}


/*
|--------------------------------------------------------------------------
| FOOTER DO MODAL
|--------------------------------------------------------------------------
*/

#modalCurso .modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eeeeee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#btnRealizarMatricula {
    padding: 11px 25px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 30px;
    white-space: nowrap;
    margin-left: auto;
    background: var(--primary-color);
    color: #fff; ;
}

.btn-fechar-modal {
    padding: 11px 20px;
    border-radius: 6px;
}


/*
|--------------------------------------------------------------------------
| RESPONSIVO
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

    .course_filters {
        padding: 20px 0 18px;
    }

    .course_search_input {
        max-width: none;
    }

    .course_area_filter {
        font-size: 12px;
        padding: 8px 10px;
    }

    #modalCurso .modal-header {
        padding: 20px;
    }

    #modalCurso .modal-body {
        padding: 20px;
    }

    #modalCurso .modal-footer {
        padding: 15px 20px;
        flex-direction: column-reverse;
    }

    #modalCurso .modal-footer .btn,
    #modalCurso .modal-footer a {
        width: 100%;
    }

    #modalCursoTitulo {
        font-size: 20px;
        padding-right: 15px;
    }

    .course-price-value {
        font-size: 25px;
    }
}
