/* ============ ESTILOS GERAIS DOS FILTROS ============ */
#filtros-cursos {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(48, 87, 158, 0.1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

#filtros-cursos .form-label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
    height: 20px;
    /* Altura fixa para alinhamento */
}

/* ============ GRUPO DE INPUTS ============ */
#filtros-cursos .input-group {
    height: 48px;
    /* Altura unificada */
}

/* Ícones */
#filtros-cursos .input-group-text {
    border-radius: 8px 0 0 8px !important;
    border-right: none;
    background-color: #30579E !important;
    color: white !important;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: #30579E;
}

/* Campos (input e select) */
#filtros-cursos .form-control,
#filtros-cursos .form-select {
    border-radius: 0 8px 8px 0 !important;
    border-left: none;
    height: 100% !important;
    padding: 0.5rem 1rem;
    border-color: #ced4da;
}

/* Select personalizado */
#filtros-cursos .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Estados de foco */
#filtros-cursos .form-control:focus,
#filtros-cursos .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(48, 87, 158, 0.25);
    border-color: #30579E;
    outline: 0;
}

/* ============ BOTÃO LIMPAR ============ */
#filtros-cursos .text-lg-end {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 72px;
    /* Altura total do grupo (label + input) */
}

#reset-filtros {
    min-height: 48px;
    height: 48px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    margin: 0;
    flex-grow: 1;
}

/* Ajuste para o label invisível */
#filtros-cursos .text-lg-end::before {
    content: "Label";
    visibility: hidden;
    height: 20px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Container do botão */
#filtros-cursos .text-lg-end {
    display: flex;
    flex-direction: column;
}

/* Efeito hover */
#reset-filtros:hover {
    background-color: #30579E !important;
    color: white !important;
}

/* ============ RESPONSIVIDADE ============ */
@media (max-width: 992px) {
    #reset-filtros {
        margin-top: 0;
        /* Remove compensação em mobile */
    }
}

.fw-bold {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


/* ============ CARD PRINCIPAL ============ */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.card:hover {
    box-shadow: 0 10px 30px rgba(48, 87, 158, 0.15);
    transform: translateY(-5px);
}

/* ============ SEÇÃO DA IMAGEM ============ */
.card-img-container {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(48, 87, 158, 0.9), rgba(48, 87, 158, 0.4));
}

/* ============ TÍTULO ============ */
.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 0 1rem;
    margin-bottom: 0;
    text-align: center;
    color: white;
}

/* ============ CARD BODY ============ */
.card-body {
    padding: 1.25rem 1.5rem;
}

/* ============ METADADOS ============ */
.curso-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.curso-meta .badge {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #f8f9fa;
    color: #212529;
    display: flex;
    align-items: center;
}

/* ============ INFORMAÇÕES ============ */
.curso-info {
    font-size: 0.95rem;
    color: #555;
}

.curso-info>div {
    margin-bottom: 0.75rem;
}

.curso-info small {
    font-size: inherit;
    color: #555;
}

.curso-info .bi {
    color: #30579E;
    font-size: 1.1rem;
    margin-right: 0.6rem;
}

/* ============ BOTÃO ============ */
.btn-primary {
    background-color: #30579E;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #25467c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(48, 87, 158, 0.3);
}

.btn-primary .bi {
    margin-right: 0.5rem;
}

/* ============ OVERLAY ============ */
.card-img-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.carousel-item {
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slidedes-caption {
    bottom: 20%;
}

@media (max-width: 768px) {
    .slidedes-caption h1 {
        font-size: 2rem;
    }

    .slidedes-caption p {
        font-size: 1rem;
    }

    .slidedes-caption a {
        font-size: 1rem;
    }
}


/* Efeitos e elementos abstratos */
.bg-abstract {
    background-color: #f8fafc;
    position: relative;
}

.abstract-shape {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.3;
    z-index: 0;
    transition: all 0.5s ease;
}

.triangle {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: -30px;
    right: -30px;
}

.circle {
    border-radius: 50%;
    bottom: -30px;
    left: -30px;
}

.square {
    transform: rotate(15deg);
    top: -20px;
    left: -20px;
}

.hexagon {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    bottom: -20px;
    right: -20px;
}

/* Estilo dos botões */
.modalidade-btn {
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 1;
    position: relative;
    border: 1px solid rgba(48, 87, 158, 0.1) !important;
    min-height: 220px;
    /* Altura fixa */
}

.modalidade-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(48, 87, 158, 0.1);
}

.modalidade-btn:hover .abstract-shape {
    transform: scale(1.1);
    opacity: 0.4;
}

.text-primary {
    color: #30579E !important;
}

/* Alinhamento do conteúdo */
.modalidade-btn .flex-grow-0 {
    flex-grow: 0 !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .modalidade-btn {
        padding: 1.5rem !important;
    }
}

.banner_topo {
    width: 200px;
}