html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
*, *::before, *::after {
  box-sizing: border-box;
}
h1, h2, p {
  min-height: 1em;
  line-height: 1.2;
}
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background-color: #d6e4f0;
  color: #333;
}
header {
  background-color: #d6e4f0;
  text-align: center;
  padding: 1rem 1rem;
}
header img {
  max-width: 400px;
  height: auto;
}
header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: #1e3a5f;
  line-height: 1.2;
  min-height: 1.5em; /* reserve space */
}
header p {
  color: #3c4a59;
  font-size: 1.2rem;
  line-height: 1.5;
  min-height: 1em; /* reserve space */
}
.background {
  background: #d6e4f0;
}
nav {
  text-align: center;
  background-color: #1e3a5f;
  padding: 1rem;
}
nav a {
  color: #ffd700;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
}
.container {
  max-width: 1000px;
  margin-top: 2em;
  margin-bottom: 2em;
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: break-word;
}
.responsive-img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 3 / 2;
  margin: 0 auto;
}
.site-logo {
  width: 400px;
  height: 266px;
  aspect-ratio: 400 / 266;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 2rem;
}
.service-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  background: white;
  margin-bottom: 2rem;
  padding: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.service-card {
  display: block;
  text-decoration: none;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.service-card img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.service-card h2 {
  margin: 0;
  color: #1e3a5f;
  text-align: center;
  font-size: 1.5rem;
  min-height: 1.5em; /* reserve space */
}
.service-card p {
  color: #555;
  font-size: 0.95rem;
  min-height: 1em; /* reserve space */
}
.service-detail {
  background: #ffffff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.service-detail h2 {
  margin-top: 0;
  color: #1e3a5f;
  text-align: left;
  font-size: 1.5rem;
  min-height: 1.5em; /* reserve space */
}
.service-detail ul {
  padding-left: 1.2rem;
}
.service-detail li {
  margin-bottom: 0.75rem;
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}
.form-status {
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  border-radius: 5px;
  font-weight: bold;
}
.form-status.success {
  background: #d4edda;
  color: #155724;
}
.form-status.error {
  background: #f8d7da;
  color: #721c24;
}
form {
  background: #d6e4f0;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-top: 1rem;
}
form h2 {
  color: #1e3a5f;
  text-align: center;
  min-height: 1.5em; /* reserve space */
}
form label {
  display: block;
  margin-top: 1rem;
}
form input, form textarea {
  width: 97%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}
form button {
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  background-color: #1e3a5f;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
footer {
  background-color: #1e3a5f;
  text-align: center;
  padding: 1.5rem;
  color: white;
}
footer a {
  color: #ffd700;
  text-decoration: none;
}
table { 
width: 100%; 
border-collapse: collapse; 
margin-top: 1rem; 
}
th, td { 
padding: 12px 15px; 
text-align: left; 
border-bottom: 1px solid #ccc; 
}
th { 
background-color: #e3effa; 
color: #1e3a5f; 
}
tr:hover { 
background-color: #f1f9ff; 
}
p { 
line-height: 1.6; 
min-height: 1em; /* reserve space */
}
/* Mobile Nav Bar */
.navbar {
  width: 100%;
  max-width: 100vw;
  background-color: #0c2c53;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.hamburger {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  display: none;
  cursor: pointer;
}
.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  text-decoration: none;
  color: #ffcc00;
  font-weight: 500;
}
.nav-links li a:hover {
  text-decoration: underline;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 0;
}
.hamburger {
  width: 35px;
  height: 35px;
  position: relative; /* keeps bars positioned within the button */
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.hamburger .bar {
  position: absolute;
  width: 24px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
/* Default bar positions */
.hamburger .bar:nth-child(1) {
  transform: translateY(-8px);
}
.hamburger .bar:nth-child(2) {
  transform: translateY(0);
}
.hamburger .bar:nth-child(3) {
  transform: translateY(8px);
}
/* Active: transform into X */
.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg);
}
.nav-links {
  display: none;
  flex-direction: column;
  background-color: #0c2c53;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100vw; /* force full width of viewport */
  max-width: 100vw;
  padding: 1rem 0;
  text-align: center;
  z-index: 999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}
.nav-links.show {
  display: flex;
  max-height: 500px; /* enough to show all items */
}
.nav-links li {
  padding: 1rem 0;
  width: 100%;
}
.nav-links li a {
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  display: block;
  color: #ffcc00;
  text-decoration: none;
}
}
@media (min-width: 769px) {
.navbar {
  justify-content: center;
  padding: 1rem; /* restore horizontal padding */
}
.hamburger {
  display: none; /* hide hamburger on desktop */
}
.nav-links {
  display: flex !important;
  flex-direction: row;
  gap: 1rem;
  position: static;
  width: auto;
  padding: 0;
  background: none;
}
.nav-links li {
  padding: 0;
}
.nav-links li a {
  font-weight: bold;
  font-size: 1rem;
  color: #ffcc00;
}
}