/* ================================================================
   Careers Manager — Frontend Styles v1.0.2
   Critical layout is handled via inline style="" in PHP (immune to
   Elementor overrides). This file only provides supplemental styles
   for hover states, transitions, grid layout, and responsive rules.
================================================================ */

/* ── Font scope ── */
.careers-wrapper,
.careers-wrapper *,
#careers-modal-overlay,
#careers-modal-overlay * {
    font-family: 'Nexa', 'Nexa Regular', 'Nunito', sans-serif;
    box-sizing: border-box;
}

.careers-wrapper { width: 100%; padding: 0 0 48px; }

/* ── Filter selects: focus state ── */
.careers-filter-select:focus {
    border-bottom-color: #7B2500 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ================================================================
   CAREERS GRID
================================================================ */
.careers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 1100px) { .careers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .careers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .careers-grid { grid-template-columns: 1fr; } }

/* ── Responsive filter bar ── */
@media (max-width: 768px) {
    .careers-filter-bar {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 20px !important;
    }
}

/* ================================================================
   CAREER CARD
================================================================ */
.career-card {
    background:     #FEFFD6;
    border-radius:  12px;
    padding:        20px 18px 22px;
    display:        flex;
    flex-direction: column;
    transition:     box-shadow 0.2s, transform 0.2s;
}
.career-card:hover {
    box-shadow: 0 6px 24px rgba(123,37,0,0.13);
    transform: translateY(-2px);
}
.career-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.career-card-date  { font-size: 13px; color: #888; letter-spacing: 0.01em; }
.career-bookmark-icon { width: 13px; height: 17px; flex-shrink: 0; }
.career-card-title { font-size: 18px; font-weight: 700; color: #7B2500; margin: 0 0 10px; line-height: 1.3; }
.career-card-desc  { font-size: 13.5px; color: #3a3a3a; line-height: 1.65; margin: 0 0 18px; flex-grow: 1; }
.career-card-tags  { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.career-tag {
    background: #7B2500; color: #fff;
    font-size: 12px; font-weight: 500;
    padding: 4px 10px; border-radius: 4px;
    letter-spacing: 0.01em; white-space: nowrap;
}
.career-apply-btn {
    display: inline-block; background: #F5C500;
    color: #1a1a1a; font-family: inherit;
    font-size: 15px; font-weight: 700;
    padding: 12px 28px; border: none;
    border-radius: 10px; cursor: pointer;
    align-self: flex-start; letter-spacing: 0.01em;
    transition: background 0.2s, transform 0.15s;
}
.career-apply-btn:hover { background: #e6b800; transform: scale(1.02); }
.careers-empty { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: #888; font-size: 15px; }

/* ================================================================
   MODAL — supplemental styles only
   Core layout (display, position, z-index, dimensions) is set via
   inline style="" in modal.php — immune to any CSS override.
================================================================ */

/* Modal open animation */
#careers-modal-overlay .careers-modal-box {
    animation: careers-modal-in 0.25s ease;
}
@keyframes careers-modal-in {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button hover */
.careers-modal-close:hover { color: #333 !important; border-color: #999 !important; }

/* Input focus states */
#careers-application-form input:focus,
#careers-application-form textarea:focus {
    border-color: #7B2500 !important;
    box-shadow: 0 0 0 3px rgba(123,37,0,0.08) !important;
    outline: none !important;
}
#careers-application-form input::placeholder,
#careers-application-form textarea::placeholder { color: #AAAAAA; }

/* File wrap hover */
.careers-file-btn:hover { background: #e4e4e4 !important; }

/* Submit button states */
.careers-modal-submit:hover    { background: #e6b800 !important; }
.careers-modal-submit:disabled { opacity: 0.6 !important; cursor: not-allowed !important; }

/* Responsive modal */
@media (max-width: 600px) {
    #careers-modal-overlay .careers-modal-box { padding: 28px 20px 32px !important; }
}
