﻿/* CSS Custom Properties */
:root {
    --primary-color: #1976d2;
    --primary-dark: #1565c0;
    --primary-light: #42a5f5;
    --secondary-color: #90a4ae;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #ff5722;
    --info-color: #2196f3;
    
    --border-radius: 15px;
    --border-radius-sm: 6px;
    --border-radius-lg: 20px;
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    --shadow-sm: 0 2px 8px rgba(33, 150, 243, 0.08);
    --shadow-md: 0 10px 25px rgba(33, 150, 243, 0.15);
    --shadow-lg: 0 15px 35px rgba(33, 150, 243, 0.2);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    --font-size-xs: 0.65rem;
    --font-size-sm: 0.75rem;
    --font-size-md: 0.85rem;
    --font-size-lg: 0.95rem;
}

/* Estilos gerais modernos */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Container principal */
.container {
    margin-top: 1rem;
}

/* Cards modernos */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(33, 150, 243, 0.1);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    overflow: hidden;
}

.card-header {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--spacing-md);
    font-weight: 600;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    font-size: var(--font-size-md);
}

.card-header .d-flex {
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

/* Layout desktop com 3 colunas */
@media (min-width: 577px) {
    .card-header .d-flex {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 16px;
        align-items: center;
    }
    
    .card-header .card-title {
        justify-self: start;
        order: 1;
    }
    
    .visao-toggle {
        justify-self: center;
        order: 2;
    }
    
    .mes-toggle {
        justify-self: end;
        order: 3;
    }
}

/* Layout desktop - garantir tamanho apropriado dos botões */
@media (min-width: 769px) {
    .mes-toggle .btn {
        min-width: 50px;
        padding: 8px 16px;
    }
    
    .visao-toggle .btn {
        min-width: 90px;
        padding: 8px 16px;
    }
}

.mes-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 4px;
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    align-items: center;
    width: auto;
}

.mes-toggle .btn {
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    min-width: 50px;
    text-align: center;
    transition: all 0.2s ease;
}

.mes-toggle .btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.mes-toggle .btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.mes-toggle .btn.active:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mes-toggle .btn i {
    font-size: 0.9rem;
}

/* Alternador de Visão do Calendário */
.visao-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 4px;
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    align-items: center;
    width: auto;
}

.visao-toggle .btn {
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    min-width: 90px;
    text-align: center;
    transition: all 0.2s ease;
}

.visao-toggle .btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.visao-toggle .btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.visao-toggle .btn.active:hover {
    background: rgba(255, 255, 255, 0.25);
}

.visao-toggle .btn i {
    font-size: 0.9rem;
}

.card-body {
    padding: var(--spacing-lg);
}

/* Responsividade do cabeçalho */
@media (max-width: 576px) {
    .card-header .d-flex {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .card-header .card-title {
        order: 1;
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .visao-toggle {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .mes-toggle {
        order: 3;
        width: auto;
        justify-content: center;
    }
    
    .visao-toggle .btn {
        flex: 1;
        min-width: 0;
    }
}

/* CalendÃ¡rio moderno */
.calendario-container {
    background: rgba(255, 255, 255, 0.98);
    
    overflow: hidden;
    position: relative;
}

/* Loading local do calendÃ¡rio */
.calendario-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 12px;
}

.calendario-loading .spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.2rem;
}

.calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: #bbdefb;
    
    padding: 1px;
    width: 100%;
}

