/* ==============================================================
   VARIÁVEIS E RESET
   ============================================================== */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

/* ==============================================================
   NAVBAR (PADRONIZADA)
   ============================================================== */
.navbar {
    height: 70px;
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    height: 35px;
    width: auto;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-back:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

/* ==============================================================
   CONTEÚDO PRINCIPAL (MAIN)
   ============================================================== */
.faq-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
}

/* Barra de Pesquisa */
.search-box {
    max-width: 550px;
    margin: 0 auto;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.search-box input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    outline: none;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* ==============================================================
   GRID DE CARDS
   ============================================================== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.faq-card {
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.faq-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.faq-card:hover .play-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

.play-overlay i {
    font-size: 4rem;
    color: var(--white);
}

.card-info {
    padding: 20px;
}

.card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.card-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==============================================================
   MODAL DE VÍDEO
   ============================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fundo escurecido */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(6px); /* Efeito de desfoque no fundo */
    padding: 20px;
}

.hidden {
    display: none;
}

.modal-video-container {
    width: 100%;
    max-width: 950px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-video-header {
    background: #1e293b;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
}

.modal-video-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-close-modal:hover {
    opacity: 1;
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16 / 9;
}

#mainVideo {
    width: 100%;
    height: 100%;
    display: block;
}

/* Botão de Play Gigante Central */
.big-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}

.big-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-hover);
}

/* ==============================================================
   RESPONSIVIDADE
   ============================================================== */
@media (max-width: 768px) {
    .faq-header h1 { font-size: 1.6rem; }
    .faq-grid { grid-template-columns: 1fr; }
    .modal-video-container { border-radius: 0; }
    .modal-video-header h2 { font-size: 1rem; }
}