:root {
    --primary: #2563eb;
    --secondary: #10b981;
    --dark: #1e293b;
    --light-bg: #f8fafc;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark);
    line-height: 1.5;
}

/* --- Hero & Search Section --- */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 { 
    font-size: 2.8rem; 
    margin-bottom: 12px; 
    font-weight: 800;
}

.hero p { 
    color: #94a3b8; 
    margin-bottom: 40px; 
    font-size: 1.1rem;
}

/* Updated Search Bar to fit Title, Skills, and Location */
.search-card {
    background: var(--white);
    max-width: 1100px; /* Increased width for more inputs */
    margin: 0 auto;
    padding: 8px;
    border-radius: 60px;
    display: flex;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    align-items: center;
}

.input-group { 
    flex: 1; 
    padding: 0 20px; 
}

.border-left { 
    border-left: 1px solid var(--border); 
}

input, select {
    width: 100%;
    border: none;
    padding: 14px 0;
    outline: none;
    font-size: 0.95rem;
    color: var(--dark);
    background: transparent;
}

input::placeholder {
    color: #94a3b8;
}

.search-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    white-space: nowrap;
}

.search-btn:hover { 
    background: #059669; 
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* --- Results Layout --- */
.results-wrapper { 
    max-width: 1200px; 
    margin: -40px auto 60px; 
    padding: 0 20px; 
}

.results-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 25px; 
}

/* --- Job Cards --- */
.job-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.card-header { 
    display: flex; 
    gap: 16px; 
    margin-bottom: 18px; 
}

.company-logo { 
    width: 52px; 
    height: 52px; 
    border-radius: 10px; 
    object-fit: contain; 
    background: #f8fafc; 
    border: 1px solid #f1f5f9;
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.job-title { 
    font-size: 1.15rem; 
    margin: 0 0 6px 0; 
    color: var(--dark); 
    line-height: 1.3; 
    font-weight: 700;
}

.company-name { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    margin: 0;
    font-weight: 500;
}

/* --- Skills Tag Section --- */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.skill-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

.publisher-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    width: fit-content;
}

.job-snippet { 
    font-size: 0.92rem; 
    color: #475569; 
    line-height: 1.6; 
    margin-bottom: 24px; 
    flex-grow: 1; 
}

/* --- Card Footer --- */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.post-date { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    display: flex;
    align-items: center;
    gap: 5px;
}

.apply-link {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.2s;
}

.apply-link:hover {
    background: #1d4ed8;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .search-card {
        flex-direction: column;
        border-radius: 24px;
        padding: 16px;
        max-width: 500px;
    }
    
    .input-group {
        width: 100%;
        border-left: none !important;
        border-bottom: 1px solid #f1f5f9;
        padding: 10px 5px;
    }
    
    .search-btn {
        width: 100%;
        margin-top: 10px;
        padding: 16px;
    }

    .hero h1 { font-size: 2rem; }
}

.loading { 
    text-align: center; 
    grid-column: 1 / -1; 
    padding: 80px; 
    color: var(--text-muted); 
    font-size: 1.1rem;
}