/* Estilos modernos e minimalistas para o componente de Fases do Projeto */
.section-project-phases {
    margin-bottom: 6rem;
    padding: 2rem 0;
}

.project-phases-container {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 0;
    position: relative;
}

/* Timeline enfatizada */
.phases-timeline {
    position: relative;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f8fcff, #f0f7ff);
    border-bottom: 1px solid rgba(0, 120, 212, 0.1);
}

.timeline-progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, #0078d4, #00a2ff);
    transform: translateY(-50%);
    transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 2px;
    z-index: 1;
}

.timeline-phases {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

/* Linha de conexão entre as fases */
.timeline-phases::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-50%);
    z-index: -1;
}

/* Estilo das fases individuais */
.timeline-phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0 8px;
}

.phase-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 3px solid #e5e5e5;
    position: relative;
    z-index: 2;
}

.phase-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 120px;
    line-height: 1.4;
}

/* Estado ativo e hover das fases */
.timeline-phase:hover .phase-number {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #0078d4;
    color: #0078d4;
}

.timeline-phase.active .phase-number {
    background: linear-gradient(135deg, #0078d4, #005299);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.3);
}

.timeline-phase.active .phase-label {
    color: #0078d4;
    font-weight: 600;
}

.timeline-phase.completed .phase-number::after {
    content: '✓';
    position: absolute;
    font-size: 1.2rem;
}

/* Fases já percorridas */
.timeline-phase.passed .phase-number {
    background-color: #e9f4fe;
    border-color: #0078d4;
    color: #0078d4;
}

/* Área de conteúdo detalhado */
.phase-detail {
    padding: 0;
    max-height: none; /* Remover restrição de altura */
    overflow: visible;
    border-top: 1px solid rgba(0, 120, 212, 0.1);
    opacity: 1;
}

.phase-detail-container {
    position: relative;
    padding: 2rem;
}

/* === CONTEÚDO DAS FASES - SISTEMA DE EXIBIÇÃO === */

/* Estado padrão: todos os conteúdos ocultos */
.phase-content {
    display: none !important;
    padding: 2rem;
    border-top: 1px solid #eaeaea;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* Estado ativo: apenas o conteúdo selecionado é exibido */
.phase-content.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Suporte adicional para estilos inline */
.phase-content[style*="display: block"],
.phase-content[style*="display:block"] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.phase-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 1rem;
}

.phase-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #0078d4;
}

.responsible {
    display: inline-block;
    background-color: #f0f7ff;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    color: #0078d4;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 120, 212, 0.15);
}

.phase-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
}

.phase-documents {
    background-color: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0078d4;
}

.phase-documents h5 {
    font-size: 1.1rem;
    color: #0078d4;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.phase-documents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.phase-documents li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.phase-documents li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #0078d4;
    font-weight: bold;
    font-size: 1.2em;
}

/* Botão de expandir/colapsar */
.expand-toggle {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.expand-toggle::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid #0078d4;
    border-bottom: 2px solid #0078d4;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.3s ease;
}

.expand-toggle.collapsed::after {
    transform: rotate(-135deg) translateY(2px);
}

/* === ESTILOS PARA ÍCONES DOS PROJETOS === */

.project-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin: 0.5rem;
}

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

.project-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-icon {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8fcff, #e8f4ff);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-icon em {
    font-size: 1.8rem;
    color: #0078d4;
    transition: all 0.3s ease;
}

/* Cores específicas para diferentes tipos de ícones */
.project-icon em.mdi-progress-clock {
    color: #ff8c00; /* Laranja para em andamento */
}

.project-icon em.mdi-check-circle {
    color: #28a745; /* Verde para concluído */
}

.project-icon em.mdi-calendar-clock {
    color: #6f42c1; /* Roxo para planejamento */
}

.project-icon em.mdi-check-decagram {
    color: #20c997; /* Verde claro para aprovado */
}

.project-icon em.mdi-clock-outline {
    color: #ffc107; /* Amarelo para pendente */
}

.project-icon em.mdi-pause-circle {
    color: #6c757d; /* Cinza para suspenso */
}

.project-icon em.mdi-close-circle {
    color: #dc3545; /* Vermelho para cancelado */
}

.project-icon em.mdi-cash-multiple {
    color: #198754; /* Verde escuro para financiado */
}

.project-icon em.mdi-school {
    color: #7B1FA2; /* Roxo para formação profissional */
}

.project-icon em.mdi-medical-bag {
    color: #e74c3c; /* Vermelho para saúde */
}

.project-icon em.mdi-city {
    color: #495057; /* Cinza escuro para infraestrutura */
}

.project-icon em.mdi-laptop {
    color: #563d7c; /* Roxo para tecnologia */
}

.project-icon em.mdi-leaf {
    color: #28a745; /* Verde para ambiente */
}

.project-icon em.mdi-account-group {
    color: #fd7e14; /* Laranja para social */
}

.project-icon em.mdi-briefcase {
    color: #6f42c1; /* Roxo para emprego */
}

.project-icon em.mdi-folder-star {
    color: #0078d4; /* Azul padrão */
}

/* === ÍCONES DAS 5 CATEGORIAS FUNEA === */
/* 1. Formalização Económica */
.project-icon em.mdi-file-document-outline {
    color: #2E7D32; /* Verde escuro */
}

/* 2. Empreendedorismo e Autoemprego */
.project-icon em.mdi-lightbulb-on {
    color: #FF6F00; /* Laranja */
}

/* 3. Emprego e Empregabilidade */
.project-icon em.mdi-briefcase-account {
    color: #1565C0; /* Azul */
}

/* 4. Formação Profissional - já definido acima mas reforçando */
.project-icon em.mdi-school {
    color: #7B1FA2 !important; /* Roxo */
}

/* 5. Capacidade Institucional */
.project-icon em.mdi-office-building {
    color: #D32F2F; /* Vermelho */
}

/* === ÍCONES DE FALLBACK === */
.project-icon em.mdi-star-circle {
    color: #F57C00; /* Laranja para estrela */
}

.project-icon em.mdi-target {
    color: #E91E63; /* Rosa para alvo */
}

.project-icon em.mdi-rocket-launch {
    color: #00BCD4; /* Ciano para foguete */
}

.project-icon em.mdi-flag-triangle {
    color: #FF5722; /* Laranja-vermelho para bandeira */
}

.project-icon em.mdi-diamond-stone {
    color: #9C27B0; /* Roxo para diamante */
}

/* Novos ícones padrão (mantidos para compatibilidade) */
.project-icon em.mdi-flag {
    color: #dc3545; /* Vermelho para bandeira */
}

.project-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.project-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: #0078d4;
}

/* Responsividade */
@media (max-width: 768px) {
    .project-icon {
        width: 50px;
        height: 50px;
        padding: 0.8rem;
    }
    
    .project-icon em {
        font-size: 1.5rem;
    }
    
    .project-title {
        font-size: 1rem;
    }
}

/* === FIM DOS ESTILOS DOS ÍCONES DOS PROJETOS === */
