html,
body {
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

footer.footer {
    background: #1F2937;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
}

/* ↓↓↓ CHAMAR SEMPRE NA 1º CLASSE O 'CONTEUDO-PAGINA' DO ARQUIVO POR CAUSA DO HEADER FIXO ↓↓↓ */
.conteudo-pagina {
    flex: 1;
    margin-top: 130px;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

/* ↑↑↑ CHAMAR SEMPRE NA 1º CLASSE DO ARQUIVO POR CAUSA DO HEADER FIXO ↑↑↑ */



/* ↓↓↓ PÁGINA PRINCIPAL DO SITE ↓↓↓ */
#carouselFunssol {
    width: 100%;
    max-width: 100%;
    --h-xs: auto;
    --h-md: 400px;
    --h-lg: 500px;
    --arrow-size-xs: 40px;
    --arrow-size-md: 56px;
    --arrow-size-lg: 72px;
    --arrow-offset: clamp(8px, 2vw, 28px);
    --arrow-bg: rgba(34, 34, 34, 0.72);
    --arrow-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* imagens responsivas */
#carouselFunssol .carousel-item img {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

/* Oculta os ícones de background padrão do Bootstrap  */
#carouselFunssol .carousel-control-prev-icon,
#carouselFunssol .carousel-control-next-icon {
    display: none !important;
}

/* Botões — centralizados verticalmente */
#carouselFunssol .custom-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* posicionamento lateral */
#carouselFunssol .custom-control.prev {
    left: var(--arrow-offset);
}

#carouselFunssol .custom-control.next {
    right: var(--arrow-offset);
}

/* círculo com ícone (responsivo) */
#carouselFunssol .custom-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--arrow-size-xs);
    height: var(--arrow-size-xs);
    border-radius: 50%;
    background: var(--arrow-bg);
    box-shadow: var(--arrow-shadow);
    color: #fff;
    transition: transform .16s ease, opacity .16s ease;
    opacity: 0.95;
}

/* Icone dentro do botão: ocupa porcentagem do círculo */
#carouselFunssol .custom-arrow svg {
    width: 54%;
    height: 54%;
    color: #fff;
    display: block;
}

/* hover / focus states */
#carouselFunssol .custom-control:hover .custom-arrow,
#carouselFunssol .custom-control:focus .custom-arrow {
    transform: scale(1.06);
    opacity: 1;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
    outline: none;
}

/* Indicadores: ligeiramente acima do padrão, para não colidir com imagens muito altas */
#carouselFunssol .carousel-indicators {
    bottom: 12px;
}

/* Acessibilidade: foco visível */
#carouselFunssol .custom-control:focus-visible .custom-arrow {
    box-shadow: 0 0 0 4px rgba(255, 67, 59, 0.12);
}

#carouselFunssol .custom-caption {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    padding: 12px 16px;
    border-radius: 8px;
    color: #222;
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 20px;
}


#carouselFunssol .custom-caption h5 {
    font-weight: 600;
    margin-bottom: 4px;
}

#carouselFunssol .custom-caption p {
    margin: 0;
    font-size: 0.95rem;
}

.gallery-item {
    transition: transform 0.3s ease;
    cursor: pointer;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(1, 128, 255, 0.548);
}

.img-fluid {
    object-fit: cover;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

#botoes {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.Fusssol {
    color: #ffffff;
    font-weight: 600;
    font-size: 25px;
}

/* Botões maiores para terceira idade */
.btn-large {
    padding: 1em 2em;
    font-size: 1.2em;
    border-radius: 8px;
}

.quem-texto {
    text-align: justify;
    background-color: white;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.09) 0px 3px 12px;
}

.funssol-titulo {
    color: #1375bc
}

.funssol-texto {
    color: #4b4a4a;
}

.card {
    max-height: 590px;
    box-shadow: rgba(0, 0, 0, 0.09) 0px 3px 12px;
    border: none;
    border-radius: 12px;
}

.programas .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.programas .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-img-top {
    width: 100%;
    aspect-ratio: 5 / 2;
    object-fit: contain;
    background-color: #f4f4f4;
}

.img-padding {
    display: block;
    border-radius: 12px 12px 0 0;
}

