/* ============================================
   DIVE DEEPER SECTION
   ============================================ */

.dive-deeper {
    background-color: #E8EAE8;
    text-align: center;
    padding-top: 140px;
    height: auto;
    padding-bottom: 161px;

}

.dive-deeper-title {
    padding-bottom: 110px;
    font-family: 'Mrs Eaves OT', serif;
    font-weight: bold;
}

.dive-deeper-title h2 {
    font-family: 'Mrs Eaves OT', serif;
    font-size: 1.8rem;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-2xl);
    letter-spacing: 4px;
    font-weight: bold;
}

/* Grid de Cards - 5 COLUNAS */
.dive-deeper-grid {
    max-width: 1050px;
    height: 398px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

/* Card */
.dive-card {
    text-decoration: none;
    color: var(--color-text-dark);
    border: 1px solid #e0dcd6;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--color-white);
    border: 1px solid black;
}

/* Imagem do Card */
.dive-card-image {
    width: 100%;
    height: 291px;
    overflow: hidden;
    position: relative;
}

.dive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease, transform 0.4s ease;
    filter: brightness(0.65);
}

/* Hover: remove o filtro escuro da imagem */
.dive-card:hover .dive-card-image img {
    filter: brightness(1);
}

/* Texto do Card */
/* Texto do Card */
.dive-card-text {
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    transition: background-color 0.3s ease;

    /* Centraliza verticalmente */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 107px;
    /* Altura mínima para o texto */
}

.dive-card-text h3 {
    font-family: 'Mrs Eaves OT', serif;
    font-size: var(--font-size-base);
    color: var(--color-text-dark);
    margin: 0;
    font-weight: bold;
    transition: color 0.3s ease;
    line-height: 1.4;
    /* Espaço entre linhas */
}

/* ============================================
   HOVER - FUNDO AZUL + TEXTO BRANCO
   ============================================ */

.dive-card:hover {
    background-color: #517DBB;
}

.dive-card:hover .dive-card-text {
    background-color: var(--color-primary-blue);
}

.dive-card:hover .dive-card-text h3 {
    color: white;
}



/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .dive-deeper-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Reduz padding gigante herdado do desktop */
    .dive-deeper {
        padding-top: 40px;
        padding-bottom: 50px;
    }

    .dive-deeper-title {
        padding-bottom: 30px;
        font-size: var(--font-size-2xl);
    }

    /* Cards empilhados em coluna única */
    .dive-deeper-grid {
        grid-template-columns: 1fr;
        height: auto;
        padding: 0 20px;
        gap: 16px;
    }

    .dive-card-image {
        height: 180px;
    }

    .dive-card-text {
        min-height: auto;
        padding: 16px;
    }
}