.digi-blog {
  width: min(100% - 32px, 850px);
  margin: 32px auto 110px;
}

.digi-blog-hero {
  position: relative;
  height: clamp(240px, 31vw, 360px);
  overflow: hidden;
  border-radius: 22px;
  background: #222;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

.digi-blog-hero__slides,
.digi-blog-hero__slide {
  position: absolute;
  inset: 0;
}

.digi-blog-hero__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility .55s ease;
}

.digi-blog-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.digi-blog-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.digi-blog-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .18) 48%, rgba(0, 0, 0, .82));
}

.digi-blog-hero__content {
  position: absolute;
  z-index: 2;
  right: clamp(22px, 5vw, 62px);
  bottom: clamp(28px, 5vw, 58px);
  max-width: 70%;
  color: #fff;
}

.digi-blog-hero__content h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(22px, 3.3vw, 38px);
  line-height: 1.25;
  font-weight: 800;
}

.digi-blog-hero__content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.digi-blog-hero__content a:hover { color: #fff; }

.digi-blog-hero__dots {
  position: absolute;
  z-index: 3;
  bottom: 17px;
  left: 22px;
  display: flex;
  gap: 7px;
  direction: ltr;
}

.digi-blog-hero__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  background: transparent;
}

.digi-blog-hero__dots button.is-active {
  border-color: #f57c00;
  background: #f57c00;
}

.digi-blog-listing { margin-top: 30px; }

.digi-blog-tools {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.digi-blog-tools__category,
.digi-blog-tools__search {
  position: relative;
  height: 42px;
}

.digi-blog-tools select,
.digi-blog-tools input {
  width: 100%;
  height: 100%;
  border: 1px solid #ececec;
  border-radius: 10px;
  background-color: #fff;
  color: #555;
  font-size: 12px;
  outline: none;
}

.digi-blog-tools select {
  padding: 0 13px;
  cursor: pointer;
}

.digi-blog-tools input { padding: 0 42px 0 14px; }
.digi-blog-tools input::placeholder { color: #b5b5b5; }

.digi-blog-tools__search svg {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #555;
  stroke-width: 1.8;
  pointer-events: none;
}

.digi-blog-grid {
  display: grid;
  gap: 10px;
}

.digi-blog-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  grid-template-areas: "image body button";
  align-items: center;
  gap: 18px;
  padding: 8px;
  border: 1px solid #efefef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .025);
  transition: transform .2s ease, box-shadow .2s ease;
}

.digi-blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
}

.digi-blog-card__image {
  grid-area: image;
  align-self: stretch;
  min-height: 114px;
  overflow: hidden;
  border-radius: 14px;
}

.digi-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.digi-blog-card:hover .digi-blog-card__image img { transform: scale(1.035); }
.digi-blog-card__body { grid-area: body; min-width: 0; }

.digi-blog-card__title {
  margin-bottom: 4px;
  color: #202020;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.digi-blog-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: #595959;
  font-size: 11px;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.digi-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: #aaa;
  font-size: 10px;
}

.digi-blog-card__button {
  grid-area: button;
  align-self: end;
  min-width: 92px;
  margin: 0 4px 4px 8px;
  padding: 8px 16px;
  border-radius: 9px;
  background: #f57c00;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.digi-blog-card__button:hover { background: #e66f00; color: #fff; }

.digi-blog-status {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  color: #888;
  font-size: 12px;
  transition: opacity .2s ease;
}

.digi-blog-status.is-visible { opacity: 1; }
.digi-blog-status.is-done .digi-blog-loader,
.digi-blog-status.is-error .digi-blog-loader { display: none; }
.digi-blog-status.is-error { color: #d62828; }

.digi-blog-loader {
  width: 22px;
  height: 22px;
  border: 2px solid #eee;
  border-top-color: #f57c00;
  border-radius: 50%;
  animation: digi-blog-spin .7s linear infinite;
}

.digi-blog-empty {
  padding: 55px 20px;
  border-radius: 16px;
  background: #fff;
  color: #777;
  text-align: center;
}

@keyframes digi-blog-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .digi-blog { width: min(100% - 24px, 760px); margin-top: 22px; }
}

@media (max-width: 620px) {
  .digi-blog { margin-bottom: 65px; }
  .digi-blog-hero { height: 225px; border-radius: 16px; }
  .digi-blog-hero__content { right: 20px; bottom: 38px; max-width: calc(100% - 40px); }
  .digi-blog-tools { grid-template-columns: 1fr; }
  .digi-blog-card {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-areas: "image body" "button button";
    gap: 10px;
    padding: 8px;
    border-radius: 14px;
  }
  .digi-blog-card__image { min-height: 105px; }
  .digi-blog-card__title { font-size: 13px; }
  .digi-blog-card__excerpt { margin-bottom: 5px; font-size: 10px; -webkit-line-clamp: 2; }
  .digi-blog-card__meta { gap: 4px 10px; font-size: 9px; }
  .digi-blog-card__button { width: 100%; margin: 0; }
}
