*, *::before, *::after {
  box-sizing: border-box;
}

.menu, .menu-btn, .footer-social img {
  will-change: transform;

}/* General Styles for Larger Screens */
.container {
  max-width: 100vw;
  margin: 0 auto;
  padding: 20px;
}

header, footer {
  padding: 20px;
  text-align: left;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

header {
  background-color: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: relative;
  color: white;
}

header .logo img {
  width: 20vw;
  height: auto;
  background-color: #f4f4f4;
  margin-left: 1vw;
}

.menu-btn {
  font-size: 2rem;
  border: none;
  cursor: pointer;
  background-color: transparent;
  color: #007acc;
  display: block; /* Always visible by default (mobile first) */
  z-index: 1100;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.menu-btn:focus,
.menu-btn:hover {
  background: #e0f7fa;
  color: #f39c12;
  outline: 2px solid #007acc;
}

/* Default: Mobile First (menu hidden, button visible) */
.menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 10px;
  background-color: #E0FFFF;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: left;
  z-index: 1000;
  min-width: 50vw;
  margin-right: 0;
  overflow: visible;
}
.menu.active {
  display: block;
}

.menu ul {
  list-style: none;
  padding: 10px;
  gap: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.menu ul li {
  margin: 0;
}

.menu ul li a {
  text-decoration: none;
  color: #00008B;
  display: block;
  padding: 5px;
  font-size: 1.2rem;
}

.menu ul li a:hover {
  text-decoration: underline;
  color: #f39c12;
}

/* Large and Tablet Screens: Menu always visible, flexible, button hidden */
@media (min-width: 768px) {
  .menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    background: none;
    box-shadow: 2px 2px 10px rgba(4, 40, 105, 0.5);    
    min-width: 0;
    width: auto;
    max-width: 100vw;
    margin-right: 0;
    overflow: visible !important;
  }
  .menu ul {
    flex-direction: row;
    gap: 2vw;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100vw;
    justify-content: flex-end;
  }
  .menu ul li {
    margin: 0 0.5vw;
    flex: 0 1 auto;
  }
  .menu ul li a {
    padding: 8px 1vw;
    font-size: 1rem;
    min-width: 60px;
    word-break: keep-all;
  }
  .menu-btn {
    display: none !important;
  }
}

/* As screen shrinks, menu items wrap and shrink spacing */
@media (min-width: 768px) and (max-width: 1023px) {
  .menu ul {
    gap: 1vw;
  }
  .menu ul li a {
    padding: 8px 0.5vw;
    font-size: 0.95rem;
  }
}

/* At exactly 768px and below, switch to button menu */
@media (max-width: 767px) {
  .menu {
    display: none;
    background-color: #15317E;
    border-radius: 10px;
  }
  .menu-btn {
    display: block;
  }

  .menu ul li a {
    color: #fff;
    text-align: center;
  }
}

/* Tablet-specific Styles */
@media (max-width: 768px) {
  .container {
    padding: 10px;
    max-width: 95vw;
  }
  .menu {
    width: 90%;
  }
  header, footer {
    padding: 15px;
  }
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Phone-specific Styles */
@media (max-width: 480px) {
  .container {
    padding: 5px;
    max-width: 99vw;
  }
  header, footer {
    font-size: 14px;
  }
  nav ul li {
    margin: 5px 0;
  }
}

/* Hero Section */
.hero-image {
  position: relative;
  width: 60vw;
  max-width: 80%;
  height: auto;
  left: 20vw;
  border-radius: 8vw 2vw 8vw 2vw;
  margin: 2vw auto;
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
  .hero-image {
    width: 90vw;
    height: auto;
    left: 10vw;
  }
}
@media (max-width: 480px) {
  .hero-image {
    width: 90vw;
    height: auto;
    left: 10vw;
  }
}

/* focus Section Styling */
.focus {
  text-align: center;
  padding: 0.2vw;
  background: #f0f8ff;
  font-family: Arial, sans-serif;
}
.focus h2 {
  font-size: 4vw;
  color: #4169e1;
  text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
}

/* Career Section */
.career {
  width: 100vw;
  background: #f0f8ff;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}

.intro {
  text-align: center;
  margin-bottom: 20px;
  background: #f0f8ff;
}
.intro h2 {
  font-size: 2.5vw;
  color: #008000;
  text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
}
.intro p {
  font-size: 2vw;
  color: #333;
  margin: 0;
  padding: 0;
}

/* Form Styling */
.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

form {
  width: 40vw;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  max-width: 80vw;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-bottom: 10vh;
}

label {
  display: block;
  font-weight: bold;
  margin-top: 10px;
  color: #008000;
}

input, select, textarea {
  width: 95%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.error {
  color: red;
  font-size: 14px;
}

.required {
  color: red;
  font-weight: bold;
}

/* Button Styles */
.button-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 15px;
}

.clear-btn {
  background-color: #ccc;
  color: black;
  padding: 10px;
  border: none;
  cursor: pointer;
}

.submit-btn {
  background-color: #007bff;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
}

.submit-btn :hover {
  background-color: #0056b3;
}

.clear-btn:hover {
  background-color: #b3b3b3;
}

@media screen and (max-width: 768px) {
  .career {
    width: 90%;
    padding: 15px;
  }
  form {
    width: 100%;
  }
  .button-container {
    flex-direction: column;
    align-items: center;
  }
  .button-container button {
    width: 100%;
    margin-top: 5px;
  }
  .submit-btn {
  background-color: #007bff;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  }
}

@media screen and (max-width: 480px) {
  .career {
    width: 95%;
    padding: 10px;
  }
  form {
    width: 100%;
  }
  .button-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 15px;
  }
  .button-container button {
    width: 50%;
    margin-top: 5px;
  }
  input, label {
    font-size: 14px;
  }
 .submit-btn {
  background-color: #007bff;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  }
}

.belt {
  text-align: center;
  padding: 0.2vw;
  background: url('star5a.png') center/cover no-repeat;
  font-family: Arial, sans-serif;
}
.belt h2 {
  font-size: 4vw;
  color: #ffcdd2;
}

/* Footer */
footer {
  background-color: #15317E;
  color: #fff;
  text-align: center;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  max-width: 100vw;
  flex-wrap: wrap;
  font-size: 1rem;
}

.footer-logo img {
  max-width: 10vw;
  height: auto;
  padding: 0;
  margin-left: 1vw;
  margin-top: 3vh;
  margin-right: 1vw;
  border-radius: 5%;
  transition: transform 0.3s ease;
}

.footer-contact {
  flex: 2;
  text-align: left;
  padding: 0;
  margin-left: 5vw;
}

.footer-contact p {
  color: #fff;
  margin-left: 1vw;
  padding: 0;
  text-align: left;
  margin-top: 1vw;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #f39c12;
}

.footer-social {
  flex: 1;
  text-align: center;
  padding: 10px;
}

.footer-social img {
  width: 3vw;
  height: auto;
  transition: transform 0.3s ease;
  margin: 5px;
}

.footer-social img:hover {
  transform: scale(1.1);
  filter: brightness(2);
  cursor: pointer;
  margin: 5px;
}

/* Footer Links */
.footer-links {
  flex: 1;
  text-align: left;
  padding: 2px;
  margin-left: 5vw;
}

.footer-links a {
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 1rem;
  margin-left: 5px;
  padding: 5px;
  display: inline-block;
}

.footer-links a:hover {
  color: #f39c12;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 5px;
}

.footer-links ul li a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #f39c12;
}

.footer-copyright {
  margin-top: 20px;
  border-top: 1px solid #ccc;
  padding-top: 10px;
  text-align: center;
  font-size: small;
  color: #fff;
}

.footer-copyright p {
  margin: 0;
  padding: 0;
  color: #fff;
}
.footer-copyright a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-copyright a:hover {
  text-decoration: underline;
  color: #f39c12;
}

/* Responsive Design for Footer */
@media (max-width: 768px), (max-width: 480px) {
  .menu-btn {
    display: block;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-contact, .footer-social, .footer-links {
    flex: unset;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .footer-container h2 {
    font-size: 4vw;
    margin: 2vh;
    padding: 1vw;
    color: #fff;
    text-align: center;
  }
  .footer-container p {
    font-size: 2.5vw;
    margin: 1vh;
    color: #fff;
    padding-top: 0.5vw;
    text-align: center;
  }
  .footer-logo img {
    max-width: 30vw;
    height: auto;
    margin: 5vh;
  }
  .footer-social img {
    width: 5vw;
    height: auto;
    margin: 5px;
  }
  .footer-links ul li {
    display: block;
  }
  .footer-links ul li a {
    display: block;
    font-size: 2.5vw;
    text-align: center;
    color: #fff;
    transition: color 0.3s ease;
  }
}