.navBar {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  background-color: #0d2543;
  width: 100%;
  margin: 0;  
  height: 120px;
  align-items: center;
  flex-wrap: wrap;
}

.topText {
  color: white;
  font-size: 40px;
  font-family: Inria Serif;
  font-weight: 500;
  word-wrap: break-word;
  margin-left: 20px;
}

.bottomText {
  color: white;
  font-size: 22px;
  font-family: Inria Serif;
  line-height: 15.86px;
  letter-spacing: 3.72px;
  font-weight: 1000;
  word-wrap: break-word;
  text-align: center;
  margin-left: 20px;
  margin-top: 8px;
}

.topText a {
  color: white;
  text-decoration: none;
}

.bottomText a {
  color: white;
  text-decoration: none;
}

.navBar li {
  list-style: none;
}

.navLogo {
  display: flex;
  flex-direction: column; /* Stack text vertically */
  color: white;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: bold;
  letter-spacing: 1.5px;
  line-height: 1; /* Reduce spacing between lines */
  text-align: center;
}

.navLogoFooter{
  display: flex;
  flex-direction: column; /* Stack text vertically */
  color: white;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: bold;
  letter-spacing: 1.5px;
  line-height: 1; /* Reduce spacing between lines */
  text-align: center;
}

.navItems {
  display: flex;
  flex-direction: row;
  gap: 40px; /* Adds space between menu items */
  list-style: none;
  align-items: center;
  text-align: center;
}

html, body {
    padding: 0;
    width: 100%; /* Ensures body does not exceed viewport */ 
    overflow-x: hidden;
    margin: 0;
}

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.menuOption {position: static;
  bottom:0;
  color: white; 
  font-size: 1rem; 
  font-family: Instrument Sans; 
  font-weight: 700; 
  line-height: 14.64px; 
  letter-spacing: 3.60px; 
  list-style: none;
  text-align: center;
  position: relative;
  display: inline-block;
}


.navOption {
  color: white; 
  font-size: 14px; 
  font-family: Instrument Sans; 
  font-weight: 700; 
  line-height: 14.64px; 
  letter-spacing: 3.60px; 
  list-style: none;
  text-align: center;
  position: relative;
  display: inline-block;
}

/* #4: https://prismic.io/blog/css-hover-effects */
.navOption::after,
.navOption::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, white, white);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.navOption::before {
  top: -5px;
  transform-origin: left;
}

.navOption:hover::after,
.navOption:hover::before {
  transform: scaleX(1);
}


a {
  text-decoration: none;
}

.navOption a {
  color: white;  /* white color for all links inside navOption */
  text-decoration: none; /* Remove underline */
  display: block;
  text-align: center;
  white-space: nowrap;
}

.findAGraveButton {
  width: 154px; 
  height: 40px; 
  background: #af8c30; 
  border-radius: 19px;
  border-style: solid;
  border-color: #af8c30;
  color: white;
  font-weight: 700; 
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s ease;
}

.findAGraveButton:hover {
  color: black;
  background: white;
  border-color: black;
}

* {
  margin: 0;
  padding: 0;
}


.aboutInfo {
  color: black;
  font-size: 3.125rem;
  font-family: Instrument Sans;
  font-weight: 600;
  margin-top: 1.775rem;
  margin-bottom: 0.775rem;
  text-align: center;
}


.footer {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  background-color: #af8c30;
  width: 100%;
  margin: 0;  
  padding: 20px; 
  height: 90px;
  align-items: center;
  bottom:0;
  margin-top: auto
}

.content {
  flex: 1; /* pushes footer down */
}

.footerColumns {
  display: flex;
  flex-direction: column;
}


.footerTop {
  color: white;
  font-size: 20px;
  font-family: Inria Serif;
  font-weight: 500;
  word-wrap: break-word;
  margin-left: 40px;
  text-align: center;
  text-decoration: none;
}

.footerTopTitle {
  color: white;
  font-size: 30px;
  font-family: Inria Serif;
  font-weight: 500;
  word-wrap: break-word;
  margin-left: 40px;
  margin-bottom: 10px;
  text-align: center;
}

.footerBottom {
  color: white;
  font-size: 20px;
  font-family: Inria Serif;
  line-height: 15.86px;
  font-weight: 500;
  word-wrap: break-word;
  text-align: center;
  margin-left: 40px;
  text-align: center;
}


/* Dropdown Button */
/* credit: https://www.w3schools.com/howto/howto_js_dropdown.asp */
.dropbtn {
  background-color: #0d2543;
  color: white;
  padding: 16px;
  font-size: 20px;
  border: none;
  cursor: pointer;
  display: none;
  font-size: 20px; 
  font-family: Inria Serif; 
}

/* Dropdown button on hover & focus */
.dropbtn:hover, .dropbtn:focus {
  background-color: #0d2543;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: none;
}

.dropdown{
  color: white; 
  font-size: 18px; 
  font-family: Inria Serif; 
  font-weight: 700; 
  line-height: 14.64px; 
  letter-spacing: 3.60px; 
  list-style: none;
  text-align: center;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
}

