/* style.css */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #ffffff;
}

header {
  background-color: #003366;
  color: white;
  padding: 1rem 0;
  position: relative;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: opacity 0.5s, transform 0.5s;
}

h1 {
  margin: 0 auto;
}

nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: max-height 0.3s ease;
}

nav li {
  margin: 0 0.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 24px;
  transition: background 0.2s;
  display: block;
}

nav a:hover,
nav a.active {
  background: #0055a5;
}

.hamburger {
  display: none;
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 10001;
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    background: #003366;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  nav ul.open {
    max-height: 400px;
    padding-bottom: 1rem;
  }
  nav li {
    margin: 0.5rem 0;
    width: 100%;
  }
  nav a {
    width: 100%;
    padding: 1rem;
  }
}

section {
  padding: 2rem;
  border-bottom: 1px solid #ddd;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #003366;
  color: white;
}

@media screen and (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  section {
    padding: 1rem;
  }
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.1rem;
  margin-top: 0.5rem;
}

.image-grid img {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.05);
}

.image-grid figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0; /* Ensure no extra space around figures */
}

.image-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #ffffff;
  text-align: center;
}

/* Example for index.html header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

button.hamburger {
  display: none;
}

@media screen and (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
  }

  header h1 {
    font-size: 1.5rem;
  }

  button.hamburger {
    display: block;
  }
}

/* Optional: Add a semi-transparent overlay for readability */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(2, 12, 22, 0.479);
  z-index: -1;
  pointer-events: none;
}


.lightbox-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999;
}
.lightbox-modal img {
  max-width: 90%;
  max-height: 90%;
}
.lightbox-modal .close {
  position: absolute;
  top: 10px; right: 20px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

#quick-links-address {
  background: #111;
  color: #fff;
  padding: 32px 0 16px 0;
  border-top: 1px solid #222;
}
.footer-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.footer-column {
  flex: 1 1 220px;
  min-width: 220px;
  margin-bottom: 24px;
}
.footer-links,
.footer-social {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li,
.footer-social li {
  margin-bottom: 8px;
}
.footer-links a,
.footer-social a,
.footer-column address a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover,
.footer-social a:hover,
.footer-column address a:hover {
  color: #ffd700;
}
.icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
}
.footer-column address {
  font-style: normal;
  line-height: 1.7;
  font-size: 1rem;
}

/* Responsive styles */
@media (max-width: 700px) {
  .footer-container {
    flex-direction: column;
    gap: 0;
  }
  .footer-column {
    margin-bottom: 32px;
  }
}

/* Hide header when scrolling down */
header.hide-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-40px);
}

/* Show header when scrolling up */
header.show-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}