/* HOME PAGE */
.home-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* MAIN BANNER */
.home-brand {
  display: none;
}

/*Category-group*/
.posts-group {
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.small-cards,
.events-grid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 5px;
}

.section-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.section-more a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: var(--font-semibold);
  letter-spacing: 0.08em;
  transition: 0.25s ease;
}

.section-more a:hover {
  transform: translateX(4px);
}

/* ==========================================
   HOME PAGE BACKGROUND
========================================== */
body.home {
  position: relative;
}

.category-line {
  height: 1px;
  background-color: var(--color-orange);
}

/* LATEST POSTS */

.latest-posts__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 90%);
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;

  padding-bottom: 1rem;
}

.latest-posts__grid .post-card {
  scroll-snap-align: start;
}

.latest-posts-section .section-title {
  text-align: center;
  text-transform: uppercase;
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  letter-spacing: 0.08em;
}

@media (min-width: 768px) {
  /* MAIN_BANNER */
  .home-brand {
    max-height: 150px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;

    padding: 2.5rem 1rem 2rem;
  }

  .home-brand__identity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .home-brand__icon {
    width: 50px;
    flex-shrink: 0;
  }

  .home-brand__icon img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }

  .home-brand__title {
    margin: 0;

    font-family: var(--font-title);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-regular);
    line-height: 0.9;
    letter-spacing: 0.04em;
  }

  .home-brand__tagline {
    margin: 0;

    text-align: center;

    font-family: var(--font-title);
    font-size: var(--text-lg);
    font-style: italic;
  }

  /*CARDS*/
  .small-cards,
  .events-grid {
    flex-direction: row;
    overflow-x: auto;
    justify-content: space-between;
    width: 100%;
  }

  .latest-posts__grid {
    grid-auto-flow: initial;
    grid-auto-columns: initial;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    overflow: visible;
    scroll-snap-type: none;

    padding-bottom: 0;
  }

  .latest-posts-section .section-title {
    font-size: var(--text-3xl);
  }
}

@media (min-width: 1024px) {
  /*Main Banner*/
  .home-brand {
    /* min-height: 230px; */
    padding-block: 3rem 2.5rem;
  }

  .home-brand__icon {
    width: 80px;
  }

  .small-cards,
  .events-grid {
    padding-inline: 30px;
  }

  body.home::before {
    content: '';

    position: fixed;
    inset: 0;

    z-index: 0;
    pointer-events: none;
    /* 
    background:
      linear-gradient(rgba(244, 243, 242, 0.2), rgba(102, 102, 102, 0.35)),
      url('../../images/bg/bg-img.webp') center center / cover no-repeat; */
  }

  body.home #page {
    position: relative;
    z-index: 1;
  }
}