.calendario-header {
    background: #1565c0;
    color: white;
    padding: 0.75rem 0.4rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.calendario-dia {
    background: white;
    height: 120px;
    padding: 8px;
    position: relative;
    
    transition: all 0.2s ease;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calendario-dia:hover {
    background: #f8fbff;
    transform: scale(1.005);
    box-shadow: var(--shadow-sm);
}

.calendario-dia.outro-mes {
    background: #f5f5f5;
    color: #9e9e9e;
}

.calendario-dia.hoje {
    background: #2196f3;
    color: white;
    border: 2px solid #fff;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.dia-numero {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.calendario-dia.hoje .dia-numero {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Ãrea dos eventos sem scroll interno */
.calendario-dia .eventos-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Eventos modernos - estilos base */
.evento-item {
    border-radius: 4px;
    padding: 1px 3px;
    margin: 1px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.7rem;
    line-height: 1.3;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border-left: 3px solid;
    min-height: 28px;
    height: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
}

/* Estilos padrão para eventos sem modalidade específica */
.evento-item:not([class*="modalidade-"]) {
    background: rgba(33, 150, 243, 0.25);
    border-left-color: #2196f3;
    box-shadow: 0 1px 3px rgba(33, 150, 243, 0.2);
}

.evento-item:not([class*="modalidade-"]):hover {
    background: rgba(33, 150, 243, 0.35);
    border-left-color: #1976d2;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

/* Estilos padrão para visão de inscrição sem modalidade específica */
.evento-item.visao-inscricao:not([class*="modalidade-"]) {
    background: rgba(76, 175, 80, 0.25);
    border-left-color: #4caf50;
    box-shadow: 0 1px 3px rgba(76, 175, 80, 0.2);
    
}

.evento-item.visao-inscricao:not([class*="modalidade-"]):hover {
    background: rgba(76, 175, 80, 0.35);
    border-left-color: #388e3c;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.evento-item.visao-inscricao {
    height: 28px;
    padding: 1px 3px;
}
/* Efeito hover comum para todos os eventos */
.evento-item:hover {
    transform: translateX(2px);
}

/* Horário do evento */
.evento-hora {
    font-weight: 700;
    color: #1565c0;
    font-size: 0.55rem;
    flex-shrink: 0;
    line-height: 1;
}

.evento-item.visao-inscricao .evento-hora {
    color: #2e7d32;
    display: none; /* Ocultar hora na visão de inscrições */
}

/* Nome do evento */
.evento-nome {
    color: #1a1a1a;
    font-weight: 1000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.6rem;
    flex: 1;
    display: flex;
    align-items: center;
}

/* Cores das modalidades - Visão Cursos (fundo azul + pontinha da modalidade) */
.evento-item.modalidade-ead {
    background: rgba(33, 150, 243, 0.25);
    border-left-color: #4caf50;
    box-shadow: 0 1px 3px rgba(33, 150, 243, 0.2);
}

.evento-item.modalidade-ead:hover {
    background: rgba(33, 150, 243, 0.35);
    border-left-color: #388e3c;
}

.evento-item.modalidade-ead .evento-hora {
    color: #1565c0;
}

.evento-item.modalidade-pre {
    background: rgba(33, 150, 243, 0.25);
    border-left-color: #ff9800;
    box-shadow: 0 1px 3px rgba(33, 150, 243, 0.2);
}

.evento-item.modalidade-pre:hover {
    background: rgba(33, 150, 243, 0.35);
    border-left-color: #f57c00;
}

.evento-item.modalidade-pre .evento-hora {
    color: #1565c0;
}

.evento-item.modalidade-mista,
.evento-item.modalidade-pea {
    background: rgba(33, 150, 243, 0.25);
    border-left-color: #ff5722;
    box-shadow: 0 1px 3px rgba(33, 150, 243, 0.2);
}

.evento-item.modalidade-mista:hover,
.evento-item.modalidade-pea:hover {
    background: rgba(33, 150, 243, 0.35);
    border-left-color: #d84315;
}

.evento-item.modalidade-mista .evento-hora,
.evento-item.modalidade-pea .evento-hora {
    color: #1565c0;
}

/* Cores das modalidades na Visão Inscrições (fundo verde + pontinha da modalidade) */
.evento-item.visao-inscricao.modalidade-ead {
    background: rgba(76, 175, 80, 0.25);
    border-left-color: #8bc34a;
    box-shadow: 0 1px 3px rgba(76, 175, 80, 0.2);
}

.evento-item.visao-inscricao.modalidade-ead:hover {
    background: rgba(76, 175, 80, 0.35);
    border-left-color: #689f38;
}

.evento-item.visao-inscricao.modalidade-ead .evento-hora {
    color: #2e7d32;
}

.evento-item.visao-inscricao.modalidade-pre {
    background: rgba(76, 175, 80, 0.25);
    border-left-color: #ffc107;
    box-shadow: 0 1px 3px rgba(76, 175, 80, 0.2);
}

.evento-item.visao-inscricao.modalidade-pre:hover {
    background: rgba(76, 175, 80, 0.35);
    border-left-color: #ff8f00;
}

.evento-item.visao-inscricao.modalidade-pre .evento-hora {
    color: #2e7d32;
}

.evento-item.visao-inscricao.modalidade-mista,
.evento-item.visao-inscricao.modalidade-pea {
    background: rgba(76, 175, 80, 0.25);
    border-left-color: #e91e63;
    box-shadow: 0 1px 3px rgba(76, 175, 80, 0.2);
}

.evento-item.visao-inscricao.modalidade-mista:hover,
.evento-item.visao-inscricao.modalidade-pea:hover {
    background: rgba(76, 175, 80, 0.35);
    border-left-color: #ad1457;
}

.evento-item.visao-inscricao.modalidade-mista .evento-hora,
.evento-item.visao-inscricao.modalidade-pea .evento-hora {
    color: #2e7d32;
}

/* Cards de eventos modernos */
.evento-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(33, 150, 243, 0.1);
}

.evento-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 25px rgba(33, 150, 243, 0.12);
}

.evento-card .card-body {
    padding: 1rem;
}

.evento-card .card-title {
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* Badges modernos */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-categoria {
    background: #1976d2;
    color: white;
}

.badge-modalidade {
    background: #42a5f5;
    color: white;
}

/* FormulÃ¡rios modernos */
.form-select, .form-control {
    border-radius: 10px;
    border: 2px solid #e3f2fd;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.6rem 0.8rem;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
}

.form-select {
    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='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select:focus, .form-control:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
    background: white;
    transform: translateY(-1px);
}

.form-select:hover {
    border-color: #42a5f5;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* BotÃµes modernos */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    font-size: 0.8rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #1976d2;
    color: white;
}

.btn-primary:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.4);
}

.btn-outline-primary {
    border: 2px solid #2196f3;
    color: #2196f3;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #1976d2;
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #90a4ae;
    color: white;
}

/* Indicadores de status modernos */
.status-inscricao {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.status-inscricao.aberta {
    background: var(--success-color);
}

.status-inscricao.fechada {
    background: var(--danger-color);
}

.status-inscricao.em-breve {
    background: var(--warning-color);
}

/* Contador de eventos moderno */
.contador-eventos {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.4);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.contador-eventos:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.5);
    border-color: #e3f2fd;
}

/* Eventos do dia no modal */
.eventos-dia-lista {
    max-height: 350px;
    overflow-y: auto;
}

.evento-dia-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(33, 150, 243, 0.2) !important;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.evento-dia-item:hover {
    background: rgba(33, 150, 243, 0.05);
    border-color: #2196f3 !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.evento-dia-item h6 {
    color: #1565c0;
    font-weight: 600;
    font-size: 0.9rem;
}

.evento-dia-item .badge {
    font-size: 0.6rem;
}

/* Modal moderno */
.modal-content {
    border-radius: 15px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: #1976d2;
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
}

.modal-body {
    padding: 1.5rem;
    color: #37474f;
    font-size: 0.85rem;
}

.modal-footer {
    border: none;
    padding: 1rem 1.5rem;
}

/* Legenda discreta abaixo do calendÃ¡rio */
.legenda-discreta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: rgba(245, 245, 245, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 1px;
    flex-wrap: wrap;
}


