/* Hamburger menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 20px;
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 4px;
  background: #667eea;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 70px;
  right: 20px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 20px 0;
  min-width: 220px;
  z-index: 2000;
  flex-direction: column;
  gap: 10px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu .nav-link, .mobile-menu .admin-btn {
  color: #222;
  padding: 12px 24px;
  text-align: right;
  font-size: 18px;
  border-bottom: 1px solid #eee;
}
.mobile-menu .nav-link:last-child, .mobile-menu .admin-btn:last-child {
  border-bottom: none;
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none !important;
  }
  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 500px) {
  .header-content {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .logo {
    font-size: 18px;
  }
  .logo img {
    height: 48px !important;
    margin-right: 6px !important;
  }
  .menu-toggle {
    width: 32px;
    height: 32px;
  }
  .mobile-menu {
    min-width: 140px;
    padding: 10px 0;
  }
  .mobile-menu .nav-link, .mobile-menu .admin-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}
/* SRTech - Trang chủ tuyển dụng */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* Header */
.header {
  background: #fff;
  color: #222;
  padding: 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  color: #222;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #667eea;
}

.mobile-menu .nav-link:hover, .mobile-menu .admin-btn:hover {
  color: #667eea;
  background: #f0f4ff;
  border: 1px solid #667eea;
  border-radius: 8px;
}

.admin-btn {
  background: rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  color: #222;
  font-size: 14px;
  transition: background 0.3s;
}

.admin-btn:hover {
  background: #f0f4ff;
  color: #667eea;
}

/* Hero Section with Image Slider */
.hero {
  margin-top: 80px;
  height: 500px;
  position: relative;
  overflow: hidden;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
}

.slide-content {
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.slide-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
  font-size: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 36px;
  color: #667eea;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

/* Job Slider */
.jobs-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.jobs-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.job-card {
  min-width: 100%;
  padding: 40px;
  background: white;
  display: flex;
  gap: 40px;
  align-items: center;
}

.job-image {
  flex: 0 0 300px;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.job-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-content {
  flex: 1;
}

.job-hot {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.job-title {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

.job-company {
  font-size: 18px;
  color: #667eea;
  margin-bottom: 15px;
  font-weight: 600;
}

.job-location {
  color: #666;
  margin-bottom: 20px;
  font-size: 16px;
}

.job-section {
  margin-bottom: 20px;
}

.job-section h4 {
  color: #333;
  margin-bottom: 10px;
  font-size: 18px;
}

.job-section ul {
  list-style: none;
  padding-left: 0;
}

.job-section li {
  padding: 5px 0;
  position: relative;
  padding-left: 20px;
}

.job-section li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

.job-salary {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  font-weight: 600;
  margin: 20px 0;
  text-align: center;
}

.job-contact {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.job-contact h4 {
  color: #667eea;
  margin-bottom: 15px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
}

.contact-item a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
  pointer-events: none;
}

.slider-btn {
  background: rgba(255,255,255,0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  color: #667eea;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
  pointer-events: all;
}

.slider-btn:hover {
  background: white;
  transform: scale(1.1);
}

.slider-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #667eea;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer h3 {
  color: #667eea;
  margin-bottom: 20px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-section h4 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-section p {
  color: #ccc;
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .logo {
    font-size: 16px;
  }
  .logo img {
    height: 36px !important;
    margin-right: 4px !important;
  }
  .menu-toggle {
    width: 28px;
    height: 28px;
  }

  .nav-menu {
    gap: 15px;
  }

  .hero {
    height: 300px;
    margin-top: 120px;
  }

  .slide-content h1 {
    font-size: 32px;
  }

  .slide-content p {
    font-size: 16px;
  }

  .main-content {
    margin: 40px auto;
    padding: 0 15px;
  }

  .section-title {
    font-size: 28px;
  }

  .job-card {
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
  }

  .job-image {
    flex: none;
    width: 100%;
    height: 200px;
  }

  .job-title {
    font-size: 24px;
  }

  .job-company {
    font-size: 16px;
  }

  .slider-controls {
    padding: 0 15px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
