/* Latest Insights — original overlay cards on a white section */

.home-blog {
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: #111;
  background: #fff !important;
  background-image: none !important;
  font-family: var(--ayenyx-font, 'Outfit', Verdana, sans-serif);
}

.home-blog__container {
  width: min(var(--ayenyx-container, 1120px), calc(100% - (2 * var(--ayenyx-gutter)))) !important;
  margin: 0 auto;
  padding: var(--ayenyx-home-py, clamp(3.75rem, 6.5vw, 5.25rem)) 0;
}

.home-blog__header {
  max-width: none;
  margin: 0 0 clamp(2.25rem, 4vw, 3.25rem);
  text-align: left;
}

.home-blog__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 100%;
}

.home-blog__title {
  margin: 0;
  color: #111 !important;
  font-size: clamp(2.05rem, 3.4vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.home-blog__lead {
  margin: 0;
  max-width: 100%;
  color: #6a6a70 !important;
  font-size: 16px;
  line-height: 1.65;
}

.home-blog__tag {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 0.75rem !important;
  color: var(--ayenyx-secondary, #fbaa25) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
}

.home-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}

.home-blog__card-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.home-blog__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: #111;
}

.home-blog__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-blog__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0.72) 100%
  );
  transition: background 0.45s ease;
}

.home-blog__date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 5, 5, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.home-blog__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-blog__category {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  background: var(--ayenyx-secondary, #fbaa25);
  color: #111;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-blog__card-title {
  margin: 0 0 0.6rem;
  color: #fff !important;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 700;
  line-height: 1.35;
}

.home-blog__excerpt {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  line-height: 1.6;
}

.home-blog__cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-blog__cta::after {
  content: '→';
  margin-left: 0.4rem;
  color: var(--ayenyx-secondary, #fbaa25);
  transition: transform 0.25s ease;
}

.home-blog__card-link:hover .home-blog__media img,
.home-blog__card-link:focus-visible .home-blog__media img {
  transform: scale(1.08);
}

.home-blog__card-link:hover .home-blog__overlay,
.home-blog__card-link:focus-visible .home-blog__overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(20, 20, 20, 0.72) 45%,
    rgba(10, 10, 10, 0.92) 100%
  );
}

.home-blog__card-link:hover .home-blog__content,
.home-blog__card-link:focus-visible .home-blog__content {
  opacity: 1;
  transform: translateY(0);
}

.home-blog__card-link:hover .home-blog__date,
.home-blog__card-link:focus-visible .home-blog__date {
  opacity: 0;
  transform: translateY(-6px);
}

.home-blog__card-link:hover .home-blog__cta::after,
.home-blog__card-link:focus-visible .home-blog__cta::after {
  transform: translateX(4px);
}

.home-blog__card-link:focus-visible {
  outline: none;
}

.home-blog__card-link:focus-visible .home-blog__media {
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.2);
}

.home-blog__footer {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.home-blog__view-all {
  display: inline-flex;
  align-items: center;
  color: var(--ayenyx-secondary, #fbaa25);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-blog__view-all::after {
  content: '→';
  margin-left: 0.45rem;
  transition: transform 0.25s ease;
}

.home-blog__view-all:hover::after {
  transform: translateX(4px);
}

@media (max-width: 899px) {
  .home-blog__intro {
    max-width: none;
    gap: 0.75rem;
  }

  .home-blog__grid,
  .insights-page__grid {
    grid-template-columns: 1fr;
    max-width: none;
    margin: 0;
  }

  .home-blog__media {
    aspect-ratio: 4 / 5;
  }

  .home-blog__content {
    opacity: 1;
    transform: none;
  }

  .home-blog__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (hover: none) {
  .home-blog__content {
    opacity: 1;
    transform: none;
  }

  .home-blog__overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0.42) 50%,
      rgba(0, 0, 0, 0.82) 100%
    );
  }
}

.insights-page {
  min-height: 70vh;
  background: #fff !important;
}

.insights-page .home-blog__container {
  padding: clamp(4.5rem, 8vw, 6.5rem) 0 clamp(4rem, 7vw, 5.5rem);
}

.insights-page__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (prefers-reduced-motion: reduce) {
  .home-blog__media img,
  .home-blog__overlay,
  .home-blog__content,
  .home-blog__date,
  .home-blog__cta::after,
  .home-blog__view-all::after {
    transition: none;
  }

  .home-blog__content {
    opacity: 1;
    transform: none;
  }
}
