/* Blog · Grid — template-parts/gf-blog-grid.php */

.gf-blog-grid {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
  background: #050507;
  color: #fff;
}

.gf-blog-grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, #ffcc00 0%, rgba(255, 204, 0, 0.16) 42%, transparent 74%);
}

.gf-blog-grid__head {
  margin: 0 0 clamp(1.6rem, 3vw, 2.4rem);
}

.gf-blog-grid__kicker {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffcc00;
}

.gf-blog-grid__title {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  color: #fff;
}

.gf-blog-grid__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
}

.gf-blog-card {
  min-width: 0;
}

.gf-blog-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
}

.gf-blog-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.95rem;
  aspect-ratio: 16 / 11;
  padding: 1.25rem;
  overflow: hidden;
  background: #15161c;
  border: 1px solid #3f3f3f;
}

.gf-blog-card__media img {
  width: auto;
  height: auto;
  max-width: 72%;
  max-height: 78%;
  object-fit: contain;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.gf-blog-card__link:hover .gf-blog-card__media img {
  transform: scale(1.04);
}

.gf-blog-card__cat {
  margin: 0 0 0.4rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9a227;
}

.gf-blog-card__title {
  margin: 0 0 0.55rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: var(--font-display), sans-serif;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.35;
  color: #fff;
}

.gf-blog-card__link:hover .gf-blog-card__title {
  color: #ffcc00;
}

.gf-blog-card__excerpt {
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.88rem;
  line-height: 1.55;
}

.gf-blog-card__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.42);
}

.gf-blog-card__dot {
  width: 0.18rem;
  height: 0.18rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.gf-blog-pager {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.gf-blog-pager .page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gf-blog-pager .page-numbers li {
  margin: 0;
}

.gf-blog-pager a.page-numbers,
.gf-blog-pager span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
}

.gf-blog-pager a.page-numbers:hover {
  border-color: #ffcc00;
  color: #ffcc00 !important;
}

.gf-blog-pager span.page-numbers.current {
  background: #ffcc00;
  border-color: #ffcc00;
  color: #08080a !important;
}

@media (max-width: 991px) {
  .gf-blog-grid__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gf-blog-grid__list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
