.elementor-17359 .elementor-element.elementor-element-3460a94{--display:flex;}.elementor-17359 .elementor-element.elementor-element-35b382e.xpro-widget-bg-overlay:before{transition:background 0.3s;}/* Start custom CSS for shortcode, class: .elementor-element-35b382e *//* ==========================================================================
   MESTRE CSS: ESTILO iOS (Cards, Grid, Botões e Feed Infinito)
   Status: Validado e Otimizado
   ========================================================================== */

/* Aplica regra matemática segura a todos os elementos deste bloco */
.ios-latest-wrapper * {
    box-sizing: border-box; 
}

/* --- 1. O CONTAINER (GRID) --- */
.ios-latest-wrapper {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 60px;
    display: block;
}

.ios-latest-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PC: 3 Colunas */
    gap: 30px;
    width: 100%;
}

/* --- 2. O CARD (DESIGN APPLE) --- */
.ios-latest-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ios-latest-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.ios-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* --- 3. A IMAGEM --- */
.ios-card-image {
    width: 100%;
    /* O editor pode reclamar disto, mas é válido e moderno: */
    aspect-ratio: 3 / 2; 
    background: #f5f5f7;
    position: relative;
    overflow: hidden;
}

/* Fallback para navegadores jurássicos que não entendem aspect-ratio */
@supports not (aspect-ratio: 3 / 2) {
    .ios-card-image {
        height: 200px; 
    }
}

.ios-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.ios-latest-card:hover .ios-card-image img {
    transform: scale(1.05);
}

/* Fallback de Imagem */
.ios-card-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f9f9f9;
}
.ios-card-fallback img {
    width: 40%;
    opacity: 0.1;
    object-fit: contain;
}

/* --- 4. O CONTEÚDO (TEXTO) --- */
.ios-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

/* Metadados */
.ios-card-meta {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #86868b;
    margin-bottom: 12px;
    line-height: 1;
}

.ios-cat {
    color: #118c01;
}

.ios-divider {
    margin: 0 6px;
    color: #d2d2d7;
}

/* Título */
.ios-card-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #1d1d1f !important;
    margin: 0 0 12px 0 !important;
    display: block !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    text-transform: none !important;
}

/* Resumo */
.ios-card-excerpt {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #515154;
    line-height: 1.6;
    margin-bottom: 20px;
    
    /* Truque para cortar em 3 linhas */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; 
    /* Se o editor reclamar da linha acima, ignora. É necessário. */
}

/* Link "Ler mais" */
.ios-read-more {
    margin-top: auto;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #118c01;
    display: flex;
    align-items: center;
}

.ios-read-more::after {
    content: '→';
    margin-left: 6px;
    transition: margin-left 0.2s ease;
}

.ios-latest-card:hover .ios-read-more::after {
    margin-left: 10px;
}

/* --- 5. BOTÕES (VER MAIS / CARREGAR MAIS) - FORÇA BRUTA --- */

.ios-load-more-wrapper, 
.ios-view-all-container {
    text-align: center;
    margin-top: 60px;
    width: 100%;
    clear: both;
    display: flex;
    justify-content: center;
}

.ios-view-all-btn,
#ios_load_more_btn {
    /* Reset total */
    background: none; border: none; cursor: pointer; text-decoration: none;
    
    /* Design Pílula Sólida */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    font-family: 'Lato', sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    
    /* A COR DA MARCA */
    background-color: #118c01 !important; 
    color: #ffffff !important;
    
    border: none !important;
    
    /* Tamanho */
    padding: 18px 60px !important; 
    min-width: 260px !important;
    border-radius: 50px !important;
    
    /* Sombra */
    box-shadow: 0 10px 30px rgba(17, 140, 1, 0.25) !important;
    
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Hover */
.ios-view-all-btn:hover,
#ios_load_more_btn:hover {
    background-color: #0f7a01 !important; /* Verde escuro */
    color: #ffffff !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 35px rgba(17, 140, 1, 0.35) !important;
}

/* Estado Carregando */
#ios_load_more_btn.loading {
    background-color: #118c01 !important;
    opacity: 0.8 !important;
    cursor: wait !important;
    transform: scale(0.98) !important;
}

/* Spinner */
.ios-spinner {
    display: none;
    width: 16px;
    height: 16px;
    margin-left: 12px;
    border: 2px solid #ffffff !important;
    border-radius: 50%;
    border-top-color: transparent !important;
    animation: spin 0.8s linear infinite;
}

#ios_load_more_btn.loading .ios-spinner {
    display: inline-block !important;
}

@keyframes spin { to { transform: rotate(360deg); } }


/* --- 6. RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 800px) {
    .ios-latest-container {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    
    .ios-card-image {
        aspect-ratio: 16 / 9; 
    }

    /* Home: Esconde 3+ */
    .ios-latest-container .ios-latest-card:nth-child(n+3) {
        display: none;
    }

    /* Feed: Mostra tudo */
    .ios-feed-page .ios-latest-container .ios-latest-card:nth-child(n+3) {
        display: flex !important;
    }
    
    /* Botão Mobile */
    .ios-view-all-btn,
    #ios_load_more_btn {
        width: 90% !important;
        padding: 16px 0 !important;
    }
}/* End custom CSS */