.legenda-secao {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.legenda-titulo {
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    margin-right: 5px;
}

.legenda-separador {
    width: 1px;
    height: 25px;
    background: rgba(0, 0, 0, 0.15);
    margin: 0 5px;
}

.legenda-item-pequena {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legenda-item-pequena span {
    font-size: 0.65rem;
    color: #888;
    font-weight: 500;
}

.cor-pequena {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 6px;
    flex-shrink: 0;
}

/* Modalidades - Mesmo estilo dos eventos (fundo azul + pontinha da modalidade) */
.cor-pequena.modalidade-ead {
    background: rgba(33, 150, 243, 0.25);
    border-left: 3px solid #4caf50;
}

.cor-pequena.modalidade-pre {
    background: rgba(33, 150, 243, 0.25);
    border-left: 3px solid #ff9800;
}

.cor-pequena.modalidade-mista {
    background: rgba(33, 150, 243, 0.25);
    border-left: 3px solid #ff5722;
}

/* Visões do calendário */
.cor-pequena.evento-curso {
    background: rgba(33, 150, 243, 0.3);
    border-left: 3px solid #2196f3;
}

.cor-pequena.evento-inscricao {
    background: rgba(76, 175, 80, 0.3);
    border-left: 3px solid #4caf50;
}

/* Bolinhas de status para a legenda */
.status-bolinha {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.status-bolinha.aberta {
    background: var(--success-color);
}

.status-bolinha.em-breve {
    background: var(--warning-color);
}

.status-bolinha.fechada {
    background: var(--danger-color);
}

/* Alertas modernos */
.alert {
    border-radius: 15px;
    border: none;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.alert-info {
    background: rgba(33, 150, 243, 0.1);
    color: #1565c0;
    border-left: 4px solid #2196f3;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #d32f2f;
    border-left: 4px solid #f44336;
}

/* Scrollbar moderna */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #1976d2;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1565c0;
}

/* Responsividade moderna */
@media (max-width: 768px) {
    .calendario-dia {
        height: 100px;
        padding: 6px;
    }
    
    .evento-item {
        font-size: 0.65rem;
        padding: 4px 6px;
        margin: 1px 0;
        height: 26px;
        min-height: 26px;
    }
    
    /* Esconder horário no calendário em tablets */
    .evento-item .evento-hora {
        display: none;
    }
        
    .evento-nome {
        font-size: 0.6rem;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .dia-numero {
        font-size: 0.8rem;
    }
    
    .calendario-header {
        padding: 0.6rem 0.2rem;
        font-size: 0.65rem;
        letter-spacing: 0.2px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .contador-eventos {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
        bottom: 3px;
        right: 3px;
        border-width: 1.5px;
    }
    
    /* Melhorar o layout do cabeçalho do calendário */
    .card-header .d-flex {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .card-header .card-title {
        margin-bottom: 8px;
        width: 100%;
        text-align: center;
        order: 1;
    }
    
    .visao-toggle {
        order: 2;
    }
    
    .mes-toggle {
        order: 3;
    }
    
    /* Botões de navegação responsivos - tablet */
    .mes-toggle .btn {
        padding: 6px 12px;
        min-width: 44px;
        font-size: 0.85rem;
        flex: 1;
    }
    
    /* Botões de visão responsivos - tablet */
    .visao-toggle .btn {
        padding: 6px 12px;
        min-width: 85px;
        font-size: 0.75rem;
        flex: 1;
    }
    
    /* Legenda responsiva - tablet */
    .legenda-discreta {
        gap: 20px;
        padding: 12px 15px;
    }
    
    .legenda-secao {
        gap: 12px;
    }
    
    .legenda-titulo {
        font-size: 0.63rem;
        margin-right: 4px;
    }
    
    .legenda-separador {
        height: 22px;
        margin: 0 4px;
    }
    
    .legenda-item-pequena span {
        font-size: 0.58rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .calendario-dia {
        height: 85px;
        padding: 4px;
    }
    
    .evento-item {
        font-size: 0.6rem;
        margin: 1px 0;
        padding: 4px 5px;
        height: 24px;
        min-height: 24px;
    }
    
    /* Esconder horário no calendário em mobile */
    .evento-item .evento-hora {
        display: none;
    }
    
    .evento-nome {
        font-size: 0.58rem;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .card {
        margin-bottom: 0.75rem;
    }
    
    .calendario-header {
        padding: 0.4rem 0.1rem;
        font-size: 0.6rem;
        letter-spacing: 0.1px;
    }
    
    .contador-eventos {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
        bottom: 2px;
        right: 2px;
        border-width: 1.5px;
    }
    
    /* Layout do cabeçalho do calendário - mobile */
    .card-header .d-flex {
        justify-content: center;
        align-items: center;
        gap: 6px;
    }
    
    .card-header .card-title {
        text-align: center;
        font-size: 1rem;
        width: 100%;
        order: -1;
    }
    
    /* Botões de navegação responsivos - mobile */
    .mes-toggle .btn {
        padding: 5px 10px;
        min-width: 40px;
        font-size: 0.8rem;
    }
    
    /* Botões de visão responsivos - mobile */
    .visao-toggle .btn {
        padding: 5px 10px;
        min-width: 75px;
        font-size: 0.7rem;
    }
    
    /* Mini calendário responsivo - mobile */
    .mini-calendario-dia {
        font-size: 0.7rem;
        min-height: 30px;
        padding: 4px 2px;
    }
    
    .mini-calendario-header {
        font-size: 0.65rem;
        padding: 4px 2px;
    }
    
    .evento-calendario-info .card-body {
        padding: 1rem 0.5rem;
    }
    
    .evento-calendario-info .card-title {
        font-size: 0.9rem;
    }
    
    .evento-calendario-info .card-text {
        font-size: 0.8rem;
    }
    
    /* Label parceira responsivo - mobile */
    .parceira-label {
        font-size: 0.7rem;
        padding: 3px 10px;
        top: -6px;
    }
    
    /* Contato responsivo - mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin: 1rem 0;
    }
    
    .contact-card {
        padding: 1.2rem;
        border-left-width: 3px;
    }
    
    .contact-card h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-card p {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    /* Legenda legÃ­vel para celular */
    .legenda-discreta {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 4px;
        padding: 6px 8px;
        font-size: 0.6rem;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .legenda-secao {
        display: flex;
        flex-direction: row;
        gap: 3px;
        align-items: center;
        white-space: nowrap;
        min-width: 0;
    }
    
    .legenda-titulo {
        display: none;
    }
    
    .legenda-separador {
        display: none;
    }
    
    .legenda-item-pequena {
        gap: 3px;
        align-items: center;
        min-width: 0;
        margin: 0 3px;
    }
    
    .legenda-item-pequena span {
        font-size: 0.6rem;
        font-weight: 500;
        white-space: nowrap;
    }
    
    .cor-pequena, .status-bolinha {
        width: 9px;
        height: 9px;
        flex-shrink: 0;
        margin-right: 3px;
    }
    
    .cor-pequena.modalidade-ead,
    .cor-pequena.modalidade-pre,
    .cor-pequena.modalidade-mista {
        width: 8px;
        border-left-width: 2px;
    }
}

/* Legenda para telas muito pequenas */
@media (max-width: 400px) {
    /* Layout do cabeçalho do calendário - telas pequenas */
    .card-header .d-flex {
        justify-content: center;
        gap: 4px;
        flex-direction: column;
    }
    
    .card-header .card-title {
        font-size: 0.9rem;
        order: 1;
        width: 100%;
        text-align: center;
    }
    
    .visao-toggle {
        order: 2;
    }
    
    .mes-toggle {
        order: 3;
    }
    

    
    /* Esconder horário no calendário em telas pequenas */
    .evento-item .evento-hora {
        display: none;
    }
    
    /* Ajustar altura para telas pequenas */
    .evento-item {
        height: 22px;
        min-height: 22px;
        justify-content: center;
    }
    
    .evento-nome {
        line-height: 1.1;
    }

    /* Botões de navegação responsivos - telas pequenas */
    .mes-toggle .btn {
        padding: 4px 8px;
        min-width: 36px;
        font-size: 0.75rem;
    }
    
    .visao-toggle .btn {
        padding: 4px 8px;
        min-width: 60px;
        font-size: 0.65rem;
    }
    
    /* Melhorar o layout em telas pequenas */
    .visao-toggle .btn i {
        margin-right: 2px;
    }
    
    .legenda-discreta {
        padding: 4px 6px;
        gap: 2px;
        font-size: 0.55rem;
    }
    
    .legenda-secao {
        gap: 2px;
    }
    
    .legenda-item-pequena {
        gap: 2px;
        margin: 0 2px;
    }
    
    .legenda-item-pequena span {
        font-size: 0.55rem;
    }
    
    .cor-pequena, .status-bolinha {
        width: 8px;
        height: 8px;
        margin-right: 2px;
    }
    
    .cor-pequena.modalidade-ead,
    .cor-pequena.modalidade-pre,
    .cor-pequena.modalidade-mista {
        width: 7px;
        border-left-width: 2px;
    }
}

/* Telas extra pequenas - celulares antigos */
@media (max-width: 320px) {
    /* Layout do cabeçalho do calendário - telas extra pequenas */
    .card-header .d-flex {
        justify-content: center;
        gap: 2px;
        flex-direction: column;
    }
    
    .card-header .card-title {
        font-size: 0.85rem;
        order: 1;
        width: 100%;
        text-align: center;
    }
    
    .visao-toggle {
        order: 2;
    }
    
    .mes-toggle {
        order: 3;
    }
    
    /* Esconder horário no calendário em telas extra pequenas */
    .evento-item .evento-hora {
        display: none;
    }
    
    /* Ajustar altura para telas extra pequenas */
    .evento-item {
        height: 20px;
        min-height: 20px;
        justify-content: center;
    }
    
    .evento-nome {
        line-height: 1;
    }

    .mes-toggle .btn {
        padding: 3px 6px;
        min-width: 32px;
        font-size: 0.7rem;
    }
    
    .visao-toggle .btn {
        padding: 3px 6px;
        min-width: 55px;
        font-size: 0.6rem;
    }
    
    /* Esconder ícones em telas muito pequenas */
    .visao-toggle .btn i {
        display: none;
    }
    
    /* Ajustar espaçamento sem ícones */
    .visao-toggle .btn {
        padding: 3px 8px;
    }
    
    .mes-toggle {
        padding: 3px;
        gap: 1px;
    }
    
    .visao-toggle {
        padding: 3px;
        gap: 1px;
    }
    

}

/* Orientação paisagem em dispositivos móveis */
@media (max-width: 768px) and (orientation: landscape) {
    .card-header .d-flex {
        justify-content: space-between;
        gap: 4px;
        flex-wrap: nowrap;
    }
    
    .card-header .card-title {
        width: auto;
        margin-bottom: 0;
        text-align: left;
    }
    
    .mes-toggle .btn {
        padding: 4px 10px;
        min-width: 38px;
        font-size: 0.8rem;
        flex: 1;
    }
    
    .visao-toggle .btn {
        padding: 4px 10px;
        min-width: 62px;
        font-size: 0.7rem;
        flex: 1;
    }
}

/* BotÃ£o hambÃºrguer animado */
.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--primary-color, #1976d2);
  color: var(--primary-color, #1976d2);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.75rem;
  height: 80px;
  z-index: 1001;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: var(--primary-color, #1976d2);
  color: white;
}

.mobile-menu-toggle:hover .hamburger span {
  background: white;
}

.hamburger {
  display: inline-block;
  width: 28px;
  height: 22px;
  position: relative;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--primary-color, #1976d2);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s cubic-bezier(.4,2,.6,1);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.mobile-menu-toggle.open .hamburger span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}
.mobile-menu-toggle.open .hamburger span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.open .hamburger span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block !important;
    position: fixed;
    top: 110px;
    right: 20px;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--primary-color);
    border-radius: 16px 0 0 16px;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    flex-direction: column;
    align-items: flex-start;
    padding: 3.5rem 1.5rem 1.5rem 2rem;
    transition: right 0.35s cubic-bezier(.4,2,.6,1);
    z-index: 999;
    gap: 0;
    overflow-y: auto;
    display: flex;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-link {
    display: block;
    width: 100%;
    padding: 1.1rem 0 1.1rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    color: var(--primary-color, #1976d2);
    background: transparent;
    text-align: left;
    font-size: 1.1rem;
    border-radius: 8px;
    margin-bottom: 0.2rem;
    transition: background 0.2s, color 0.2s;
  }
  .nav-link:last-child {
    border-bottom: none;
  }
  .nav-link.active, .nav-link:hover {
    background: var(--primary-color);
    color: #fff;
  }
  .nav-container {
    position: relative;
    justify-content: space-between;
    padding: 0.5rem 1rem;
  }
}
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  .nav-links {
    position: static !important;
    height: auto !important;
    width: auto !important;
    background: none !important;
    box-shadow: none !important;
    flex-direction: row !important;
    padding: 0 !important;
    gap: 1.5rem !important;
    display: flex !important;
  }
} 
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #2c3e50;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.dark-mode {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --light-color: #34495e;
    --dark-color: #ecf0f1;
    --text-color: #ecf0f1;
    --bg-color: #2c3e50;
    --card-bg: #34495e;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right img {
    
    height: auto;

}



/* Esconder logo CJF e adicionar padding no mobile */
@media (max-width: 768px) {
    .header-right {
        display: none;
    }
    
    header {
        padding: 1.5rem 0;
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #ecf0f1;
    color: white;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 300px;
    height: auto;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--secondary-color);
    transform: rotate(30deg);
}

 /* Navigation */
 nav {
    background-color: var(--secondary-color);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    margin: 0 0.3rem;
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    color: white;
    transform: translateY(-2px);
}

.nav-link i {
    margin-right: 8px;
}


/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    padding: 4rem 0;
    min-height: 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 L0,100 Z"></path></svg>');
    background-size: cover;
    opacity: 0.1;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    animation: fadeInDown 1s ease;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
    line-height: 1.6;
}

.hero .cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease 0.6s both;
    margin: 0 0.5rem;
}

.hero .cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.hero .cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.hero .cta-button.secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.hero .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Responsividade da classe hero */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
        min-height: 320px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .hero .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        margin: 0.25rem;
    }
    
    .hero .cta-buttons {
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 2.5rem 0;
        min-height: 280px;
    }
    
    .hero h1 {
        font-size: 1.7rem;
        margin-bottom: 0.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        padding: 0 0.5rem;
    }
    
    .hero .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        display: block;
        margin: 0.5rem auto;
        width: fit-content;
        min-width: 200px;
    }
    
    .hero .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
        min-height: 260px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.7rem;
        padding: 0 0.5rem;
    }
    
    .hero p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .hero .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: 180px;
        border-radius: 25px;
    }
}

@media (max-width: 360px) {
    .hero {
        padding: 1.5rem 0;
        min-height: 240px;
    }
    
    .hero h1 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
        padding: 0 0.5rem;
    }
    
    .hero p {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .hero .cta-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        min-width: 160px;
        margin: 0.3rem auto;
    }
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: var(--light-color);
}


