:root {
    --primary-red: #B42024;
    --dark-red: #c82333;
    --light-red: #f8d7da;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
}

.whats-container {
    display: flex;
    align-items: center;
}



body {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    font-family: 'Open Sans', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: white;
    padding: clamp(48px, 8vw, 80px) 0;
    margin-bottom: clamp(28px, 5vw, 50px);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Video de fundo e overlay do hero (largura 100% evita rolagem horizontal do 100vw) */
.hero-video,
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 20px !important;
    padding-left: 16px;
    padding-right: 16px;
}

.hero-title {
    font-size: clamp(1.9rem, 5.5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.6vw, 1.3rem);
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: var(--dark-red);
}

.filters-section {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.filter-item {
    margin-bottom: 15px;
}

.filter-select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    border-color: var(--primary-red);
    outline: none;
}

.vagas-container {
    min-height: 400px;
}

.vaga-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-red);
}

.vaga-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.vaga-title {
    color: var(--primary-red);
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    font-weight: 600;
    margin-bottom: 10px;
}

.vaga-company {
    color: var(--dark-gray);
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.vaga-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.vaga-info-item {
    display: flex;
    align-items: center;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.vaga-info-item i {
    color: var(--primary-red);
    margin-right: 8px;
    width: 16px;
}

.vaga-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.vaga-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.vaga-tag {
    background: var(--light-red);
    color: var(--primary-red);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.vaga-actions {
    display: flex;
    gap: 10px;
}

.btn-aplicar {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-aplicar:hover {
    background: var(--dark-red);
}

.btn-detalhes {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-detalhes:hover {
    background: var(--primary-red);
    color: white;
}

.loading-container {
    text-align: center;
    padding: 60px 0;
}

.container{
    padding-bottom: 4vh;
}

.loading-container .loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.no-vagas {
    text-align: center;
    padding: 60px 0;
    color: var(--dark-gray);
}

.no-vagas i {
    font-size: 4rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.stats-section {
    background: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--dark-gray);
    font-size: 1rem;
    font-weight: 500;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-container {
    background: white;
    border-radius: 10px;
    width: 70vw;          /* 70% da largura da tela */
    max-width: 1100px;    /* limite para telas muito grandes */
    min-width: 320px;

    max-height: 90vh;
    min-height: 300px;

    display: flex;
    flex-direction: column;

    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;

    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background: #e9ecef;
    color: #333;
}

.modal-body {
    padding: 20px;

    flex: 1 1 auto;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    flex-shrink: 0;
}

.btn-cancelar, .btn-confirmar {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-cancelar {
    background: #6c757d;
    color: white;
}

.btn-cancelar:hover {
    background: #5a6268;
}

.btn-confirmar {
    background: #007bff;
    color: white;
}

.btn-confirmar:hover {
    background: #0056b3;
}

.modal-body .loading-spinner {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.modal-body .loading-spinner i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
    animation: spin 1s linear infinite;
}

.modal-vaga-detalhes {
    line-height: 1.6;
}

.detalhe-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.detalhe-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detalhe-item h4 {
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detalhe-item h4 i {
    color: #007bff;
}

.detalhe-item p {
    margin-bottom: 8px;
}

.detalhe-item ul {
    padding-left: 20px;
}

.detalhe-item ul li {
    margin-bottom: 5px;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= BANCO DE TALENTOS ================= */
/* Ocupa o espaco livre entre o conteudo e o rodape e centraliza o card */
.banco-talentos-section {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Sem vagas: colapsa o container vazio e a margem do hero para o card ficar no meio real do vao */
body.sem-vagas #mainContent {
    display: none;
}

body.sem-vagas .hero-section {
    margin-bottom: 0;
}

.banco-talentos-card {
    width: 100%;
    max-width: 820px;
    background: linear-gradient(135deg, #C62828, #8E0000);
    border-radius: 16px;
    padding: 40px 32px;
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.banco-talentos-title {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.banco-talentos-text {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.banco-talentos-btn {
    background: #fff;
    color: var(--primary-red);
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banco-talentos-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

@media (max-width: 576px) {
    .banco-talentos-section {
        padding: 30px 16px;
    }

    .banco-talentos-card {
        padding: 30px 22px;
        border-radius: 12px;
    }

    .banco-talentos-title {
        font-size: 1.5rem;
    }

    .banco-talentos-text {
        font-size: 1rem;
    }

    .banco-talentos-btn {
        padding: 12px 20px;
        font-size: 0.92rem;
    }
}

/* ================= FOOTER ENGETEX ================= */
.footer-engetex {
    width: 100%;
    background: #E8E6E6;
    border-top: 2px solid #d6d6d6;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
}

/* Tres colunas de largura igual: garante o texto sempre no centro real */
.footer-engetex .footer-left,
.footer-engetex .footer-center,
.footer-engetex .footer-right {
    flex: 1 1 0;
    display: flex;
    align-items: center;
}

.footer-engetex .footer-left {
    justify-content: flex-start;
}

.footer-engetex .footer-center {
    justify-content: center;
    text-align: center;
}

.footer-engetex .footer-right {
    justify-content: flex-end;
}

.footer-logo {
    height: 28px;
    width: auto;
}

.footer-text {
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.footer-whats {
    display: inline-flex;
    line-height: 0;
    text-decoration: none;
}

.footer-whats i {
    font-size: 34px;
    color: #25D366;
    transition: transform 0.2s ease;
}

.footer-whats:hover i {
    transform: scale(1.1);
}

/* Empilha e centraliza no mobile */
@media (max-width: 576px) {
    .footer-engetex {
        flex-direction: column;
        gap: 14px;
        padding: 22px 20px;
    }

    .footer-engetex .footer-left,
    .footer-engetex .footer-center,
    .footer-engetex .footer-right {
        flex: 0 0 auto;
        justify-content: center;
    }

    .footer-text {
        font-size: 14px;
    }

    .footer-logo {
        height: 24px;
    }
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        border-radius: 15px;
    }

    .search-btn {
        border-radius: 0 0 15px 15px;
    }

    .filters-section {
        padding: 20px;
    }

    .vaga-card {
        padding: 20px;
    }

    .vaga-info {
        flex-direction: column;
        gap: 8px;
    }

    .vaga-actions {
        flex-direction: column;
    }

    .vaga-actions .btn-detalhes,
    .vaga-actions .btn-aplicar {
        width: 100%;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .modal-container {
        width: 85vw;
    }
}

/* Celulares */
@media (max-width: 576px) {
    .modal-container {
        width: 95vw;
        border-radius: 8px;
    }
}

/* ================= SELECT2 (padroniza com os campos estilizados) ================= */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 44px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    transition: border-color 0.3s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    color: #333;
    padding-left: 6px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary-red);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-red);
}

/* ================= AJUSTES DE MARCA NO MODAL ================= */
.detalhe-item h4 i {
    color: var(--primary-red);
}

.btn-confirmar {
    background: var(--primary-red);
}

.btn-confirmar:hover {
    background: var(--dark-red);
}
