/* General Styles */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: #2D2D2D;
  background-color: #F7F7F7;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
}

.navbar-links {
  display: flex;
  gap: 1.5em;
}

.navbar a, .dropbtn {
  text-decoration: none; /* This removes the underline */
  color: #2D2D2D;
  font-weight: 700;
  position: relative;
  transition: color 0.3s;
}


.navbar a::after, .dropbtn::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #112794;
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.navbar a:hover, .dropbtn:hover {
  color: #112794;
}

.navbar a:hover::after, .dropbtn:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.dropdown-content a {
  color: #2D2D2D;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropbtn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: #333;
  font-weight: 500;
  padding: 0;
  transition: color 0.3s, transform 0.3s;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 16px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobile Navbar */
.mobile-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  top: 1em;
  right: 1em;
}

.menu-line {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 4px 0;
  transition: transform 0.3s;
}

.mobile-navbar-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 20px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
}

.mobile-navbar-links a {
  padding: 15px 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  border-bottom: 1px solid #ddd;
  transition: background 0.3s ease;
}

.mobile-navbar-links a:hover {
  background: #f0f0f0;
}

.mobile-navbar-links.open {
  display: flex;
  max-height: 500px;
}

/* Media Queries */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .mobile-menu {
    display: flex;
  }
}

/* Ensure the main content is not hidden under the fixed header */
main {
  padding-top: 120px; /* Adjust this value if needed to make sure content isn't hidden under the navbar */
}

/* Contact Section */
.contact-section {
  padding: 4em 2em;
  background-color: #F0F0F0;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2em;
}

.contact-info,
.contact-form {
  background: #FFFFFF;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 300px;
}

.contact-info h3,
.contact-form h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5em;
  margin-bottom: 1em;
}

.contact-info p,
.contact-info ul,
.contact-info a {
  font-size: 1em;
  line-height: 1.6;
}

.contact-info a {
  display: inline-block;
  margin-top: 1em;
  background: #112794;
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
}

.contact-info a:hover {
  background: #112794;
}

.contact-form label {
  display: block;
  margin-top: 1em;
  font-size: 1em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  margin-top: 1em;
  background: #112794;
  color: #fff;
  padding: 0.5em 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #112794;
}

.contact-info iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* Responsive Image Styling */
.img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto; /* Center the image */
}

/* Footer */
footer {
  background: #2D2D2D;
  color: #fff;
  text-align: center;
  padding: 2em;
}

footer a {
  color: #112794;
  text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .navbar-links {
    flex-direction: column;
    width: 100%;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .contact-info iframe {
    height: 300px;
  }
  
  .hero-content img {
    width: 80%;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 1em;
  }

  .navbar a, .dropbtn {
    font-size: 1em;
  }
  
  .contact-form img {
    width: 100%;
  }
}
