/* Reset e Variáveis */
:root {
    --color-black: #0a0a0a;
    --color-black-light: #1a1a1a;
    --color-red: #dc2626;
    --color-red-dark: #b91c1c;
    --color-red-light: #ef4444;
    --color-yellow: #fbbf24;
    --color-yellow-dark: #f59e0b;
    --color-white: #ffffff;
    --color-gray: #6b7280;
    --color-gray-light: #f3f4f6;
    --color-gray-dark: #374151;
    
    --font-primary: 'Poppins', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-red: 0 10px 25px -5px rgba(220, 38, 38, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    z-index: -2;
    pointer-events: none;
}

/* Canvas Neural Background */
.neural-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: auto;
    opacity: var(--neural-opacity, 0.6);
    background: transparent;
    transition: opacity 0.3s ease;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-black-light) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--color-red);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-white);
}

.logo h1 span {
    color: var(--color-red);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: var(--color-red);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-red);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.btn-admin {
    background: var(--color-red);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    background: var(--color-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.btn-admin::after {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-white);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-black-light) 50%, var(--color-red-dark) 100%);
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(220,38,38,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(220, 38, 38, 0.2) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-title .highlight {
    color: var(--color-yellow);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-gray-light);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-red);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(220, 38, 38, 0.4);
}

.btn-card {
    background: var(--color-yellow);
    color: var(--color-black);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    width: 100%;
}

.btn-card:hover {
    background: var(--color-yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
}

/* Section Styles */
.concursos-section {
    padding: 5rem 0;
    background: var(--color-black-light);
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

#professores .section-header {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-title .highlight {
    color: var(--color-red);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray);
}

/* Concursos Grid */
.concursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.concurso-card {
    background: var(--color-black);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.concurso-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.3);
    border-color: var(--color-red);
}

.concurso-card.destaque {
    border-color: var(--color-yellow);
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.2);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--color-black-light);
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.concurso-card:hover .card-image img {
    transform: scale(1.1);
}

.card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-black-light) 0%, var(--color-red-dark) 100%);
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.5;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
}

.destaque-badge {
    background: var(--color-yellow);
    color: var(--color-black);
}

.online-badge {
    background: var(--color-red);
    color: var(--color-white);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.card-orgao {
    color: var(--color-red);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.card-descricao {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    flex: 1;
    line-height: 1.6;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-black-light);
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-light);
    font-size: 0.9rem;
}

.info-icon {
    font-size: 1.2rem;
}

.card-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.card-price {
    text-align: center;
    padding: 1rem;
    background: var(--color-black-light);
    border-radius: 8px;
}

.price-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-bottom: 0.25rem;
}

.price-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-yellow);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--color-gray);
}

/* Footer */
.footer {
    background: var(--color-black);
    padding: 3rem 0 1rem;
    border-top: 2px solid var(--color-red);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--color-red);
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-black-light);
    color: var(--color-gray);
}

/* Seção de Aprovados */
.aprovados-section {
    padding: 1.5rem 0 2.5rem 0;
    background: var(--color-black);
    position: relative;
    z-index: 1;
}

/* Seção de Professores */
.professores-section {
    padding: 1.5rem 0 2.5rem 0;
    background: var(--color-black-light);
    position: relative;
    z-index: 1;
}

.professor-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    text-align: center;
    border: 2px solid var(--color-yellow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(251, 191, 36, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.professor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-yellow), var(--color-red));
    opacity: 0.8;
}

.professor-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(251, 191, 36, 0.4), 0 0 0 1px rgba(251, 191, 36, 0.2);
    border-color: var(--color-red);
}

.professor-foto {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-yellow);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
    position: relative;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.professor-card:hover .professor-foto {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4);
}

.professor-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.professor-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-height: 0;
    text-align: center;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.professor-info h3 {
    color: var(--color-white);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    word-wrap: break-word;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-align: center;
    width: 100%;
}

.professor-descricao {
    color: var(--color-gray-light);
    line-height: 1.7;
    flex: 1;
    text-align: center;
    font-size: 0.95rem;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Carrossel */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 2rem 20px;
}

@media (max-width: 768px) {
    .carousel-slide {
        padding: 0 1rem;
    }
    
    .aprovado-card,
    .professor-card {
        padding: 1.5rem;
        max-width: 100%;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .aprovado-foto,
    .professor-foto {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .aprovado-info,
    .professor-info {
        text-align: center;
    }
    
    .aprovado-info h3,
    .professor-info h3 {
        font-size: 1.1rem;
    }
    
    .aprovado-depoimento {
        padding: 1.25rem 1.25rem 1.25rem 2.25rem;
        font-size: 0.9rem;
        max-height: 150px;
        text-align: left;
    }
    
    .aprovado-depoimento::before {
        font-size: 3rem;
        left: 0.4rem;
    }
    
    .professor-descricao {
        font-size: 0.9rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
    align-items: stretch;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    padding: 0 2rem;
    box-sizing: border-box;
}

.aprovado-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    text-align: center;
    border: 2px solid var(--color-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(220, 38, 38, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.aprovado-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red), var(--color-yellow));
    opacity: 0.8;
}

.aprovado-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.4), 0 0 0 1px rgba(220, 38, 38, 0.2);
    border-color: var(--color-yellow);
}

.aprovado-foto {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-yellow);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
    position: relative;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.aprovado-card:hover .aprovado-foto {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4);
}

.aprovado-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aprovado-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
    text-align: center;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.aprovado-info h3 {
    color: var(--color-white);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    word-wrap: break-word;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-align: center;
    width: 100%;
}

.aprovado-cargo {
    color: var(--color-red);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 0 0.35rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
}

.aprovado-orgao {
    color: var(--color-gray-light);
    font-size: 0.95rem;
    margin: 0 0 0.35rem 0;
    opacity: 0.9;
    text-align: center;
    width: 100%;
}

.aprovado-ano {
    color: var(--color-yellow);
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 0.75rem 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.aprovado-ano::before {
    content: '✓';
    font-size: 1.1rem;
}

.aprovado-depoimento {
    color: var(--color-gray-light);
    font-style: italic;
    margin-top: 1rem;
    padding: 1.25rem 1.25rem 1.25rem 2.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border-left: 4px solid var(--color-yellow);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: left;
    font-size: 0.95rem;
    position: relative;
    max-height: 120px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-yellow) transparent;
    width: 100%;
    box-sizing: border-box;
}

.aprovado-depoimento::-webkit-scrollbar {
    width: 4px;
}

.aprovado-depoimento::-webkit-scrollbar-track {
    background: transparent;
}

.aprovado-depoimento::-webkit-scrollbar-thumb {
    background: var(--color-yellow);
    border-radius: 2px;
}

.aprovado-depoimento::before {
    content: '"';
    font-size: 3.5rem;
    color: var(--color-yellow);
    opacity: 0.25;
    position: absolute;
    top: 0.1rem;
    left: 0.5rem;
    font-family: Georgia, serif;
    line-height: 1;
    font-weight: bold;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(220, 38, 38, 0.9);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--color-red);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding: 0.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--color-red);
    width: 32px;
    border-radius: 6px;
    border-color: var(--color-yellow);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    transform: scale(1);
}

/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .concursos-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
