a:hover {
  color: #000 !important;
}

:root {
    --primary-green: #059669;
    --secondary-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-orange1: #f50000ff;
    --dark-gray: #1f2937;
    --light-gray: #f9fafb;
}

.hero-section1{
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/placeholder.svg?height=600&width=1200') center/cover;
    opacity: 0.1;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}
.hero-section1 {
    margin-top: 100px; 
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}
.hero-content {
    position: relative;
    z-index: 2;
}

.section-title {
    position: relative;
    margin-bottom: 40px;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-section1::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('/placeholder.svg?height=600&width=1200') center/cover;
        opacity: 0.1;
    }

    .floating-elements {
        position: absolute;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .floating-element {
        position: absolute;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        animation: float 6s ease-in-out infinite;
    }
    .hero-section1 {
        margin-top: 100px; /* Ajuste conforme a altura do seu menu */
    }

    .floating-element:nth-child(1) {
        width: 80px;
        height: 80px;
        top: 20%;
        left: 10%;
        animation-delay: 0s;
    }

    .floating-element:nth-child(2) {
        width: 60px;
        height: 60px;
        top: 60%;
        right: 15%;
        animation-delay: 2s;
    }

    .floating-element:nth-child(3) {
        width: 100px;
        height: 100px;
        bottom: 20%;
        left: 20%;
        animation-delay: 4s;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0px) rotate(0deg); }
        50% { transform: translateY(-20px) rotate(180deg); }
    }

}

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

.hero-section {
    margin-top: 90px;
}

.board-section {
    padding: 80px 20px;
    background: #f8f9fa;
    margin-top: -100px;
}

.board-container {
    max-width: 1200px;
    margin: 0 auto;
}

.board-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.board-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #f59e0b;
    border-radius: 2px;
}

.board-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Board Member Card */
.board-member,
.board-memberpca {
    position: relative;
    width: 280px;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.board-member:hover,
.board-memberpca:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.board-member img,
.board-memberpca img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    margin-top: -10p;
}

.board-member:hover img,
.board-memberpca:hover img {
    transform: scale(1.05);
}
/* Overlay Info */
.board-member::after,
.board-memberpca::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.board-member:hover::after,
.board-memberpca:hover::after {
    opacity: 1;
}