.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.about-content:hover {
    
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.about-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
 

.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}
.about-content h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;

}

.about-content h4 {
    color: var(--secondary-color);
    margin: 1.2rem 0 0.8rem;
    font-size: 1.2rem;
}

.about-content h5 {
    color: var(--accent-color);
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

.about-content p {
    margin-bottom: 1rem;
}

.feature-list, .objectives-list {
    list-style-type: none;
    margin: 1rem 0 1.5rem;
}

.feature-list li, .objectives-list li {
    padding: 0.8rem 0;
    list-style-type: none;
    position: relative;
    padding-left: 1.8rem;
    transition: var(--transition);
}


.feature-list li:hover, .objectives-list li:hover {
    
    
}



.feature-list li::before, .objectives-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0.8rem;
}

.metric-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
    width: 100%;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.metric-card h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    order: 1;
}

.metric-card p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
    order: 2;
}

.governance-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.governance-pillar {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.governance-pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-section {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.benefit-section ul {
    list-style-type: none;
}

.benefit-section li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.benefit-section li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-size: 0.8rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: white;
    padding-left: 5px;
}

.footer-link i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-link {
        padding: 0.5rem 0.8rem;
        margin: 0.2rem;
        font-size: 0.9rem;
    }
}

.institutions-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.institutions-content:hover {

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.institutions-content h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}

