* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Jost";
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: #f9f9f9;
}

/* NAVIGATION BAR */
header {
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  height: 100%;
  position: relative;
}

.nav-hidden {
  transform: translateY(-100%);
}

.left {
  flex: 1;
  display: flex;
  align-items: center;
}

.middle {
  flex: 2;
  display: block;
  justify-content: center;
  align-items: center;
}

.middle ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding: 0;
  margin: 0 15px;
  justify-content: center;
}

.middle li {
  display: block;
  position: relative;
  width: fit-content;
}

.middle li::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1.2px;
  background: black;
  left: 0;
  bottom: -3px;
  transition: width 0.3s ease;
}

.middle li:hover::after {
  width: 100%;
}

.right {
  flex: none;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  align-items: center;
}

.en {
  margin-left: -8px;
}

.right a {
  text-decoration: none;
  color: black;
  font-size: 20px;
  position: relative;
  width: fit-content;
  display: block;
  width: 55px;
}

.right a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1.2px;
  background: black;
  left: 0;
  bottom: -3px;
  transition: width 0.3s ease;
}

.right a:hover::after {
  width: 100%;
}

.logo {
  width: auto;
  height: 60px;
  object-fit: contain;
}

/* Search Bar Styling */
.search-container {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 50px;
  width: 250px;
  transition: border-color 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.search-container #searchInput {
  width: 100%;
  padding: 2px 10px 2px 2px; /* right padding increased for button space */
  font-size: 16px;
  border: none;
  outline: none;
}

.search-button {
  background-color: #17689c;
  border: none;
  color: white;
  border-radius: 50%;
  width: 2.3rem;
  height: 2rem;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover {
  background-color: #12567e;
}

.search-container:hover {
  border-color: #12567e;
}

/* Autofill box */
.suggestions-box {
  position: absolute; /* Position the suggestions box relative to the search-container */
  top: 100%; /* Start the suggestions box just below the search input */
  left: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-top: none;
  width: 100%; /* Same width as the search input */
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  border-radius: 20px;
  display: none;
  margin-top: 3px;
}

.suggestions-box div {
  padding: 8px 12px;
  cursor: pointer;
}

.suggestions-box div:hover {
  background-color: #f0f0f0;
}

/* Links */
a {
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
  color: black;
  transition: 0.3s ease;
}

/* Language drop down menu*/
.language-selector {
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.language-selector::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1.2px;
  background: black;
  left: 0;
  bottom: -3px;
  transition: width 0.3s ease;
}

.language-selector:hover::after {
  width: 100%;
}

.selected-lang {
  padding-left: 0.5rem;
  font-size: 20px;
}

.language-menu {
  position: absolute;
  top: 100%;
  right: 0px;
  background-color: white;
  border: 1px solid #cccccc;
  list-style-type: none;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 0px;
  padding-right: 0px;
  margin: 0;
  width: 90px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 100;
  border-radius: 20px;
}

.language-menu li {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 12px;
  padding-right: 12px;
  cursor: pointer;
}

.language-menu li:hover {
  background-color: #f0f0f0;
}

.language-menu.show {
  display: block;
}

/* Footer */
footer {
  padding: 20px;
  text-align: center;
  width: 100%;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 30px;
}

.footer-links div {
  text-align: left;
}

.footer-links h4 {
  margin-bottom: 5px;
}

.footer-links a {
  display: block;
  color: #000000;
  text-decoration: none;
  margin: 2px 0;
  position: relative;
  width: fit-content;
  font-size: 15px;
}

.footer-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1.2px;
  background: black;
  left: 0;
  bottom: -2px;
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 10px;
  width: 200px;
}

.footer-links button {
  background-color: #f9f9f9;
  color: #000;
  padding: 10px 20px;
  border: 2px solid #000;
  border-radius: 5px;
  font-weight: 450;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-links button:hover {
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 50px;
  position: relative;
}

.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  animation-name: fade;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

.logo {
  flex: 0 0 auto;
  flex: 1;
}

footer .social-icons {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 12px;
}

footer .social-icons img {
  width: 30px;
  height: 30px;
}

.lan-container {
  flex: 1;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.lan {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.lan-container a {
  text-decoration: none;
  font-size: 18px;
  color: black;
}

#subscribe {
  font-weight: 600;
}

#subscribe-text {
  font-weight: 400;
  font-size: 15px;
  color: black;
  margin-top: 0;
  margin-bottom: 15px;
}

.subscribe-btn {
  font-size: 15px;
}

.icon {
  cursor: pointer;
  transition: all 0.3s;
}

.icon:hover {
  opacity: 0.5;
  transform: translateY(-3px);
}

body {
  margin: 0;
  color: #000;
  background: #fff;
}
/*main part*/
.contact {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.contact img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  display: block;
}

.contact-text {
  font-style: normal;
  position: absolute;
  text-align: center;
  left: 50%;
  top: 50%;
  color: rgb(255, 255, 255);
  transform: translate(-50%, -50%);
}

.contact-text h1 {
  font-size: 5vw;
  margin-bottom: 5px;
  font-weight: 450;
}

.contact-container {
  background: #fff;
  margin: 100px auto 100px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  max-width: 1000px;
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.contact-container-text,
.contact-form {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 400px;
}
.contact-container-text h1 {
  margin-bottom: 90px;
  font-size: 28px;
  font-weight: 500;
}
.contact-container-text h2 {
  margin-bottom: 20px;
  font-size: 20px;
  color: #17689c;
  font-weight: 500;
}

.contact-container-text p {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 2;
}

.contact-form h2 {
  margin-bottom: 20px;
  font-size: 20px;
  color: #17689c;
  text-align: center;
  font-weight: 500;
}

.contact-form form input,
.contact-form form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 18px;
}

.contact-form form textarea {
  resize: vertical;
}

.contact-form form button {
  width: 100%;
  padding: 12px;
  background-color: white;
  color: #17689c;
  border: 2px solid #ccc;
  border-radius: 5px;
  font-size: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-form form button:hover {
  background-color: #17689c;
  border: none;
  color: white;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    padding: 15px;
  }
  .logo {
    text-align: center;
    margin-bottom: 5px;
    width: 100%;
  }
  .middle {
    width: 100%;
    justify-content: center;
    margin: 10px 0;
  }
  .middle a {
    font-size: 18px;
    margin: 0 5px;
  }
  .right {
    width: 100%;
    justify-content: center;
    margin-top: 5px;
    gap: 10px;
  }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 15px;
  }

  .footer-links div:last-child {
    grid-column: span 2;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 40px auto 0;
  }

  .footer-bottom .logo {
    text-align: center;
    margin: 0 0 10px;
    flex: none;
  }
}

@media (max-width: 480px) {
  .contact {
    max-height: 40vh;
  }
}
