.dpc-posts-widget,
.dpc-posts-widget * {
  box-sizing: border-box;
}

.dpc-posts-grid {
  --dpc-posts-columns: 3;
  --dpc-posts-gap: 28px;
  --dpc-post-card-radius: 28px;
  --dpc-post-accent: #c9ff1a;
  --dpc-post-badge-offset: 24px;
  --dpc-post-arrow-size: 36px;
  --dpc-post-image-hover-scale: 1.06;
  --dpc-post-arrow-hover-rotate: 45deg;

  display: grid;
  grid-template-columns: repeat(var(--dpc-posts-columns), minmax(0, 1fr));
  gap: var(--dpc-posts-gap);
  align-items: stretch;
}

.dpc-post-card {
  display: flex;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 0 solid transparent;
  border-radius: var(--dpc-post-card-radius);
  background: #fff;
  text-decoration: none;
  transition: box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dpc-post-image-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.dpc-post-image {
  position: relative;
  overflow: hidden;
  height: 255px;
  background: #151515;
}

.dpc-post-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.34) 100%);
  content: "";
  pointer-events: none;
}

.dpc-post-image img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.dpc-post-card:hover .dpc-post-image img {
  transform: scale(var(--dpc-post-image-hover-scale));
}

.dpc-post-image-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 75% 30%, rgba(201, 255, 26, 0.2), transparent 7rem),
    linear-gradient(135deg, #2d3338, #101316);
}

.dpc-post-badge {
  position: absolute;
  top: var(--dpc-post-badge-offset);
  left: var(--dpc-post-badge-offset);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - (var(--dpc-post-badge-offset) * 2));
  border-radius: 999px;
  background: var(--dpc-post-accent);
  color: #071008;
  padding: 0.7em 1.2em;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.dpc-post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.dpc-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #7b818a;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.dpc-post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dpc-post-meta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dpc-post-title {
  margin: 18px 0 0;
  color: #101318;
  font-size: clamp(20px, 1.5vw, 28px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.dpc-post-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.dpc-post-excerpt {
  margin: 18px 0 0;
  color: #68707a;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0;
}

.dpc-post-readmore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: auto;
  padding-top: 32px;
  color: #101318 !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
}

.dpc-post-readmore-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--dpc-post-arrow-size);
  height: var(--dpc-post-arrow-size);
  border-radius: 50%;
  background: var(--dpc-post-accent);
  color: #071008;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease;
}

.dpc-post-readmore-icon svg {
  width: 48%;
  height: 48%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.dpc-post-card:hover .dpc-post-readmore-icon {
  transform: rotate(var(--dpc-post-arrow-hover-rotate));
}

.dpc-posts-empty {
  color: #68707a;
}

@media (max-width: 1024px) {
  .dpc-posts-grid {
    --dpc-posts-columns: 2;
  }
}

@media (max-width: 767px) {
  .dpc-posts-grid {
    --dpc-posts-columns: 1;
  }

  .dpc-post-image {
    height: 220px;
  }
}
