/* ============================================
   CAREERS — Wrapper
============================================ */
.careers-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: inherit;
}

/* ============================================
   CAREERS — Filtros
============================================ */
.careers-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.careers-filter-wrap {
    position: relative;
    flex: 1 1 180px;
}

.careers-filter {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    border: 2px solid rgba(100, 180, 255, 0.15) !important;
    border-radius: 6px;
    color: #F3F7FF !important;
    font-size: 16px !important;
    padding: 10px 36px 10px 16px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url(/wp-content/uploads/2026/03/arrow-form.svg) !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px !important;
    cursor: pointer !important;
}

.careers-filter:hover, .careers-filter:focus { border-color: rgba(100, 180, 255, 0.5) !important; }

.careers-filter option {
    background-color: #0d2a4a;
    color: #ffffff;
}

.careers-filter-clear {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(100, 180, 255, 0.8);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 2;
    transition: color 0.2s ease;
}

.careers-filter-clear:hover {
    color: #ffffff;
}

/* Quando o X está visível, faz indent ao texto do select */
.careers-filter-wrap:has(.careers-filter-clear[style*="display: block"]) .careers-filter,
.careers-filter-wrap:has(.careers-filter-clear:not([style*="none"])) .careers-filter {
    padding-left: 28px;
}

/* ============================================
   CAREERS — Cards
============================================ */
.careers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 0.2s ease;
}

.careers-list.is-loading {
    opacity: 0.4;
    pointer-events: none;
}

.careers-card {
    display: flex;
    align-items: center;
    text-align: left;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(100, 180, 255, 0.15);
    border-radius: 8px;
    padding: 20px 24px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.careers-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(100, 180, 255, 0.5);
}

.careers-card-title {
    font-size: 30px !important;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.careers-card-excerpt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55) !important;
    margin: 0;
}

/* ============================================
   CAREERS — Botão Apply
============================================ */
.careers-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #1a7fc1;
    color: #ffffff;
    border: 1px solid #1a7fc1;
    font-size: 16px;
    font-weight: 600;
    padding: 5px 15px 5px 25px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 24px;
    transition: background-color 0.2s ease;
}

.careers-apply-btn::after {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url(/wp-content/uploads/2026/03/white-arrow.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.careers-apply-btn:hover {
    background-color: transparent;
    border: 1px solid white;
}

.careers-apply-btn span {
    font-size: 16px;
}

/* ============================================
   CAREERS — Sem resultados
============================================ */
.careers-no-results {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    padding: 30px 0;
    text-align: center;
}

/* ============================================
   CAREERS — Shortcodes
============================================ */
/* ============================================
   CAREERS — Tags
============================================ */
h4.careers-tags__label {
    font-size: 25px !important;
    font-weight: 600;
    color: #3DB5E5;
    margin: 0;
    border-bottom: 1px solid #3DB5E5;
}

.careers-tags {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.careers-tags span.careers-tag {
    display: inline-block;
    color: #00254B;
    font-size: 18px;
}

/* ============================================
   CAREERS — Loading
============================================ */
.careers-list.is-loading {
    position: relative;
    min-height: 100px;
    pointer-events: none;
}

.careers-list.is-loading::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border: 4px solid rgba(100, 180, 255, 0.4);
    border-top-color: #3DB5E5;
    border-radius: 50%;
    animation: careers-spinner 0.6s linear infinite;
}

.careers-wrapper .careers-list.is-loading .careers-card.is-animated {
    opacity: 0.5 !important;
    pointer-events: none;
}

@keyframes careers-spinner {
    to { transform: translateX(-50%) rotate(360deg); }
}

/* ============================================
   CAREERS — Animação de entrada dos cards
============================================ */
.careers-wrapper .careers-list .careers-card {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.careers-wrapper .careers-list .careers-card.is-animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ============================================
   CAREERS — Mobile
============================================ */
@media (max-width: 768px) {
    #offers h2 { padding-top: 25px; }
    .careers-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .careers-apply-btn {
        margin-left: 0;
        margin-top: 16px;
    }
}