/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #FFFFFF 100%);
    min-height: 100vh;
    line-height: 1.6;
}

/* Hero Section with Background Image */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('/leotech/assets/images/careers-bg.jpg') center/cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

.hero-overlay {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 1200px;
    margin: -50px auto 0;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

/* Current Openings Section */
.current-openings {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    margin-bottom: 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5em;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    color: #7f8c8d;
    font-size: 1.1em;
}

/* Search Section */
.search-section {
    background: #f8fafc;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.search-box {
    position: relative;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    padding: 18px 60px 18px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 18px;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #2980b9;
    transform: translateY(-50%) scale(1.1);
}

/* Filter Form */
.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group select {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.filter-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.filter-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-clear, .btn-apply {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear {
    background: #e74c3c;
    color: white;
}

.btn-clear:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-apply {
    background: #3498db;
    color: white;
}

.btn-apply:hover {
    
    transform: translateY(-2px);
}

/* Jobs Stats */
.jobs-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-count {
    display: block;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Jobs Table */
.jobs-table-container {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

th {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

th i {
    margin-right: 8px;
    opacity: 0.8;
}

td {
    padding: 20px 15px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 14px;
}

.job-row {
    transition: all 0.3s ease;
}

.job-row:hover {
    background: #f8fafc;
    transform: translateX(5px);
}

.job-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.job-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.job-badge.new {
    background: #e74c3c;
    color: white;
}

.job-badge.featured {
    background: #f39c12;
    color: white;
}

.location-icon {
    color: #3498db;
    margin-right: 8px;
}

.dept-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.dept-badge.marketing {
    background: #e3f2fd;
    color: #1976d2;
}

.dept-badge.it {
    background: #e8f5e8;
    color: #2e7d32;
}

.dept-badge.hr {
    background: #fce4ec;
    color: #c2185b;
}

.employment-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.employment-badge.full-time {
    background: #e8f5e8;
    color: #2e7d32;
}

.btn-apply-job {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-apply-job:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* No Jobs Message */
.no-jobs-message {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.no-jobs-message i {
    margin-bottom: 20px;
    color: #cbd5e1;
}

.no-jobs-message h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #475569;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.job-row {
    animation: slideUp 0.6s ease-out;
}

.job-row:nth-child(1) { animation-delay: 0.1s; }
.job-row:nth-child(2) { animation-delay: 0.2s; }
.job-row:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5em;
    }
    
    .container {
        margin: -30px auto 0;
        padding: 0 15px;
    }
    
    .current-openings {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .search-section {
        padding: 30px 20px;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .jobs-stats {
        grid-template-columns: 1fr;
    }
    
    th, td {
        padding: 15px 10px;
        font-size: 12px;
    }
    
    .job-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 50vh;
    }
    
    .hero-title {
        font-size: 2em;
    }
    
    .search-input {
        padding: 15px 50px 15px 45px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn-clear, .btn-apply {
        width: 100%;
        justify-content: center;
    }
}