article {
    --img-scale: 1.001;
    --title-color: black;
    --link-icon-translate: -20px;
    --link-icon-opacity: 0;
    position: relative;
    border-radius: 16px;
    box-shadow: none;
    background: #fff;
    transform-origin: center;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
  }
  
  article a::after {
    position: absolute;
    inset-block: 0;
    inset-inline: 0;
    cursor: pointer;
    content: "";
  }
  
  /* basic article elements styling */
  article h2 {
    margin: 0 0 18px 0;
    font-size: 1.9rem;
    color: var(--title-color);
    transition: color 0.3s ease-out;
  }
  
  figure {
    margin: 0;
    padding: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }
  
  article img {
    max-width: 100%;
    transform-origin: center;
    transform: scale(var(--img-scale));
    transition: transform 0.4s ease-in-out;
  }
  
  .article-body {
    padding: 24px;
  }
  
  article a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #28666e;
  }
  
  article a:focus {
    outline: 1px dotted #28666e;
  }
  
  article a .icon {
    min-width: 24px;
    width: 24px;
    height: 24px;
    margin-left: 5px;
    transform: translateX(var(--link-icon-translate));
    opacity: var(--link-icon-opacity);
    transition: all 0.3s;
  }
  
  /* using the has() relational pseudo selector to update our custom properties */
  article:has(:hover, :focus) {
    --img-scale: 1.1;
    --title-color: #28666e;
    --link-icon-translate: 0;
    --link-icon-opacity: 1;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
  }
  
  
  /************************ 
  Generic layout (demo looks)
  **************************/
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  .space {
    margin: 0;
    padding: 48px 0;
    font-size: 1.2rem;
    line-height: 1.6rem;
    /* min-height: 100vh; */
  }
  
  /* .articles {
    display: grid;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
  } */
  
  @media screen and (max-width: 960px) {
    article {
      container: card/inline-size;
    }
    .article-body p {
      display: block;
    }
  }
  
  @container card (min-width: 380px) {
    .article-wrapper {
      display: grid;
      grid-template-columns: 100px 1fr;
      gap: 16px;
    }
    .article-body {
      padding-left: 0;
    }
    figure {
      width: 100%;
      height: 100%;
      overflow: hidden;
    }
    figure img {
      height: 100%;
      aspect-ratio: 1;
      object-fit: cover;
    }
  }
  
  .sr-only:not(:focus):not(:active) {
    clip: rect(0 0 0 0); 
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap; 
    width: 1px;
  }



/* 
.shadow {
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
} */


.RaiseNavBtn{
  font-weight: 600;
  font-size: 2%;
  text-transform: uppercase;
  color: #877b76; /* muted grey */
  transition: color 0.3s ease;
  border: none;
  outline: none;
  background-color: white;
}


.RaiseNavBtn:hover{
color: #007c6d; /* brand teal hover */
background-color: white;
}



.nav-item {
  list-style-type: none;
}

/* Underline for active page */
.navbar-nav .nav-link.active {
  color: #7d7d7d;
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: #7d7d7d;
}


.navbar-nav .nav-link{
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #7d7d7d;
}

.navbar-nav .nav-link.active::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #7d7d7d;
}


.location-wrapper {
  position: relative;
  width: 200px;
}

.city-select {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border-radius: 30px;
  border: 2px solid #1fa78a;
  background: linear-gradient(to right, #ffffff, #f4fdfb);
  font-weight: 600;
  color: #0f6f63;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover */
.city-select:hover {
  border-color: #ffcf01;
}

/* Focus */
.city-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 207, 1, 0.3);
}

/* Custom Arrow */
.location-wrapper::after {
  content: "▾";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #1fa78a;
  pointer-events: none;
}
