@media (min-width: 1024px) {
  .home-hero-indicators {
    left: 2rem !important;
    transform: none !important;
  }
}

.blog-hero-split {
  background: oklch(97.5% 0.004 45);
}

.blog-hero-split-grid {
  position: relative;
  display: block;
  min-height: 22rem;
  isolation: isolate;
  background: oklch(20% 0.018 42);
}

.blog-hero-split-grid::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      oklch(18% 0.018 42 / 0.94) 0%,
      oklch(20% 0.02 42 / 0.84) 48%,
      oklch(20% 0.02 42 / 0.48) 100%
    );
  content: "";
  pointer-events: none;
}

.blog-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(65%, 43rem);
  min-height: 22rem;
  padding: clamp(2rem, 3vw, 2.75rem);
  flex-direction: column;
  justify-content: center;
  color: white;
}

.blog-hero-copy h1 {
  max-width: 20ch;
  margin: 1rem 0 0;
  color: white;
  font-size: clamp(2.25rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.blog-hero-copy-subtitle {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: oklch(94% 0.006 42);
  font-size: 1.08rem;
  line-height: 1.55;
}

.blog-hero-copy-description {
  display: none;
}

.blog-hero-badge {
  width: fit-content;
  padding: 0.55rem 0.8rem;
  border-radius: 0.25rem;
  background: oklch(67% 0.185 42);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-hero-socials {
  display: flex;
  margin-top: 1.5rem;
  flex-wrap: nowrap;
  gap: 0.75rem;
}

.blog-hero-social-link {
  display: block;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-hero-social-link:hover,
.blog-hero-social-link:focus-visible {
  transform: translateY(-3px) scale(1.06);
}

.blog-hero-social-link:focus-visible {
  outline: 3px solid oklch(72% 0.16 42 / 0.55);
  outline-offset: 4px;
}

.blog-hero-social-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: oklch(67% 0.185 42);
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 3px 8px oklch(20% 0.02 42 / 0.2);
  transition:
    filter 180ms ease,
    box-shadow 180ms ease;
}

.blog-hero-social-icon img {
  width: 1.4rem;
  height: 1.4rem;
  filter: brightness(0) invert(1);
}

.blog-hero-social-link:hover .blog-hero-social-icon,
.blog-hero-social-link:focus-visible .blog-hero-social-icon {
  filter: saturate(1.12) brightness(1.05);
  box-shadow: 0 5px 8px oklch(20% 0.02 42 / 0.3);
}

.blog-hero-social-icon.blog-social-linkedin {
  background: #0a66c2;
}

.blog-hero-social-icon.blog-social-youtube {
  background: #ff0000;
}

.blog-hero-social-icon.blog-social-instagram {
  background: linear-gradient(135deg, #5b2cff 0%, #c13584 42%, #f56040 72%, #ffb229 100%);
}

.blog-hero-social-icon.blog-social-facebook {
  background: #1877f2;
}

@media (prefers-reduced-motion: reduce) {
  .blog-hero-social-link,
  .blog-hero-social-icon {
    transition: none;
  }

  .blog-hero-social-link:hover,
  .blog-hero-social-link:focus-visible {
    transform: none;
  }
}

.blog-hero-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: oklch(20% 0.018 42);
}

.blog-hero-photo img {
  width: 100%;
  height: 100%;
  filter: saturate(0.82) contrast(0.96);
  object-fit: cover;
  object-position: center;
}

.blog-posts-section > div {
  padding-top: 2.5rem !important;
}

.blog-card-image {
  object-position: center 18%;
}

.blog-card-tags {
  gap: 0.35rem 0.65rem !important;
}

.blog-card-tag {
  color: oklch(48% 0.018 42);
  font-size: 0.72rem;
  font-weight: 500;
}

.blog-card-tag::before {
  margin-right: 0.3rem;
  color: oklch(67% 0.185 42 / 65%);
  content: "#";
}

.blog-card-action {
  margin-top: auto;
  padding-top: 1.25rem;
}

.blog-article-modal {
  display: grid;
  width: min(74rem, 100%);
  height: min(46rem, 92vh);
  max-height: 92vh;
  grid-template-columns: minmax(20rem, 44%) minmax(0, 1fr);
}

.blog-modal-media {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: oklch(20% 0.012 42);
}

.blog-modal-image {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.blog-modal-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.blog-modal-header {
  flex: none;
}

.blog-modal-content {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.blog-article-modal:not(:has(.blog-modal-media)) {
  grid-template-columns: 1fr;
}

@media (max-width: 1023px) {
  .blog-hero-split-grid {
    min-height: 23rem;
  }

  .blog-hero-copy {
    width: min(78%, 40rem);
    min-height: 23rem;
  }

  .blog-hero-split-grid::before {
    background:
      linear-gradient(
        90deg,
        oklch(18% 0.018 42 / 0.95) 0%,
        oklch(20% 0.02 42 / 0.82) 68%,
        oklch(20% 0.02 42 / 0.58) 100%
      );
  }
}

@media (max-width: 639px) {
  .blog-hero-split > div {
    padding-block: 1.5rem !important;
  }

  .blog-hero-copy {
    width: 100%;
    min-height: 25rem;
    padding: 1.5rem;
  }

  .blog-hero-copy h1 {
    font-size: 1.9rem;
    line-height: 1.05;
  }

  .blog-hero-copy-description {
    display: none;
  }

  .blog-hero-socials {
    margin-top: 1rem;
    gap: 0.35rem 0.65rem;
  }

  .blog-hero-social-link {
    font-size: 0.75rem;
  }

  .blog-hero-social-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.25rem;
  }

  .blog-hero-social-icon img {
    width: 1.25rem;
    height: 1.25rem;
  }

  .blog-hero-split-grid::before {
    background: oklch(17% 0.018 42 / 0.86);
  }

  .blog-posts-section > div {
    padding-top: 2rem !important;
  }

  .blog-article-modal {
    height: min(50rem, 94vh);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(12rem, 34vh) minmax(0, 1fr);
  }

  .blog-article-modal:not(:has(.blog-modal-media)) {
    grid-template-rows: minmax(0, 1fr);
  }
}
