/* ========== ESTILOS GERAIS DAS SECRETARIAS ========== */

/* Header clean e moderno */
.secretaria-header {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    border-left: 6px solid #3b82f6;
}

.secretaria-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.08) 100%);
    border-radius: 50% 0 0 50%;
    transform: translateX(100px);
}

.secretaria-header h1 {
    color: #0f172a;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-align: left;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.secretaria-header h1 .icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.secretaria-header p {
    color: #64748b;
    font-size: 1rem;
    margin: 0.75rem 0 0 0;
    position: relative;
    z-index: 1;
    font-weight: 400;
    padding-left: 3.5rem;
}

/* Card do secretÃ¡rio */
.secretario-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.secretario-card:hover {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
    border-color: #3b82f6;
}

.secretario-card .card-imagem {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    margin: 0 auto 1.5rem;
    border-radius: 50%;
}

.secretario-card h5 {
    color: #0f172a;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.secretario-card small {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    display: block;
}

/* Bio do secretÃ¡rio */
.bio-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    height: 100%;
}

.bio-section p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.bio-section p i {
    color: #3b82f6;
    margin-top: 0.35rem;
    font-size: 0.5rem;
    flex-shrink: 0;
}

/* SeÃ§Ãµes de tÃ­tulo */
.section-title {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid #3b82f6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
}

/* Lista de equipe */
.list-group-light {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.list-group-item {
    padding: 1.25rem 2rem;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    color: #475569;
    line-height: 1.6;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background: #f8fafc;
    padding-left: 2.5rem;
}

.list-group-item b {
    color: #0f172a;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Card de contato */
.contato-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    height: 100%;
}

.contato-card h4 {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.contato-card h4:first-child {
    margin-top: 0;
}

.contato-card h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #3b82f6;
    border-radius: 2px;
}

.contato-card p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contato-card p i {
    color: #3b82f6;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.contato-card a {
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    display: block;
}

.contato-card a:hover p {
    color: #3b82f6;
    transform: translateX(5px);
}

/* Mapa */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    height: 100%;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: block;
    border: 0;
}

/* Responsivo */
@media (max-width: 768px) {
    .secretaria-header {
        padding: 2rem 1.5rem;
    }
    
    .secretaria-header h1 {
        font-size: 1.5rem;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .secretaria-header h1 .icon {
        font-size: 2rem;
    }
    
    .secretaria-header p {
        font-size: 0.9rem;
        padding-left: 0;
        margin-top: 0.5rem;
    }
    
    .secretaria-header::before {
        width: 200px;
        transform: translateX(50px);
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .map-container {
        min-height: 300px;
    }
    
    .map-container iframe {
        min-height: 300px;
    }
}
/* Estilos modernos para cards circulares de secretarias */
.card-secretaria {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    position: relative;
    overflow: visible;
}

.card-secretaria:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.card-secretaria i {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: #3b82f6;
}

.card-secretaria:hover i {
    transform: scale(1.2) rotateY(360deg);
    color: #2563eb;
}

.card-secretaria .texto-secretarias {
    transition: all 0.3s ease;
    color: #1f2937;
    font-weight: 600;
}

.card-secretaria:hover .texto-secretarias {
    color: #3b82f6;
    transform: scale(1.05);
}

/* Efeito de pulso sutil */
.card-secretaria::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.card-secretaria:hover::after {
    width: 120%;
    height: 120%;
}

.card-secretaria .card-body {
    position: relative;
    z-index: 1;
}

/* Animação de entrada */
.card-secretaria {
    animation: fadeInScale 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Delays para animação em cascata */
.col-sm-2:nth-child(1) .card-secretaria { animation-delay: 0.05s; }
.col-sm-2:nth-child(2) .card-secretaria { animation-delay: 0.1s; }
.col-sm-2:nth-child(3) .card-secretaria { animation-delay: 0.15s; }
.col-sm-2:nth-child(4) .card-secretaria { animation-delay: 0.2s; }
.col-sm-2:nth-child(5) .card-secretaria { animation-delay: 0.25s; }
.col-sm-2:nth-child(6) .card-secretaria { animation-delay: 0.3s; }

/* Container com gradiente de fundo */
.container-secretarias {
    padding: 3rem 0;
    border-radius: 20px;
}

/* Dark mode overrides for secretarias.php */
body.dark-mode .card-secretaria {
    background: linear-gradient(135deg, #283347 0%, #1e293b 100%) !important;
    border-color: #475569 !important;
}
body.dark-mode .card-secretaria .texto-secretarias {
    color: #e2e8f0 !important;
}

