* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: #fff;
  background-image: var(--bg-image, none);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  color: #222;
  background-color: transparent;
  background-image: none;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #1b4332;
  color: #fff;
  padding: 1.5rem 2rem;
  text-align: center;
  position: relative;
}

header h1 {
  font-size: 2.5rem;
  letter-spacing: 1px;
}

.brand h1 {
  font-size: 2.5rem;
  letter-spacing: 1px;
}

.brand p {
  margin-top: 0.25rem;
}

/* Hamburger Menu */

.menu-toggle {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;

  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;

  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;

  background: #fff;
  border-radius: 2px;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu {
  position: fixed;
  top: 0;
  left: 0;

  height: 100vh;
  width: 260px;

  background: #fff;
  border-right: 1px solid #ddd;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);

  transform: translateX(-100%);
  transition: transform 0.3s ease;

  z-index: 1200;
}

.menu.open {
  transform: translateX(0);
}

.menu ul {
  list-style: none;
  padding-top: 1rem;
}

.menu li {
  margin: 0;
}

.menu a {
  display: block;
  padding: 1rem 1.5rem;

  color: #222;
  text-decoration: none;
  font-weight: 600;

  border-bottom: 1px solid #eee;
}

.menu a:hover {
  background-color: #e8f5e9;
  color: #0e754c;
}

.menu a.active {
  color: #0e754c;
  background-color: #e8f5e9;
}

.menu-backdrop {
  position: fixed;
  inset: 0;

  background-color: rgba(0, 0, 0, 0.4);

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.3s ease;

  z-index: 1150;
}

.menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

main {
  width: 100%;
  flex: 1;
  padding: 2rem 1.5rem 5rem;
}

section {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;

  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;

  max-width: 800px;

  border: 1px solid rgba(0, 0, 0, 0.12);

  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.25),
    0 12px 32px rgba(0, 0, 0, 0.25);
}

h2 {
  color: #000;
  border-bottom: 2px solid #00a665;

  padding-bottom: 0.3rem;
  margin-bottom: 1rem;

  font-size: 1.4rem;
}

.mission p {
  margin-bottom: 0.75rem;
}

.links ul {
  list-style: none;
}

.links li {
  margin-bottom: 0.5rem;
}

.links a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
}

.links a:hover {
  color: #0e754c;
  text-decoration: underline;
}

/* Staff Cards */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(220px, 1fr)
  );
  gap: 1.25rem;
}

.staff-card {
  background: #fff;

  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

  padding-bottom: 1rem;

  text-align: center;
}

.staff-photo {
  width: 100%;
  aspect-ratio: 1 / 1;

  background-color: #f0f0f0;

  overflow: hidden;
}

.staff-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;
}

.staff-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 3rem;
  font-weight: 700;

  color: #1b4332;
  background-color: #e8f5e9;
}

.staff-name {
  margin: 0.75rem 0 0.2rem;

  color: #1b4332;
  font-size: 1.2rem;
}

.staff-title {
  color: #00a665;
  font-weight: 600;
  font-size: 0.9rem;

  margin-bottom: 0.5rem;
}

.staff-tenure {
  color: #1b4332;
  font-weight: 600;
  font-size: 0.9rem;

  margin-bottom: 0.5rem;
}

.staff-bio {
  padding: 0 1rem;

  color: #555;
  font-size: 0.95rem;

  margin-bottom: 0.5rem;
}

/* Modal Styles */

body.modal-open {
  overflow: hidden;
}

.modal {
  display: flex;
  position: fixed;

  z-index: 1000;

  left: 0;
  top: 0;

  width: 100%;
  height: 100%;

  background-color: transparent;

  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);

  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;

  padding: 2rem;
  border-radius: 8px;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);

  max-width: 400px;
  width: 90%;

  position: relative;
}

.modal-content h2 {
  margin-top: 0;

  border-bottom: 2px solid #00a665;

  padding-bottom: 0.5rem;
  margin-bottom: 1rem;

  color: #1b4332;
}

.modal-content p {
  margin-bottom: 1.5rem;
  color: #666;
}

#accessCodeForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#accessCodeInput {
  padding: 0.75rem;

  border: 1px solid #ddd;
  border-radius: 4px;

  font-size: 1rem;
  font-family: Arial, sans-serif;

  transition: border-color 0.2s ease;
}

#accessCodeInput:focus {
  outline: none;

  border-color: #00a665;

  box-shadow: 0 0 0 3px rgba(0, 166, 101, 0.1);
}

.submit-btn {
  padding: 0.75rem;

  background-color: #1b4332;
  color: #fff;

  border: none;
  border-radius: 4px;

  font-size: 1rem;
  font-weight: 600;

  cursor: pointer;

  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background-color: #0e754c;
}

.submit-btn:active {
  background-color: #0a4c31;
}

/* Coarse Pointer Styles */

@media (pointer: coarse) {
  * {
    cursor: auto;
  }

  button,
  a,
  [role="button"] {
    cursor: pointer;
    padding: 0.75rem;
  }

  .links a {
    padding: 0.5rem;
    border-radius: 4px;
  }

  .links a:active {
    background-color: #e8f5e9;
  }
}

/* Fine Pointer Styles */

@media (pointer: fine) {
  * {
    cursor: auto;
  }

  button,
  a,
  [role="button"] {
    cursor: pointer;
  }

  .links a {
    transition:
      color 0.2s ease,
      text-decoration 0.2s ease;
  }

  .links a:hover {
    color: #0e754c;
    text-decoration: underline;
  }
}

/* Footer */

footer {
  position: fixed;
  bottom: 0;
  left: 0;

  width: 100%;

  text-align: center;

  padding: 1rem;

  color: #777;
  font-size: 0.9rem;
}

footer p {
  display: inline-block;

  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;

  padding: 0.15rem 0.5rem;
}
