.home-blog-section {
  --home-blog-ink: #172b43;
  --home-blog-muted: #52647b;
  --home-blog-surface: #ffffff;
  --home-blog-border: #dce6f0;
  --home-blog-accent: #087cff;
  --home-blog-gap: 22px;
  --home-blog-visible: 3;

  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 20px;
  color: var(--home-blog-ink);
  background:
    radial-gradient(ellipse at 88% 12%, rgba(8, 124, 255, 0.09), transparent 34%),
    radial-gradient(ellipse at 8% 90%, rgba(112, 72, 255, 0.06), transparent 32%),
    #f4f8fc;
}

[data-theme="dark"] .home-blog-section {
  --home-blog-ink: #f3f7ff;
  --home-blog-muted: #a9bbce;
  --home-blog-surface: #0c1c30;
  --home-blog-border: rgba(255, 255, 255, 0.12);
  --home-blog-accent: #40baff;

  background:
    radial-gradient(ellipse at 88% 12%, rgba(8, 124, 255, 0.15), transparent 34%),
    radial-gradient(ellipse at 8% 90%, rgba(112, 72, 255, 0.1), transparent 32%),
    #071321;
}

.home-blog-container {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin-inline: auto;
}

.home-blog-orb {
  position: absolute;
  width: 240px;
  aspect-ratio: 1;
  border: 1px solid rgba(8, 124, 255, 0.13);
  border-radius: 50%;
  pointer-events: none;
  animation: home-blog-orbit 16s ease-in-out infinite alternate;
}

.home-blog-orb--one {
  top: 13%;
  right: -125px;
}

.home-blog-orb--two {
  bottom: -165px;
  left: -120px;
  width: 290px;
  animation-delay: -5s;
}

.home-blog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.home-blog-heading-copy {
  max-width: 680px;
}

.home-blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--home-blog-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-blog-eyebrow > span {
  width: 23px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.home-blog-heading h2 {
  margin: 0;
  color: var(--home-blog-ink);
  font-size: clamp(28px, 4vw, 43px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.home-blog-heading h2 > span {
  color: transparent;
  background: linear-gradient(95deg, #08b9ff, #7048ff, #08b9ff);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  animation: home-blog-gradient 7s linear infinite;
}

.home-blog-heading-copy > p {
  max-width: 570px;
  margin: 12px 0 0;
  color: var(--home-blog-muted);
  font-size: 15px;
  line-height: 1.7;
}

.home-blog-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
}

.home-blog-all-link,
.home-blog-card-footer > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--home-blog-accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home-blog-all-link i,
.home-blog-card-footer > a i {
  transition: transform 180ms ease;
}

.home-blog-all-link:hover i,
.home-blog-card-footer > a:hover i {
  transform: translate(2px, -2px);
}

.home-blog-arrows {
  display: flex;
  gap: 9px;
}

.home-blog-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--home-blog-border);
  border-radius: 50%;
  color: var(--home-blog-ink);
  background: var(--home-blog-surface);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.home-blog-arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--home-blog-accent);
  color: #ffffff;
  background: var(--home-blog-accent);
}

.home-blog-arrow:disabled {
  opacity: 0.42;
  cursor: default;
}

.home-blog-carousel {
  overflow: hidden;
  margin: 0 -2px;
  padding: 2px;
}

.home-blog-track {
  --home-blog-visible: 3;
  --home-blog-card-width: calc((100% - 44px) / 3);

  display: flex;
  gap: var(--home-blog-gap);
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.home-blog-track::-webkit-scrollbar {
  display: none;
}

.home-blog-card {
  min-width: 0;
  flex: 0 0 var(--home-blog-card-width);
  overflow: hidden;
  border: 1px solid var(--home-blog-border);
  border-radius: 19px;
  background: var(--home-blog-surface);
  box-shadow: 0 16px 42px rgba(13, 47, 82, 0.08);
  scroll-snap-align: start;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, opacity 450ms ease;
}

[data-theme="dark"] .home-blog-card {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.home-blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 124, 255, 0.48);
  box-shadow: 0 23px 48px rgba(13, 47, 82, 0.14);
}

