/* ============================================================
   Cartão de Opinião — CSS Completo
   ============================================================ */

/* ------------------------------------------------------------
   Wrapper principal
------------------------------------------------------------ */
.co-wrapper {
    width: 100%;
}

/* ------------------------------------------------------------
   Filtros
------------------------------------------------------------ */
.co-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.co-fbtn {
    padding: 8px 20px;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    background: transparent;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1.4;
}

.co-fbtn:hover,
.co-fbtn.ativo {
    background: #1a1a1a;
    color: #ffffff;
}

/* ------------------------------------------------------------
   Loading (overlay da grelha)
------------------------------------------------------------ */
.co-loading {
    text-align: center;
    padding: 30px 0;
}

.co-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 4px solid #eeeeee;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: co-spin 0.7s linear infinite;
}

@keyframes co-spin {
    to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------
   Grelha
------------------------------------------------------------ */
.co-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    transition: opacity 0.3s ease;
}

.co-grid.co-busy {
    opacity: 0.4;
    pointer-events: none;
}

.co-vazio {
    grid-column: 1 / -1;
    text-align: center;
    color: #888888;
    padding: 40px 0;
    font-size: 16px;
}

/* ------------------------------------------------------------
   Card
------------------------------------------------------------ */
.co-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    padding: 30px 20px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.co-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.co-card__link {
    display: flex;
    flex-direction: column;
    align-items: inherit;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.co-card__link:hover {
    text-decoration: none;
    color: inherit;
}

/* ------------------------------------------------------------
   Avatar
------------------------------------------------------------ */
.co-avatar {
    width: 182px;
    height: 182px;
    margin-bottom: 18px;
    border: 20px solid #efefef;
    border-radius: 100px;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
}

.co-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 100px;
}

.co-avatar__inicial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: #888888;
    background: #dddddd;
    border-radius: 100px;
}

/* Elementor Author Box — compatibilidade */
.elementor-10106
.elementor-element.elementor-element-41b2816
.elementor-author-box__avatar img {
    width: 182px;
    height: 182px;
    border-style: solid;
    border-color: #efefef;
    border-width: 20px;
    border-radius: 100px;
}

/* ------------------------------------------------------------
   Subcategoria
------------------------------------------------------------ */
.co-subcat {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888888;
    margin: 0 0 10px 0;
    width: 100%;
}

/* ------------------------------------------------------------
   Título
------------------------------------------------------------ */
.co-titulo {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    width: 100%;
}

.co-titulo-inner {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    justify-content: flex-start;
}

.co-quote {
    flex-shrink: 0;
    margin-top: 2px;
    line-height: 1;
    display: inline-flex;
}

.co-quote svg {
    display: block;
    fill: #1a1a1a;
}

/* ------------------------------------------------------------
   Autor
------------------------------------------------------------ */
.co-autor {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    width: 100%;
}

/* ------------------------------------------------------------
   Excerto
------------------------------------------------------------ */
.co-excerto {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.65;
    color: #333333;
    width: 100%;
}

.co-excerto p {
    margin: 0;
}

/* ------------------------------------------------------------
   Botão Mais Artigos
------------------------------------------------------------ */
.co-pag {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 36px;
}

.co-mais-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    background: transparent;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    line-height: 1.4;
}

.co-mais-btn:hover {
    background: #1a1a1a;
    color: #ffffff;
}

.co-mais-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Spinner dentro do botão durante o carregamento */
.co-mais-btn .co-btn-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: co-spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* ------------------------------------------------------------
   Capa do post = avatar do autor
------------------------------------------------------------ */
.co-cover {
    text-align: center;
}

.co-cover__img {
    width: 182px;
    height: 182px;
    border: 20px solid #efefef;
    border-radius: 100px;
    object-fit: cover;
    object-position: center top;
    display: block;
    margin: 0 auto;
}

/* ------------------------------------------------------------
   Responsivo
------------------------------------------------------------ */
@media (max-width: 1024px) {
    .co-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .co-grid {
        grid-template-columns: 1fr;
    }

    .co-avatar {
        width: 130px;
        height: 130px;
    }

    .co-titulo {
        font-size: 18px;
    }

    .co-excerto {
        font-size: 15px;
    }

    .co-filtros {
        gap: 8px;
    }

    .co-fbtn {
        padding: 6px 14px;
        font-size: 13px;
    }

    .co-mais-btn {
        width: 100%;
        justify-content: center;
    }
}