/* ============================================================================
   MOGIANA FC – HOME COMPONENTS (ARQUIVO 3)
   Layout otimizado com slider maior (650px) e cards compactos
============================================================================ */

/* ============================= LAYOUT PRINCIPAL ============================= */
.mf-home-layout {
    display: grid;
    grid-template-columns: 1fr 320px; /* Slider maior, coluna lateral compacta */
    gap: 20px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ÁREA DO SLIDER - OCUPA MAIS ESPAÇO */
.mf-slider-area {
    grid-column: 1;
}

/* ÁREA DOS CARDS - COMPACTA */
.mf-cards-area {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 1024px) {
    .mf-home-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .mf-slider-area,
    .mf-cards-area {
        grid-column: 1;
    }
    
    .mf-cards-area {
        align-items: center;
    }
}

/* ============================= SLIDER PRINCIPAL MAIOR ============================= */
.mf-home-slider {
    margin: 30px 0 50px;
    position: relative;
}

.mf-slider {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    position: relative;
    height: 650px; /* ALTURA AUMENTADA PARA 650px */
}

.mf-slide {
    position: relative;
    height: 650px; /* ALTURA AUMENTADA */
}

.mf-slide-img img {
    width: 100%;
    height: 650px; /* ALTURA AUMENTADA */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mf-slide:hover .mf-slide-img img {
    transform: scale(1.05);
}

/* Overlay com gradiente azul Mogiana */
.mf-slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 45px 30px 30px 30px; /* AUMENTADO */
    background: linear-gradient(
        to top,
        rgba(10, 25, 79, 0.95),
        rgba(10, 25, 79, 0.6),
        transparent
    );
    color: white;
}

.mf-slide-info h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px;
}

.mf-slide-date {
    font-size: 16px; /* AUMENTADO */
    color: var(--mg-gold);
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.mf-slide-btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--mg-gold);
    color: var(--mg-navy);
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mf-slide-btn:hover {
    background: #fff;
    color: var(--mg-navy);
    transform: translateY(-2px);
}

/* ============================= PRÓXIMA PARTIDA ============================= */
.mf-upcoming-section {
    margin: 50px 0;
}

/* Container para cards compactos */
.mf-cards-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    width: 100%;
}

/* CARD DESTAQUE COMPACTO */
.mf-first-match {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.12);
    border: 1px solid #ffffff;
    max-width: 100%;
    margin: 0 auto 20px auto;
}

.mf-first-match .championship {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mg-navy);
    margin-bottom: 6px;
}

.mf-first-match .stadium {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
}

.mf-first-match .info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mf-first-match .datetime {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mf-first-match .date {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--mg-navy);
}

.mf-first-match .time {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.mf-first-match .shields {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mf-first-match .shield {
    width: 45px;
    height: 45px;
}

.mf-first-match .shield img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--mg-gold);
    padding: 3px;
}

/* ============================= LISTA DE PRÓXIMOS JOGOS ============================= */
.mf-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--mg-gold);
}

.mf-match-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--mg-navy);
    text-transform: uppercase;
}

.mf-match-header a {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: var(--mg-navy);
    padding: 6px 12px;
    border: 2px solid var(--mg-navy);
    border-radius: 6px;
    transition: 0.3s ease;
}

.mf-match-header a:hover {
    background: var(--mg-navy);
    color: white;
}

/* CARD DE JOGO COMPACTO */
.mf-match {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.mf-match:hover {
    transform: translateY(-2px);
}

.mf-match .championship {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mg-navy);
    margin-bottom: 4px;
}

.mf-match .stadium {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
}

.mf-match .info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mf-match .datetime {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mf-match .date {
    font-size: 16px;
    font-weight: 800;
    color: var(--mg-navy);
}

.mf-match .time {
    font-size: 11px;
    font-weight: 600;
    color: #666;
}

.mf-match .shields {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mf-match .shield {
    width: 35px;
    height: 35px;
}

.mf-match .shield img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--mg-gold);
    padding: 2px;
}

/* Botão Ingresso */
.mf-ticket {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    background: var(--mg-gold);
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.3s ease;
}

.mf-ticket:hover {
    background: var(--mg-navy);
}

/* ============================= NOTÍCIAS ============================= */
.mf-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.mf-news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.mf-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.mf-news-image {
    height: 200px;
    overflow: hidden;
}

