.cursos-container {
    padding: 2rem;
    margin-top: 80px;
    /* Espaço para o header fixo */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cursos-content {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.cursos-filters {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Filtros */
.filtros {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 10px;
}

.filtro-grupo {
    flex: 1;
    min-width: 200px;
}

.filtro-grupo label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.filtro-grupo select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: var(--white);
    font-size: 1rem;
    cursor: pointer;
}

/* Grid de Cursos */
.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.curso-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}


.curso-imagem {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.curso-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;

}

.curso-card:hover .curso-imagem img {
    transform: scale(1.05);
}

.curso-tipo {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.curso-info {
    padding: 1.5rem;
}

.curso-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.curso-descricao {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.curso-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.curso-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.curso-acoes {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-filters button {
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filters button.active,
.category-filters button:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.curso-categoria {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
}

.curso-info {
    padding: 25px;
}

.curso-info h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.curso-descricao {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.curso-detalhes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.curso-detalhes span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.curso-detalhes i {
    color: var(--primary-color);
}

.curso-professor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.curso-professor img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.curso-professor span {
    color: var(--text-color);
    font-size: 0.95rem;
}

.btn-inscrever {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-inscrever:hover {
    background: var(--secondary-color-hover);
}

.perfil-certificados {
    padding: 3rem 0 2rem 0;
    background: var(--light-bg);
}
.perfil-certificados h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}
.certificados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.certificado-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}
.certificado-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 24px rgba(52,152,219,0.10);
}
.certificado-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
}
.certificado-card .btn-download {
    margin-top: 1rem;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.65rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 2px 8px rgba(52,152,219,0.08);
    border: none;
    outline: none;
    letter-spacing: 0.2px;
    transition: background 0.18s, transform 0.15s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.certificado-card .btn-download i {
    font-size: 1.1rem;
}
.certificado-card .btn-download:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 4px 16px rgba(231,76,60,0.10);
}
.btn-curso {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-curso:hover {
    background-color: #2980b9;
}

.btn-favorito {
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-favorito:hover {
    color: var(--accent-color);
}

.btn-favorito.active {
    color: var(--accent-color);
}

/* Paginação */
.paginacao {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.btn-pagina {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-pagina:hover {
    background-color: var(--light-bg);
}

.btn-pagina.active {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}


.curso-modal-container {
    background: #fff !important;
    border-radius: 10px !important;
    max-width: 1200px !important;
    width: 100% !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
}

.curso-modal-header {
    display: flex;
    align-items: center;
    background: #5a1ec9;
    color: #fff;
    padding: 18px 32px;
    position: relative;
}

.curso-modal-logo img {
    height: 40px;
    margin-right: 24px;
}

.curso-modal-titulo {
    font-size: 1.3rem;
    font-weight: 600;
    flex: 1;
}

.curso-modal-progresso {
    margin-right: 24px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.curso-modal-btn-completo {
    background: #fff !important;
    color: #5a1ec9 !important;
    border: 1px solid #fff !important;
    border-radius: 6px !important;
    padding: 6px 16px !important;
    font-weight: 600 !important;
    margin-left: 10px !important;
    transition: background 0.2s, color 0.2s !important;
}

.curso-modal-btn-completo:hover {
    background: #5a1ec9 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
}

.curso-modal-main {
    display: flex;
    height: 100%;
    min-height: 600px;
}

.curso-modal-sidebar {
    width: 350px;
    background: #f7f7fa;
    padding: 24px 12px;
    border-right: 1px solid #ececec;
    overflow-y: auto;
}

.curso-modal-sidebar h4 {
    font-size: 1.1rem;
    margin-bottom: 18px;
    color: #444;
}

.curso-modulos {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 515px;
    height: 100%;
    padding: 5px;
}

.curso-modulo {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(90, 30, 201, 0.04);
}

.curso-modulo-titulo {
    padding: 12px 18px;
    font-weight: 600;
    color: #5a1ec9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.curso-modulo.aberto .curso-aulas {
    display: block;
}

.curso-aulas {
    display: none;
    padding: 0 18px 12px 36px;
    list-style: none;
}

.curso-aulas .aula {
    padding: 7px 0;
    color: #444;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.curso-aulas .aula:last-child {
    border-bottom: none;
}

.curso-aulas .aula.ativa {
    color: #5a1ec9;
    font-weight: 600;
}

.curso-aulas .aula.concluida {
    color: #1ec91e;
    font-weight: 600;
}

.curso-modal-player {
    flex: 1 1 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    background: #111;
    min-height: 600px;
    min-width: 0;
}

.curso-modal-player-area {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

#youtubePlayer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#youtubePlayer iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #000;
    border-radius: 0 0 10px 10px;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modal-close {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-40px);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .cursos-container {
        padding: 1rem;
    }

    .filtros {
        flex-direction: column;
    }

    .filtro-grupo {
        width: 100%;
    }

    .cursos-grid {
        grid-template-columns: 1fr;
    }
}