/* ==========================================
   JOBS PAGE STYLES
========================================== */

/* ==========================================
   HERO SECTION
========================================== */

.hero-section {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 40px;
}

.hero-image {
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(66, 116, 217, 0.85) 0%, rgba(22, 48, 77, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hero-overlay h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-overlay p {
  color: #fff;
  font-size: 18px;
  max-width: 600px;
  line-height: 1.6;
}

/* ==========================================
   VACANCIES CONTAINER
========================================== */

.vacancies-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ==========================================
   COMPANY HEADER
========================================== */

.company-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.company-logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.company-name {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vacancies-title {
  text-align: center;
  color: #4274d9;
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: 700;
}

.vacancies-intro {
  text-align: center;
  color: #666;
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ==========================================
   VACANCY GRID
========================================== */

.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* ==========================================
   VACANCY CARD
========================================== */

.vacancy-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vacancy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.vacancy-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.vacancy-content {
  padding: 25px;
}

.vacancy-content h2 {
  color: #333;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.4;
  min-height: 50px;
}

/* ==========================================
   VACANCY BUTTONS
========================================== */

.vacancy-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vacancy-buttons .vacancy-apply {
  display: block;
  text-align: center;
  padding: 12px 20px;
  background: #4274d9;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.vacancy-buttons .vacancy-apply:hover {
  background: #16304d;
  transform: translateY(-2px);
}

.vacancy-apply {
  display: block;
  text-align: center;
  padding: 12px 20px;
  background: #4274d9;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.vacancy-apply:hover {
  background: #16304d;
  transform: translateY(-2px);
}

/* ==========================================
   JOBS BOTTOM NAV
========================================== */

.jobs-bottom-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.jobs-bottom-nav a {
  color: #4274d9;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
}

.jobs-bottom-nav a:hover {
  color: #16304d;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {
  .hero-section {
    height: 300px;
  }

  .hero-overlay h1 {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .hero-overlay p {
    font-size: 16px;
  }

  .vacancies-container {
    padding: 30px 15px;
  }

  .company-header {
    padding: 20px;
  }

  .company-logo {
    width: 100px;
    margin-bottom: 15px;
  }

  .company-name {
    font-size: 18px;
  }

  .vacancies-title {
    font-size: 28px;
  }

  .vacancies-intro {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .vacancy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vacancy-card img {
    height: 180px;
  }

  .vacancy-content {
    padding: 20px;
  }

  .vacancy-content h2 {
    font-size: 16px;
    min-height: 45px;
  }

  .vacancy-buttons {
    gap: 10px;
  }

  .vacancy-buttons .vacancy-apply,
  .vacancy-apply {
    padding: 10px 15px;
    font-size: 13px;
  }

  .jobs-bottom-nav {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 250px;
  }

  .hero-overlay h1 {
    font-size: 24px;
  }

  .hero-overlay p {
    font-size: 14px;
  }

  .company-name {
    font-size: 16px;
  }

  .vacancies-title {
    font-size: 24px;
  }

  .vacancy-content h2 {
    font-size: 15px;
  }
}
