:root {
    --primary-color: #050558;
    --primary-hover: #03033d;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --heading-color: #050558;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    padding-top: 100px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-weight: 700;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

/* Card Styling */
.job-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shadow-sm {
    box-shadow: 0px 0px 0rem 2px rgba(0, 0, 0, .075) !important;
}

/* Navbar */
.navbar-custom {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-custom .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-color);
    border-radius: 5px;
}

/* Dropdown Menu */
.navbar-custom .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 10px;
}

.navbar-custom .dropdown-item {
    font-size: 0.95rem;
    padding: 0.5rem 1.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.navbar-custom .dropdown-item:hover {
    background-color: rgba(5, 5, 88, 0.05);
    color: var(--primary-color);
}

.main-catula {
    margin-top: -25px;
}

@media (max-width: 767px) {
    .btn-buscar {
        width: 100%;
    }
}

.catula-desktop-date {
    display: block;
}

@media screen and (max-width: 782px) {
    .catula-desktop-date {
        display: none;
    }
}

/* WP Admin Bar Fix */
body.admin-bar .navbar {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .navbar {
        top: 46px !important;
    }

    #wpadminbar {
        position: fixed;
    }
}

/* Lista de vagas — ajustes para celular (<=490px) */
@media screen and (max-width: 490px) {
    .job-card {
        padding: 0.6rem !important;
        border-radius: 12px;
    }

    /* Layout vertical: imagem em cima, conteúdo embaixo */
    .job-card .card-body {
        flex-direction: column;
        align-items: stretch !important;
        text-align: left;
        padding: 0.4rem;
    }

    /* Imagem/ícone ocupa a largura toda no topo, para destacar */
    .job-card .job-icon {
        width: 100% !important;
        height: auto !important;
        min-width: 0;
        padding: 0 !important;
        margin: 0 0 0.85rem 0 !important;
    }

    /* Imagem destacada: banner no topo */
    .job-card .job-icon img {
        width: 100% !important;
        height: 175px !important;
        object-fit: cover;
        border-radius: 10px;
    }

    /* Sem imagem: faixa clara com o ícone padrão */
    .job-card .job-icon.bg-light {
        height: 90px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .job-card .job-icon.bg-light i {
        font-size: 1.8rem !important;
    }

    /* Título completo (sem corte) */
    .job-card .card-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 1.35rem !important;
    }

    /* Localização e tipo como chips destacados, um embaixo do outro */
    .job-card .card-body .text-muted.small {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        margin-top: 0.55rem !important;
        margin-bottom: 0 !important;
    }

    .job-card .card-body .text-muted.small > span {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        margin-right: 0 !important;
        background: rgba(5, 5, 88, 0.06);
        color: #2b2b3a !important;
        padding: 0.3rem 0.7rem;
        border-radius: 50rem;
        font-size: 0.76rem;
        font-weight: 600;
        line-height: 1;
    }

    .job-card .card-body .text-muted.small > span i {
        color: var(--primary-color);
    }
}