/* ===== Reset ===== */
* {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
  line-height: 1.6; background: #f9f9f9; color: #333;
}
.container { width: 90%; max-width: 1200px; margin: auto; }

/* ===== Header ===== */
.topbar { background: #222; color: #ccc; font-size: 14px; padding: 8px 0; }
.topbar-flex { display: flex; justify-content: space-between; align-items: center; }
header.main-header { background: #fff; padding: 15px 0; box-shadow: 0 3px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: bold; color: #ff5722; }
.nav-links { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: #333; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #ff9800; }
.btn { background: linear-gradient(135deg,#ff9800,#ff5722); color: #fff; padding: 12px 25px; border-radius: 30px; border: none; font-weight: bold; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.15); text-decoration: none; display: inline-block; }
.btn:hover { background: linear-gradient(135deg,#ff5722,#ff9800); transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.25); }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg,#0f2027,#203a43,#2c5364); color: #fff; text-align: center; padding: 120px 20px; position: relative; }
.hero-overlay { background: rgba(0,0,0,0.4); position: absolute; top:0;left:0;right:0;bottom:0; }
.hero-content { position: relative; z-index: 2; }
.hero-title { font-size: 46px; margin-bottom: 15px; }
.hero-title span { color: #ff9800; }
.hero-subtitle { font-size: 18px; margin-bottom: 25px; }

/* ===== Job Search Bar ===== */
.job-search { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.search-field { position: relative; }
.search-field i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #999; }
.search-field input { padding: 12px 15px 12px 40px; border-radius: 30px; border: 1px solid #ddd; width: 260px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: all 0.3s; }
.search-field input:focus { border-color: #ff9800; outline: none; box-shadow: 0 0 12px rgba(255,152,0,0.4); }

/* ===== Cards & Sections ===== */
.section-title { text-align: center; font-size: 28px; margin-bottom: 10px; color: #333; }
.section-subtitle { text-align: center; font-size: 16px; margin-bottom: 30px; color: #666; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
.card { background: #fff; border-radius: 15px; padding: 20px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* ===== Testimonials Auto Slide ===== */
.testimonial-slider { overflow: hidden; margin-top: 30px; }
.slider-track { display: flex; gap: 20px; animation: scroll-left 80s linear infinite; }
.testimonial-slider .card { min-width: 300px; max-width: 300px; flex-shrink: 0; }
@keyframes scroll-left { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }

/* ===== Newsletter ===== */
.newsletter { background: #f8f9fa; padding: 60px 20px; text-align: center; }
.newsletter-form { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.newsletter-form input { padding: 12px 20px; border-radius: 30px; border: 1px solid #ccc; width: 300px; }

/* ===== Auth Section (Login/Register) ===== */
.auth-section { padding: 60px 20px; background: #f8fafc; }
.auth-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.auth-card { background: #fff; border-radius: 15px; padding: 30px; box-shadow: 0 6px 25px rgba(0,0,0,0.1); }
.auth-card h2 { font-size: 22px; margin-bottom: 10px; color: #ff5722; }
.modern-input { position: relative; margin-bottom: 20px; }
.modern-input input { width: 100%; padding: 14px 15px; border-radius: 10px; border: 1px solid #ccc; }
.modern-input label { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: #888; transition: all 0.3s; background: #fff; padding: 0 5px; }
.modern-input input:focus + label,
.modern-input input:not(:placeholder-shown) + label { top: -8px; left: 10px; font-size: 12px; color: #ff5722; }
.file-upload { margin-bottom: 20px; }
.file-upload input[type=file] { width: 100%; border: 1px dashed #bbb; border-radius: 10px; padding: 12px; }

/* ===== Footer ===== */
.modern-footer { background: #0d1b2a; color: #ddd; padding: 60px 20px 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 40px; }
.footer-bottom { text-align: center; margin-top: 40px; border-top: 1px solid #1c2e4a; padding-top: 20px; font-size: 14px; color: #aaa; }

/* ===== Responsive Fix ===== */
@media(max-width:768px){
  .hero-title{font-size:32px;}
  .nav-links{flex-direction:column; display:none; background:#fff; position:absolute; top:70px; right:0; width:200px; padding:15px;}
  .nav-links.active{display:flex;}
}
