/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a73e8;
    --secondary: #f8f9fa;
    --success: #34a853;
    --warning: #fbbc05;
    --danger: #ea4335;
    --info: #4285f4;
    --dark: #212529;
    --light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    text-align: center;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Banner */
.banner {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: visible;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);  
    border-bottom: none;  
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Logo */
.logo-container {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    z-index: 100;  
}

.logo-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(270deg, #ff4d4d, #ff9f40, #ffde59, #4de680, #4d94ff, #a64dff, #ff4da6);
    background-size: 1000% 1000%;
    animation: animarBorda 6s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.35);  
}

.logo-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    object-fit: contain;
}

@keyframes animarBorda {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Slider */
.slider-container {
    margin-top: 0;  
    position: relative;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow);
    border-radius: 0;  
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

.slider {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1); 
    height: 400px;  
    width: calc(100% * 6); 
}

.slide-item {
    width: calc(100% / 6); 
    min-width: calc(100% / 6);
    position: relative;
    height: 100%;
    overflow: hidden;
    flex-shrink: 0; 
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
    display: block;
    transform: scale(1.01); 
}

.image-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    z-index: 5;
}

/* Slides de texto */
.slides {
    margin: 20px 15px;
    background: linear-gradient(to right, #e8f0fe, #f0f7ff);
    border-radius: var(--radius);
    padding: 12px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    box-shadow: var(--shadow);
}

.slide-text {
    display: inline-block;
    margin-right: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    animation: deslizar 25s linear infinite;
}

@keyframes deslizar {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Botões em grade */
.botoes-grade {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 15px;
}

.botao {
    background: var(--white);
    border: 2px solid;
    padding: 12px 10px;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: center;
}

.botao .emoji {
    font-size: 1.4rem;
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.botao-texto {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    text-align: center;
}

.botao-texto strong {
    margin-bottom: 2px;
}

.botao-texto small {
    font-weight: normal;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Estilo para o texto "Em breve" */
.em-breve {
    display: inline-block;
    background-color: #ff9800;
    color: white;
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 3px;
    font-weight: bold;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Colors for the new buttons */
.botao.procedimentos { border-color: #009688; color: #009688; }
.botao.estacoes-alguem { border-color: #673ab7; color: #673ab7; }

.botao.procedimentos:hover { background: #009688; color: white; }
.botao.estacoes-alguem:hover { background: #673ab7; color: white; }

/* Cores específicas dos botões */
.botao.estudar { border-color: var(--success); color: var(--success); }
.botao.aprender { border-color: var(--warning); color: var(--warning); }
.botao.treinar { border-color: var(--danger); color: var(--danger); }
.botao.praticar { border-color: var(--info); color: var(--info); }
.botao.discursiva { border-color: #9c27b0; color: #9c27b0; }
.botao.resumos { border-color: #607d8b; color: #607d8b; }

.botao.estudar:hover { background: var(--success); color: white; }
.botao.aprender:hover { background: var(--warning); color: white; }
.botao.treinar:hover { background: var(--danger); color: white; }
.botao.praticar:hover { background: var(--info); color: white; }
.botao.discursiva:hover { background: #9c27b0; color: white; }
.botao.resumos:hover { background: #607d8b; color: white; }

/* Conteúdo extra */
.conteudo-extra {
    margin: 25px 15px;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center; 
}

.titulo-centralizado {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.3rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

.titulo-centralizado:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.conteudo-extra p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    text-align: left; 
}

/* Tabs na seção Sobre o Revalida */
.tabs-container {
    margin-top: 15px;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    text-align: left; 
}

.tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    background: #f5f8ff;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 12px 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    position: relative;
    transition: var(--transition);
    margin-right: 1px;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #e9f0ff;
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    background: white;
    font-weight: 600;
}

.tab-btn.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

.tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.tab-content h4 {
    color: #555;
    margin: 15px 0 10px;
    font-size: 1.1rem;
}

.tab-content p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.tab-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.tab-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.etapa-box {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Estilo para as provas antigas */
.provas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.prova-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid var(--primary);
    transition: var(--transition);
}

.prova-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.prova-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.prova-card ul {
    list-style: none;
    margin-left: 0;
}

.prova-card li {
    margin-bottom: 6px;
}

.prova-card a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: block;
    padding: 3px 0;
}

.prova-card a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Botão e Modal de Contato */
.botao-contato {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
}

.botao-contato:hover {
    transform: scale(1.1);
}

.modal-contato {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal-conteudo {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.fechar-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

.fechar-modal:hover {
    color: var(--danger);
}

.modal-conteudo h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

.campo-formulario {
    margin-bottom: 15px;
    text-align: left;
}

.campo-formulario label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #666;
}

.campo-formulario input,
.campo-formulario textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: var(--transition);
}

.campo-formulario input:focus,
.campo-formulario textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.campo-formulario textarea {
    height: 100px;
    resize: vertical;
}

.modal-conteudo button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.modal-conteudo button:hover {
    background: #1567d3;
}

#confirmacao {
    margin-top: 15px;
    text-align: center;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 40px 15px 20px;
    margin-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #f0f0f0;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 40px;
    background: var(--info);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

.redes-sociais {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.redes-sociais a {
    color: #ddd;
    font-size: 1.2rem;
    transition: var(--transition);
}

.redes-sociais a:hover {
    color: white;
    transform: translateY(-3px);
}

/* Responsividade */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .botoes-grade {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .botoes-grade {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider-container {
        margin-top: 50px;
        border-top: none;
    }
    
    .slide-content h2 {
        font-size: 1.3rem;
    }
    
    .logo-ring {
        width: 100px;
        height: 100px;
    }
    
    .banner {
        height: 120px;
        position: relative;
        z-index: 3;
    }
    
    .logo-container {
        bottom: -50px;
        z-index: 101;
    }
    
    .slider {
        height: 300px;
    }
    
    .tabs-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 5px;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .botoes-grade {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin: 15px 10px;
    }
    
    .botao {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .botao .emoji {
        font-size: 1.2rem;
    }
    
    .botao-texto strong {
        font-size: 0.85rem;
    }
    
    .botao-texto small {
        font-size: 0.7rem;
    }
    
    .slider-container {
        margin-top: 45px;
    }
    
    .logo-ring {
        width: 90px;
        height: 90px;
    }
    
    .banner {
        height: 100px;
    }
    
    .logo-container {
        bottom: -45px;
    }
}