/* ── FILTER TABS ──────────────────────────────── */
.job-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}
.job-filter-btn {
    padding: 9px 24px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c6c84;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
    font-family: inherit;
}
.job-filter-btn:hover {
    background: var(--mainColor, #d55555);
    border-color: var(--mainColor, #d55555);
    color: #fff;
}
/* Active tab — site blue */
.job-filter-btn.active {
    background: #002255;
    border-color: #002255;
    color: #fff;
}
/* Internship tab idle style */
.internship-tab {
    border-color: #c5b3f0;
    color: #5e35b1;
}
.internship-tab:hover,
.internship-tab.active {
    background: #B89C7E;
    border-color: #B89C7E;
    color: #fff;
}

/* ── EMPTY STATE ──────────────────────────────── */
.no-jobs-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c6c84;
}
.no-jobs-empty i {
    font-size: 3.5rem;
    color: #c9c9d9;
    display: block;
    margin-bottom: 16px;
}
.no-jobs-empty h4 { font-size: 1.2rem; color: #3a3a4a; margin-bottom: 10px; }
.no-jobs-empty p  { font-size: 0.9rem; max-width: 420px; margin: 0 auto; }

/* ── JOB GRID ─────────────────────────────────── */
.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
}

/* ── JOB CARD ─────────────────────────────────── */
.job-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 28px 26px 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}
.job-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--mainColor, #d55555);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    border-radius: 12px 12px 0 0;
}
.job-card:hover {
    box-shadow: 0 16px 48px rgba(32,158,46,0.12);
    transform: translateY(-5px);
}
.job-card:hover::after { transform: scaleX(1); }

/* Badges */
.job-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.job-badge {
    display: inline-block;
    padding: 4px 13px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.web-badge        { background: #e6f4ea; color: #1a7d25; }
.app-badge        { background: #e8f0fe; color: #1967d2; }
.iot-badge        { background: #fce8e6; color: #c5221f; }
.internship-badge { background: #ede7f6; color: #5e35b1; }

/* Title */
.job-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #1e1e2e;
    margin-bottom: 12px;
    line-height: 1.35;
}

/* Meta row */
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f2f2f2;
}
.job-meta span {
    font-size: 0.78rem;
    color: #6c6c84;
    display: flex;
    align-items: center;
    gap: 5px;
}
.job-meta span i { font-size: 0.9rem; color: var(--mainColor, #d55555); }

/* Closing date pill */
.job-deadline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #6c6c84;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.job-deadline i { font-size: 0.9rem; }
.deadline-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e8f0fe;
    color: #1967d2;
}
.deadline-soon  .deadline-badge { background: #fff3cd; color: #856404; }
.deadline-urgent .job-deadline,
.deadline-urgent { color: #c5221f; }
.deadline-urgent .deadline-badge { background: #fce8e6; color: #c5221f; }
.deadline-urgent i { color: #c5221f; }

/* Expandable description */
.job-desc {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}
.job-desc.open { max-height: 600px; opacity: 1; }
.job-desc p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}
.job-reqs { list-style: none; padding: 0; margin: 0 0 18px; }
.job-reqs li {
    font-size: 0.82rem;
    color: #555;
    padding: 4px 0 4px 22px;
    position: relative;
    line-height: 1.5;
}
.job-reqs li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--mainColor, #d55555);
    font-weight: 700;
    font-size: 0.8rem;
}

/* Card footer */
.job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}
.job-apply-btn {
    font-size: 0.82rem !important;
    padding: 10px 22px !important;
    border-radius: 6px !important;
}
.job-toggle-btn {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 9px 14px;
    font-size: 0.78rem;
    color: #6c6c84;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: inherit;
}
.job-toggle-btn:hover {
    border-color: var(--mainColor, #d55555);
    color: var(--mainColor, #d55555);
}
.job-toggle-btn i { transition: transform 0.3s; }
.job-toggle-btn[aria-expanded="true"] i { transform: rotate(180deg); }

.no-filter-msg {
    text-align: center;
    color: #6c6c84;
    font-size: 0.95rem;
    padding: 40px 0 10px;
}

/* ── PUZZLE BOX ───────────────────────────────── */
.career-puzzle-box {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}
.puzzle-tagline {
    color: #6c6c84;
    font-size: 0.95rem;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.puzzle-step {
    margin-bottom: 26px;
    padding-bottom: 26px;
    border-bottom: 1px solid #f4f4f4;
}
.puzzle-step:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.puzzle-step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}
.step-badge {
    background: var(--mainColor, #209e2e);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.puzzle-step-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #232323;
    margin: 0;
}
.step-desc {
    font-size: 0.85rem;
    color: #6c6c84;
    margin: 6px 0 10px 44px;
    line-height: 1.65;
}
.step-desc strong { color: #232323; }
.step-desc em     { color: var(--mainColor, #209e2e); font-style: normal; }
.puzzle-code-wrap {
    margin-left: 44px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid var(--mainColor, #209e2e);
    border-radius: 4px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.puzzle-code {
    font-family: 'Courier New', monospace;
    font-size: 0.76rem;
    color: #1a7d25;
    word-break: break-all;
    flex: 1;
    line-height: 1.7;
}
.copy-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 1rem;
    cursor: pointer;
    color: #6c757d;
    flex-shrink: 0;
    transition: all 0.2s;
}
.copy-btn:hover { background: var(--mainColor, #209e2e); color: #fff; border-color: var(--mainColor, #209e2e); }
.puzzle-cipher {
    margin-left: 44px;
    background: #f0faf1;
    border: 1px dashed var(--mainColor, #209e2e);
    border-radius: 6px;
    padding: 13px 22px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mainColor, #209e2e);
    letter-spacing: 3px;
    display: inline-block;
}
.puzzle-checker {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    margin-top: 28px;
}
.checker-label {
    font-size: 0.85rem;
    color: #6c6c84;
    margin-bottom: 12px;
    font-weight: 500;
}
.checker-row {
    display: flex;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}
.checker-row input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 16px;
    font-size: 0.88rem;
    font-family: 'Courier New', monospace;
    color: #232323;
    background: #fff;
}
.checker-row button {
    background: var(--mainColor, #209e2e);
    color: #fff;
    border: none;
    padding: 13px 26px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
    font-family: inherit;
}
.checker-row button:hover { background: #167a22; }
#puzzleResult {
    margin-top: 10px;
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: 6px;
    display: none;
}
#puzzleResult.success { display:block; background:#d4edda; border:1px solid #c3e6cb; color:#155724; }
#puzzleResult.fail    { display:block; background:#f8d7da; border:1px solid #f5c6cb; color:#721c24; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 767px) {
    .job-grid { grid-template-columns: 1fr; }
    .career-puzzle-box { padding: 24px 18px; }
    .puzzle-code-wrap, .step-desc, .puzzle-cipher { margin-left: 0; }
    .checker-row { flex-direction: column; }
    .checker-row button { width: 100%; text-align: center; padding: 13px; }
    .puzzle-cipher { font-size: 0.88rem; letter-spacing: 1px; }
    .job-card-footer { flex-direction: column-reverse; align-items: stretch; }
    .job-apply-btn { text-align: center; }
}