.card-body {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 0 !important;
}

#accordion > .card.active {
    padding-bottom: 20px !important;
}

.card-header.active {
    margin-bottom: 10px !important;
}

/* Estilos para acordeons secundários */
[id^="accordionPerguntas"] .card-header {
    background-color: var(--branco) !important;
    border: none !important;
    border-bottom: 1px solid  var(--gray-200) !important; /*  Considerar criar uma variável para este cinza  */
    border-radius: 12px !important;
    box-shadow: none !important;
    margin-bottom: -10px !important;
    transition: border-bottom 0.6s ease-in-out;
}

[id^="accordionPerguntas"] .card-header button {
    color: #1A1A1A; /* Considerar criar uma variável para este cinza escuro */
    text-decoration: none;
    font-size: var(--datas-e-capitulados-tamanho-desk) !important;
    border: 0;
    background-color: var(--branco) !important;
    outline: none;
    cursor: pointer;
    font-weight: var(--texto-padrão-peso) !important;
    text-align: left;
    margin-bottom: 0 !important;
}

[id^="accordionPerguntas"] .card {
    background-color: var(--branco);
    margin-bottom: 15px;
    border: none;
}

[id^="accordionPerguntas"] .card-body {
    padding-left: 25px !important;
}

[id^="accordionPerguntas"] .card.active {
    border-bottom: 0 !important;
}

[id^="accordionPerguntas"] .card.active .card-header {
    border-bottom-color: transparent !important;
    margin-bottom: 0 !important;
}

[id^="accordionPerguntas"] .card.active .collapse.show,
[id^="accordionPerguntas"] .card.active .collapsing {
    border-bottom: 1px solid var(--cinza-borda);
}

[id^="accordionPerguntas"] .card.active .card-body {
    padding-top: 0 !important;
}

[id^="accordionPerguntas"] .card-header button[aria-expanded="true"] {
    color: var(--titulo-azul) !important;
}

/* Linha separadora para resultados da busca */
[id^="accordionPerguntas"] .pergunta-card.search-result:not(.active) {
    border-bottom: 1px solid var(--cinza-borda);
    margin-bottom: 16px;
    padding-bottom: 16px;
}

[id^="accordionPerguntas"] .pergunta-card.search-result:last-child:not(.active) {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}


/* Destaque para parágrafos encontrados na busca */
[id^="accordionPerguntas"] .highlight {
    background-color: #FFF9E4;
    padding: 8px;
    border-radius: 4px;
    display: block;
    margin: 8px 0;
}

[id^="accordionPerguntas"] .highlight p {
    margin: 0;
}

/* Estilos do campo de busca */
.search-perguntas {
    border-radius: 10px;
    border: 1px solid var(--cinza-borda);
    padding: 4px 16px !important;
    padding-right: 40px !important;
    font-style: italic;
    font-size: var(--datas-e-capitulados-tamanho-desk);
    height: 40px;
    color: var(--data);
    background-color: var(--cinza-fundo);
    width: 100%;
}

.search-perguntas:focus {
    background-color: var(--cinza-fundo);
}

.search-perguntas::placeholder {
    color: var(--data);
}

.search-perguntas-container {
    position: relative;
    width: 100%;
}

.search-perguntas-container i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--textos-e-links);
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
}

/* Estilos comuns */
.card-header .rotate-icon {
    transform: rotate(180deg);
    transition: transform 0.6s ease;
    color: #1A1A1A;
}

.card-header .collapsed .rotate-icon {
    transform: rotate(0deg);
    transition: transform 0.6s ease;
}

.bi-chevron-down,
.bi-chevron-up {
    transition: transform 0.3s ease;
}

.card-body-wrapper {
    padding-bottom: 20px !important;
}

/* Estilos para os ícones de redes sociais */
.redes-sociais-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 10px;
}

a.rede-social-link, .rede-social-nome {
    /* ... other styles ... */
    color: var(--textos-corridos) !important;
    font-size: var(--datas-e-capitulados-tamanho-desk);
    font-weight: var(--texto-padrão-peso);
}


.icon-wrapper {
    width: 24px;
    height: 24px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.icon-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rede-social-nome {
    font-size: var(--datas-e-capitulados-tamanho-desk);
    color: var(--textos-e-links);
    display: inline-block;
}

/* Sobrescreve a regra do institucionais.css */
.card-body img {
    width: auto;
}

@media (max-width: 576px) {
    [id^="accordionPerguntas"] .card-header button {
        font-size: var(--datas-e-capitulados-tamanho-mobile);
    }
}
