/* ========================================
   CORREÇÕES CSS - SLIDER E NEWS GRID
   ======================================== */

/**
 * Este arquivo contém as correções CSS necessárias para
 * corrigir a desconfiguração do slider e da news-grid
 * no site VOCÊ REPÓRTER
 */

/* ========================================
   CORREÇÕES DO SLIDER (HERO)
   ======================================== */

.hero-slider-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    overflow: visible;
}

.hero-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    width: 100%;
}

.hero-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 20px;
    width: 100%;
}

/* Slides do hero */
.hero-slide {
  
    min-width: calc(50% - 10px);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hero-slide2 {
 
    min-width: calc(50% - 10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hero-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.hero-slide-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-slide:hover .hero-slide-image img {
    transform: scale(1.1);
}

.hero-slide-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-slide-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slide-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.hero-slide-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: fit-content;
}

.hero-slide-button:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Controles do slider */
.hero-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.hero-slider-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-slider-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    transform: scale(1.1);
}

.hero-slider-button:hover:not(:disabled) svg {
    stroke: white;
}

.hero-slider-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.hero-slider-button svg {
    width: 20px;
    height: 20px;
    stroke: #333;
    transition: stroke 0.3s ease;
}

/* Dots do slider */
.hero-slider-dots {
    display: flex;
    gap: 8px;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-dot.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 30px;
    border-radius: 5px;
}

/* ========================================
   CORREÇÕES DA NEWS GRID
   ======================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.news-card-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.news-card-image-container:hover .news-card-image {
    transform: scale(1.1);
}

.news-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    width: fit-content;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.news-card-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    padding-top: 12px;
    border-top: 1px solid #eee;
    margin-bottom: 12px;
}

.news-card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: fit-content;
}

.news-card-button:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Badge de vídeo */
.news-card-video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card-video-badge svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   RESPONSIVO - TABLET
   ======================================== */

@media (max-width: 1024px) {
     .hero-slide, .hero-slide2  {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   RESPONSIVO - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .hero-slider-container {
        padding: 20px 10px;
    }

    .hero-slide, .hero-slide2 {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .hero-slider-track {
        gap: 0;
    }

    .hero-slide-image {
        height: 220px;
    }

    .hero-slide-content {
        padding: 20px;
    }

    .hero-slide-title {
        font-size: 18px;
    }

    .hero-slide-description {
        font-size: 13px;
    }

    .hero-slider-button {
        width: 40px;
        height: 40px;
    }

    .hero-slider-button svg {
        width: 16px;
        height: 16px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-image-container {
        height: 180px;
    }

    .news-card-content {
        padding: 16px;
    }

    .news-card-title {
        font-size: 16px;
    }

    .news-card-description {
        font-size: 13px;
    }
}

/* ========================================
   UTILITÁRIOS
   ======================================== */

.load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 30px auto;
    display: block;
}

.load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.ajax-loader {
    display: none;
    text-align: center;
    padding: 20px;
}

.ajax-loader.show {
    display: block;
}

/* Garantir que o poster seja visível quando o vídeo não está em reprodução */
.hero-slide-image video {
    display: block;  /* ← Mudar de 'none' para 'block' */
    background-size: cover;
    background-position: center;
}

.hero-slide-image video:not(.playing) {
    display: block;  /* ← Garantir que o poster seja visível */
}

.hero-slide-image video.playing {
    display: block;
}

/* Mesmo para News Grid */
.news-card-image-container video {
    display: block;  /* ← Mudar de 'none' para 'block' */
}

.news-card-image-container video:not(.playing) {
    display: block;  /* ← Garantir que o poster seja visível */
}

.news-card-image-container video.playing {
    display: block;
}