/* ==========================================================================
   LAYOUT DA VITRINE DE BOARDS (boards.css)
   ========================================================================== */

/* Bloco colapsável E-brands — só o botão-título fica centrado (margin auto); o painel herda alinhamento à esquerda */
.boards-ebrands-disclosure {
    max-width: 100%;
}

.boards-ebrands-disclosure .boards-ebrands-toggle.vit-page-title {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.75rem 0.15rem;
    cursor: pointer;
    font-family: inherit;
    border: 0;
    background: transparent;
    color: var(--vit-title, #111);
    line-height: 1.2;
    transition: color 0.2s ease;
}

.boards-ebrands-disclosure .boards-ebrands-toggle.vit-page-title:hover {
    color: var(--vit-accent, #cc5500);
}

.boards-ebrands-disclosure .boards-ebrands-toggle.vit-page-title:focus {
    outline: 2px solid var(--vit-accent, #cc5500);
    outline-offset: 4px;
    border-radius: 0.25rem;
}

.boards-ebrands-toggle__label {
    display: block;
}

.boards-ebrands-toggle__chev {
    font-size: 0.45em;
    line-height: 1;
    color: var(--vit-accent, #cc5500);
    transition: transform 0.25s ease;
}

.boards-ebrands-toggle.is-open .boards-ebrands-toggle__chev {
    transform: rotate(180deg);
}

.boards-ebrands-panel {
    margin-top: 0.75rem;
    padding: 0 0 1rem;
    text-align: left;
}

/* Visibilidade por classe (evita conflitos com resets que fixam [hidden] em display:none) */
.boards-ebrands-panel--collapsed {
    display: none !important;
}

.boards-ebrands-panel:not(.boards-ebrands-panel--collapsed) {
    display: block;
    border-bottom: 1px solid var(--vit-border, #eee);
    margin-bottom: 0.5rem;
}

.boards-ebrands-panel .boards-ebrands-inner {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.board-img-container {
    /* Troca height fixo por aspect-ratio responsivo (16:9 ou semelhante) */
    width: 100%;
    aspect-ratio: 4 / 3; 
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: #f4f4f4; 
}

.board-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
}

.board-text-resumo {
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; 
    margin-top: 0.3rem;
    min-height: 3.8em; 
}

.board-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    padding: 1rem;
    border-radius: 0.6rem;
    box-shadow: 0 0.25rem 0.6rem rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: inherit !important;
    border: 1px solid #f0f0f0;
}

.board-card:hover {
    transform: translateY(-0.3rem);
    box-shadow: var(--vit-shadow-hover);
    border-color: #e0e0e0;
}

.board-card .media__title {
    font-size: 1.1rem !important;
    font-weight: bold;
    margin-bottom: 0.3rem !important;
    line-height: 1.2 !important;
}

.board-card .media__text {
    font-size: 0.85rem !important;
    color: #555;
    flex-grow: 1;
}

.board-card .media__footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 1rem !important;
    padding-top: 0.6rem;
    border-top: 1px solid #eee;
}

.board-card .media__continue {
    font-size: 0.75rem !important;
    font-weight: bold;
    letter-spacing: 0.06rem !important;
    margin-top: 0 !important;
    text-transform: uppercase;
}

.board-card .icon {
    font-size: 0.9rem !important;
    margin-top: 0 !important;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.board-card:hover .icon {
    transform: translateX(0.3rem);
}