/* STYLE.CSS - Teacher Leo Ramos
   Modelo de Design: Glassmorphism Puro & Clean + Sistema de Quiz Engines
   Autor: Leonardo Rangel Ramos
*/

:root {
    --bg-deep: #020c1b;
    --bg-accent: #0a192f;
    --primary-blue: #3b82f6;
    --gold-tech: #e5c05b;
    --text-main: #f0f4f8;
    --text-muted: #8b9bb4;
    
    /* Gradientes Oficiais */
    --gradient-blue-gold: linear-gradient(135deg, #0a192f 0%, #d4af37 100%);
    --gradient-text: linear-gradient(to right, #3b82f6, #e5c05b);

    /* Glassmorphism Puro */
    --glass-bg: rgba(10, 25, 47, 0.7);
    --glass-border: rgba(229, 192, 91, 0.2);
    --glass-blur: blur(15px);
    --shadow-standard: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

/* 1. RESET & GLOBAL */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-deep);
    overflow-x: hidden;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 2. BACKGROUND (VIDEO & OVERLAY) */
.video-bg-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: var(--bg-deep);
}

.video-bg-container video {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: contrast(1.1) brightness(0.5);
    opacity: 0.8;
}

.video-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: radial-gradient(circle at center, rgba(2, 12, 27, 0.4) 0%, rgba(2, 12, 27, 0.9) 100%);
    z-index: -1;
}

/* 3. HEADER GLASSMORPHISM */
.header-glass {
    position: fixed; 
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem 5%;
    gap: 10px;
    box-shadow: var(--shadow-standard);
    transition: padding 0.3s ease, transform 0.35s ease, opacity 0.35s ease;
    will-change: transform;
}

.header-glass.scrolled {
    padding: 0.4rem 5%;
    background: rgba(10, 25, 47, 0.9);
}

/* AUTO-HIDE: some ao rolar a tela para baixo, reaparece ao subir */
.header-glass.header-hidden {
    transform: translateY(-105%);
    opacity: 0;
    pointer-events: none;
}

/* Item de menu da pagina atual */
.nav-center a[aria-current="page"] {
    color: var(--gold-tech);
    border-color: var(--gold-tech);
    background: rgba(229, 192, 91, 0.08);
}

/* Acessibilidade: link de pulo para o conteudo */
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--gold-tech); color: #000;
    padding: 10px 18px; border-radius: 0 0 10px 0;
    font-weight: 800; font-size: 0.8rem; z-index: 2000; text-decoration: none;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .header-glass { transition: none; }
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.logo-img-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrapper img {
    width: 35px; height: 35px;
    border-radius: 50%;
    border: 1px solid var(--gold-tech);
}

.logo-name {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-tech);
}

.nav-center ul {
    display: flex;
    gap: 15px;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-center a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
    transition: 0.3s;
}

.nav-center a:hover {
    color: var(--gold-tech);
    border-color: var(--gold-tech);
    background: rgba(229, 192, 91, 0.05);
}

.header-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border), transparent);
}

.header-bottom-level {
    display: flex;
    gap: 15px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    transition: 0.3s;
}

.app-btn:hover {
    background: var(--gradient-blue-gold);
    border-color: var(--gold-tech);
}

.app-btn svg { width: 14px; height: 14px; fill: var(--gold-tech); }

/* 4. MAIN LAYOUT (Atualizado para ficar mais próximo ao menu) */
main {
    margin-top: 100px; /* Reduzido de 150px para aproximar do Header */
    position: relative;
    z-index: 1;
}

/* 5. GLASS PANELS & SECTIONS */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 4rem 3rem;
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
    box-shadow: var(--shadow-standard);
}

.hero-images-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-img {
    border-radius: 50%;
    border: 2px solid var(--gold-tech);
    width: 140px; height: 140px;
    object-fit: cover;
}

.hero-logo-img {
    max-width: 200px; height: auto;
}

.hero-name-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.6rem;
    color: var(--gold-tech);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title span { color: var(--gold-tech); }

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

/* 6. BUTTONS */
.btn-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cyber-btn {
    text-decoration: none;
    padding: 15px 35px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 12px;
    transition: 0.3s;
    cursor: pointer;
}

