:root {
    --cor-azul: #4f81ea;
    --cor-cinza: #a8aaad;
    --cor-branco: #ffffff;
    --cor-verde: #3a6639;
    --cor-vermelha: #2282ED;

}

.dropdown-menu {
    background: #073e50;
    color: #fff;
    /*    padding: 10px;*/
    /*    border-bottom: 1px solid #fff;*/
}

.dropdown-item {
    color: #fff;
    padding: 20px;
    border-bottom: 1px solid #fff;
}

.dropdown-item:hover {
    color: #fff;
    padding: 20px;
    background: #64a9bf;
}

.centraliza {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.text-primary {
    --bs-text-opacity: 1;
    color: #2282ED !important;
}
.bg-primary {
    background-color: #2282ED !important;
    color: #ffffff;
}
.dropdown-menu {
    background-color: var(--cor-vermelha);
    color: white;
}
.dropdown-menu {
    background-color: var(--cor-vermelha) !important;
    border: none;
}
.dropdown-item:hover {
    background-color: var(--cor-vermelha) !important;
    color: var(--cor-branco) !important;
}
.dropdown-item:hover {
    background-color: var(--cor-vermelha);
}
.dropdown-item {
    background-color: var(--cor-vermelha) !important;
    color: var(--cor-branco) !important;
}

.dropdown-item:hover {
    background-color: var(--cor-branco) !important;
    color: #333 !important;
    font-weight:bold;
}
.dropdown-item:hover {
    background-color: var(--cor-vermelha);
}

/*Menu*/


/*Card*/
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    transition: background-color 0.3s ease;
}
.custom-tabs {
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    width:100%;
}
.custom-tabs-dt {
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    padding: 15px;
    background-color: #ffffff;
    text-align: center !important;
    width: 15%;
    margin-left: 1em;
}

.custom-tabs .nav-link {
    font-weight: bold;
    color: #bbb;
    border: none;
    border-radius: 0;
    padding: 12px 16px;
}

.custom-tabs .nav-link.active {
    color: #2282ED;
    border-bottom: 3px solid #2282ED;
    background-color: #fff;
}

.custom-tab-content {
    background-color: #fff;
    border-top: none;
    padding: 2rem;
    border-radius: 0 0 10px 10px;
}

.form-control,
.form-select {
    background-color: #eaf6fe;
    border: none;
    height: 45px;
}

.btn-pesquisar {
    border: 1px solid #2282ED;
    color: #2282ED;
    font-weight: bold;
    background-color: #fff;
    width: 100%;
    padding: 10px;
    transition: 0.3s;
}

.btn-pesquisar:hover {
    background-color: #2282ED;
    color: #fff;
}

.form-label {
    font-weight: 600;
}
header h1, header h2, header h3 {
    margin-top: 0;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    filter: none !important;
}

.title-effect {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #1a73e8; /* Cor azul agradável e moderna */
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-effect::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #1a73e8; /* Cor do destaque inferior */
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s ease-out;
}

.title-effect:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.title-effect:hover {
    color: #0056b3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); /* Sombra suave ao passar o mouse */
}

.conteudoPagina {
    background: #fff !important;
}
/*Cursos Home*/
/* Seção e container principal */
.cursos-home-section-color {
    padding: 0px 70px;
    background-color: #f8f9fa;
}

