/* HOMEPAGE */

.container.history-home-container {
  max-width: 1275px;
  padding-inline: 1.5rem;
  main {
    padding-top: 4rem;
  }
  .entry-homepage-content,
  .entry-header {
    text-align: center;
  }
  .entry-homepage-title {
    font-size: clamp(1.9rem, 5vw, 2.5rem);
  }
  .entry-homepage-content {
    padding: 20px 0;
    max-width: 800px;
    margin: 0 auto;
    p {
      font-size: 1.3rem;
    }
  }
}

/* Top Homepage Tile */
.top-homepage-tile-wrapper {
  display: grid;
  grid-template-columns: 1fr;
}
.top-homepage-tile {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: transform 0.3s ease;
  border-radius: 6px;
  a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    z-index: 10;
  }
  &:hover,
  &:active {
    transform: translateY(-3px);
  }
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-color);
    z-index: 1;
    transition: opacity 0.3s ease;
  }
  /* Darker overlay on hover */
  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  &:hover::after,
  &:active::after {
    opacity: 1;
  }
  .top-homepage-tile-content {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    .top-homepage-tile-title {
      font-size: 1.5rem;
      font-family: "RockwellStd", serif;
      margin: 0 0 1rem 1.5rem;
      line-height: 1.2;
      color: white;
      &:hover,
      &:active {
        text-decoration: underline;
      }
    }
    .top-homepage-tile-text {
      font-size: 1.125rem;
      line-height: 1.6;
      margin: 0;
      max-width: 600px;
      color: white;
    }
  }
}
h2.h1-style-centered {
  font-size: 1.9rem;
  line-height: 1;
  font-family: "RockwellStd", serif;
  color: #2c5573;
  text-align: center;
  margin-top: 3.75rem;
}

/* Bottom Homepage Tiles */
.bottom-homepage-tiles {
  max-width: 1275px;
  margin: 3.75rem auto 7.5rem;
}

.bottom-homepage-tiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.875rem;
}

.bottom-homepage-tile {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  border-radius: 6px;
  transition: transform 0.3s ease;
  a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    z-index: 10;
  }
  &:hover,
  &:active {
    transform: translateY(-3px);
  }
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tile-overlay);
    z-index: 1;
    transition: opacity 0.3s ease;
  }
  /* Darker overlay on hover */
  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  &:hover::after,
  &:active::after {
    opacity: 1;
  }
  .bottom-homepage-tile-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    width: 100%;

    .bottom-homepage-tile-title {
      font-family: "RockwellStd", serif;
      font-weight: normal;
      font-size: 1.3rem;
      margin: 0 0 10px 0;
      line-height: 1.3;
      color: #ffffff;
    }
    .bottom-homepage-tile-text {
      font-size: 1rem;
      line-height: 1.5;
      margin: 0;
      color: white;
    }
    .bottom-homepage-tile-title:hover {
      text-decoration: underline;
    }
  }
}

@media only screen and (min-width: 64.063em) {
  .top-homepage-tile {
    min-height: 700px;
  }
  .bottom-homepage-tiles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.875rem;
  }
  .bottom-homepage-tiles {
    margin-top: 3.75rem;
  }
}

/* FOOTER */
.footer-site-title {
  font-size: 1.5rem;
  font-family: "RockwellStd", serif;
  margin-top: 1rem;
  color: #ffffff;
}