/* Links inside the dropdown */
.dropdown-content a {
  color: #0d2543;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd;}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}

.search{
  --padding: 14px;
  border-radius: 28px;
  background: #f6f6f6;
  width: 80%;
  margin-left: 10%;
}

.search-input{
  font-size: 16px;
  font-family: 'Lexend', sans-serif;
  color: #333333;
  outline: none;
  border: none;
  background: transparent;
  height: 4rem;
}

.sectionFilter{
    width: 30%;
    box-sizing: border-box;
    font-size: 16px;
    border-radius: 28px;
    background: #f6f6f6;
    cursor: pointer;
    min-width: 200px;
    font-family: 'Lexend', sans-serif;
    color: #333333; 
    border: none;
    height: 2rem;
    padding: 14px;  
    margin-bottom: 15px; 
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.search-input::placeholder,
.search-icon{
  color: rgba(0, 0, 0, 0.5);
}

.search > div {
  display: flex;
  align-items: center;
  padding-left: var(--padding);
}

.sectionFilter > div {
  display: flex;
  align-items: center;
  padding-left: var(--padding);
}

.search-icon {
  color: rgba(0, 0, 0, 0.5);
  margin-right: 10px; /* Space between icon and input */
}


.resident-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resident-card:hover {
  transform: scaleY(1.01); /* makes it pop */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-btn {
  background-color: #0d2543;
  color: #fff;
  border: none;
  padding: 8px 16px;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.page-btn:hover {
  background-color: #4e6078;
}

@media (max-width: 900px){
  .navOption, .findAGraveButton{
    display: none;
  }
  .dropbtn{
    display: block;
  }
  .dropdown{
    display: inline-block;
  }
  .navLogo {
    width: 50%;
  }
  .navLogoFooter{
    display: none;
  }
  .footerColumns {
    width: 50%;
  }
  .footerTop, .footerBottom, .footerTopTitle{
    font-size: 1.2rem;
  }
  html, body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

}


.input-title{
  display: inline-block; 
  width: 80%; 
  margin-left: 10%; 
  padding: 0.6rem; 
  font-weight: bold; 
  font-size: 1.5rem; 
  font-family: 'Instrument Sans', sans-serif;
}


.input-title2{
  display: inline-block; 
  width: 80%; 
  padding: 0.2rem; 
  font-weight: bold; 
  font-size: 1.2rem; 
  font-family: 'Instrument Sans', sans-serif;
  text-align: center;
  min-width: 250px;
}

@media (max-width: 600px){
    .input-title{
      text-align: center;
      margin-left: 0;
      width: 100%;
    }
    .input-title2{
      text-align: center;
      margin-left: 0;
      width: 100%;
    }
  }


  /* Hero section with parallax background */
.bg-hero {
  position: relative;
  background: url("img/nisky.jpg") center/cover no-repeat; 
  color: #fff;
  min-height: 45vh;   /* adjust height (70% of viewport) */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* dark overlay for readability */
.bg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* darker overlay for better text contrast */
}

/* content sits above overlay */
.bg-hero .content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

/* tighter spacing for this hero */
.bg-hero .historyHeader {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: #fff;
}

.bg-hero .historyInfo {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: #fff;
}

/* Base block styles */
.block{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(1rem, 2vw, 2rem);
  padding: var(--panel-pad) clamp(1rem, 4vw, 4rem);
  width:100%;
  max-width: 100%;
  overflow:hidden;
  box-sizing: border-box;
}

/* Centered panels */
.block.center{ 
  grid-template-columns: 1fr; 
  text-align:center; 
}

/* Narrow content wrapper */
.block .narrow{ 
  max-width: 800px; 
  margin: 0 auto; 
}

/* Content area */
.block .content{
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 1rem;
  align-self: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 0;
  box-sizing: border-box;
}

/* Base heading styles */
.historyHeader {
  color: black; 
  font-size: 3.125rem; 
  font-family: Instrument Sans; 
  font-weight: 600; 
  margin-top: 1.775rem; 
  text-align: center;
}

.historyInfo {
  color: black; 
  font-size: 30px; 
  font-family: Inria Serif; 
  font-weight: 400; 
  word-wrap: break-word; 
  margin-bottom: 20px; 
  text-align: center;
}

/* Optional entrance animation */
@keyframes fadeUp { 
  from{opacity:0; transform: translateY(12px);} 
  to{opacity:1; transform:none;} 
}
.block{ 
  animation: fadeUp .5s ease both; 
}

/* Responsive stacking */
@media (max-width: 1000px){
  .block{
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: clamp(2rem, 5vw, 3rem) 1rem;
  }
  .historyHeader{ 
    font-size: 2.25rem; 
  }
  .historyInfo{ 
    font-size: 1.25rem; 
  }
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.filterFlex{
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 7rem;
}

@media (max-width: 600px){
  .filterFlex{ 
    flex-direction: column;
    gap: 0;
  }
  .input-title2{
    min-width: 0;
  }
}


