.jobs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

.jobs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Search Bar */
.search-wrapper {
    position: relative;
    margin-bottom: 40px;
    grid-column: 1 / -1;
}

.search-bar {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 14px 50px 14px 20px;
    color: #999;
    font-size: 14px;
    outline: none;
}

.search-bar::placeholder {
    color: #666;
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
}

/* Filters Sidebar */
.filters-sidebar {
    background: #0a0a0a;
    padding: 0;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #222;
}

.filters-title {
    font-size: 18px;
    font-weight: 600;
}

.clear-filters {
    color: #999;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-section {
    border-bottom: 1px solid #222;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    background: #0a0a0a;
    transition: background 0.2s;
}

.filter-header:hover {
    background: #111;
}

.filter-header h3 {
    font-size: 14px;
    font-weight: 500;
}

.filter-arrow {
    transition: transform 0.3s;
    font-size: 12px;
}

.filter-arrow.open {
    transform: rotate(180deg);
}

.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-content.open {
    max-height: 600px;
}

.filter-options {
    padding: 10px 20px 20px;
}

.filter-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
}


.filter-option label {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    cursor: pointer;
    font-size: 13px;
    color: #ccc;
}

.filter-option label:hover {
    color: #fff;
}

.filter-count {
    color: #666;
    font-size: 12px;
}

.filter-check {
    width: 18px;
    height: 18px;
    background: transparent;
    border: 2px solid #666;
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
    display: inline-block;
    position: relative;
  }
  .filter-check:checked {
    background: #b33d78;
    border-color: #b33d78;
  }
  .filter-check:checked::after {
    content: "✓";
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    position: absolute;
    top: -2px;
    left: 3px;
  }

/* Job Listings */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.job-card {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    cursor: pointer;
}

.job-card:hover {
    background: #111;
    border-color: #333;
}

.job-info {
    flex: 1;
}

.skill-line {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.job-number {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.job-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.expand-content {
    animation: fadeOpen 0.28s ease forwards;
}

.job-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.job-meta span {
    display: flex;
    align-items: center;
}

.job-meta span::after {
    content: '|';
    margin-left: 15px;
    color: #444;
}

.job-meta span:last-child::after {
    content: '';
    margin: 0;
}

.apply-btn {
    background: var(--light-pink);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.apply-btn:hover {
    background: #c2185b;
}

.job-expand {
    display: none;
    background: #111;
    padding: 0px 30px;
    padding-bottom: 18px;
    border: 1px solid #222;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    animation: fadeOpen 0.3s ease forwards;
}

.job-expand{
    font-size: 0.85rem;
}

.job-expand.active {
    display: block;
}



.details-btn {
    background: var(--light-pink);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: 0.25s;
}

.details-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

@keyframes fadeOpen {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Required to merge expand section into one unit */
.job-wrapper {
    width: 100%;
}

.job-wrapper.active .job-expand {
    display: block;
}

/* Optional: ensure clean connection without double borders */
.job-wrapper .job-card {
    margin-bottom: -1px;
}


/* When expanded, header + body get same background */
.job-wrapper.active .job-card,
.job-wrapper.active .job-expand {
    background: #0e0e0e;
}


/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    background: var(--light-pink);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    grid-column: 1 / -1;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .jobs-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }

    .job-card {
        padding: 20px 24px;
    }
}

@media (max-width: 768px) {
    .jobs-container {
        padding: 40px 15px;
    }

    .mobile-filter-toggle {
        display: flex;
        justify-content: center;
    }

    .jobs-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filters-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .filters-sidebar.open {
        transform: translateX(0);
    }

    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
    }

    .filter-overlay.open {
        display: block;
    }

    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }

    .job-meta {
        flex-wrap: wrap;
    }

    .apply-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .job-title {
        font-size: 15px;
    }

    .job-meta {
        font-size: 12px;
        gap: 10px;
    }

    .job-meta span::after {
        margin-left: 10px;
    }

    .search-bar {
        padding: 12px 45px 12px 15px;
        font-size: 13px;
    }
}