/* Job Search Page Specific Styles */

/* Search Section */
.search-section {
    background: transparent;
    padding: 80px 0 40px;
}

.search-header {
    margin-bottom: 32px;
}

.search-header h1 {
    display: none;
    /* Hidden in design */
}

/* Search Controls Container to align inputs horizontally */
.search-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    align-items: flex-end;
}

.search-box {
    flex: 1;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Labels for inputs */
.search-box label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-left: 12px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #333;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    /* Left padding for icon */
    border: 1px solid #333;
    border-radius: 50px;
    /* Pill shape */
    font-size: 16px;
    background: rgba(255, 255, 255, 0.4);
    outline: none;
    color: #333;
    transition: all 0.2s;
}

.search-input:focus {
    background: white;
    border-color: #000;
}

.search-input::placeholder {
    color: #333;
    opacity: 1;
}

/* Filters */
.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #333;
    border-radius: 50px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-weight: 400;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.filter-btn.active {
    background: transparent;
    color: #333;
    border-color: #333;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}

/* Icon adjustments */
.filter-icon {
    font-size: 16px;
    display: flex;
    /* Align icon better */
}

/* Count badge inside filter */
.filter-count {
    background: #000;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
}

/* Clear All Button */
.clear-btn {
    border: none;
    background: none;
    color: #333;
    padding: 0 10px;
    font-weight: 500;
    text-decoration: none;
}

.clear-btn:hover {
    background: none;
    text-decoration: underline;
    color: #000;
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    min-width: 200px;
    z-index: 1000;
}

.dropdown-content.show {
    display: block;
}

/* Filter Options */
.filter-option {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-option:hover {
    background: #F4F4FA;
    border-radius: 8px;
}

.filter-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #F45B69;
}

.filter-option label {
    font-size: 15px;
    cursor: pointer;
    flex: 1;
}

/* Skills Dropdown */
.skills-dropdown {
    min-width: 320px;
}

.search-skills {
    margin-bottom: 12px;
}

.skills-search {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.skills-search:focus {
    border-color: #F45B69;
}

.selected-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F4F4FA;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
}

.remove-skill {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #676767;
}

.remove-skill:hover {
    color: #F45B69;
}


/* Job Listings */
.job-listings {
    padding: 0 0 80px;
    /* Reduced top padding as search section separation is sufficient */
    background: transparent;
}

.job-listing-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: none;
    /* Removed shadow as per flat design in image */
    border: none;
    transition: all 0.3s;
}

/* Add hover effect only if needed, image shows static state but subtle lift is nice */
.job-listing-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.job-header {
    margin-bottom: 24px;
}

.job-title {
    font-size: 28px;
    font-weight: 400;
    /* Regular weight as per image */
    margin-bottom: 16px;
    color: #000;
}

.job-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding-bottom: 32px;
    border-bottom: 1px solid #E5E5E5;
    /* Separator line */
    margin-bottom: 32px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #333;
    font-weight: 400;
}

.meta-item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    color: #333;
}

.job-content {
    margin-bottom: 32px;
}

.job-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
}

.job-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    max-width: 95%;
    /* Prevent text from hitting right edge too hard */
}

.learn-more-btn {
    background: transparent;
    color: #000;
    border: 1px solid #000;
    padding: 12px 32px;
    border-radius: 50px;
    /* Pill shape */
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
    margin-left: auto;
    width: fit-content;
}

.learn-more-btn:hover {
    background: #FFC5C5;
    color: black;
    border-color: #000;
    /* Ensure border remains black or matches design intent */
}

/* Responsive Design for Jobs Page */
@media (max-width: 768px) {
    .search-header h1 {
        font-size: 36px;
    }

    .search-controls {
        flex-direction: column;
    }

    .search-box {
        max-width: 100%;
    }

    .job-listing-card {
        padding: 24px;
    }

    .job-title {
        font-size: 20px;
    }

    .job-meta {
        flex-direction: column;
        gap: 12px;
    }
}