.cyber-btn-primary {
    background: var(--gradient-blue-gold);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.cyber-btn-gold {
    background: rgba(229, 192, 91, 0.05);
    color: var(--gold-tech);
    border: 1px solid var(--gold-tech);
}

.cyber-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    filter: brightness(1.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* Botão de reset centralizado no Placar */
.btn-reset-central {
    padding: 8px 18px !important;
    font-size: 0.75rem !important;
    margin: 0 10px;
}

/* 7. CONTENT SECTIONS (Padding reduzido) */
.content-section { padding: 2rem 5%; max-width: 1200px; margin: 0 auto; }

.section-title {
    font-family: 'Syncopate', sans-serif;
    color: var(--text-main);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem; /* Reduzido de 3.5rem para grudar nas caixas */
    text-transform: uppercase;
}

/* Caixas menores e centralizadas */
.text-glass-box {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--gold-tech);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin: 0 auto 1.5rem auto; /* Centraliza horizontalmente */
    max-width: 750px; /* Caixas mais finas e elegantes */
    box-shadow: var(--shadow-standard);
    text-align: left;
    position: relative;
}

.text-glass-box h3 { color: var(--gold-tech); margin-bottom: 1rem; font-size: 1.4rem; }
.text-glass-box h4 { color: var(--gold-tech); margin-top: 20px; margin-bottom: 8px; font-size: 1.1rem; }
.text-glass-box p  { margin-bottom: 15px; color: var(--text-main); line-height: 1.7; }
.text-glass-box ul { list-style: none; padding-left: 10px; margin-bottom: 20px; }
.text-glass-box li { margin-bottom: 10px; color: var(--text-main); line-height: 1.6; }
.text-glass-box strong { color: var(--primary-blue); }

/* 8. ACCORDIONS */
.accordion-header {
    width: 100%;
    padding: 15px 20px;
    background: var(--gradient-blue-gold);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    transition: 0.3s;
}

.accordion-header:hover { filter: brightness(1.1); }

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    opacity: 0;
}

.collapsible-content.expanded {
    max-height: 4000px;
    opacity: 1;
    padding: 20px 0;
}

/* 9. MEDIA ELEMENTS */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    margin: 0 auto 3.5rem auto;
    max-width: 850px;
    box-shadow: var(--shadow-standard);
}

.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* 10. FOOTER PREMIUM */
.site-footer {
    background: radial-gradient(circle at 50% 0%, rgba(2, 12, 27, 0.95), #01060e);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--gold-tech);
    padding: 4rem 5% 2rem;
    text-align: center;
    position: relative;
    margin-top: 5rem;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), var(--gold-tech), transparent);
    box-shadow: 0 0 15px var(--gold-tech);
}

.social-media-links { margin-bottom: 25px; }
.social-media-links a { margin: 0 12px; display: inline-block; }
.social-media-links img { 
    width: 32px; height: 32px; 
    filter: drop-shadow(0 0 5px rgba(229,192,91,0.3));
    transition: 0.3s;
}
.social-media-links a:hover img { transform: translateY(-5px) scale(1.1); filter: drop-shadow(0 0 15px var(--gold-tech)); }

.footer-info {
    background: rgba(10, 25, 47, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    display: inline-block;
    margin-top: 1rem;
}

.footer-info p { font-size: 0.75rem; color: var(--text-main); margin-bottom: 0.6rem; }

/* 11. UTILITIES */
#back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--gold-tech);
    color: var(--gold-tech);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: 0.3s;
}

#back-to-top:hover { background: var(--gold-tech); color: #000; }

/* 12. RESPONSIVE DESIGN */
@media (max-width: 768px) {
    main { margin-top: 120px; } /* Reduzido de 200px */
    .hero-title { font-size: 1.6rem; }
    .hero-images-wrapper { flex-direction: column; }
    .header-glass { padding: 1rem 2%; }
    .nav-center a { font-size: 0.55rem; padding: 4px 8px; }
    .options-grid { grid-template-columns: 1fr !important; }
    .text-glass-box { padding: 1.2rem; } /* Caixas mais justas no celular */
    .stats-board { flex-direction: column; gap: 10px; }

    /* Painel de vidro: no desktop tem 4rem/3rem de respiro; no celular
       isso sobrava mais que a tela util e "estourava" grids internos
       (era a causa do layout torto em courses.html). */
    .glass-panel { padding: 2.2rem 1.5rem; }
    .content-section { padding: 1.5rem 5%; }
}

/* Telas bem estreitas (celulares compactos) */
@media (max-width: 420px) {
    .hero-title { font-size: 1.35rem; }
    .hero-name-title { font-size: 1.3rem; }
    .glass-panel { padding: 1.8rem 1.2rem; border-radius: 24px; }
    .cyber-btn { padding: 13px 22px; font-size: 0.78rem; }
}


/* ==============================================================
   13. QUIZ ENGINE & ANIMATIONS (ESTILO CASSINO / CAÇA-NÍQUEL)
   ============================================================== */

