/**
 * @version     CVS: 1.0.1
 * @package     com_agendacoop
 * @subpackage  mod_forunsconselhos
 * @copyright   2026 Caio Guilherme Higino Martins
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @author      Caio Guilherme Higino Martins <caio.martins@ths.inf.br>
 */

.jcc-table {
    width: 100%;
    margin-bottom: 18px;
}

.jcc-table tr{
    border: none;
}

.jcc-table td, .jcc-table th{
    padding: 8px;
    line-height: 18px;
    text-align: left;
    vertical-align: top;
    border: none;
    border-top: 1px solid #ddd;
}

.mod-forunsconselhos-title {
    font-family: 'Intro Regular';
    font-weight: 600;
    font-size: 48px;
    color: #748EC8;
    padding-bottom: 10px;
    width: 80%;
    margin: 0 auto;
}

.mod-forunsconselhos-subtitle {
    font-family: 'Intro Regular';
    font-weight: normal;
    font-size: 18px;
    color: #18186A;
    line-height: 30px;
    padding-bottom: 40px;
    width: 80%;
    margin: 0 auto;
}

.mod-forunsconselhos-separador {
    width: 100%;
    margin: 30px 0px;
}

.mod-forunsconselhos-separador img {
    width: 100%;
}

.mod-forunsconselhos-content {
    width: 80%;
    margin: 0 auto;
}

.mod-forunsconselhos-content p {
    font-family: 'Intro Regular';
    font-weight: normal;
    font-size: 14px;
    color: #18186A;
    padding-bottom: 15px;
}

.mod-forunsconselhos-content a {
    font-family: 'Intro Regular';
    font-weight: normal;
    font-size: 14px;
    color: #748EC8;
    text-decoration: none;
}

.mod-forunsconselhos-subtitle-detalhes {
    font-family: 'Intro Regular';
    font-weight: 600;
    font-size: 24px;
    color: #171C66;
    line-height: 30px;
    padding: 40px 0px;
    width: 80%;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid #171C66 !important;
    border-radius: 15px !important;
    background-color: #F7F7F7 !important;
    color: #171C66 !important;
    padding: 15px 0px !important;
    margin-bottom: 30px;
}

.accordion-item button {
    border-radius: 15px;
    background-color: #F7F7F7;
    border-top-left-radius: 17px;
    border-top-right-radius: 17px;
    padding: 0 !important;
}

.accordion-button:not(.collapsed) {
    background-color: #F7F7F7 !important;
}

button.accordion-button:focus {
    border: none !important;
    box-shadow: none !important;
}

.custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: 0 auto;
    padding: 0 !important;
}

.cards-scroll-track .row.g-4 {
    justify-content: center;
}

@media (max-width: 575px) {
    .custom-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.custom-header .sigla {
    font-family: 'Intro Regular';
    font-weight: bold;
    font-size: 18px;
    color: #171C66;
}

.custom-header .nome {
    font-family: 'Intro Regular';
    font-weight: normal;
    font-size: 18px;
    color: #171C66;
}

.custom-header .visualizar {
    font-family: 'Intro Regular';
    font-size: 18px;
    color: #748EC8;
    cursor: pointer;
}

.accordion-button:not(.collapsed) {
    color: #748EC8 !important;
}

.custom-header .visualizar svg {
    margin-left: 15px;
}

.accordion-body {
    padding: 40px 77px;
}

.accordion-button::after {
    width: 0 !important;
}


.accordion-button::after {
    display: none !important;
}


.card-custom {    
    border-radius: 10px;
    background-color: #fff;
    padding: 20px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card-title {
    font-family: 'Inter';
    font-weight: normal;
    font-size: 14px;
    color: #171C66;
    margin-bottom: 40px;
    text-align: center;
}

.card-titular label, .card-suplente label {
    font-family: 'Intro Regular';
    font-weight: normal;
    font-size: 14px;
    color: #171C66;
}

.card-titular strong, .card-suplente strong {
    font-family: 'Intro Regular';
    font-weight: 600;
    font-size: 18px;
    color: #171C66;
}

.cards-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cards-scroll-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    flex: 1;
}

.cards-scroll-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.scroll-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
    border: none !important;
}

.scroll-arrow:hover {
    background: #748EC8;
}

.scroll-arrow:hover svg path {
    fill: #fff;
}

.nome svg {
    display: none;
}

.accordion-button:not(.collapsed) .nome svg,
.accordion-button:not(.collapsed) .visualizar svg {
    transform: rotate(180deg);
}

.accordion-button.collapsed .nome svg,
.accordion-button.collapsed .visualizar svg {
    transform: rotate(360deg);
}

/* No desktop, esconde as setas */
@media (min-width: 769px) {
    .scroll-arrow {
        display: none;
    }

    .cards-scroll-track .row {
        flex-wrap: wrap; /* comportamento normal no desktop */
    }
    
}

/* Mobile: row não quebra linha */
@media (max-width: 768px) {
    .accordion-body {
        padding: 20px 15px;
    }

    .cards-scroll-track .row {
        flex-wrap: nowrap;
        width: max-content;
    }

    .cards-scroll-track .col-md-6.col-lg-3 {
        width: 260px;
        flex: 0 0 260px;
        max-width: 260px;
    }

    .custom-header .visualizar {
        display: none;
    }

    .nome svg {
        display: inline;
        float: right;
    }

    .custom-header .nome {
        width: 100%;
    }
}