/* Shared styles for all pages */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f9fa;
}

/* Base Headings */
h1, h2, h3, h4 {
  font-weight: 400;
  color: #222;
  line-height: 1.3;
}

/* Shared Button */
.btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background-color: #1f9edb;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #0782bd;
}

.btn-primary:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Header */
.header {
  display: flex;
  height: 80px;
  max-width: 100%;
  background: #03415E;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Hamburger Menu Icon */
.hamburger-menu {
  display: none; /* Hidden by default, shown on small screens */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  padding: 5px;
  position: absolute; /* Position it within the header */
  top: 50%;
  transform: translateY(-50%);
  right: 20px; /* Adjust as needed */
  z-index: 1001; /* Ensure it's above other elements */
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 3px;
}

.nav-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.menulink {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.menulink:hover {
  background: rgba(255,255,255,0.12);
}

.hasdrop {
  position: relative;
}

.menudrop {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%; /* Position directly below parent link */
  left: 50%;
  transform: translateX(-50%);
  background: #03415E;
  padding: 15px;
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hasdrop:hover .menudrop {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.droplink {
  display: block;
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 15px;
}

.droplink:hover {
  background: rgba(255,255,255,0.1);
}

.logo-section {
  width: auto;
  max-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center; /* Center the new logo */
  gap: 15px;
}

.new-logo {
  max-width: 100%; /* Ensure logo scales within its container */
  height: auto; /* Maintain aspect ratio */
  filter: brightness(0) invert(1); /* Change dark logo to white */
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

/* Content Blocks */
.mainblock {
  display: flex;
  margin: 60px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
}

.imageblock {
  flex: 0 0 45%;
}

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

.textblock {
  flex: 1;
  padding: 50px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.textblock h1 {
  font-size: 2.5rem;
  margin: 0 0 25px 0;
  font-weight: 400;
  color: #222;
}

.textblock h2 {
  font-size: 1.8rem;
  margin: 20px 0 15px 0;
  font-weight: 400;
  color: #333;
}

.textblock p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 18px;
  color: #333;
}

.textblock ul {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 18px;
  padding-left: 25px;
}

.textblock li {
  margin-bottom: 10px;
}

.textblock strong {
  font-weight: 600;
}

/* Contact Form */
.formmain {
  max-width: 600px;
  margin: 60px auto;
  padding: 40px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.instructions {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #03415E;
  text-align: center;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form label {
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
}

.smallbox {
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.smallbox:focus {
  border-color: #1f9edb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(31,158,219,0.15);
}

.largebox {
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  min-height: 150px;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.largebox:focus {
  border-color: #1f9edb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(31,158,219,0.15);
}

/* Inline form messages */
.form-message {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
  margin-top: 20px;
}

.form-message.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.submitButton {
  margin-top: 20px;
}

/* Footer */
.footer-section {
  background: #03415E;
  padding: 30px 40px;
  margin-top: 80px;
}

.footer {
  color: white;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footerlink {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  display: inline-block;
  margin-bottom: 15px;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.footerlink:hover {
  background: rgba(255,255,255,0.12);
}

.footer p {
  font-size: 0.875rem;
  margin: 8px 0;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
  .hamburger-menu {
    display: flex; /* Show hamburger menu on small screens */
  }

  .nav-section {
    display: none; /* Hide by default */
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background: linear-gradient(135deg, #2c5f7f 0%, #1a4d6b 100%); /* Re-add background for nav when open */
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-section.open {
    display: flex; /* Show when open */
    opacity: 1;
    visibility: visible;
  }

  .menulink, .droplink {
    font-size: 1.5rem; /* Larger links for mobile */
    padding: 15px;
  }

  .hasdrop:hover .menudrop {
    display: none; /* Hide dropdowns on mobile by default */
  }

  .main-content {
    padding: 40px 20px;
  }

  .mainblock {
    flex-direction: column;
  }

  .imageblock {
    flex: 0 0 auto;
    max-height: 300px;
  }

  .textblock {
    padding: 30px;
  }

  .textblock h1 {
    font-size: 2rem;
  }

  .formmain {
    padding: 25px;
  }
}