.institutions-content h4 {
    color: var(--secondary-color);
    margin: 1.2rem 0 0.8rem;
    font-size: 1.2rem;
}

.institutions-content p {
    margin-bottom: 1rem;
}

.institution-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.institution {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.institution:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.institution h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.institution p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.institution a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
    transition: var(--transition);
}

.institution a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.institutions-content ul {
    list-style-type: none;
    margin: 1.5rem 0;
}

.institutions-content li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 1.8rem;
    transition: var(--transition);
}

   .institutions-content li::before {
            content: '\f054';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: var(--secondary-color);
            position: absolute;
            left: 0;
            top: 0.8rem;
            font-size: 0.8rem;
        }


        .institutions-content li {
            padding: 0.8rem 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            position: relative;
            padding-left: 1.8rem;
            transition: var(--transition);
        }

        .dark-mode .institutions-content li {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .institutions-content li:hover {
            background-color: rgba(0, 0, 0, 0.03);
            padding-left: 2rem;
        }

        .dark-mode .institutions-content li:hover {
            background-color: rgba(255, 255, 255, 0.05);
        }

        .metric-card {
            background-color: var(--bg-color);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            box-shadow: var(--shadow);
            border-left: 4px solid var(--accent-color);
            transition: var(--transition);
        }
        .contact-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .contact-info {
            background-color: var(--card-bg);
            border-radius: 10px;
            padding: 2rem;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .contact-info:hover {
          
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        .contact-info h3 {
            color: var(--primary-color);
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
        }

        .contact-list {
            list-style: none;
        }

        .contact-list li {
            margin-bottom: 1.5rem;
            padding-left: 2.5rem;
            position: relative;
        }

        .contact-list i {
            position: absolute;
            left: 0;
            top: 0.2rem;
            color: var(--secondary-color);
            font-size: 1.2rem;
        }

        .contact-list strong {
            display: block;
            margin-bottom: 0.3rem;
            color: var(--primary-color);
        }

        .contact-list a {
            color: var(--secondary-color);
            text-decoration: none;
            transition: var(--transition);
        }

        .contact-list a:hover {
            color: var(--accent-color);
            text-decoration: underline;
        }

        /* Contact Form */
        .contact-form {
            background-color: var(--card-bg);
            border-radius: 10px;
            padding: 2rem;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .contact-form:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--primary-color);
        }

        .form-control {
            width: 100%;
            padding: 0.8rem 1rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-family: 'Montserrat', sans-serif;
            font-size: 1rem;
            transition: var(--transition);
            background-color: var(--bg-color);
            color: var(--text-color);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        }

        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }

        .map-section {
            margin-top: 3rem;
        }

        .map-container {
            height: 400px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            margin-top: 1.5rem;
            margin-bottom: 1.5rem;
        }
        iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        .contact-section {
            padding: 4rem 0;
        }


        .btn-contact {
            display: inline-block;
            background-color: var(--secondary-color);
            color: white;
            padding: 0.8rem 1.8rem;
            border: none;
            border-radius: 4px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: block;
            width: 100%;
        }

/* Badge para instituições */
.badge-instituicao {
    background: #6c757d;
    color: white;
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin: 0.1rem;
    display: inline-block;
}

/* Estilo para informações de instituição nos cards */
.instituicao-info {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.instituicao-info i {
    margin-right: 0.25rem;
    color: var(--secondary-color);
}

/* Melhorar o filtro de instituição */
#instituicaoFilter {
    font-size: 0.85rem;
}

#instituicaoFilter option {
    padding: 0.5rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease 0.6s both;
    margin: 0 0.5rem;
}

.cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.cta-button.secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Responsividade dos botões CTA globais */
@media (max-width: 576px) {
    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        display: block;
        margin: 0.5rem auto;
        width: fit-content;
        min-width: 200px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }
}

/* Features Section */
.features-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* About Section */
.index-section {
    padding: 4rem 0;
    background-color: var(--light-color);
}


.index-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.index-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.index-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.index-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.index-image:hover img {
    transform: scale(1.05);
}

/* Institutions Preview */
.institutions-section {
    padding: 4rem 0;
}

.institutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    column-count: auto;
}

.institution-logo {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.institution-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.institution-logo img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.institution-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================
   ESTILOS PARA ABAS DO MODAL DE EVENTOS
   ======================================== */

/* Navegação das abas */
#eventoTabs .nav-link {
    color: var(--secondary-color);
    border: 1px solid rgba(33, 150, 243, 0.1);
    background: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.25rem;
    margin-right: 0.5rem;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    transition: all var(--transition-fast);
    font-weight: 500;
}

#eventoTabs .nav-link:hover {
    background: rgba(33, 150, 243, 0.05);
    border-color: rgba(33, 150, 243, 0.2);
    color: var(--primary-color);
}

#eventoTabs .nav-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

#eventoTabs .nav-link.active:hover {
    background: var(--primary-dark);
}

/* Conteúdo das abas */
#eventoTabsContent {
    padding-top: 1rem;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

