/* 1. GLOBAL VARIABLES & RESET */
:root {
    --primary-blue: #004b91;
    --accent-orange: #ff9800;
    --light-bg: #f4f7f9;
    --white: #ffffff;
    --text-dark: #333;
    --text-muted: #666;
    --border-color: #e9ecef;
    --sidebar-width: 260px;
}

body { 
    font-family: 'Segoe UI', 'Inter', Tahoma, sans-serif; 
    margin: 0; 
    display: flex; 
    flex-direction: column; /* Allows sticky nav to work correctly */
    background-color: var(--light-bg); 
    color: var(--text-dark); 
    min-height: 100vh;
}

/* 2. LAYOUT COMPONENTS */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: #1e293b;
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px;
    z-index: 100;
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 40px;
}

/* 3. HERO & SEARCH */
.hero { 
    margin-top: 0;
    padding: 120px 8% 60px;
    position: relative;
    z-index: 1;
    text-align: center;
    background: linear-gradient(rgba(0, 75, 145, 0.85), rgba(0, 75, 145, 0.85)), 
                url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    color: white;
}

.hero h1 { font-size: 48px; margin-bottom: 10px; font-weight: 700; }
.hero p { font-size: 18px; margin-bottom: 40px; opacity: 0.9; }

.search-container {
    background: var(--white);
    padding: 8px;
    border-radius: 50px;
    display: flex;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.search-container input { border: none; padding: 15px 25px; flex: 1; font-size: 16px; border-radius: 50px; outline: none; }
.search-container button { background: var(--accent-orange); color: white; border: none; padding: 0 40px; border-radius: 50px; cursor: pointer; font-weight: bold; font-size: 18px; }

/* 4. SLIDER SECTION */
.slider-section { padding: 40px 8%; background: white; }
.slider-section h2 { margin-bottom: 25px; color: var(--primary-blue); }

.slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 5px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
}

.slider-container::-webkit-scrollbar { display: none; }

.slider-card {
    min-width: 250px;
    flex-shrink: 0;
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    scroll-snap-align: start;
    transition: 0.3s;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.slider-card i { font-size: 2.5rem; color: var(--accent-orange); margin-bottom: 15px; }
.slider-card h4 { margin: 10px 0; color: var(--primary-blue); }
.slider-card:hover { border-color: var(--primary-blue); transform: translateY(-5px); }

/* 5. JOB CARDS & GRID */
.content-section { padding: 60px 8%; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }

.job-card {
    background: var(--white); 
    border-radius: 12px; 
    padding: 25px;
    border: 1px solid #eee; 
    transition: 0.3s; 
    position: relative;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
}

.job-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: var(--primary-blue); }
.job-card h3 { color: var(--primary-blue); margin: 0 0 8px; font-size: 19px; }
.job-card .company { color: var(--primary-blue); font-weight: 600; margin-bottom: 10px; display: block; text-decoration: none; }
.job-card .location { font-size: 14px; color: #888; margin-bottom: 15px; }

.apply-badge { position: absolute; top: 15px; right: 15px; background: #e3f2fd; color: var(--primary-blue); padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: bold; }

.btn-view {
    background: var(--primary-blue); 
    color: white !important; 
    text-decoration: none;
    text-align: center; 
    padding: 10px 20px; 
    border-radius: 6px; 
    font-weight: 600;
    transition: 0.3s;
}

.btn-view:hover { background: #003669; }

/* 6. CONTACT SECTION */
.contact-section { padding: 80px 8%; background-color: var(--white); }
.contact-container { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.contact-info h2 { color: var(--primary-blue); font-size: 32px; margin-bottom: 20px; }
.contact-info p { color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; }

.info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; color: var(--text-dark); font-weight: 600; }
.info-item i { color: var(--accent-orange); font-size: 20px; }

.contact-form { background: var(--light-bg); padding: 40px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; outline: none; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-blue); }

.submit-btn {
    background: var(--primary-blue); color: white; border: none; padding: 15px 30px; border-radius: 8px; 
    font-weight: bold; cursor: pointer; width: 100%; transition: 0.3s;
}
.submit-btn:hover { background: #003669; }

/* 7. BROWSE SECTIONS */
.browse-section { background: white; border-radius: 12px; padding: 30px; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.browse-section h3 { border-bottom: 2px solid var(--primary-blue); display: inline-block; margin-bottom: 20px; padding-bottom: 5px; }
.browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.browse-item { background: var(--light-bg); padding: 15px; border-radius: 8px; text-decoration: none; color: var(--primary-blue); font-weight: 600; text-align: center; transition: 0.2s; }
.browse-item:hover { background: var(--primary-blue); color: white; }
.job-count { display: block; font-size: 12px; font-weight: normal; color: var(--text-muted); margin-top: 4px; }
.browse-item:hover .job-count { color: #e0e0e0; }

/* 8. RESPONSIVE */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 20px; }
    .contact-container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .job-grid { grid-template-columns: 1fr; }
}