/* LAYOUT DE VAGAS - ESTILO CATHO */
.vagas-layout-container {
    max-width: 1400px;
    margin: 40px auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    min-height: 600px;
}

/* SIDEBAR COM CARDS DE VAGAS */
.vagas-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 800px;
    overflow-y: auto;
    padding-right: 10px;
}

.vagas-sidebar::-webkit-scrollbar {
    width: 6px;
}

.vagas-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.vagas-sidebar::-webkit-scrollbar-thumb {
    background: #134596;
    border-radius: 10px;
}

.vaga-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.vaga-card:hover {
    border-color: #134596;
    box-shadow: 0 2px 12px rgba(19, 69, 150, 0.15);
    transform: translateX(5px);
}

.vaga-card.active {
    border-color: #134596;
    background: #f8faff;
    box-shadow: 0 2px 12px rgba(19, 69, 150, 0.2);
}

.vaga-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4caf50;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.vaga-card-titulo {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 12px 0;
    line-height: 1.3;
    padding-right: 60px;
}

.vaga-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vaga-card-info p {
    margin: 0;
    font-size: 14px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vaga-card-info i {
    color: #134596;
    font-size: 14px;
    width: 16px;
}

.vaga-card-avaliacao {
    font-weight: 600;
}

.vaga-card-avaliacao .fa-star {
    color: #ffd700;
}

.vaga-card-empresa {
    color: #2d3748;
    font-weight: 600;
}

.vaga-card-salario {
    font-weight: 600;
    color: #2d3748;
}

/* DETALHES DA VAGA */
.vagas-detalhes {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    position: sticky;
    top: 20px;
    max-height: 800px;
    overflow-y: auto;
}

.vagas-detalhes::-webkit-scrollbar {
    width: 6px;
}

.vagas-detalhes::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.vagas-detalhes::-webkit-scrollbar-thumb {
    background: #134596;
    border-radius: 10px;
}

.vaga-detalhe-content {
    display: none;
}

.vaga-detalhe-content.active {
    display: block;
}

.vaga-detalhe-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.vaga-detalhe-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 12px 0;
}

.vaga-detalhe-avaliacao {
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vaga-detalhe-avaliacao .fa-star {
    color: #ffd700;
}

.vaga-detalhe-avaliacoes {
    font-size: 14px;
    color: #718096;
    font-weight: 400;
}

.vaga-detalhe-local,
.vaga-detalhe-salario,
.vaga-detalhe-tipo {
    font-size: 15px;
    color: #4a5568;
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vaga-detalhe-local i,
.vaga-detalhe-tipo i {
    color: #134596;
}

.vaga-detalhe-salario {
    font-weight: 600;
}

.vaga-detalhe-logo {
    display: flex;
    align-items: flex-start;
}

.vaga-detalhe-logo img {
    max-width: 150px;
    height: auto;
}

.btn-candidatar {
    width: 100%;
    padding: 16px 24px;
    background: #134596;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-candidatar:hover {
    background: #0f3670;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 69, 150, 0.3);
}

.btn-candidatar i {
    font-size: 18px;
}

/* TABS */
.vaga-detalhe-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 25px;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: #134596;
}

.tab-btn.active {
    color: #134596;
    border-bottom-color: #134596;
}

/* CONTEÚDO DA VAGA */
.vaga-detalhe-body {
    color: #4a5568;
    line-height: 1.8;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.vaga-detalhe-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 15px 0;
}

.vaga-detalhe-body h4 {
    font-size: 17px;
    font-weight: 700;
    color: #134596;
    margin: 25px 0 12px 0;
}

.vaga-detalhe-body p {
    margin: 12px 0;
    font-size: 15px;
    line-height: 1.7;
}

.vaga-detalhe-body ul {
    margin: 12px 0;
    padding-left: 25px;
}

.vaga-detalhe-body ul li {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

.vaga-detalhe-body strong {
    color: #134596;
    font-weight: 600;
}

.vaga-nota {
    font-size: 13px;
    color: #718096;
    font-style: italic;
    margin-top: 8px;
}

/* FLYER DA VAGA */
.flyer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.flyer-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flyer-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

.flyer-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.btn-download-flyer,
.btn-share-flyer {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
}

.btn-download-flyer {
    background: #134596;
    color: white;
}

.btn-download-flyer:hover {
    background: #0f3670;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 69, 150, 0.3);
}

.btn-share-flyer {
    background: #4caf50;
    color: white;
}

.btn-share-flyer:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-download-flyer i,
.btn-share-flyer i {
    font-size: 16px;
}

/* Modal para visualizar flyer em tela cheia (opcional) */
.flyer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.flyer-modal.active {
    display: flex;
}

.flyer-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.flyer-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.flyer-modal-close:hover {
    color: #ccc;
}

/* RESPONSIVIDADE */
@media (max-width: 1200px) {
    .vagas-layout-container {
        grid-template-columns: 350px 1fr;
    }
}

@media (max-width: 1024px) {
    .vagas-layout-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vagas-sidebar {
        max-height: none;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
    }

    .vaga-card {
        min-width: 300px;
    }

    .vagas-detalhes {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .vaga-detalhe-header {
        grid-template-columns: 1fr;
    }

    .vaga-detalhe-logo {
        justify-content: center;
    }

    .vaga-detalhe-header h2 {
        font-size: 22px;
    }

    .vaga-card-titulo {
        font-size: 16px;
        padding-right: 50px;
    }

    .vaga-card {
        min-width: 280px;
    }

    .flyer-actions {
        flex-direction: column;
    }

    .btn-download-flyer,
    .btn-share-flyer {
        width: 100%;
    }
}

/* ANTIGO - MANTER PARA COMPATIBILIDADE */
.container-vagas {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.card-vaga {
    height: auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 34px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-vaga:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-vaga h3 {
    font-size: 35px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.card-vaga p {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 12px;
}

.card-vaga p strong {
    color: #134596;
    font-weight: 600;
}

.btn-candidatarse {
    width: 100%;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #3182ce;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-candidatarse:hover {
    background-color: #2c5282;
}

/* TEMOS VAGAS */
@media (max-width: 1119px) {
    .container-temosvagas {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .temosvagas-img {
        min-width: none;
        max-width: 480px;
        justify-self: center;
        order: 2;
    }

    .temosvagas-card h3 {
        text-align: center;

    }

    .temosvagas-card {
        font-size: (0rem, -0.4743rem + 2.108vw, 1rem);
        order: 1;
    }
}

@media (max-width: 547px) {
    .trabalheconosco-form {
        justify-content: center;
    }
    
    .container-vagas {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 401px) {
    .grid-1x4 {
        grid-template-columns: 1fr;
    }
}

/* NÃO TEMOS VAGAS */
@media (max-width: 1119px) {
    .container-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
}

.situacao-vagas {
    text-align: center;
    margin: 100px 0px 150px 0px;
    font-size: 20px;
}