.card-title {
    font-size: 1.3rem;
    line-height: 2rem;
    font-weight: 600;
    color: #39a4cf
}

.inscrever {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    width: 185px;
    background-color: #86EFAC;
    border: none;
    color: #2b6d43;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 17px;
}

.inscrever:hover {
    /* height: 65px; */
    width: 185px;
    background-color: #53b577;
    border: none;
    color: #ffffff;
}

.encerrada {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    width: 185px;
    background-color: #B0B1BB;
    border: none;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 17px;
}

.encerrada:hover {
    /* height: 65px; */
    width: 185px;
    background-color: #86878c;
    border: none;
    color: #ffffff;
}

.contato {
    color: #1E3A8A;
}

.doacao {
    color: #3E3588;
    font-weight: bold;
    font-size: x-large;
}

.lacre {
    color: #ED3237;
    font-weight: bold;
    font-size: x-large;
}

.modal-body {
    text-align: justify;
    color: #515151;
    font-size: 18px;
}

.doacao-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.img-doacao {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #433a8a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-doacao:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.img-lacre {
    width: 100%;
    max-height: 163px;
    object-fit: scale-down;
    transition: transform 0.3;
}

.lacre-points {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.point-item {
    font-size: 15px;
    color: #515151;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.lacre-contact {
    background: linear-gradient(135deg, #ED3237 0%, #FF6B6B 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 16px;
}

.lacre-contact a {
    color: #fff !important;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.lacre-contact a:hover {
    color: #fff !important;
    border-bottom-color: rgba(255, 255, 255, 1);
    text-decoration: none;
}

/* ===== AGENDA DE EVENTOS ===== */
#agenda {
    background-color: #fffaf5;
}

.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1610px;
    margin: 0 auto;
}

/* cada item */
.timeline-item {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    width: 378px;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
    z-index: 2;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-8px);
    box-shadow: rgba(253, 138, 79, 0.3) 0px 10px 20px;
}

/* imagem circular responsiva */
.timeline-img {
    width: clamp(120px, 30vw, 230px);
    height: clamp(120px, 30vw, 230px);
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #FD8A4F;
}

.timeline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* texto */
.agenda-content h5 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    white-space: pre-line;
}

.agenda-content p {
    color: #4b4a4a;
    font-size: 0.95rem;
}

.agenda-content p,
.agenda-content small {
    white-space: pre-line;
    word-break: break-word;
}

/* botão */
.ver-mais-agenda {
    background-color: #fd8a4fd1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    transition: all 0.3s ease;
}

.ver-mais-agenda:hover {
    background-color: #fa5401dc;
    color: #fff;
}

/* botão */
.ver-mais-galeria {
    background-color: #809cf0;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    transition: all 0.3s ease;
}

.ver-mais-galeria:hover {
    background-color: #4E73DF;
    color: #fff;
}


.inscricoes-abertas {
    border: 2px solid #aeddae;
    padding: 4px;
    background: #ffffff;
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #898989;
}

.inscricoes-abertas-espera {
    border: 2px solid #f3ea9c;
    padding: 4px;
    background: #ffffff;
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #898989;
}

.inscricoes-abertas-esgotada {
    border: 2px solid #eba8a8;
    padding: 4px;
    background: #ffffff;
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #898989;
}

.btn-minimal {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.circle-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

.underline {
    position: relative;
    color: #6c757d;
}

.underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
}

.btn-minimal:hover .underline::after {
    width: 100%;
}

.btn-minimal:hover .circle-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn-minimal:hover {
    background-color: rgba(40, 167, 69, 0.05);
    transform: translateX(5px);
}


.galeria-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.galeria-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* TÍTULO SOBRE A IMAGEM */
.galeria-titulo {
    position: absolute;
    bottom: 0;
    width: 100%;

    background: rgba(255, 255, 255, 0.9);
    color: #333;

    font-size: 14px;
    font-weight: 600;

    padding: 8px;
    text-align: center;

    transition: 0.3s;
}

/* Efeito hover opcional 🔥 */
.galeria-card:hover .galeria-titulo {
    background: rgba(255, 255, 255, 1);
}

