/* -----------------------------------------
   Estilos Globais para Integração com Elementor Pro
------------------------------------------ */

/* ------------------------------
   1. Banner do Assunto
------------------------------ */
.elementor-banner-assunto {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border-radius: 0px !important;
    overflow: hidden;
    position: relative;
    margin-top: -160px; /* Desktop */
}

.elementor-banner-assunto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.elementor-banner-title {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    margin: 0;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* ------------------------------
   2. Imagens com Links
------------------------------ */
.elementor-imagens-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.elementor-imagem-link-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.elementor-imagem-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.elementor-imagem-link-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.elementor-imagem-link-item:hover img {
    transform: scale(1.05);
}

.elementor-imagem-link-content {
    padding: 20px;
}

.elementor-imagem-link-titulo {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* ------------------------------
   3. Próximo Assunto
------------------------------ */
.elementor-proximo-assunto {
    text-align: center;
    margin: 40px 0;
}

.elementor-proximo-button {
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.elementor-proximo-link {
    display: inline-block;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.elementor-proximo-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* ------------------------------
   4. Meta Informações
------------------------------ */
.elementor-meta-assunto {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007cba;
    flex-wrap: wrap;
}

.elementor-meta-item {
    color: #333;
    font-size: 1em;
}

.elementor-meta-item strong {
    color: #666;
    font-weight: bold;
}

/* ------------------------------
   5. Responsividade
------------------------------ */

/* Tablet: até 1024px */
@media (max-width: 1024px) {
    .elementor-banner-assunto {
        margin-top: -70px;
    }

    .elementor-banner-title {
        font-size: 2.5em;
    }

    .elementor-imagens-links {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .elementor-meta-assunto {
        gap: 15px;
    }
}

/* Celular: até 768px */
@media (max-width: 768px) {
    .elementor-banner-assunto {
        margin-top: -50px;
    }

    .elementor-banner-title {
        font-size: 2em;
    }

    .elementor-imagens-links {
        grid-template-columns: 1fr;
    }

    .elementor-meta-assunto {
        flex-direction: column;
        gap: 10px;
    }

    .elementor-proximo-link {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 1em;
    }
}