/* Text Info */
.board-member h4,
.board-memberpca h4 {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 80px;
    color: #fff;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    transform: translateY(20px);
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.board-memberpca h4 {
    font-size: 1.5rem;
    color: #ffffff; 
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.board-member p,
.board-memberpca p {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    color: #e0e0e0;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    font-size: 0.95rem;
    text-align: center;
    transform: translateY(20px);
    line-height: 1.4;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

.board-memberpca p {
    color: #ffffff; 
    font-weight: 500;
}

.board-member:hover h4,
.board-memberpca:hover h4,
.board-member:hover p,
.board-memberpca:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* PCA Special Style */
.board-memberpca {
    width: 300px;
    height: 370px;
}

/* Responsive */
@media (max-width: 768px) {
    .board-section {
        padding: 60px 20px;
        margin-top: -50px;
    }

    .board-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .board-grid {
        gap: 30px;
    }

    .board-member,
    .board-memberpca {
        width: 240px;
        height: 300px;
    }

    .board-member h4,
    .board-memberpca h4 {
        font-size: 1.2rem;
        bottom: 50px;
    }

    .board-member p,
    .board-memberpca p {
        font-size: 0.85rem;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .board-member,
    .board-memberpca {
        width: 200px;
        height: 250px;
    }

    .board-member h4,
    .board-memberpca h4 {
        font-size: 1rem;
        bottom: 40px;
    }

    .board-member p,
    .board-memberpca p {
        font-size: 0.8rem;
    }
}

/* Main Content */
.main-content {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    margin-bottom: 50px;
}

.page-title h1 {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 1.1rem;
    color: #666;
}

/* Organigrama Container */
.organigrama-container {
    border-radius: 15px;
    padding: 40px;
    overflow-x: auto;
}

.organigrama {
    min-width: 1200px;
    position: relative;
}

/* Hierarchy Levels */
.level {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.level-1 {
    gap: 20px;
}

.level-2 {
    gap: 15px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto 40px;
}

.level-3 {
    gap: 20px;
}

.level-4 {
    gap: 15px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

/* Org Boxes */
.org-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

/* Leadership Boxes */
.org-box.leadership {
    background: linear-gradient(135deg, #4caf50, #008031ff);
    color: white;
    border-color: #4caf50;
    min-width: 200px;
}

/* Department Boxes */
.org-box.department {
    background: linear-gradient(135deg, #4caf50, #008031ff);
    color: white;
    border-color: #4caf50;
    min-width: 220px;
}

/* Committee/Cabinet Boxes */
.org-box.committee {
    background: #e9ecef;
    border-color: #ced4da;
    min-width: 180px;
}

.org-box.sub-dept {
    background: #f8f9fa;
    border-color: #dee2e6;
    min-width: 160px;
    font-size: 12px;
}

.connection-line {
    position: absolute;
    background-color: #ced4da;
    z-index: 1;
}

.vertical-line {
    width: 2px;
    height: 30px;
    left: 50%;
    transform: translateX(-50%);
    bottom: -30px;
}

.horizontal-line {
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 768px) {
    .organigrama-container {
        padding: 20px;
        overflow-x: scroll;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .org-box {
        font-size: 11px;
        padding: 10px 15px;
        min-width: 140px;
    }

    .org-box.leadership,
    .org-box.department {
        min-width: 160px;
    }
}

/* ================== ADIÇÕES: Destaque PCA + prioridade no mobile ================== */

/* ===== Destaque PCA (desktop) ===== */
.board-memberpca {
    /* leve aumento e destaque por padrão */
    width: 320px;              /* ligeiramente maior que os outros */
    height: 380px;
    transform: translateY(-12px) scale(1.03);
    z-index: 5;
    border: 4px solid var(--accent-orange); /* destaque com laranja */
    box-shadow: 0 30px 60px rgba(0,0,0,0.28);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    outline: none;
}

/* reforçar título / texto do PCA para melhor legibilidade */
.board-memberpca h4 {
    font-size: 1.6rem;
    text-shadow: 0 3px 14px rgba(0,0,0,0.45);
}

/* hover aprofunda o destaque */
.board-memberpca:hover {
    transform: translateY(-20px) scale(1.06);
    box-shadow: 0 40px 80px rgba(0,0,0,0.36);
    border-color: var(--accent-orange1);
}

/* foco por teclado (acessibilidade) */
.board-memberpca:focus {
    box-shadow: 0 40px 80px rgba(0,0,0,0.36), 0 0 0 6px rgba(245,158,11,0.12);
}

/* ===== Responsividade: tornar PCA o primeiro no mobile ===== */
/* para telas <= 768px (tablet/phone) */
@media (max-width: 768px) {
    .board-grid {
        /* garantir fluxo vertical claro em mobile */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* PCA aparece primeiro */
    .board-memberpca {
        order: -1;               /* fica no topo */
        width: 92%;              /* ocupa boa parte da largura do ecrã */
        max-width: 360px;        /* limita o excesso */
        height: auto;            /* permitir melhor responsividade do conteúdo */
        transform: none;         /* remover elevação automática para não quebrar o fluxo */
        margin-bottom: 18px;
        border-width: 3px;
    }

    /* reajustar os outros cards para seguir depois */
    .board-member {
        order: 0;
        width: 88%;
        max-width: 320px;
        margin-bottom: 14px;
    }

    /* ajustar texto dentro do PCA em mobile */
    .board-memberpca h4 {
        font-size: 1.25rem;
        bottom: 60px;
    }

    .board-memberpca p {
        bottom: 20px;
        font-size: 0.95rem;
    }
}

/* para telas pequenas <= 480px garantir ordem também */
@media (max-width: 480px) {
    .board-memberpca {
        order: -1;
        width: 95%;
        max-width: 300px;
        border-width: 2px;
    }

    .board-member {
        width: 92%;
        max-width: 280px;
    }
}
