:root {
  --primary-color: #517fef;
  --bg-light: #f9f9f9;
  --bg-card: #ffffff;
  --text-dark: #333;
  --border-radius: 12px;
  --font-family: 'Montserrat', 'Open Sans', 'Inter', sans-serif; /* Updated to include Montserrat */
}

body {
  margin: 0;
  font-family: var(--font-family); /* Updated to use Montserrat */
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.hero-header {
  background-image: url('./images/qhpjqsny.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
  text-align: center;
  color: #a451ef;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: #517fef; /* Consider a different hover color for contrast */
}

.footer_ {
  font-size: 10px;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
}

/* First Header (Navigation) */
header {
  background-color: #ffffff; /* white header */
  color: #333333; /* dark text */
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* subtle shadow to separate from content */
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
}

.logo img {
  height: 50px;
  width: auto;
  max-width: 150px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.menu-toggle {
  font-size: 1.8rem;
  color: #517fef; /* brand blue for hamburger */
  background: none;
  border: none;
  cursor: pointer;
  display: none;
}

nav {
  display: flex;
  gap: 15px;
}

nav a {
  color: #517fef; /* brand blue */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #a451ef; /* secondary purple on hover */
}

/* Mobile adjustments */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
  
  nav {
    display: none;
    flex-direction: column;
    background: #ffffff;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  nav.show {
    display: flex;
  }
  
  nav a {
    margin: 10px 0;
  }
}


nav a:hover {
  color: #a451ef; /* Using secondary-color, add --secondary-color to :root if needed */
}

/* Second Header (Hero) - Retained as is */
header.hero-header {
  background-image: url('./images/qhpjqsny.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
  text-align: center;
  color: #a451ef;
}

/* Responsive */
@media (max-width: 900px) {
  .menu-toggle {
    display: block; /* Show toggle on mobile */
  }

  nav {
    display: none; /* Hidden by default on mobile */
    width: 200px;
  }

  nav.show {
    display: flex;
  }

  header {
    padding: 10px 0; /* Adjust padding for mobile */
  }

  .logo img {
    height: 40px;
    max-width: 120px;
  }
}

@media (min-width: 901px) {
  nav {
    display: flex;
    position: static;
    background: none;
    flex-direction: row;
    align-items: center;
    box-shadow: none;
  }

  nav a {
    margin: 0 15px;
  }
}

@media (min-width: 600px) {
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .jobs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .job-card h3 {
    font-size: 1rem;
  }
}

.jobs-section {
  padding: 60px 20px;
  background-color: #f8f9fa;
}

.jobs-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #a451ef;
}

#job-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.job-card {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.job-card:hover {
  transform: translateY(-5px);
}

.job-card h3 {
  margin-top: 0;
  color: #517fef;
  font-size: 1.2rem;
}

.job-card p {
  margin: 10px 0;
  color: #555;
}

.apply-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #517fef;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.apply-btn:hover {
  background-color: #517fef; /* Consider a different hover color */
}

main {
  padding: 40px 0;
}

#search-section {
  margin: 30px 0 30px 0;
  text-align: center;
}

#searchInput {
  width: 100%;
  max-width: 400px;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.job-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.job-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--text-dark);
}

.location {
  font-size: 0.95em;
  color: #555;
}

#job-detail {
  animation: fadeIn 0.3s ease;
}

.back-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 20px;
}

.back-btn:hover {
  text-decoration: underline;
}

.description {
  margin-top: 20px;
  line-height: 1.6;
  font-size: 1rem;
  color: #444;
}

footer {
  background-color: #ffffff; /* White background */
  color: #517fef; /* Brand blue text */
  text-align: center;
  padding: 30px 20px;
  font-family: var(--font-family, 'Montserrat', sans-serif);
  font-size: 0.9rem;
  margin-top: 40px;
  border-top: 1px solid #e0e0e0; /* subtle divider for clean separation */
}

footer .container {
  max-width: 900px;
  margin: 0 auto;
}

footer p {
  margin: 0 0 10px 0;
  line-height: 1.6;
  color: #517fef; /* Ensure all text uses your brand blue */
}

footer p.footer_ {
  font-size: 10px;
  color: #517fef; /* Brand blue for disclaimers */
  line-height: 1.5;
  margin-top: 10px;
}

footer a {
  color: #517fef; /* Brand blue for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #a451ef; /* Secondary purple on hover */
}

@media (max-width: 600px) {
  footer {
    padding: 20px 15px;
    font-size: 0.85rem;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}