/* ––––––––– HERO ––––––– */

section.hero {
  position: relative;
  padding-top: calc(var(--section-padding) + var(--header-height));

  background-position: center center;
  background-size: cover;
  isolation: isolate;
}

section.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(2, 25, 45, 0) 0%, rgba(2, 25, 45, 0.6) 114.62%);
  z-index: -1;

  pointer-events: none;
  user-select: none;
}
section.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.1) 100%);
  z-index: -1;

  pointer-events: none;
  user-select: none;
}

section.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-bottom: 4rem;
}
section.hero .container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 40%;
  height: 2px;
  background-color: var(--btn-bg);
}
section.hero .container img {
  max-width: 220px;
  margin-bottom: 1rem;
}
section.hero .container h1 {
  font-family: var(--font-playfair);
  font-size: var(--text-2xl);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--color-white);
  margin-bottom: 1rem;
}
section.hero .container p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--color-white);
}

/* ––––––––– BLOG ––––––––– */

section.blog > p {
  margin-top: 2rem;
  font-weight: 500;
  font-size: var(--text-lg);
  color: var(--color-secondary);
}

section.blog > ul {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 70%;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-snap-align: start;
  scrollbar-width: none;
  gap: 1rem;
  margin-top: 3rem;
}
section.blog > ul::-webkit-scrollbar {
  display: none;
}
section.blog > ul li {
  scroll-snap-align: center;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 1rem;
}
section.blog .btn {
  width: 100%;
  margin-top: 3rem;
}

@media screen and (min-width: 768px) {
  section.blog > ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: auto;
  }
  section.blog > ul li:nth-child(n + 4) {
    display: none;
  }

  section.blog .btn {
    padding: 12px 42px;
    margin-inline: auto;
    width: fit-content;
  }
}
