* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.sidebar.active ~ .sidebar-toggle,
.sidebar.active + .sidebar-toggle,
.sidebar.active .sidebar-toggle {
    display: none !important;
}

/* Caso o botão esteja fora da hierarquia direta, esta é a forma mais garantida se o seu JS permitir: */
body:has(.sidebar.active) .sidebar-toggle {
    display: none !important;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    color: #1a1a1a;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    line-height: 1.2;
    background: linear-gradient(135deg, #800000 0%, #d4004d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 6vw, 2.8rem);
    line-height: 1.2;
    background: linear-gradient(135deg, #1a1a1a 0%, #800000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #1a1a1a;
}

p {
    color: #4a4a4a;
    line-height: 1.7;
}

button {
    font-family: 'Inter', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* HERO SECTION - Modern Gradient */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #800000 0%, #6e0303 50%, #000000 100%);
    padding: 6rem 0 8rem;
    color: #ffffff;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><filter id="blur"><feGaussianBlur in="SourceGraphic" stdDeviation="3" /></filter></defs><circle cx="100" cy="100" r="80" fill="white" opacity="0.03" filter="url(%23blur )"/><circle cx="1100" cy="500" r="120" fill="white" opacity="0.02" filter="url(%23blur)"/><circle cx="600" cy="300" r="100" fill="white" opacity="0.02" filter="url(%23blur)"/></svg>');
    opacity: 0.5;
}

.hero-line {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge::before {
    content: '🚀';
    font-size: 1.1rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: unset;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #ffff00 0%, #ffcc00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat .icon {
    width: 24px;
    height: 24px;
    color: #ffff00;
    flex-shrink: 0;
}

.stat span {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

/* FILTERS SECTION - Modern Design */
.filters-section {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(128, 0, 0, 0.1);
}

.filter-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.filter-title::before {
    content: '🔍 ';
    margin-right: 0.5rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    color: #1a1a1a;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #800000, #6e0303);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.filter-btn:hover {
    border-color: #800000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, #800000 0%, #6e0303 100%);
    color: #ffffff;
    border-color: #000000;
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.3);
    transform: translateY(-3px);
}

.filter-info {
    font-size: 0.875rem;
    color: #666666;
    margin-top: 1rem;
    font-weight: 500;
}

/* VAGAS SECTION - Modern Cards */
.vagas-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.section-line {
    width: 6px;
    height: 3rem;
    background: linear-gradient(to bottom, #800000, #6e0303);
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.2);
}

.section-header h2 {
    background: linear-gradient(135deg, #1a1a1a 0%, #800000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vagas-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

@media (min-width: 768px) {
    .vagas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .vagas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.vaga-card {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 1rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    transition: all 0.3s ease;
    overflow: hidden;
}

.vaga-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.05) 0%, rgba(212, 0, 77, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.vaga-card:hover {
    border-color: #800000;
    box-shadow: 0 12px 30px rgba(128, 0, 0, 0.15);
    transform: translateY(-6px);
}

.vaga-card:hover::before {
    opacity: 1;
}

.vaga-card.destaque {
    border: 2px solid #000000;
    background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
    position: relative;
}

.vaga-card.destaque::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 0, 77, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

@media (min-width: 768px) {
    .vaga-card.destaque {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .vaga-card.destaque {
        grid-column: span 1;
    }
}

.vaga-destaque-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #800000 0%, #6e0303 100%);
    color: #ffffff;
    padding: 0.4rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 2rem;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
}

.vaga-destaque-badge::before {
    content: '⭐ ';
}

.vaga-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.vaga-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.vaga-card:hover .vaga-title {
    background: linear-gradient(135deg, #800000 0%, #6e0303 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vaga-department {
    font-size: 0.875rem;
    color: #666666;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vaga-department::before {
    content: '💼';
    font-size: 1rem;
}

.vaga-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: #4a4a4a;
}

.meta-item::before {
    content: '';
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #800000, #6e0303);
    border-radius: 50%;
}

.icon-small {
    width: 16px;
    height: 16px;
    color: #800000;
    flex-shrink: 0;
}

.vaga-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 1rem 0;
}

.vaga-description {
    font-size: 0.875rem;
    color: #666666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
    padding: 0.75rem;
    background: rgba(128, 0, 0, 0.02);
    border-left: 3px solid #6e0303;
    border-radius: 0.5rem;
}

.vaga-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, #800000 0%, #6e0303 100%);
    color: #ffffff;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vaga-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6e0303 0%, #800000 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vaga-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(128, 0, 0, 0.3);
}

.vaga-btn:hover::before {
    opacity: 1;
}

.vaga-btn span {
    position: relative;
    z-index: 2;
}

.icon-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.vaga-btn:hover .icon-arrow {
    transform: translateX(4px);
}

/* CTA SECTION - Vibrant Gradient */
.cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #800000 0%, #6e0303 50%, #000000 100%);
    padding: 5rem 0;
    color: #ffffff;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-background {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><filter id="blur"><feGaussianBlur in="SourceGraphic" stdDeviation="2" /></filter></defs><circle cx="100" cy="100" r="60" fill="white" opacity="0.05" filter="url(%23blur )"/><circle cx="1100" cy="300" r="80" fill="white" opacity="0.03" filter="url(%23blur)"/></svg>');
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.cta-content h2 {
    color: #ffffff;
    margin-bottom: 1rem;
    background: none;
    -webkit-text-fill-color: unset;
}

.cta-content h2::before {
    content: '💡 ';
    margin-right: 0.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.cta-btn {
    padding: 0.85rem 2.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #800000;
    font-weight: 700;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cta-btn::before {
    content: '📄 ';
    margin-right: 0.5rem;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* BENEFITS SECTION - Modern Cards */
.benefits-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
}

.benefits-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 3rem;
}

.benefit-card {
    padding: 2.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.05) 0%, rgba(212, 0, 77, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.benefit-card:hover {
    border-color: #800000;
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(128, 0, 0, 0.15);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #800000 0%, #6e0303 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    position: relative;
    z-index: 2;
}

.benefit-card p {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}


/* FOOTER */
.footer {
    background: linear-gradient(135deg, #800000 0%, #6e0303 50%, #000000 100%);
    color: #ffffff;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 3px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer p:last-child {
    margin-bottom: 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .hero {
        padding: 3.5rem 0 5rem;
    }

    .hero-stats {
        gap: 1rem;
        flex-direction: column;
    }

    .stat {
        width: 100%;
    }

    .vagas-grid {
        grid-template-columns: 1fr;
    }

    .vaga-card.destaque {
        grid-column: span 1;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.vaga-card {
    animation: fadeIn 0.6s ease-out;
}

.benefit-card {
    animation: fadeIn 0.6s ease-out;
}

.badge {
    animation: slideInLeft 0.8s ease-out;
}

.stat {
    animation: fadeIn 0.8s ease-out;
}

/* ACCESSIBILITY */
button:focus-visible {
    outline: 3px solid #ffff00;
    outline-offset: 2px;
}

a:focus-visible {
    outline: 3px solid #ffff00;
    outline-offset: 2px;
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #800000, #d4004d);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d4004d, #800000);
}

.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="file"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input[type="file"] {
    padding: 8px;
}

.submit-button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #0056b3;
}

#formMessage {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading-message {
    color: #007bff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.sidebar-toggle.fixed-menu-button {
    position: fixed; 
    left: 25px;  
    top: 65px;   
    background-color: rgba(139, 0, 0, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 0;
}

/* Ajusta o ícone dentro do botão fixo */
.fixed-menu-button .hamburger-icon {
    margin: auto; 
}