.home-blog-image {
  position: relative;
  display: grid;
  height: 188px;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(8, 185, 255, 0.32), transparent 55%),
    linear-gradient(135deg, #07172a, #102c50 58%, #251d58);
}

.home-blog-image::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(3, 12, 27, 0.4));
  content: "";
  pointer-events: none;
}

.home-blog-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.home-blog-card:hover .home-blog-image > img {
  transform: scale(1.055);
}

.home-blog-image--design > img {
  object-fit: contain;
  padding: 10px 18px;
  background: radial-gradient(ellipse at 50% 80%, rgba(8, 124, 255, 0.18), #07172a 72%);
}

.home-blog-image--school > img {
  object-position: center 32%;
}

.home-blog-image--mobile > img {
  object-position: 65% center;
  filter: hue-rotate(16deg) saturate(0.88);
}

.home-blog-image-label {
  position: absolute;
  z-index: 1;
  bottom: 12px;
  left: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  color: #f3f7ff;
  background: rgba(5, 17, 34, 0.74);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
}

.home-blog-image-label i {
  color: #55ccff;
}

.home-blog-image--seo,
.home-blog-image--store {
  background:
    radial-gradient(ellipse at 50% 95%, rgba(8, 185, 255, 0.3), transparent 48%),
    linear-gradient(135deg, #091932, #102d51 60%, #241d54);
}

.home-blog-image--store {
  background:
    radial-gradient(ellipse at 70% 90%, rgba(112, 72, 255, 0.33), transparent 52%),
    linear-gradient(135deg, #10132e, #102848 58%, #251d58);
}

.home-blog-art-window {
  position: relative;
  z-index: 0;
  display: flex;
  width: min(72%, 265px);
  height: 125px;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(142, 206, 255, 0.42);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(9, 31, 57, 0.96), rgba(8, 20, 42, 0.94));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35), inset 0 0 22px rgba(8, 124, 255, 0.12);
  transform: perspective(600px) rotateY(-8deg) rotateX(2deg);
  animation: home-blog-float 5s ease-in-out infinite;
}

.home-blog-art-bar {
  display: flex;
  gap: 5px;
}

.home-blog-art-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #08b9ff;
}

.home-blog-art-bar i:nth-child(2) {
  background: #8b71ff;
}

.home-blog-art-bar i:nth-child(3) {
  background: #ffc75e;
}

.home-blog-art-chart {
  display: flex;
  height: 45px;
  align-items: flex-end;
  gap: 8px;
  padding: 0 5px;
  border-bottom: 1px solid rgba(142, 206, 255, 0.2);
}

.home-blog-art-chart i {
  flex: 1;
  height: 35%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(0deg, #7048ff, #08b9ff);
}

.home-blog-art-chart i:nth-child(2) { height: 50%; }
.home-blog-art-chart i:nth-child(3) { height: 43%; }
.home-blog-art-chart i:nth-child(4) { height: 72%; }
.home-blog-art-chart i:nth-child(5) { height: 62%; }
.home-blog-art-chart i:nth-child(6) { height: 92%; }

.home-blog-art-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f3f7ff;
  font-size: 11px;
  font-weight: 700;
}

.home-blog-art-caption i {
  color: #4cd6b0;
}

.home-blog-art-window--store {
  width: min(66%, 230px);
  height: 132px;
  align-items: center;
  transform: perspective(600px) rotateY(7deg) rotateX(2deg);
  animation-delay: -2s;
}

.home-blog-store-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(8, 185, 255, 0.27);
  border-radius: 10px;
  color: #62d2ff;
  background: rgba(8, 124, 255, 0.17);
  font-size: 17px;
}

.home-blog-store-lines {
  display: flex;
  gap: 7px;
}

.home-blog-store-lines i {
  width: 35px;
  height: 4px;
  border-radius: 9px;
  background: rgba(179, 204, 230, 0.28);
}