/* ↑↑↑ PÁGINA PRINCIPAL DO SITE ↑↑↑ */



/* ↓↓↓ PÁGINA DE VOLUNTÁRIOS ↓↓↓ */
.enviar-btn {
    background-color: #86EFAC;
    color: #2b6d43;
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    transition: transform .14s ease, background-color .14s ease;
}

.enviar-btn:hover {
    background-color: #53b577;
    color: #fff;
    transform: translateY(-2px);
}

input.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: none;
}

/* ↑↑↑ VOLUNTÁRIOS ↑↑↑ */



/* PÁGINA DA AGENDA ↓ */
.card-evento {
    cursor: pointer;
    border: none;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.card-evento:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-evento .img-container {
    position: relative;
    overflow: hidden;
}

/* .card-evento img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.3s ease;
} */

.card-evento img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform .35s ease;
}

.card-evento .img-container {
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.card-evento img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform .35s ease;
}

.card-evento:hover img {
    transform: scale(1.05);
}

.card-evento:hover img {
    transform: scale(1.05);
}

.card-evento .date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fd8a4f;
    color: #fff;
    border-radius: 10px;
    text-align: center;
    padding: 6px 20px;
    font-weight: 600;
    line-height: 1.1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.card-evento .date-badge .dia {
    font-size: 18px;
    display: block;
}

.card-evento .date-badge .mes {
    font-size: 12px;
    text-transform: uppercase;
}

.card-evento .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-evento .card-title {
    color: #333;
    margin-bottom: 0.3rem;
}

.card-evento .card-info {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.8rem;
}

.card-evento .card-text {
    font-size: 0.95rem;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* ↑↑ PÁGINA DA AGENDA ↑↑ */



/* QUEM SOMOS PÁGINA ↓ */
.info-card {
    background: white;
    border-radius: 15px;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 0px 16px;
    padding: 30px;
}

.leadership-card {
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    min-height: 383px;
    /* min-height: 465px; */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 250px;
    flex: 1 1 250px;
}

.leadership-card .btn {
    margin-top: auto;
}

.leadership-img {
    width: 100%;
    max-width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid #82b2e3;
    display: block;
}

/* Card da Presidente — topo da hierarquia, com destaque discreto */
.leadership-card-presidente {
    border-top: 4px solid #1375BC;
}

.leadership-img-presidente {
    max-width: 190px;
    height: 190px;
    border-color: #1375BC;
}

/* Cards das coordenadoras — sem foto, menores que o da presidente */
.leadership-card-compact {
    min-height: auto;
    padding: 25px 20px;
}

.badge-presidente {
    display: inline-block;
    background-color: #1375BC;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 14px;
    border-radius: 20px;
}

/* Card em destaque da Presidente — ocupa a largura da seção */
.leadership-spotlight {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: linear-gradient(135deg, #eaf3fb 0%, #ffffff 65%);
    border: 1px solid #dbe9f7;
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(19, 117, 188, 0.15);
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
}

.leadership-spotlight::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(19, 117, 188, 0.08);
}

.leadership-spotlight-media {
    flex: 0 0 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #1375BC, #0d5590);
    padding: 32px 20px;
}

.leadership-spotlight-img {
    width: 170px;
    height: 170px;
    max-width: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.leadership-spotlight-content {
    flex: 1 1 320px;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.leadership-spotlight-nome {
    color: #16324f;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.leadership-spotlight-cargo {
    color: #1375BC;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.leadership-spotlight-texto {
    color: #5f6b76;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 560px;
}

.leadership-spotlight-btn {
    align-self: flex-start;
    border-radius: 30px;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .leadership-spotlight {
        flex-direction: column;
        text-align: center;
    }

    .leadership-spotlight-content {
        align-items: center;
        padding: 30px 25px;
    }

    .leadership-spotlight-texto {
        max-width: 100%;
    }

    .leadership-spotlight-btn {
        align-self: center;
    }
}

.project-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease;
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-icon {
    font-size: 3rem;
    margin: 0 auto 20px;
    display: block;
}

.project-card h4,
.project-card p,
.project-card .btn {
    text-align: center;
}

.project-card .btn {
    margin-top: auto;
}

/* ↑↑ QUEM SOMOS PÁGINA ↑↑ */



/* ↓↓ LINHA DO TEMPO ↓↓ */
.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    height: 60px;
}

.timeline-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #ff8a8ab5;
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
}

.timeline-date {
    position: relative;
    z-index: 2;
    background: white;
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    font-weight: bold;
    color: #949494;
    min-width: 80px;
    text-align: center;
}

.timeline-date:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    color: #DD534F;
}