.mf-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mf-news-card:hover .mf-news-image img {
    transform: scale(1.05);
}

.mf-news-content {
    padding: 20px;
}

.mf-news-date {
    font-size: 12px;
    color: var(--mg-gold);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.mf-news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--mg-navy);
    margin-bottom: 10px;
    line-height: 1.4;
}

.mf-news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ============================= PATROCINADORES ============================= */
.mf-sponsors-section {
    margin: 60px 0;
    padding: 40px 0;
    background: var(--mg-navy);
}

.mf-sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mf-sponsor-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: all 0.3s ease;
}

.mf-sponsor-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 197, 66, 0.3);
}

.mf-sponsor-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

/* ============================= ESTADOS VAZIOS ============================= */
.mf-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.mf-empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--mg-gold);
}

.mf-empty-title {
    font-size: 24px;
    color: var(--mg-navy);
    margin-bottom: 10px;
}

.mf-empty-description {
    color: #666;
    margin-bottom: 20px;
}

/* ============================================================================
   AJUSTE DE LAYOUT - SLIDER 70% / JOOMSPORT 29.123%
   (Adicionado para distribuição perfeita dos containers)
============================================================================ */

.elementor-3844 .elementor-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 20px !important;
    width: 100% !important;
}

/* Slider - 70% */
.elementor-3844 .elementor-element.elementor-element-ff1ff87 {
    width: 70% !important;
    flex: 0 0 70% !important;
    max-width: 70% !important;
    min-width: 70% !important;
}

/* JoomSport - 29.123% */
.elementor-3844 .elementor-element.elementor-element-35e39e7 {
    width: 29.123% !important;
    flex: 0 0 29.123% !important;
    max-width: 29.123% !important;
    min-width: 29.123% !important;
}

/* Garantir que os elementos internos ocupem 100% */
.elementor-3844 .elementor-element.elementor-element-ff1ff87 > .elementor-widget-wrap,
.elementor-3844 .elementor-element.elementor-element-35e39e7 > .elementor-widget-wrap {
    width: 100% !important;
}

/* Ajuste específico para o slider Master Slider */
.elementor-3844 .elementor-element.elementor-element-ff1ff87 .master-slider-parent {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ajuste específico para os cards do JoomSport */
.elementor-3844 .elementor-element.elementor-element-35e39e7 .jsmatchcont {
    width: 100% !important;
    max-width: 100% !important;
}

/* Responsividade */
@media (max-width: 1024px) {
    .elementor-3844 .elementor-element.elementor-element-ff1ff87,
    .elementor-3844 .elementor-element.elementor-element-35e39e7 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    
    .elementor-3844 .elementor-container {
        gap: 15px !important;
    }
}

/* ================= SLIDER – PROPORÇÃO PROFISSIONAL (BRAGANTINO STYLE) ================ */
.mg-news-slider-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--mg-shadow);
}
.mg-news-slider-item {
    width: 100%;
    height: 100%;
}
.mg-news-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    display: block;
}

/* ============================= RESPONSIVIDADE ============================= */
@media (max-width: 1024px) {
    .mf-home-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .mf-first-match {
        max-width: 100%;
    }
    
    .mf-news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .mf-slider {
        height: 500px;
    }
    
    .mf-slide {
        height: 500px;
    }
    
    .mf-slide-img img {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .mf-home-slider {
        margin: 20px 0 40px;
    }
    
    .mf-slider {
        height: 400px;
    }
    
    .mf-slide {
        height: 400px;
    }
    
    .mf-slide-img img {
        height: 400px;
    }
    
    .mf-slide-info {
        padding: 30px 20px 20px 20px;
    }
    
    .mf-slide-info h2 {
        font-size: 26px;
    }
    
    .mf-match-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .mf-sponsors-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .mf-sponsor-item {
        height: 80px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .mf-slider {
        height: 300px;
    }
    
    .mf-slide {
        height: 300px;
    }
    
    .mf-slide-img img {
        height: 300px;
    }
    
    .mf-slide-info {
        padding: 25px 15px 15px 15px;
    }
    
    .mf-slide-info h2 {
        font-size: 22px;
    }
    
    .mf-news-grid {
        grid-template-columns: 1fr;
    }
    
    .mf-sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .mf-sponsor-item {
        height: 70px;
        padding: 10px;
    }
}