/* Semibold nos itens da navbar (desktop e mobile) */
.navbar .btn, .navbar .nav-link { font-weight: 600; }
/* Verde da marca para success */
.btn-success { background-color:#8BC34A !important; border-color:#8BC34A !important; color:#fff !important; }
.btn-success:hover, .btn-success:focus, .btn-success:active { background-color:#7CB342 !important; border-color:#7CB342 !important; color:#fff !important; }
.btn-outline-success { color:#8BC34A !important; border-color:#8BC34A !important; }
.btn-outline-success:hover, .btn-outline-success:focus, .btn-outline-success:active { background-color:#8BC34A !important; border-color:#8BC34A !important; color:#fff !important; }
/* Global: prevene scroll horizontal indesejado */
html, body { max-width: 100%; overflow-x: hidden; }
/* Reserva espaço pro topo fixo da navbar */
body { padding-top: var(--navbar-bottom); }

/* === MENU HAMBÚRGUER STYLES === */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #000;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.hamburger:hover {
    background-color: rgba(0, 0, 0, 0.08); /* era rgba(255,255,255,0.15) */
    transform: scale(1.05);
}

.hamburger:focus {
    outline: none;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

.hamburger.active .hamburger-icon:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-icon:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-icon:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =======================
   MENU MOBILE DROP-DOWN
   ======================= */

:root {
  --navbar-bottom: 70px; /* valor padrão, ajustado no JS */
}

/* Menu drop-down fixo logo abaixo da navbar */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-bottom);
  left: 0;
  right: 0;
  background: #fff;
  z-index: 1000;
  padding: 10px 0 10px;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

/* Estado aberto */
.mobile-menu.active {
  display: block !important;
  max-height: 80vh; /* altura máxima visível */
  overflow: auto;
}

/* Lista de links do menu mobile */
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Aproxima os botões */
.mobile-menu li + li {
  margin-top: 8px;
}

/* Botões */
.mobile-menu a.btn {
  display: block;
  margin: 0 16px; /* margem lateral menor */
  width: calc(100% - 32px);
  padding: 10px 14px; /* botão mais compacto */
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-align: center;
  white-space: normal; /* permite quebra de linha */
}

/* Hover */
.mobile-menu a.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.18);
}

/* === NAVBAR RESPONSIVA === */
.navbar {
    background:#fff;
    z-index:1002;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar .container-lg {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Garante que o bloco do logo não encolha e a imagem fique visível */
.navbar-header {
    display: flex;
    align-items: center;
    flex: 0 0 auto; /* não encolher no flex */
}

.navbar-brand {
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.navbar-brand img.logo {
    display: block;
    height: auto;
    width: auto;
    max-height: 48px; /* tamanho padrão do logo no desktop */
}

@media (max-width: 991px) {
    .hamburger {
        display: block;
    }
    /* Esconde o container do menu desktop no mobile para liberar espaço ao logo */
    .navbar-desktop { display: none; }
    /* Logo um pouco menor no mobile, mas sempre visível */
    .navbar-brand img.logo { max-height: 40px; }
}

@media (min-width: 992px) {
    .mobile-menu {
        display: none !important;
    }
    
    .hamburger {
        display: none !important;
    }
}

/* Overlay para fechar menu quando clicar fora */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.menu-overlay.active {
    display: block !important;
    animation: fadeInOverlay 0.3s ease;
}

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

/* Estilos customizados para o layout em cards */
.vaga-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
}

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

.vaga-header {
    background-color: #f8f9fa;
    padding: 15px;
    border-bottom: 2px solid #e9ecef;
    flex-shrink: 0;
}

.vaga-titulo {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.vaga-local {
    color: #6c757d;
    font-size: 0.9rem;
}

.vaga-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vaga-descricao {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.5;
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
}

.vaga-descricao::-webkit-scrollbar {
    width: 4px;
}

.vaga-descricao::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.vaga-descricao::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.vaga-descricao::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.vaga-descricao-resumida {
    display: block;
}

.vaga-descricao-completa {
    display: none;
}

.ler-mais {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 3px;
    font-weight: 500;
}

.ler-mais:hover {
    color: #0056b3;
    text-decoration: underline;
}

.ler-menos {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 3px;
    font-weight: 500;
}

.ler-menos:hover {
    color: #0056b3;
    text-decoration: underline;
}

.numero-vagas {
    visibility: hidden; /* ocupa o espaço mas não aparece */
}

.beneficio-badge {
    display: inline-block;
    padding: 3px 8px;
    margin: 2px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 10px;
    font-size: 0.8rem;
}

.vaga-meta {
    display: flex;
    align-items: center;
    justify-content: space-between; /* cidade à esquerda, selo à direita */
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap; /* permite quebrar linha em telas estreitas */
}

.vaga-empresa-badge {
    position: static !important; /* remove o absolute */
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
    margin-left: auto; /* alinha à direita e mantém no lugar quando quebrar linha */
    max-width: 100%;
}

.vaga-cliente {
    background-color: #ff8c42;
    color: white;
}

.vaga-admita {
    background-color: #8BC34A; /* verde da marca */
    color: white;
}

/* Ajustes para telas estreitas (ex.: Galaxy S9/S9+) */
@media (max-width: 400px) {
  .vaga-empresa-badge {
    white-space: normal;      /* permite quebra em 2 linhas */
    font-size: 0.72rem;       /* levemente menor */
    line-height: 1.15;
    padding: 2px 6px;         /* mais compacto */
  }
}

.vaga-detalhes {
    flex: 1;
}

.btn-candidatar {
    width: auto;              /* deixa o botão só do tamanho do texto */
    margin-top: 10px;         /* um pequeno espaço do conteúdo */
    align-self: flex-start;   /* alinha à esquerda no flex container */
    padding: 6px 14px;        /* botão mais compacto */
    font-size: 0.85rem;       /* texto menor */
}


.numero-vagas {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #007bff;
    color: white;
    padding: 3px 8px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
}

.secao-pesquisa {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
}

/* Estilo do título */
.secao-pesquisa h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 32px;     
    text-align: left;        /* Mantém alinhado à esquerda */
    font-size: 2.5rem;         /* Tamanho maior */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Responsividade: reduz o tamanho em telas menores */
@media (max-width: 768px) {
    .secao-pesquisa h4 {
        font-size: 1.5rem; 
        text-align: left;  /* Mantém à esquerda no mobile também */
    }
}


.secao-pesquisa h6 {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.secao-pesquisa .form-control {
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.secao-pesquisa .form-control:focus {
    box-shadow: 0 4px 20px rgba(255,255,255,0.3);
    background: white;
}

.secao-pesquisa select.form-control {
    cursor: pointer;
}

/* Barra principal estilo Indeed */
.search-hero{ margin:0; }

.search-bar{
  background:#fff;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
  padding:10px;
  display:flex;
  align-items:center;
  gap:10px;
}

.search-field{
  flex:1;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:10px;
}

.search-field .icon{ color:#444; opacity:.9; display:inline-flex; }

.search-field input{
  border:0;
  outline:0;
  width:100%;
  font-size:1rem;
  background:transparent;
  color:#333;
}

.search-field select{
  border:0;
  outline:0;
  width:100%;
  font-size:1rem;
  background:transparent;
  color:#333;
  cursor:pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;    
  background-size: 12px 8px;
  padding-right: 45px;                      
  padding-left: 4px;  
}


.divider{
  width:1px;
  height:28px;
  background:rgba(0,0,0,.15);
  flex:0 0 1px;
  border-radius:1px;
}

.search-btn{
  background:#007bff; /* azul mais claro Bootstrap */
  color:#fff;
  border:0;
  border-radius:6px;
  padding:12px 18px;
  font-weight:700;
  line-height:1;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space:nowrap;
}
.search-btn:hover{ 
  transform:translateY(-1px); 
  box-shadow:0 6px 16px rgba(0,123,255,.35); 
  background:#0056b3; 
}

@media (max-width: 768px){
  .search-field input,
  .search-field select{
    padding-left: 8px !important;
    font-size: 16px;
  }
}

@media (max-width:768px){
  .search-bar{ flex-wrap:wrap; gap:8px; }
  .divider{ display:none; }
  .search-btn{ width:100%; }
}

/* Responsividade */
@media (max-width: 768px) {
    .col-md-6 {
        margin-bottom: 20px;
    }
    
    .secao-pesquisa {
        margin: 0 -15px 30px -15px;
        border-radius: 0;
    }
}

/* === FIX dos campos de busca (altura, corte e dropdown) === */
.secao-pesquisa{ 
  overflow: visible; 
}

.secao-pesquisa .form-control{
  height: 56px;
  line-height: 1.25;
  padding: 0 16px;
  box-sizing: border-box;
}

.secao-pesquisa select.form-control{
  height: 56px; 
  padding: 0 40px 0 16px;
  line-height: 1.25;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

.secao-pesquisa *{ min-height: 0; }

.filtro-ativo {
    background-color: #e7f3ff !important;
    border: 2px solid #007bff !important;
    color: #0056b3 !important;
}

.btn-cadastrar-mobile:hover {
    background-color: #218838;
    border-color: #1e7e34;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.btn-cadastrar-mobile i {
    margin-right: 8px;
}

/* Linha que agrupa os botões */
.acoes-vaga{
  display: flex;
  align-items: center;      
  gap: 10px;
  margin-top: 10px;
  position: relative; /* garante que o menu posicione relativamente ao bloco de ações */
}

/* BOTÃO "Candidatar-se" */
.btn-candidatar{
  margin-top: 0 !important; 
  align-self: center !important; 
  height: 36px;              
  display: inline-flex;      
  align-items: center;
  padding: 0 14px;           
  line-height: 1;          
  font-size: 0.85rem;        
}

/* BOTÃO "Copiar link" */
.copy-link-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  margin: 0;
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.copy-link-btn img{
  width: 18px;
  height: 18px;
  display: block;
}

.copy-link-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  background: #f8f9fa;
  border-color: #adb5bd;
}

.copy-link-btn:active{
  transform: translateY(0);
}

/* BOTÃO "Compartilhar" */
.share-btn{
  display:inline-flex; 
  align-items:center; 
  justify-content:center; 
  gap:8px;
  height:36px; 
  padding:0 16px; 
  border:2px solid #dee2e6; 
  border-radius:6px;
  background:#fff; 
  cursor:pointer; 
  transition:.15s; 
  margin:0;
  font-size:.85rem; 
  color:#666; 
  font-weight:500;
}
.share-btn img{ 
  width:18px; 
  height:18px; 
  display:block; 
}
.share-btn:hover{ 
  transform:translateY(-1px); 
  box-shadow:0 4px 10px rgba(0,0,0,.12);
  background:#f8f9fa; 
  border-color:#adb5bd; 
}

/* Mobile: apenas ícone, sem texto */
@media (max-width: 1024px) {
  .share-btn {
    padding: 0 12px; /* menos padding lateral */
    gap: 0; /* remove o gap */
  }
  .share-btn span {
    display: none; /* esconde o texto "Compartilhar" */
  }
  /* Copiar link mantém o texto no mobile */
  .copy-link-btn {
    padding: 0 12px;
    gap: 6px; /* mantém gap menor */
    font-size: 0.8rem; /* texto um pouco menor */
  }
}

/* Mini-menu de compartilhamento */
.share-menu{
  position:absolute; 
  z-index:20; 
  bottom: 100%; /* abre para cima */
  right: 0; /* alinhado à direita */
  margin-bottom: 8px; /* espaço do botão */
  background:#fff; 
  border:1px solid #e6e6e6; 
  border-radius:8px;
  box-shadow:0 12px 24px rgba(0,0,0,.12);
  padding:6px; 
  display:none; 
  min-width:180px;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.2s ease;
}

.share-menu.open{ 
  display:block;
  transform: translateY(0);
  opacity: 1;
}

/* Setinha apontando para baixo (pro botão) */
.share-menu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 20px; /* mudei de right para left */
  border: 6px solid transparent;
  border-top-color: #fff;
}

.share-menu::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 19px;
  border: 7px solid transparent;
  border-top-color: #e6e6e6;
  z-index: -1;
}

.share-option{
  display:flex; 
  align-items:center; 
  gap:10px; 
  width:100%;
  background:transparent; 
  border:0; 
  text-align:left; 
  padding:8px 10px;
  border-radius:6px; 
  cursor:pointer; 
  font-size:.95rem; 
  color:#333;
  transition: background-color 0.15s ease;
}
.share-option img{ 
  width:18px; 
  height:18px; 
}
.share-option:hover{ 
  background:#f5f7fb; 
}

/* feedback que aparece por cima do botão */
.copy-feedback{
  position: absolute;
  bottom: 100%; /* aparece acima do botão */
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #2d3748;
  color: white;
  font-size: .85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: copyFeedback 4.5s ease forwards;
}

.copy-feedback::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #2d3748;
}

.copy-feedback .cf-icon{ 
  font-weight: 700; 
  color: #48bb78;
}

/* Conteúdo dos detalhes com mesma formatação da descrição */
.detalhe-conteudo {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: normal;
}

/* remove o margin-top que estava sendo usado no container */
.container[style*="margin-top"] {
  margin-top: 0 !important;
}

/* opcional: se quiser a faixa azul sem arredondar no topo */
.secao-pesquisa {
  margin-top: 0;
  border-radius: 0;
}

/* Gradient fundo */
.secao-pesquisa {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #4a90e2 50%, #6bb6ff 75%, #87ceeb 100%);
  padding: 25px 0 100px 0;
  margin: 0 0 20px 0;
  box-shadow: 0 8px 32px rgba(102,126,234,.3);
  position: relative;
  overflow: visible;
  border-radius: 0;

  /* full-bleed sem gerar barra horizontal */
  left: auto;
  right: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

#area_select {
    pointer-events: auto !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    transition: none; /* Remove transições que podem causar conflitos */
}

#area_select:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.search-field select:focus {
    transform: none !important;
    animation: none !important;
}


/* mobile: cola a seção azul na navbar */
@media (max-width: 768px){
  /* zera o margin-top do primeiro container que tem style inline */
  .container[style*="margin-top"]{ margin-top: 0 !important; }

  /* a seção azul já ocupa a largura toda, sem arredondar em cima, se quiser */
  .secao-pesquisa{ margin-top: 0; border-radius: 0; }
}

@media (max-width: 768px) {
  .copy-feedback {
    font-size: 0.8rem;
    padding: 5px 10px;
    margin-bottom: 6px;
  }
  
  .copy-feedback::after {
    border-width: 4px;
  }
}

@keyframes copyFeedback{
  0%   { opacity: 0; transform: translateX(-50%) translateY(5px); }
  10%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  90%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-5px); }
}

/* === MOBILE: empilha campos como o Indeed === */
@media (max-width: 768px){
  .search-bar{
    display: flex;
    flex-direction: column;   /* empilha */
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }
  .search-field{
    border-bottom: 1px solid #ddd;
    width: 100%;
    padding: 14px 16px;
  }
  .divider{ display: none !important; }
  .search-btn{ width: 100%; } /* botão ocupa a linha toda */
}

/* placeholders na mesma cor do select ("Todas as áreas") */
.search-field input::-webkit-input-placeholder { color:#333; opacity:1; }
.search-field input::-moz-placeholder          { color:#333; opacity:1; }
.search-field input:-ms-input-placeholder      { color:#333; opacity:1; }
.search-field input::placeholder               { color:#333; opacity:1; }


/* cor normal do select */
.search-field select{
  color:#333;
}

/* Cor padrão do select */
.search-field select {
  color: #333;
}

/* Cor cinza quando "Todas as áreas" estiver selecionado */
#area_select option[value="0"]:checked {
  color: #999;
}


/* dentro do dropdown, as opções aparecem normais */
.search-field select option{
  color:#333;
}
.search-field select option[value="0"]{
  color:#999;
}


@media (max-width: 768px){
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 15px 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn-limpar, .btn-aplicar {
        width: 100%;
        justify-content: center;
    }
}