.timeline-date.active {
    background: #DD534F;
    color: white;
    border-color: #dd534fb8;
    box-shadow: 0 0 0 4px rgb(221 83 79 / 35%);
}

.timeline-date i {
    margin-left: 5px;
    font-size: 0.8em;
}

.timeline-content-container {
    position: relative;
    min-height: 150px;
}

.timeline-content {
    display: none;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #dd534fb0;
    animation: fadeIn 0.5s ease-in-out;
    text-align: center;
}

.timeline-content.active {
    display: block;
}

.timeline-content h5 {
    color: #DD534F;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.5em;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1em;
}

.section-title {
    color: black;
    text-align: center;
    margin-bottom: 40px;
}

/* ↑↑↑ LINHA DO TEMPO ↑↑↑ */

.form-check {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    vertical-align: middle;
}


/* ↓↓↓ GERAÇÃO DE RENDA ↓↓↓ */
.geracao-renda {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-radius: 10px
}

.capacitacao-card {
    border: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 865px;
}

.capacitacao-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.capacitacao-card .card-header {
    border-radius: 16px 16px 0 0;
    font-weight: 600;
}

.curso-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.curso-item:last-child {
    border-bottom: none;
}

.curso-item h6 {
    font-weight: 600;
    margin-bottom: 4px;
}

.curso-item p {
    font-size: 0.9rem;
    margin: 0;
    color: #666;
}

.impacto {
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    min-height: 260px;
    font-size: clamp(0.95rem, 1.6vw, 1rem);
    margin-bottom: 20px;
}

.impacto .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.impacto h4 {
    font-size: clamp(1rem, 1.8vw, 1.1rem);
}


.tema-badge {
    display: inline-flex;
    align-items: center;
    background: #EAF3FB;
    color: #1375BC;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
}

.tema-icone {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(19, 117, 188, 0.12);
    color: #1375BC;
    font-size: 18px;
}

.tema-icone-alert {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

.tema-item-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tema-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F8FAFC;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #3f3f3f;
    transition: background .2s ease, transform .2s ease;
}

.tema-item:hover {
    background: #EAF3FB;
    transform: translateX(4px);
}

.tema-item i {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(19, 117, 188, 0.12);
    color: #1375BC;
    font-size: 14px;
}

.tema-item-list-importante {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tema-item-importante {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff4f4;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #353535;
    transition: background .2s ease, transform .2s ease;
}

.tema-item-importante:hover {
    background: #ffe7e6;
    transform: translateX(4px);
}

.tema-item-importante i {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(188, 19, 19, 0.12);
    color: #bc1313;
    font-size: 14px;
}

/* ↑↑↑ GERAÇÃO DE RENDA ↑↑↑ */


/* ↓↓↓ VAIDOSOS ↓↓↓ */
.border-left-blue {
    border-left: .25rem solid #4e73df !important;
}

.border-left-green {
    border-left: .25rem solid #1cc88a !important;
}

.border-left-orange {
    border-left: .25rem solid #f6c23e !important;
}

.border-left-purple {
    border-left: .25rem solid #6f42c1 !important;
}

.text-purple {
    color: #6f42c1 !important;
}

/* --- Estrutura geral CALENDARIO--- */
.cronograma-section {
    background-color: #ffffff;
    padding: 05px 20px;
    text-align: center;
}

.cronograma-section h3 {
    font-size: 2.5rem;
    color: #16a34a;
    font-weight: 700;
    margin-bottom: 48px;
}

.calen-card {
    background-color: white;
    padding: 24px;
    border-radius: 25px;
    box-shadow: rgba(99, 99, 99, 0.15) 0px 4px 12px;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Cabeçalho --- */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.calen-header h4 {
    font-size: 1.8rem;
    color: #15803d;
    font-weight: 600;
}

.calen-header button {
    color: #16a34a;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid #16a34a;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calen-header button:hover {
    background-color: #dcfce7;
    border-color: #15803d;
    color: #15803d;
}

/* --- Dias da semana --- */
.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    color: #15803d;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 6px;
    user-select: none;
}

/* --- Grade de dias --- */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
    font-size: 1.1rem;
}

