:root {
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --success-color: #10b981;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-color);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Search Box */
.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto 30px;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Job Card */
.job-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.job-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.job-type {
    background: #dbeafe;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.job-location {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.job-card h3 {
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.company-name {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.skill {
    background: #f3f4f6;
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.btn-view {
    width: 100%;
    padding: 12px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view:hover {
    background: var(--primary-color);
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    max-width: 700px;
    margin: 50px auto;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.close-btn:hover {
    color: var(--text-color);
}

.modal-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.modal-body {
    margin-bottom: 30px;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.detail-section p {
    color: var(--text-muted);
    line-height: 1.8;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-list span {
    background: #e0f2fe;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-apply {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--success-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-apply:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        padding: 25px;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
}