/* Carrossel de Explicação */
.carousel-wrapper { overflow: hidden; width: 100%; border-radius: 10px; background: rgba(0,0,0,0.2); padding: 12px; font-size: 0.85rem; }
.carousel-track { display: flex; transition: transform 0.4s ease-in-out; width: 100%; }
.carousel-slide { min-width: 100%; box-sizing: border-box; padding: 0 10px; }
.carousel-slide p, .carousel-slide ul { margin-bottom: 0.5rem; }
.glass-table-wrapper { overflow-x: auto; margin-top: 10px; }
.glass-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.75rem; }
.glass-table th { background: rgba(229, 192, 91, 0.1); color: var(--gold-tech); padding: 8px; border-bottom: 1px solid var(--gold-tech); }
.glass-table td { padding: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* Score e Barras */
.score-board {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 1.1rem; margin-bottom: 1.5rem; padding: 1.5rem !important; border-left: none;
    border-top: 3px solid var(--primary-blue); border-bottom: 3px solid var(--primary-blue);
}
.xp-board { color: var(--gold-tech); font-family: 'Syncopate', sans-serif; font-size: 1.3rem; margin-bottom: 10px; text-shadow: 0 0 10px rgba(229, 192, 91, 0.5); }

/* Placar reorganizado para o Botão Reset ficar no meio */
.stats-board { 
    display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; 
    font-weight: 800; font-size: 0.95rem; background: rgba(0,0,0,0.4); padding: 10px 20px; border-radius: 20px; width: 100%; 
}

.combo-container { background: rgba(0,0,0,0.4); border-radius: 12px; padding: 12px; margin-bottom: 20px; border: 1px solid rgba(229, 192, 91, 0.2); }
.combo-bar-wrapper { width: 100%; height: 10px; background: #111; border-radius: 5px; overflow: hidden; margin-top: 8px; box-shadow: inset 0 0 5px #000; }
.combo-bar-fill { height: 100%; background: var(--gradient-text); width: 0%; transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 0 10px var(--gold-tech); }

/* Botões de Opção (Quiz) */
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px;}
.opt-btn { 
    padding: 12px; background: rgba(255,255,255,0.05); border: 2px solid var(--glass-border); 
    color: #fff; border-radius: 12px; cursor: pointer; transition: all 0.2s ease; 
    font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px;
}
.opt-btn:hover:not(:disabled) { background: rgba(229, 192, 91, 0.15); border-color: var(--gold-tech); transform: scale(1.05); }
.opt-btn:disabled { cursor: not-allowed; opacity: 0.8; }

.opt-btn.correct-ans { background: rgba(229, 192, 91, 0.3); border-color: var(--gold-tech); box-shadow: 0 0 20px rgba(229, 192, 91, 0.6); color: var(--gold-tech); }
.opt-btn.wrong-ans { background: rgba(255, 0, 0, 0.3); border-color: #f00; box-shadow: 0 0 15px rgba(255, 0, 0, 0.4); color: #fff; text-decoration: line-through; }

/* -------------------------------------------
   KEYFRAMES DE ANIMAÇÕES ESTILO CASSINO/SLOTS
------------------------------------------- */

/* ACERTO: Pulo rápido com brilho dourado (Estilo Coleta de Moeda) */
@keyframes pulse-correct-casino { 
    0% { transform: scale(1) translateY(0); box-shadow: 0 0 0 transparent; border-color: var(--gold-tech); }
    50% { transform: scale(1.03) translateY(-8px); background: rgba(229, 192, 91, 0.3); box-shadow: 0 15px 30px rgba(229, 192, 91, 0.5), inset 0 0 15px rgba(229,192,91,0.5); border-color: #fff; }
    100% { transform: scale(1) translateY(0); background: var(--glass-bg); box-shadow: var(--shadow-standard); border-color: var(--glass-border); }
}

/* ERRO: Tranco forte para os lados (Máquina travando) */
@keyframes shake-wrong-casino { 
    0%, 100% { transform: translateX(0); background: var(--glass-bg); }
    15% { transform: translateX(-12px) rotate(-1deg); background: rgba(255, 0, 0, 0.3); box-shadow: inset 0 0 20px red; }
    30% { transform: translateX(12px) rotate(1deg); }
    45% { transform: translateX(-12px) rotate(-1deg); }
    60% { transform: translateX(12px) rotate(1deg); }
    75% { transform: translateX(-6px) rotate(0); }
}

/* COMBO 5: Mini Prêmio (Pisca Dourado e Branco estilo Neon) */
@keyframes combo5-casino { 
    0%, 100% { box-shadow: 0 0 0 transparent; border-color: var(--glass-border); }
    25% { box-shadow: 0 0 40px var(--gold-tech); border-color: var(--gold-tech); transform: scale(1.02); }
    50% { box-shadow: 0 0 40px #fff; border-color: #fff; transform: scale(1.03); background: rgba(255,255,255,0.1); }
    75% { box-shadow: 0 0 40px var(--gold-tech); border-color: var(--gold-tech); transform: scale(1.02); }
}

/* COMBO 10: Prêmio Grande (Chuva de Luzes) */
@keyframes combo10-casino { 
    0% { border-color: var(--gold-tech); box-shadow: 0 0 10px var(--gold-tech); }
    20% { border-color: #ff0; box-shadow: 0 -20px 50px var(--gold-tech), 0 20px 50px #ff0; transform: scale(1.04); background: rgba(229, 192, 91, 0.2); }
    40% { border-color: #fff; box-shadow: 0 -20px 50px #fff, 0 20px 50px var(--gold-tech); transform: scale(1.06); }
    60% { border-color: #ff0; box-shadow: 0 -20px 50px var(--gold-tech), 0 20px 50px #ff0; transform: scale(1.04); background: rgba(229, 192, 91, 0.2); }
    80% { border-color: #fff; box-shadow: 0 -20px 50px #fff, 0 20px 50px var(--gold-tech); transform: scale(1.02); }
    100% { border-color: var(--glass-border); box-shadow: var(--shadow-standard); transform: scale(1); background: var(--glass-bg); }
}

/* COMBO 20: MEGA JACKPOT TIGRINHO (Frenesi de cores de Caça-Níquel) */
@keyframes combo20-casino { 
    0% { filter: contrast(1); transform: scale(1); }
    10% { transform: scale(1.08); box-shadow: 0 0 80px var(--gold-tech), inset 0 0 30px #ff0; border-color: #ff0; background: rgba(229,192,91,0.3); }
    20% { transform: scale(1.05) translateY(-5px); box-shadow: 0 0 100px #f00, inset 0 0 30px #f00; border-color: #f00; }
    30% { transform: scale(1.08) translateY(5px); box-shadow: 0 0 100px var(--gold-tech), inset 0 0 30px #ff0; border-color: #ff0; }
    40% { transform: scale(1.05) translateY(-5px); box-shadow: 0 0 100px #0f0, inset 0 0 30px #0f0; border-color: #0f0; }
    50% { transform: scale(1.1) translateY(5px); box-shadow: 0 0 150px var(--gold-tech), inset 0 0 50px #ff0; border-color: #ff0; background: rgba(229,192,91,0.5); }
    60% { transform: scale(1.05) translateY(-5px); box-shadow: 0 0 100px #0ff, inset 0 0 30px #0ff; border-color: #0ff; }
    70% { transform: scale(1.08) translateY(5px); box-shadow: 0 0 100px var(--gold-tech), inset 0 0 30px #ff0; border-color: #ff0; }
    80% { transform: scale(1.05) translateY(-5px); box-shadow: 0 0 100px #f0f, inset 0 0 30px #f0f; border-color: #f0f; }
    90% { transform: scale(1.1) translateY(0); box-shadow: 0 0 150px var(--gold-tech), inset 0 0 80px #ff0; border-color: #fff; background: rgba(255,255,255,0.2); }
    100% { filter: contrast(1); transform: scale(1); border-color: var(--glass-border); box-shadow: var(--shadow-standard); background: var(--glass-bg); }
}

/* Aplicando as classes de animação */
.anim-correct { animation: pulse-correct-casino 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.anim-wrong { animation: shake-wrong-casino 0.4s ease-in-out forwards; }
.anim-combo-5 { animation: combo5-casino 0.6s ease-out forwards; }
.anim-combo-10 { animation: combo10-casino 0.9s ease-out forwards; }
.anim-combo-20 { animation: combo20-casino 1.5s ease-out forwards; }

/* ==============================================================
   14. HUB DE BUSCA + ACORDEOES (exercises.html / articles.html)
   Antes duplicado no <style> de cada pagina. Agora e unico.
   ============================================================== */
.search-container {
    margin-top: 140px;
    max-width: 900px;
    margin-left: auto; margin-right: auto;
    padding: 0 5%;
    z-index: 10; position: relative;
}

.search-box {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 15px 30px;
    display: flex; align-items: center; gap: 15px;
    box-shadow: var(--shadow-standard);
}

.search-box input {
    background: transparent; border: none;
    color: var(--text-main); width: 100%;
    font-size: 1rem; outline: none;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box svg { fill: var(--gold-tech); width: 20px; flex-shrink: 0; }

/* O <main> das paginas de hub ja vem depois da busca */
.hub-grid { margin-top: 50px !important; margin-bottom: 100px; }
.accordion-item { margin-bottom: 15px; }

/* Acordeoes do hub: variante "vidro" (sobrepoe a variante gradiente global) */
#accordion-container .accordion-header {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 18px 25px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-weight: 800; font-size: 1.1rem;
    text-align: left; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    border-radius: 15px; transition: 0.3s;
    margin-top: 0;
}
#accordion-container .accordion-header:hover { border-color: var(--gold-tech); filter: none; }

#accordion-container .collapsible-content {
    display: none;
    max-height: none; opacity: 1; overflow: hidden;
    background: rgba(2, 12, 27, 0.4);
    border-radius: 0 0 15px 15px;
    padding: 0 15px;
    transition: none;
}
#accordion-container .collapsible-content.expanded { display: block; padding-bottom: 20px; }

.hub-buttons-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 15px;
    padding: 10px;
}

.btn-direct {
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: rgba(229, 192, 91, 0.05);
    color: var(--gold-tech);
    text-decoration: none;
    font-size: 0.85rem; font-weight: 600;
    border: 1px solid var(--glass-border);
    padding: 14px 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 0.5px;
    line-height: 1.4;
}

.btn-direct:hover {
    background: var(--gold-tech); color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(229, 192, 91, 0.4);
}

.hub-empty {
    display: none;
    text-align: center;
    color: var(--text-muted);
    padding: 25px 10px;
    font-size: 0.9rem;
}
.hub-empty.visible { display: block; }

/* ==============================================================
   15. VITRINE DE CURSOS E RELATOS (courses.html)
   Escopado em #cursos para nao colidir com o carrossel do quiz.
   ============================================================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.course-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: 0.3s ease;
}

.course-card:hover {
    border-color: var(--gold-tech);
    background: rgba(229, 192, 91, 0.05);
    transform: translateY(-5px);
}

.course-card h3 {
    color: var(--gold-tech);
    font-family: 'Syncopate', sans-serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

#cursos .carousel-wrapper {
    position: relative;
    width: 100%; max-width: 800px;
    margin: 3rem auto 1rem;
    overflow: hidden;
    border-radius: 24px;
    background: transparent;
    padding: 0;
    font-size: 1rem;
}

#cursos .carousel-track { display: flex; transition: transform 0.5s ease-in-out; width: 100%; }
#cursos .carousel-slide { min-width: 100%; box-sizing: border-box; padding: 0 10px; }

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    height: 100%;
}

.testimonial-card blockquote {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.testimonial-card cite {
    color: var(--gold-tech);
    display: block;
    margin-bottom: 1.5rem;
    font-style: normal;
    font-weight: 700;
}

#cursos .video-wrapper {
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    margin: 0;
    max-width: none;
}

.carousel-controls {
    display: flex; justify-content: center; align-items: center;
    gap: 20px; margin-top: 15px; margin-bottom: 3rem;
}

.car-btn {
    background: var(--glass-bg);
    border: 1px solid var(--gold-tech);
    color: var(--gold-tech);
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
    backdrop-filter: var(--glass-blur);
}

.car-btn:hover {
    background: var(--gold-tech); color: #000;
    box-shadow: 0 0 15px rgba(229, 192, 91, 0.5);
    transform: scale(1.1);
}

/* Responsivo das secoes 14 e 15 */
@media (max-width: 768px) {
    .search-container { margin-top: 130px; }
    .search-box { padding: 12px 20px; }
    .hub-buttons-wrapper { grid-template-columns: 1fr; }

    /* Vitrine de cursos: 1 coluna centralizada (era a causa do "torto") */
    .courses-grid { grid-template-columns: 1fr; gap: 18px; }
    .course-card { padding: 1.8rem 1.5rem; }

    /* Carrossel de relatos: encaixa na largura util do celular */
    #cursos .carousel-wrapper { margin-top: 2rem; border-radius: 18px; }
    .testimonial-card { padding: 1.5rem; border-radius: 18px; }
    .car-btn { width: 44px; height: 44px; font-size: 1.2rem; }
}

@media (max-width: 420px) {
    .course-card { padding: 1.5rem 1.1rem; }
    .testimonial-card { padding: 1.2rem; }
    .carousel-controls { gap: 14px; }
}