*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    background-color: #f4f6f9;
    color: #1f2937;
}

/* TÍTULO */

.titulo-galeria{

    padding: 50px 20px 30px;

    text-align: center;

    background: #ffffff;
}

.titulo-galeria h1{

    color: #0b2c52;

    font-size: 46px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin: 0;
}

/* BUSCA */

.busca{
    margin-top: 0;
    margin-bottom: 40px;
}

.busca .row{
    background: #ffffff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.campo-busca{
    height: 58px;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
}

.campo-busca:focus{
    border-color: #0b2c52;
    box-shadow: 0 0 0 0.2rem rgba(11,44,82,0.15);
}

/* GALERIA */

.galeria{
    padding: 20px 0 70px;
}

/* CARD */

.card-presidente{
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
}

.card-presidente::before{
    content: "";
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #0b2c52, #2563eb);
    position: absolute;
    top: 0;
    left: 0;
}

.card-presidente:hover{
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.14);
}

.card-presidente img{
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-presidente:hover img{
    transform: scale(1.03);
}

.conteudo-card{
    padding: 24px;
}

.conteudo-card h3{
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #0b2c52;
    font-weight: 600;
}

.conteudo-card span{
    color: #2563eb;
    font-weight: 600;
    display: block;
    margin-bottom: 0;
    font-size: 15px;
}

/* BOTÃO */

.btn-primary{
    background: linear-gradient(90deg, #0b2c52, #12457f);
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover{
    transform: translateY(-2px);
    background: linear-gradient(90deg, #12457f, #2563eb);
}

/* MODAL */

.modal-content{
    border-radius: 18px;
    border: none;
}

.modal-header{
    background-color: #0b2c52;
    color: white;
}

.modal-title{
    font-weight: 700;
}

.btn-close{
    filter: brightness(0) invert(1);
}

.foto-modal{
    width: 260px;
    height: 320px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nome-modal{
    text-align: center;
    margin-bottom: 10px;
    color: #0b2c52;
    font-weight: 700;
}

.mandato-modal{
    text-align: center;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 30px;
}

.biografia-modal{
    line-height: 1.9;
    color: #374151;
    text-align: justify;
}

/* RODAPÉ */

.rodape{
    background-color: #0b2c52;
    color: white;
    text-align: center;
    padding: 25px;
}

.rodape p{
    margin: 0;
}

/* RESPONSIVIDADE */

@media(max-width: 768px){

    .banner{
        height: 320px;
    }

    .logo-banner{
        width: 180px;
        margin-top: -90px;
        margin-bottom: 15px;
    }

    .texto-banner h2{
        font-size: 26px;
        padding: 0 15px;
    }

    .busca{
        margin-top: 20px;
    }

    .busca .row{
        padding: 18px;
    }

    .galeria .row{
        --bs-gutter-x: 8px;
        --bs-gutter-y: 12px;
    }

    .card-item{
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }

    .card-presidente{
        border-radius: 10px;
    }

    .card-presidente::before{
        height: 4px;
    }

    .card-presidente img{
    height: 180px;
}

    .conteudo-card{
    padding: 12px;
}

    .conteudo-card h3{
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 8px;
}

    .conteudo-card span{
    font-size: 12px;
}

    .foto-modal{
        width: 100%;
        height: auto;
    }
}

.titulo-galeria{
    padding: 35px 15px 20px;
}

.titulo-galeria h1{
    font-size: 28px;
}