.calendar-grid div {
    aspect-ratio: 2 / 1;
    border-radius: 10px;
    color: #166534;
    background-color: #f0fdf4;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.calendar-grid div:hover {
    background-color: #dcfce7;
    transform: scale(1.05);
}

.calendar-grid .event-day {
    background-color: #86efac;
    color: #065f46;
    font-weight: 700;
}

/* Tooltip bonito */
.calendar-grid .event-day:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #14532d;
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    width: 240px;
    white-space: pre-line;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    opacity: 0;
    animation: fadeIn 0.25s forwards;
    z-index: 20;
}

.calendar-grid .event-day:hover::before {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #14532d transparent transparent transparent;
    opacity: 0;
    animation: fadeIn 0.25s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.grupo-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.grupo-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

/* Botões */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #1375BC;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: 0.3s ease;
}

.carousel-btn:hover {
    background: #0f5e96;
}

.carousel-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

.carousel-btn.left {
    left: -15px;
}

.carousel-btn.right {
    right: -15px;
}

/* Carrossel de Grupos de Idosos - Responsivo */
.grupo-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.grupo-carousel-track {
    display: flex;
    gap: 0.4rem;
    padding: 2rem 2rem;
    scroll-behavior: smooth;
}

.grupo-card-item {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 280px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #1375BC;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
}

.carousel-btn:hover {
    background-color: #0e5fa0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.carousel-btn.left {
    left: -30px;
}

.carousel-btn.right {
    right: -30px;
}

/* Tablet - 2 cards por vez */
@media (max-width: 1024px) {
    .grupo-card-item {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 280px;
    }

    .carousel-btn.left {
        left: 10px;
    }

    .carousel-btn.right {
        right: 10px;
    }

    .carousel-btn {
        padding: 10px 12px;
        min-width: 40px;
        min-height: 40px;
        font-size: 1rem;
    }
}

/* Mobile - 1 card por vez */
@media (max-width: 768px) {
    .grupo-card-item {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .carousel-btn.left {
        left: 5px;
    }

    .carousel-btn.right {
        right: 5px;
    }

    .carousel-btn {
        padding: 8px 10px;
        min-width: 36px;
        min-height: 36px;
        font-size: 0.9rem;
    }

    .grupo-carousel-track {
        gap: 1rem;
        padding: 0.5rem 8px;
    }

    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .card-body {
        padding: 1rem !important;
    }

    h1 {
        font-size: 1.8rem !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }
}

/* Extra Small - Phones */
@media (max-width: 576px) {
    .container-fluid {
        padding: 0.5rem;
    }

    .p-4 {
        padding: 0.5rem !important;
    }

    h1 {
        font-size: 1.5rem !important;
    }

    .section-title {
        font-size: 1.2rem !important;
    }

    .carousel-btn {
        padding: 6px 8px;
        min-width: 32px;
        min-height: 32px;
        font-size: 0.8rem;
    }

    .card-body {
        padding: 0.75rem !important;
    }

    .text-m {
        font-size: 0.85rem !important;
    }

    .fa-2x {
        font-size: 1.5em !important;
    }

    .form-label {
        font-size: 0.9rem !important;
    }

    .form-select {
        font-size: 0.9rem !important;
        padding: 0.5rem !important;
    }

    #grupoCarouselTrack {
        display: flex;
        flex-direction: column;
        transform: none !important;
    }

    .grupo-card-item {
        width: 100% !important;
        min-width: 100% !important;
    }

    #prevGrupo,
    #nextGrupo {
        display: none;
    }
}

