/* ===== JOBS PAGE STYLES ===== */

/* Warning notice inside job detail */
.job-notice {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-left: 4px solid #fbbf24;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.65;
    margin-bottom: 20px;
}

/* Jobs Hero */
.jobs-hero {
    position: relative;
    background: linear-gradient(135deg, #0a0a1e 0%, #0d1b2a 40%, #1b2838 100%);
    color: #fff;
    padding: 160px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.jobs-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 40% 60%, rgba(0, 188, 212, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 70% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.jobs-hero-overlay {
    position: absolute;
    inset: 0;
    background: url('hero-background.jpg') no-repeat center center/cover;
    opacity: 0.15;
    pointer-events: none;
}

.jobs-hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.jobs-hero-content h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.jobs-hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Filter Bar */
.jobs-filter-bar {
    background: #fff;
    border-bottom: 1px solid #e8ecf1;
    padding: 20px 0;
    position: sticky;
    top: 72px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.jobs-filter-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.jobs-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f4f6f8;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    padding: 10px 16px;
    flex: 1;
    min-width: 240px;
    transition: border-color 0.3s ease;
}

.jobs-search-box:focus-within {
    border-color: #00bcd4;
    background: #fff;
}

.jobs-search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    width: 100%;
}

.jobs-search-box input::placeholder {
    color: #aaa;
}

.jobs-filter-group {
    display: flex;
    gap: 12px;
}

.jobs-filter-group select {
    appearance: none;
    -webkit-appearance: none;
    background: #f4f6f8 url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    padding: 10px 36px 10px 14px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-width: 140px;
}

.jobs-filter-group select:focus {
    outline: none;
    border-color: #00bcd4;
}

.jobs-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: #00bcd4;
    white-space: nowrap;
    background: rgba(0, 188, 212, 0.08);
    padding: 8px 16px;
    border-radius: 50px;
}

.jobs-count span {
    font-size: 1.1rem;
    font-weight: 800;
}

/* Jobs Section */
.jobs-section {
    padding: 48px 0 80px;
    background: linear-gradient(180deg, #f9fafb 0%, #f1f5f9 100%);
    min-height: 400px;
}

.jobs-table-wrapper {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8ecf1;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* Table */
.jobs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.jobs-table thead {
    background: linear-gradient(135deg, #0a0a1e 0%, #0d1b2a 100%);
    color: #fff;
}

.jobs-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.jobs-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.jobs-table tbody tr.job-row {
    cursor: pointer;
}

.jobs-table tbody tr:last-child {
    border-bottom: none;
}

.jobs-table tbody tr.job-row:hover {
    background: rgba(0, 188, 212, 0.03);
}

.jobs-table tbody tr.job-row.expanded {
    background: rgba(0, 188, 212, 0.05);
    border-bottom-color: transparent;
}

.jobs-table tbody td {
    padding: 20px;
    vertical-align: middle;
    color: #444;
}

/* Expand Icon */
.th-expand {
    width: 40px;
}

.td-expand {
    width: 40px;
    text-align: center;
    padding: 20px 12px !important;
}

.expand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
    color: #888;
    background: #f4f6f8;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.job-row:hover .expand-icon {
    color: #00bcd4;
    background: rgba(0, 188, 212, 0.08);
}

.job-row.expanded .expand-icon {
    transform: rotate(90deg);
    color: #00bcd4;
    background: rgba(0, 188, 212, 0.12);
}

/* Detail Row */
.job-detail-row {
    display: none;
    background: #fafbfc;
}

.job-detail-row.open {
    display: table-row;
}

.job-detail-row td {
    padding: 0 !important;
    border-bottom: 2px solid rgba(0, 188, 212, 0.15);
}

.job-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    padding: 28px 32px 32px;
    animation: fadeInDetail 0.3s ease;
}

@keyframes fadeInDetail {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.job-detail-section h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #00bcd4;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 188, 212, 0.15);
}

.job-detail-section p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
}

.job-detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-detail-section ul li {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    padding-left: 18px;
    position: relative;
    margin-bottom: 6px;
}

.job-detail-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #00bcd4;
    border-radius: 50%;
}