/* Cards da programação */
.programacao-card {
    transition: all var(--transition-fast);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.programacao-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.programacao-card .card-header {
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

/* Cards da equipe */
.equipe-card {
    transition: all var(--transition-fast);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.equipe-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.equipe-card .card-header {
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

/* Membros da equipe */
.equipe-membro {
    transition: all var(--transition-fast);
}

.equipe-membro:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.equipe-membro .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.equipe-membro .badge {
    font-size: 0.85rem;
}

/* Estatísticas da programação */
.programacao-stats {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.programacao-stat-item {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.programacao-stat-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Responsive para abas */
@media (max-width: 768px) {
    #eventoTabs .nav-link {
        padding: 0.5rem 0.75rem;
        margin-right: 0.25rem;
        font-size: 0.85rem;
    }
    
    #eventoTabs .nav-link .badge {
        font-size: 0.65rem;
    }
    
    .programacao-card .card-body {
        padding: 1rem;
    }
    
    .equipe-card .card-body {
        padding: 1rem;
    }
    
    .equipe-membro .card-body {
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    #eventoTabs {
        flex-wrap: wrap;
    }
    
    #eventoTabs .nav-item {
        flex: 1;
        margin-bottom: 0.25rem;
    }
    
    #eventoTabs .nav-link {
        text-align: center;
        margin-right: 0;
        margin-left: 0.125rem;
        margin-right: 0.125rem;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .programacao-stat-item {
        margin-bottom: 0.5rem;
    }
    
    .equipe-membro {
        margin-bottom: 0.5rem;
    }
    
    .equipe-membro .card-body {
        padding: 0.5rem;
    }
    
    .equipe-membro .card-title {
        font-size: 0.9rem;
    }
    
    .equipe-membro .badge {
        font-size: 0.7rem;
    }
}

/* Tooltip moderno customizado */
.tooltip-moderno {
    position: fixed;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    max-width: 300px;
    text-align: center;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.tooltip-moderno::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.tooltip-moderno.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

.tooltip-moderno.tooltip-top {
    margin-top: 10px;
    margin-bottom: 0;
}

.tooltip-moderno.tooltip-top::before {
    top: -12px;
    border-top-color: transparent;
    border-bottom-color: rgba(0, 0, 0, 0.9);
}

/* Responsividade do tooltip */
@media (max-width: 768px) {
    .tooltip-moderno {
        font-size: 0.75rem;
        padding: 8px 12px;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .tooltip-moderno {
        font-size: 0.7rem;
        padding: 6px 10px;
        max-width: 200px;
        white-space: normal;
        text-align: left;
    }
}

/* Responsividade específica para a página sobre.html */
@media (max-width: 768px) {
    .about-section {
        padding: 3rem 0;
    }
    
    .about-content {
        padding: 2rem;
    }
    
    .about-content h3 {
        font-size: 1.3rem;
        margin: 1.2rem 0 0.8rem;
    }
    
    .about-content h4 {
        font-size: 1.1rem;
        margin: 1rem 0 0.6rem;
    }
    
    .about-content h5 {
        font-size: 1rem;
        margin: 0.8rem 0 0.4rem;
    }
    
    .section-title {
        font-size: 1.7rem;
        margin-bottom: 2rem;
    }
    
    .governance-pillars {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .governance-pillar {
        padding: 1.2rem;
    }
    
    .benefits {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .benefit-section {
        padding: 1.2rem;
    }
    
    .metric-card {
        padding: 1.2rem;
        margin: 1rem 0;
    }
    
    .feature-list li, .objectives-list li {
        padding: 0.6rem 0;
        padding-left: 1.5rem;
    }
    
    .benefit-section li {
        padding: 0.4rem 0;
        padding-left: 1.2rem;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 2rem 0;
    }
    
    .about-content {
        padding: 1.5rem;
    }
    
    .about-content h3 {
        font-size: 1.2rem;
        margin: 1rem 0 0.6rem;
    }
    
    .about-content h4 {
        font-size: 1rem;
        margin: 0.8rem 0 0.5rem;
    }
    
    .about-content h5 {
        font-size: 0.95rem;
        margin: 0.6rem 0 0.3rem;
    }
    
    .about-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .governance-pillars {
        gap: 0.8rem;
        margin: 1rem 0;
    }
    
    .governance-pillar {
        padding: 1rem;
    }
    
    .governance-pillar h5 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .governance-pillar p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .benefits {
        gap: 0.8rem;
        margin: 1rem 0;
    }
    
    .benefit-section {
        padding: 1rem;
    }
    
    .benefit-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .metric-card {
        padding: 1rem;
        margin: 0.8rem 0;
    }
    
    .metric-card h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .metric-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .feature-list li, .objectives-list li {
        padding: 0.5rem 0;
        padding-left: 1.3rem;
        font-size: 0.9rem;
    }
    
    .benefit-section li {
        padding: 0.3rem 0;
        padding-left: 1.1rem;
        font-size: 0.85rem;
    }
    
    .feature-list li::before, .objectives-list li::before {
        top: 0.6rem;
        font-size: 0.7rem;
    }
    
    .benefit-section li::before {
        top: 0.4rem;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 1.5rem 0;
    }
    
    .about-content {
        padding: 1.2rem;
    }
    
    .about-content h3 {
        font-size: 1.1rem;
        margin: 0.8rem 0 0.5rem;
    }
    
    .about-content h4 {
        font-size: 0.95rem;
        margin: 0.6rem 0 0.4rem;
    }
    
    .about-content h5 {
        font-size: 0.9rem;
        margin: 0.5rem 0 0.3rem;
    }
    
    .about-content p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.7rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .governance-pillars {
        gap: 0.6rem;
        margin: 0.8rem 0;
    }
    
    .governance-pillar {
        padding: 0.8rem;
    }
    
    .governance-pillar h5 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .governance-pillar p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .benefits {
        gap: 0.6rem;
        margin: 0.8rem 0;
    }
    
    .benefit-section {
        padding: 0.8rem;
    }
    
    .benefit-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .metric-card {
        padding: 0.8rem;
        margin: 0.6rem 0;
    }
    
    .metric-card h5 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .metric-card p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .feature-list li, .objectives-list li {
        padding: 0.4rem 0;
        padding-left: 1.2rem;
        font-size: 0.85rem;
    }
    
    .benefit-section li {
        padding: 0.25rem 0;
        padding-left: 1rem;
        font-size: 0.8rem;
    }
    
    .feature-list li::before, .objectives-list li::before {
        top: 0.5rem;
        font-size: 0.65rem;
    }
    
    .benefit-section li::before {
        top: 0.35rem;
        font-size: 0.6rem;
    }
}

@media (max-width: 360px) {
    .about-section {
        padding: 1.2rem 0;
    }
    
    .about-content {
        padding: 1rem;
    }
    
    .about-content h3 {
        font-size: 1rem;
        margin: 0.6rem 0 0.4rem;
    }
    
    .about-content h4 {
        font-size: 0.9rem;
        margin: 0.5rem 0 0.3rem;
    }
    
    .about-content h5 {
        font-size: 0.85rem;
        margin: 0.4rem 0 0.2rem;
    }
    
    .about-content p {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .governance-pillars {
        gap: 0.5rem;
        margin: 0.6rem 0;
    }
    
    .governance-pillar {
        padding: 0.7rem;
    }
    
    .governance-pillar h5 {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .governance-pillar p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .benefits {
        gap: 0.5rem;
        margin: 0.6rem 0;
    }
    
    .benefit-section {
        padding: 0.7rem;
    }
    
    .benefit-section h4 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .metric-card {
        padding: 0.7rem;
        margin: 0.5rem 0;
    }
    
    .metric-card h5 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .metric-card p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .feature-list li, .objectives-list li {
        padding: 0.3rem 0;
        padding-left: 1.1rem;
        font-size: 0.8rem;
    }
    
    .benefit-section li {
        padding: 0.2rem 0;
        padding-left: 0.9rem;
        font-size: 0.75rem;
    }
    
    .feature-list li::before, .objectives-list li::before {
        top: 0.4rem;
        font-size: 0.6rem;
    }
    
    .benefit-section li::before {
        top: 0.3rem;
        font-size: 0.55rem;
    }
}

/* Botões de Ver Mais/Menos Cursos */
#btnVerMaisCursos, #btnVerMenosCursos {
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#btnVerMaisCursos:hover {
    background-color: #1976d2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
}

#btnVerMenosCursos:hover {
    background-color: #6c757d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* Select de Visualização do Calendário */
.visao-select-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.visao-select {
    min-width: 200px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(25, 118, 210, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1976d2;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.visao-select:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
    background: white;
}

.visao-select option {
    padding: 8px;
    font-weight: 500;
}

/* Animação suave para a lista de eventos */
.evento-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Media Queries específicos para Instituições */
@media (max-width: 1024px) and (min-width: 769px) {
    .institution-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.2rem;
    }
    
    .institution {
        padding: 1.3rem;
    }
    
    .institutions-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .institution-list {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .institution {
        padding: 1.2rem;
    }
    
    .institution h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .institution p {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .institutions-content {
        padding: 1.8rem;
    }
    
    .institutions-content h3 {
        font-size: 1.3rem;
    }
    
    .institutions-content h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .institution-list {
        gap: 0.8rem;
        margin: 1rem 0;
    }
    
    .institution {
        padding: 1rem;
        border-left-width: 3px;
    }
    
    .institution h4 {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .institution p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .institution a {
        font-size: 0.85rem;
        margin-top: 0.8rem;
    }
    
    .institutions-content {
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .institutions-content h3 {
        font-size: 1.2rem;
        margin: 1.2rem 0 0.8rem;
    }
    
    .institutions-content h4 {
        font-size: 1rem;
        margin: 1rem 0 0.6rem;
    }
    
    .institutions-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .institutions-content li {
        padding: 0.6rem 0;
        padding-left: 1.5rem;
        font-size: 0.9rem;
    }
    
    .institutions-content li::before {
        font-size: 0.7rem;
        top: 0.6rem;
    }
}

@media (max-width: 480px) {
    .institution {
        padding: 0.8rem;
    }
    
    .institution h4 {
        font-size: 0.9rem;
    }
    
    .institution p {
        font-size: 0.8rem;
    }
    
    .institutions-content {
        padding: 1.2rem;
    }
    
    .institutions-content h3 {
        font-size: 1.1rem;
    }
    
    .institutions-content h4 {
        font-size: 0.95rem;
    }
    
    .institutions-content p {
        font-size: 0.85rem;
    }
    
    .institutions-content li {
        font-size: 0.85rem;
        padding-left: 1.2rem;
    }
}

@media (max-width: 360px) {
    .institution {
        padding: 0.7rem;
    }
    
    .institution h4 {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .institution p {
        font-size: 0.75rem;
    }
    
    .institution a {
        font-size: 0.8rem;
    }
    
    .institutions-content {
        padding: 1rem;
    }
    
    .institutions-content h3 {
        font-size: 1rem;
    }
    
    .institutions-content h4 {
        font-size: 0.9rem;
    }
    
    .institutions-content p {
        font-size: 0.8rem;
    }
    
    .institutions-content li {
        font-size: 0.8rem;
        padding: 0.5rem 0;
        padding-left: 1rem;
    }
    
    .institutions-content li::before {
        font-size: 0.6rem;
        top: 0.5rem;
    }
}

/* Mini Calendário do Evento */
.evento-calendario-container {
    max-width: 100%;
}

.mini-calendario {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.mini-calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}

.mini-calendario-header {
    background: #1976d2;
    color: white;
    padding: 8px 4px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.mini-calendario-header:last-child {
    border-right: none;
}

.mini-calendario-dia {
    padding: 8px 4px;
    text-align: center;
    font-size: 0.8rem;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.mini-calendario-dia:last-child {
    border-right: none;
}

.mini-calendario-dia.vazio {
    background: transparent;
    border-color: transparent;
}

.mini-calendario-dia.evento-inicio {
    background: #28a745;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    transform: scale(1.05);
    z-index: 2;
    position: relative;
}

.mini-calendario-dia.evento-fim {
    background: #dc3545;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    transform: scale(1.05);
    z-index: 2;
    position: relative;
}

.mini-calendario-dia.evento-durante {
    background: #17a2b8;
    color: white;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(23, 162, 184, 0.2);
}

.evento-calendario-info .card {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.evento-calendario-info .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Estilo para o container da instituição parceira */
.parceira-container {
    position: relative;
}

.parceira-label {
    position: absolute;
    top: -8px;
    left: 0;
    background: #1976d2;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
    z-index: 10;
}

/* Estilos para a página de contato no padrão das instituições */
.contact-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
    font-size: 1.8rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
    display: block;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-card.full-width {
    grid-column: 1 / -1;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.contact-content {
    flex: 1;
}

.contact-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-content p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
}

.contact-content a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-content a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.highlight {
    color: var(--secondary-color);
    font-weight: 600;
}

.maps-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    padding: 8px 0;
    transition: var(--transition);
}

.maps-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
    transform: translateX(5px);
}

/* Media Queries para Botões Ver Mais/Menos Cursos */
@media (max-width: 768px) {
    #btnVerMaisCursos, #btnVerMenosCursos {
        padding: 10px 24px;
        font-size: 0.95rem;
        letter-spacing: 0.3px;
    }
    
    /* Mini calendário responsivo - tablet */
    .mini-calendario-dia {
        font-size: 0.75rem;
        min-height: 35px;
        padding: 6px 3px;
    }
    
    .mini-calendario-header {
        font-size: 0.7rem;
        padding: 6px 3px;
    }
    
    /* Contato responsivo - tablet */
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.2rem;
    }
    
    .contact-card {
        padding: 1.3rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    #btnVerMaisCursos, #btnVerMenosCursos {
        padding: 10px 20px;
        font-size: 0.9rem;
        letter-spacing: 0.2px;
        border-radius: 30px;
    }
}

@media (max-width: 480px) {
    #btnVerMaisCursos, #btnVerMenosCursos {
        padding: 8px 16px;
        font-size: 0.85rem;
        letter-spacing: 0.1px;
        border-radius: 25px;
    }
}