.home-blog-store-lines i:first-child {
  width: 62px;
  background: rgba(8, 185, 255, 0.75);
}

.home-blog-store-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  color: #ffffff;
  background: linear-gradient(100deg, #7048ff, #087cff);
  font-size: 10px;
  font-weight: 700;
}

.home-blog-card-content {
  padding: 17px 17px 15px;
}

.home-blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--home-blog-muted);
  font-size: 11px;
}

.home-blog-meta > span {
  overflow: hidden;
  max-width: 58%;
  padding: 5px 8px;
  border-radius: 999px;
  color: #075dbb;
  background: #e8f3ff;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="dark"] .home-blog-meta > span {
  color: #a7d7ff;
  background: rgba(8, 124, 255, 0.18);
}

.home-blog-card h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.1em;
  margin: 14px 0 8px;
  color: var(--home-blog-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: -0.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-blog-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.home-blog-card h3 a:hover {
  color: var(--home-blog-accent);
}

.home-blog-card-content > p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.2em;
  margin: 0;
  color: var(--home-blog-muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--home-blog-border);
}

.home-blog-card-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--home-blog-muted);
  font-size: 11px;
}

.home-blog-card-footer > a {
  flex: 0 0 auto;
  font-size: 12px;
}

.home-blog-pagination {
  display: flex;
  min-height: 22px;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.home-blog-dot {
  width: 8px;
  height: 8px;
  align-self: center;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #a8b7c8;
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}

.home-blog-dot[aria-current="true"] {
  width: 23px;
  background: linear-gradient(90deg, #7048ff, #08b9ff);
}

.home-blog-arrow:focus-visible,
.home-blog-dot:focus-visible,
.home-blog-all-link:focus-visible,
.home-blog-card a:focus-visible {
  outline: 3px solid var(--home-blog-accent);
  outline-offset: 4px;
}

.home-blog-reveal-ready .home-blog-heading,
.home-blog-reveal-ready .home-blog-card {
  opacity: 0;
  transform: translateY(18px);
}

.home-blog-reveal-ready .home-blog-heading.is-visible,
.home-blog-reveal-ready .home-blog-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-blog-reveal-ready .home-blog-card.is-visible:hover {
  transform: translateY(-5px);
}

.home-blog-reveal-ready .home-blog-card:nth-child(2) { transition-delay: 70ms; }
.home-blog-reveal-ready .home-blog-card:nth-child(3) { transition-delay: 140ms; }
.home-blog-reveal-ready .home-blog-card:nth-child(4) { transition-delay: 210ms; }
.home-blog-reveal-ready .home-blog-card:nth-child(5) { transition-delay: 280ms; }

@keyframes home-blog-gradient {
  to { background-position: 200% center; }
}

@keyframes home-blog-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

@keyframes home-blog-orbit {
  from { transform: translate3d(0, -8px, 0) scale(0.96); }
  to { transform: translate3d(-10px, 12px, 0) scale(1.04); }
}

@media (max-width: 960px) {
  .home-blog-section {
    --home-blog-gap: 18px;
  }

  .home-blog-track {
    --home-blog-visible: 2;
    --home-blog-card-width: calc((100% - 18px) / 2);
  }

  .home-blog-heading h2 {
    font-size: clamp(27px, 4.4vw, 38px);
  }
}

@media (max-width: 640px) {
  .home-blog-section {
    --home-blog-gap: 14px;
    padding: 58px 16px;
  }

  .home-blog-track {
    --home-blog-visible: 1;
    --home-blog-card-width: 100%;
  }

  .home-blog-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 21px;
  }

  .home-blog-heading-copy > p {
    font-size: 14px;
  }

  .home-blog-controls {
    width: 100%;
    justify-content: space-between;
  }

  .home-blog-image {
    height: 205px;
  }

  .home-blog-card-content {
    padding: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-blog-section *,
  .home-blog-section *::before,
  .home-blog-section *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
