.oportunidades-section {
    max-width: 1100px;
    /* Largura controlada para manter o aspecto da imagem */
    margin: 0 auto;
    text-align: center;
}

.header-content h2 {
    color: var(--primary);
    font-size: 32px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 700;
}

.header-content p {
    font-size: 14px;
    margin-bottom: 50px;
}

/* GRID ALTERADO PARA FORÇAR 3 COLUNAS */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 30px;
    margin-bottom: 60px;
    align-items: stretch;
}

.product-card {
    text-align: left;
}

.product-card h3 {
    min-height: 56px; 
}

.product-card .description {
    flex-grow: 1; 
}

.image-placeholder {
    width: 100%;
    height: 200px; /* define altura fixa */
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* mantém proporção sem cortar */
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card h3 {
    color: var(--primary);
    font-size: 24px;
    margin: 0 0 12px 0;
}

.product-card .description {
    color: var(--primary);
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.product-card .meta {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
}

.meta .dot {
    margin: 0 5px;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.page-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: 0.2s;
}

.page-item.active {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, #ff5a3c, #e74c3c);
  border: none;
  padding: 14px 26px;
  border-radius: 8px;
  color: white;
  margin-top: 15px;
  text-decoration: none;
  display: inline-block;
}

/* --- RESPONSIVIDADE --- */

/* Ajuste fino para telas levemente menores que o desktop padrão */
@media (max-width: 1030px) {
    .oportunidades-section {
        padding: 30px 15px;
    }

    .grid-container {
        gap: 30px 20px;
        /* Reduz o espaçamento para manter os 3 itens confortáveis */
    }
}

/* Transição de 3 colunas para 2 colunas */
@media (max-width: 1020px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        /* Agora cabem 2 por linha */
        max-width: 800px;
        /* Centraliza melhor o par de cards */
        margin: 0 auto 60px auto;
    }

    .header-content h2 {
        font-size: 28px;
    }
}

/* Ajustes para tablets (ajuste de paddings e tamanhos de texto) */
@media (max-width: 768px) {
    .header-content h2 {
        font-size: 26px;
    }

    .header-content p {
        margin-bottom: 30px;
    }

    .product-card h3 {
        font-size: 20px;
    }

    .product-card .description {
        font-size: 14px;
    }
}

/* Transição para Mobile (1 item por linha) */
@media (max-width: 750px) {
    .grid-container {
        grid-template-columns: 1fr;
        /* Um item abaixo do outro */
        max-width: 400px;
        /* Evita que o card fique largo demais em telas mobile */
    }

    .header-content h2 {
        font-size: 24px;
    }

    .pagination {
        gap: 10px;
    }

    .page-item {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}