.cursos-grid-container-color {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilo de cada "tile" */
.curso-tile-link-color {
    text-decoration: none;
    color: inherit;
    display: block;
}

.curso-tile-color {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Efeito ao passar o mouse */
.curso-tile-color:hover {
    transform: translateY(-5px);
    border-color: #4a90e2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Título e descrição */
.curso-titulo-color {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.curso-descricao-color {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-top: 10px;
    flex-grow: 1;
}

/* --- Novos estilos para os detalhes do curso --- */
.curso-detalhes {
    margin-top: 20px;
    margin-bottom: 15px;
    /* Divide os detalhes em 2 colunas */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 10px; /* Espaço vertical e horizontal */
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.detalhe-item {
    display: flex;
    align-items: center;
    text-align: left;
}

.detalhe-item .material-icons {
    font-size: 1.2rem;
    color: #4a90e2;
    margin-right: 8px;
}

.detalhe-texto {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}
/* Fim dos novos estilos */

/* Badge de status */
.curso-status-color {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background-color: #4a90e2;
    padding: 6px 14px;
    border-radius: 50px;
    position: absolute;
    top: 20px;
    right: 20px;
    transition: background-color 0.3s ease;
}

.curso-tile-color:hover .curso-status-color {
    background-color: #357bd8;
}

/* --- Estilos para o botão --- */
.btn-saiba-mais {
    display: inline-block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background-color: #4a90e2;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.btn-saiba-mais:hover {
    background-color: #357bd8;
    transform: translateY(-2px); 
}
/* --- Responsividade --- */
@media (max-width: 768px) {
    .cursos-grid-container-color {
        grid-template-columns: 1fr;
    }

    .curso-detalhes {
        /* Em telas menores, os detalhes voltam a ser uma coluna */
        grid-template-columns: 1fr;
    }
}

/*Cursos - Index*/
/* Container da grade ajustado para 3 colunas */
.cursos-grid-container-color {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards por linha em telas grandes */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Telas de celulares: 1 card por linha */
@media (max-width: 768px) {
    .cursos-grid-container-color {
        grid-template-columns: repeat(2, 1fr);
    }

    .curso-detalhes {
        grid-template-columns: 1fr;
    }
}

/* Seção e container principal */

/* Estilo de cada "tile" */
.curso-tile-link-color {
    text-decoration: none;
    color: inherit;
    display: block;
}

.curso-tile-color {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    /* Efeito ao passar o mouse */
    .curso-tile-color:hover {
        transform: translateY(-5px);
        border-color: #4a90e2;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    }

/* Título e descrição */
.curso-titulo-color {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.curso-descricao-color {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-top: 10px;
    flex-grow: 1;
}

/* --- Estilos para os detalhes do curso --- */
.section-title-course {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4a90e2;
    text-align: left;
    margin-top: 40px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.curso-detalhes {
    margin-top: 20px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 10px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.detalhe-item {
    display: flex;
    align-items: center;
    text-align: left;
}

.detalhe-item .material-icons {
    font-size: 1.2rem;
    color: #4a90e2;
    margin-right: 8px;
}

.detalhe-texto {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge de status */
.curso-status-color {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background-color: #4a90e2;
    padding: 6px 14px;
    border-radius: 50px;
    position: absolute;
    top: 20px;
    right: 20px;
    transition: background-color 0.3s ease;
}

.curso-tile-color:hover .curso-status-color {
    background-color: #357bd8;
}

/* Estilos para o botão */
.btn-saiba-mais {
    display: inline-block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background-color: #4a90e2;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.btn-saiba-mais:hover {
    background-color: #357bd8;
    transform: translateY(-2px);
}

/* Estilo para cards de cursos encerrados e em andamento */
.curso-tile-color.encerrado {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #6c757d;
}

.curso-tile-color.encerrado .curso-titulo-color,
.curso-tile-color.encerrado .curso-descricao-color,
.curso-tile-color.encerrado .detalhe-texto,
.curso-tile-color.encerrado .material-icons {
    color: #6c757d;
}

.curso-tile-color.encerrado .curso-status-color {
    background-color: #6c757d;
}

/* Estilo para o botão desativado */
.btn-saiba-mais.desativado {
    background-color: #959595;
    cursor: pointer;
    pointer-events: auto;
    opacity: .92;
}
.desativado-btn {
    background-color: #959595!important;
    cursor: not-allowed;
    pointer-events: none;
}
/* --- Responsividade --- */
@media (max-width: 768px) {
    .cursos-grid-container-color {
        grid-template-columns: 1fr;
    }

    .curso-detalhes {
        grid-template-columns: 1fr;
    }
}

/*Details*/
/* Container principal da página de detalhes */
.details-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Cabeçalho e Título */
.details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.course-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.course-status-badge {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: #4a90e2;
    padding: 8px 18px;
    border-radius: 50px;
}

/* Seções de conteúdo */
.details-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #4a90e2;
    margin-bottom: 15px;
    border-left: 4px solid #4a90e2;
    padding-left: 10px;
}

.course-description-full, .course-requirements {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

/* Layout de grid para informações */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.info-icon {
    font-size: 1.8rem;
    color: #4a90e2;
    margin-right: 12px;
}

.info-text-group {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

/* Botão de inscrição */
.btn-inscrever {
    display: block;
    width: 100%;
    margin-top: 30px;
    padding: 15px;
    background-color: #28a745; /* Cor verde para ação de sucesso */
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

    .btn-inscrever:hover {
        background-color: #218838;
        transform: translateY(-2px);
    }

/* Informações discretas (hidden) */
.details-hidden-info {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 40px;
    text-align: center;
}

/*Area do aluno*/
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
}

.card-hover:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.15);
}

.banner-portal {
    background: linear-gradient(135deg, #4A90E2, #50E3C2); /* gradiente azul/verde */
}

.banner-portal h1,
.banner-portal p {
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.banner-portal .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transition: 0.3s;
}

/*Admin*/
.icon-gradient {
    background: linear-gradient(45deg, #ff7f00, #ffd500, #8134af, #1e90ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/*Mobile*/
@media (max-width: 992px) {
    .img-evento {
        height: auto;
        width: 100%!important;
    }
    .custom-tabs-dt {
        width: 20%;
    }
    .card-img-top {
        height: 150px !important; /
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    .btn-link {
        font-size: 0.9rem; 
    }
}