.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 {
    margin: 0;
    padding: 0;
    width: 100%; /* Ensures body does not exceed viewport */ 
    overflow-x: hidden;
}

.menuOption {
  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;
}

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

.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;
}

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

  
  .team-section{
    width: 85%;
    margin: auto;
    text-align: center;
  }

  .team-section h2 {
    font-size: 45px;
    color: #000;
    margin-bottom: 30px;
  }

  .team-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .team-member {
    width: 20%;
    min-width: 180px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 10px;
    text-align: center;
    transition: 0.3s ease;
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }


  .team-member:hover{
    transform: translateY(-10px);
  }

  .team-member img{
    border-radius: 50%;
    border: 4px solid #0d2543;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
  }

  .team-member h3 {
    font-size: 1.5rem;
    color: #af8c30;
    margin-bottom: 10px;
  }

  .team-member .title{
    font-size: 1rem;
    color: #0d2543;
    margin-bottom: 10px;
    font-family: 'Instrument Sans', sans-serif;
  }
  
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: 450ms ease-in-out;
    border: 1px solid black;
    border-radius: 10px;
    z-index: 10;
    background-color: white;
    width: 90%;
    max-width: 800px; 
    min-height: 70vh;
    max-height: 90vh; 
    overflow-y: auto; 
}

.modal.active {
    transform: translate(-50%, -50%) scale(1);
}

.modalHeader {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid black;
}

.modalHeader .modalTitle {
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Instrument Sans', sans-serif;

}

.modalHeader .closeButton {
    cursor: pointer;
    border:none;
    outline: none;
    background: none;
    font-size: 1.25rem;
    font-weight: bold;
}

.modalText {
  font-family: 'Instrument Sans', sans-serif;
  padding: 10px 15px;
  gap: 10px;
}

.modalBody {
    padding: 10px 15px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}


.modalImage img{
    flex: 0 0 auto;
    width: auto;
    height: auto;
    max-width: 16rem;
    max-height: 16rem;
}

#overlay {
    position: fixed;
    transition: 450ms ease-in-out;
    opacity: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    pointer-events: none;
}

#overlay.active{
    opacity: 1;
    pointer-events: all;
}

#overlay.active ~ .team-section .team-member:hover {
    transform: none;
}


/* 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-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;}

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

/* 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;
}

/* 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;
}

/* 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;
}


/* 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; 
  }
}
/* fix for modal/overlay clash with banner */
#overlay {
  z-index: 999;
}

.modal {
  z-index: 1000;
}