/* Job Title Cell */
.job-title-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.job-title-cell strong {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.job-id {
    font-size: 0.75rem;
    color: #aaa;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Skill Tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(0, 188, 212, 0.08);
    color: #0097a7;
    border-radius: 50px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* Job Type Badges */
.job-type {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.type-contract {
    background: rgba(0, 188, 212, 0.1);
    color: #0097a7;
}

.type-fulltime {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.type-parttime {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.type-permanent {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* Job Status Badges */
.job-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.job-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-active {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.status-active::before {
    background: #16a34a;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.status-closed {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.status-closed::before {
    background: #dc2626;
}

.respond-by-date {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #555;
    background: #f4f6f8;
    border: 1px solid #e2e6ea;
    border-radius: 50px;
    padding: 5px 12px;
    white-space: nowrap;
}

/* Apply Button */
.apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: #fff;
    padding: 8px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 188, 212, 0.2);
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.35);
}

.apply-btn-disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

/* No Results */
.jobs-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 64px 24px;
    text-align: center;
}

.jobs-no-results p {
    font-size: 1rem;
    color: #888;
    max-width: 400px;
}

/* Jobs CTA */
.jobs-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 50%, #00838f 100%);
}

.jobs-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.jobs-cta-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.jobs-cta-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 480px;
    line-height: 1.7;
}

.jobs-cta .cta-button {
    background: #fff;
    color: #0097a7;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.jobs-cta .cta-button:hover {
    background: #f0f0f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .jobs-filter-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .jobs-filter-group {
        flex-wrap: wrap;
    }

    .jobs-count {
        align-self: flex-start;
    }

    .jobs-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .jobs-cta-text p {
        margin: 0 auto;
    }

    .job-detail-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .jobs-hero {
        padding: 140px 24px 60px;
    }

    .jobs-hero-content h1 {
        font-size: 2rem;
    }

    .jobs-filter-bar {
        top: 60px;
    }

    /* Responsive cards layout for table */
    .jobs-table thead {
        display: none;
    }

    .jobs-table tbody tr.job-row {
        display: block;
        padding: 20px;
        margin-bottom: 12px;
        border: 1px solid #e8ecf1;
        border-radius: 12px;
        background: #fff;
    }

    .jobs-table tbody tr.job-row.expanded {
        border-radius: 12px 12px 0 0;
        margin-bottom: 0;
        border-bottom: none;
    }

    .jobs-table tbody tr.job-row:hover {
        border-color: rgba(0, 188, 212, 0.3);
    }

    .jobs-table tbody tr.job-row td {
        display: flex;
        align-items: flex-start;
        padding: 6px 0;
        border: none;
    }

    .jobs-table tbody tr.job-row td::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #aaa;
        min-width: 90px;
        padding-top: 2px;
    }

    .jobs-table tbody tr.job-row td.td-expand {
        display: none;
    }

    .jobs-table tbody tr.job-row td:nth-child(2) {
        padding-bottom: 8px;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 8px;
    }

    .jobs-table tbody tr.job-row td:nth-child(2)::before {
        display: none;
    }

    .jobs-table tbody tr.job-row td:last-child {
        padding-top: 12px;
    }

    .jobs-table tbody tr.job-row td:last-child::before {
        display: none;
    }

    /* Detail row mobile */
    .jobs-table tbody tr.job-detail-row {
        display: none;
    }

    .jobs-table tbody tr.job-detail-row.open {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #e8ecf1;
        border-top: none;
        border-radius: 0 0 12px 12px;
        background: #fafbfc;
    }

    .jobs-table tbody tr.job-detail-row td {
        display: block;
        padding: 0 !important;
    }

    .job-detail-content {
        padding: 20px;
    }

    .apply-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }

    .jobs-cta-text h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .jobs-filter-group select {
        width: 100%;
    }
}