/* Card Styling */
.grupo-card-item .card {
    border: none;
    border-left: 5px solid;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.grupo-card-item .card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.border-left-green {
    border-left-color: #46a560 !important;
}

.border-left-orange {
    border-left-color: #ff9800 !important;
}

.border-left-purple {
    border-left-color: #9c27b0 !important;
}

.border-left-info {
    border-left-color: #17a2b8 !important;
}

.border-left-dark {
    border-left-color: #6c757d !important;
}

.border-left-danger {
    border-left-color: #dc3545 !important;
}

/* Filtros Responsivos */
.form-label {
    margin-bottom: 0.5rem;
}


/* --- Lista para celular --- */
.calendar-list {
    display: none;
    margin-top: 16px;
    text-align: left;
}

.calendar-list-item {
    background-color: #f0fdf4;
    border-left: 6px solid #16a34a;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 3px 6px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
}

.calendar-list-item strong {
    display: block;
    font-size: 1.1rem;
    color: #065f46;
    margin-bottom: 4px;
}

.calendar-list-item small {
    display: block;
    color: #166534;
}

.calendar-list-item strong,
.calendar-list-item small,
.calendar-list-item {
    font-size: calc(0.8em + 0.6vw);
}


.vagas-disponiveis {
    border: none;
    padding: 10px;
    background: #68acbb;
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ↑↑↑ VAIDOSOS ↑↑↑ */


/* ↓↓↓ MÃOS DADAS ↓↓↓ */
.project-card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-left-width: 5px;
    border-left-style: solid;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    min-width: 0;
    /* allow flex children to shrink on small screens */
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
}

.project-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    background: #f1f2f4;
    color: #6c757d;
}

.accent-green {
    border-left-color: #28a745;
}

.accent-green .project-icon {
    background: rgba(40, 167, 69, 0.12);
    color: #28a745;
}

.accent-blue {
    border-left-color: #357edd;
}

.accent-blue .project-icon {
    background: rgba(53, 126, 221, 0.12);
    color: #357edd;
}

.accent-orange {
    border-left-color: #f39c12;
}

.accent-orange .project-icon {
    background: rgba(243, 156, 18, 0.12);
    color: #f39c12;
}

.accent-red {
    border-left-color: #e74a3b;
}

.accent-red .project-icon {
    background: rgba(231, 74, 59, 0.12);
    color: #e74a3b;
}

.accent-yellow {
    border-left-color: #f9d324;
}

.accent-yellow .project-icon {
    background: rgba(249, 211, 36, 0.18);
    color: #b8940a;
}

.accent-gray {
    border-left-color: #727374;
}

.accent-gray .project-icon {
    background: rgba(114, 115, 116, 0.12);
    color: #727374;
}

.project-card h4 {
    margin: 0;
    text-align: left;
    font-size: 1.1rem;
}

.project-card p {
    margin-bottom: 0.75rem;
    text-align: left;
}

.project-card ul {
    text-align: left;
    padding-left: 1.1rem;
}

.project-card .btn {
    white-space: nowrap;
    text-align: center;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 16px;
}

.stars {
    color: #f2c200;
    font-size: 20px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    min-height: 100px;
}

.avatar {
    width: 45px;
    height: 45px;
    background-color: #4cb2cf;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
}

.subtitle {
    font-size: 13px;
    color: #666;
}


@media (max-width: 576px) {
    .project-card {
        padding: 14px;
    }

    .project-icon {
        font-size: 24px;
    }
}


/* ↑↑↑ MÃOS DADAS ↑↑↑ */


.programa-card {
    border: none;
    border-radius: 18px;
    cursor: pointer;
    background: linear-gradient(135deg, #1375BC, #0d5a91);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}


/* ↓↓↓ GALERIA ↓↓↓ */
.programa-card:hover::before {
    left: 125%;
}

/* hover geral */
.programa-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* título */
.programa-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
}

.oficina-card {
    border: 1PX solid #1375BC;
    border-radius: 18px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* borda animada */
.oficina-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.4;
    transition: 0.3s;
}

/* hover */
.oficina-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.oficina-card:hover::after {
    opacity: 1;
}

/* título */
.oficina-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1375BC;
    margin: 0;
    transition: 0.3s;
}

/* efeito no texto */
.oficina-card:hover .oficina-title {
    letter-spacing: 0.5px;
}

/* ↑↑↑ GALERIA ↑↑↑ */

