/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Job Listings Styles */
.job_listings {
    list-style: none;
    margin: 0;
    padding: 0;
}

.job-listing-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.job-listing-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.job-listing-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.company-logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.job-listing-title {
    flex-grow: 1;
}

.job-title {
    margin: 0 0 5px;
    font-size: 1.25rem;
    line-height: 1.4;
}

.job-title a {
    color: #333;
    text-decoration: none;
}

.job-title a:hover {
    color: #e31e24;
}

.company-info {
    font-size: 0.9rem;
    color: #666;
}

.company-name {
    font-weight: 600;
}

.featured-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e31e24;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.job-listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.job-types {
    display: flex;
    gap: 8px;
}

.job-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.job-type.full-time {
    background: #e3f2fd;
    color: #1976d2;
}

.job-type.part-time {
    background: #f3e5f5;
    color: #7b1fa2;
}

.job-type.temporary {
    background: #fff3e0;
    color: #f57c00;
}

.job-type.freelance {
    background: #e8f5e9;
    color: #388e3c;
}

.job-type.internship {
    background: #fce4ec;
    color: #c2185b;
}

.location, .salary, .deadline, .posted-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.location i, .salary i, .deadline i, .posted-date i {
    color: #999;
}

.job-listing-description {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.job-listing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.apply-button {
    background: #e31e24;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.apply-button:hover {
    background: #c41a1f;
    color: #fff;
}

.application-status {
    font-size: 0.9rem;
    font-weight: 600;
}

.application-status.open {
    color: #388e3c;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .job-listing-header {
        flex-direction: column;
        text-align: center;
    }
    
    .company-logo {
        margin: 0 auto 15px;
    }
    
    .featured-badge {
        position: static;
        margin-top: 10px;
        display: inline-block;
    }
    
    .job-listing-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .job-listing-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .apply-button {
        width: 100%;
    }
}

/* Job Filter Styles */
.job_filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.search_jobs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.search_jobs input[type="text"],
.search_jobs select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search_jobs input[type="submit"] {
    background: #e31e24;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.search_jobs input[type="submit"]:hover {
    background: #c41a1f;
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Force Show Job Filter Labels */
.job_filters .search_jobs label,
.job_filters .job_types label,
.job-manager-form label,
.job-manager-form fieldset label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    position: static !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 5px !important;
}

/* Fix Job Listings Display */
.job_listings {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.job_listings .job_listing {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 20px !important;
}

/* Fix Search Fields */
.search_jobs > div {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 15px !important;
}

.search_jobs input[type="text"],
.search_jobs select,
.search_jobs .search_keywords input,
.search_jobs .search_location input {
    display: block !important;
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    margin-top: 5px !important;
}

/* Override any theme hiding */
body .job_filters .search_jobs div,
body .job_filters .job_types,
body .job_filters .showing_jobs,
body .job_listings .job_listing,
body .job-manager-form fieldset {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix Job Types Display */
.job_filters .job_types {
    margin: 0 0 15px !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
}

.job_filters .job_types li {
    display: block !important;
    margin: 5px 0 !important;
    padding: 0 !important;
}

/* Ensure proper form layout */
.job-manager-form fieldset {
    margin: 0 0 1em !important;
    padding: 0 !important;
    border: none !important;
}

/* Fix any Elementor conflicts */
.elementor .job_filters .search_jobs div,
.elementor-widget-container .job_filters .search_jobs div {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    padding: 0 !important;
    margin-bottom: 15px !important;
}
