/* DIV PAI QUE CONTEM OS scout-card */
.scout-cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    flex-direction: row;
}

/* 1. CONTAINER DO TÍTULO - Responsável pelo Alinhamento Vertical */
.scout-card-title {
    width: 100%;
    min-height: 4em; /* Mantém a altura fixa para alinhar os cards */
    max-height: 4em;
    display: flex;
    align-items: center;     /* Centraliza verticalmente */
    justify-content: center;  /* Centraliza horizontalmente */
    text-align: center;
    overflow: hidden;
    margin-bottom: 5px;      /* Espaço entre título e imagem */
}

/* 2. O TEXTO DO TÍTULO (H3) - Ajuste de Tamanho Proporcional */
.scout-card-title h3 {
    margin: 0 !important;    /* Remove margens do tema que empurram o texto */
    padding: 0 5px !important;
    line-height: 1.1;        /* Reduzido para evitar quebras excessivas */
    font-weight: bold;
    /* Usa a unidade CQW para responder ao tamanho do CARD */
    font-size: clamp(0.75rem, 7.5cqw, 1.1rem) !important;
    display: block;          /* Retorna para block para respeitar o line-height */
}

/* 3. CONTAINER DA DESCRIÇÃO - Mesma lógica de alinhamento */
.scout-card-desc {
    width: 100%;
    min-height: 3em;
    max-height: 3em;
    display: flex;
    align-items: center;     /* Centraliza verticalmente */
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 5px;
    /* Aplica a mesma fonte proporcional da descrição */
    font-size: clamp(0.7rem, 6.5cqw, 0.9rem) !important;
    color: var(--txt-color-green-dark);
}

/* 4. AJUSTE DO CARD (Reforço do Container Query) */
.scout-card {
    width: 230px;
    height: auto;
    border-radius: 15px;
    padding: 10px;
    box-shadow:
        inset 10px 10px 7px rgba(255, 255, 255, 0.4),
        3px 3px 7px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    container-type: inline-size; /* Essencial para o CQW funcionar */
}

@media (max-width: 600px) {
    .scout-card {
        width: 170px;
        padding: 8px;
    }
    .scout-card-title {
        min-height: 2.5em; /* Mantém a altura fixa para alinhar os cards */
        max-height: 2.5em;
    }
}

/* 4. IMAGEM PROPORCIONAL */
.scout-card-img-div {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    box-shadow: inset 3px 3px 4px 0px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 5px 0;
}

.scout-card-img-div img {
    width: 100%; /* Reduzido levemente para garantir respiro visual no card menor */
    height: 100%;
    border-radius: 15px;
    object-fit: contain;
}