/* ↓↓↓ OS @MEDIA ESTÃO AQUI ↓↓↓ */
@media (min-width: 1200px) {
    #carouselFunssol .carousel-item img {
        height: var(--h-lg);
        margin-top: 100px;
    }

    #carouselFunssol .custom-arrow {
        width: var(--arrow-size-lg);
        height: var(--arrow-size-lg);
    }

    #carouselFunssol .custom-arrow svg {
        width: 54%;
        height: 54%;
    }

    .funssol-texto {
        font-size: 18px;
    }

    .funssol-titulo {
        font-size: 30px;
    }

    .row.programas {
        margin-right: 2.75rem;
        margin-left: 2.75rem;
    }

    .card {
        max-width: 559px;
        max-height: 550px;
    }
}



/* ---- Media queries: escala para telas maiores ---- */
@media (max-width: 991px) {
    #carouselFunssol .custom-arrow {
        width: var(--arrow-size-md);
        height: var(--arrow-size-md);
    }

    #carouselFunssol .custom-arrow svg {
        width: 54%;
        height: 54%;
    }

    .gallery-item {
        width: 100%;
    }

    .imgFunssol {
        margin-top: 15px;
    }

    .funssol-texto {
        font-size: 18px;
    }

    .funssol-titulo {
        font-size: 30px;
    }

    .row.programas {
        margin-right: auto;
        margin-left: auto;
    }

    .card {
        margin-bottom: 15px;
        max-height: 538px;
    }

    .inscricao {
        margin-top: 15px;
    }

    .modal-body {
        text-align: justify;
        color: #515151;
        font-size: 16px;
    }

    .img-doacao {
        max-width: 280px;
        margin: 10px 0;
    }

    .img-lacre {
        max-width: 280px;
        height: 200px;
        margin: 10px;
    }

    .timeline {
        flex-direction: column;
        align-items: center;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        width: 90%;
        margin-bottom: 2rem;
    }

    .leadership-card {
        width: 300px;
        margin: 0 auto 40px;
    }
}



@media (max-width: 768px) {
    .btn {
        font-size: 15px;
    }

    .project-card {
        font-size: 15px;
    }

    .timeline-content-container {
        font-size: 15px;
    }

    .lead {
        font-size: 15px;
    }

    .container,
    .container-fluid,
    .container-sm,
    .container-xl {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }

    #carouselFunssol {
        margin-top: 100px;
    }

    .imgFunssol {
        margin-top: 40px;
    }

    .funssol-texto {
        font-size: 15px;
    }

    .funssol-titulo {
        font-size: 25px;
    }

    .row.programas {
        margin-right: auto;
        margin-left: auto;
    }

    .card {
        margin-bottom: 15px;
        max-height: 683px;
    }

    .inscricao {
        margin-top: 15px;
    }

    .modal-body {
        text-align: justify;
        color: #515151;
        font-size: 16px;
    }

    .doacao-images {
        flex-direction: column;
        gap: 15px;
    }

    .img-doacao {
        max-width: 90%;
    }

    .img-lacre {
        max-width: 95%;
        max-height: 163px;
        object-fit: scale-down;
    }

    .enviar-btn {
        width: 100%;
    }

    .timeline-bar {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }

    .timeline-bar::before {
        top: 0;
        left: 50%;
        right: auto;
        width: 4px;
        height: 100%;
        transform: translateX(-50%);
        background: #ff8a8ab5;
    }

    .timeline-date {
        width: 100%;
        max-width: 200px;
        border-radius: 10px;
        padding: 15px;
    }

    .timeline-content {
        text-align: left;
        padding: 20px;
        margin-top: 20px;
    }

    .timeline-content h5 {
        font-size: 1.3em;
    }

    .leadership-card {
        width: 100%;
    }

    .filter-btn {
        font-size: 1rem !important;
        padding: 8px 16px !important;
    }


    .weekdays,
    .calendar-grid {
        display: none;
    }

    .calendar-list {
        display: block;
    }

    .calen-header h4 {
        font-size: 1.5rem;
    }
}



@media (max-width: 480px) {
    .timeline-date {
        padding: 12px;
        font-size: 0.9em;
    }

    .timeline-content {
        padding: 15px;
    }
}