* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
}

/* Hero Section */
#best {
  text-decoration: wavy;
}

.hero {
  display: flex;
  flex-direction: column; /* Stack content vertically on small screens */
  align-items: center;
  text-align: center;
  background-color: #184e8c;
  padding: 20px;
  color: #fff;
}

.hero-content {
  max-width: 800px;
}

.hero .hero-content img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
}

h1 {
  margin-top: 10px;
  font-size: 2rem;
}

p {
  font-size: 1rem;
  padding: 10px;
}

/* Form Section */
.form-section {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  padding: 0 10px;
}

form {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

form h2 {
  margin-bottom: 15px;
  color: #4a90e2;
  text-align: center;
}

label {
  margin-top: 10px;
  display: block;
  color: #333;
}

input[type="text"],
[type="number"] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

button {
  margin-top: 15px;
  padding: 10px;
  width: 100%;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background-color: #3a78c1;
}

/* Popup Box */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  text-align: center;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #4a90e2;
}

/* Contact Section in Hero */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-info a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
}

/* Media Query for Mobile Devices */
@media (max-width: 600px), (max-width: 500px), (max-width: 400px) {
  /* Reduce padding and font size for small screens */
  .hero {
    padding: 10px;
  }

  .hero-content img {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 1.9rem;
  }

  p {
    font-size: 0.9rem;
  }

  form {
    padding: 13px;
  }

  input[type="text"],
  input[type="number"] {
    font-size: 0.7rem;
  }
  .form-section #candidateForm h2{
    font-size: large;
  }

  button {
    font-size: 0.9rem;
    padding: 8px;
  }

  /* Center the form section on small screens */
  .form-section {
    margin: 15px 0;
    padding: 0 5px;
  }

  .popup-content {
    width: 80%;
  }

  .contact-info {
    flex-direction: column;
    font-size:15px;
    gap: 5px;
  }
}
