/* poradna-hp.css — HP sekce „Poradna Dreamy“ (blok .dpo z poradna-hp.js)
 * Dreamy, 2026-10-20
 */
/* Carbon dává .hp-news max-width 1440px !important, padding 20px, margin auto → pás přes celou šířku */
.hp-news.dpo-done {
  max-width: none !important; width: auto !important;
  margin: 40px 0 !important; padding: 0 !important;
}

.dpo {
  --dpo-teal: #01928D;
  --dpo-teal-bg: #E8F6F5;
  --dpo-pink: #D90074;
  --dpo-ink: #1d1d1f;
  --dpo-muted: #5f6368;
  background: #FFF7FB;
  padding: 56px 0 60px;
  font-family: inherit;
  color: var(--dpo-ink);
}
.dpo *, .dpo *::before, .dpo *::after { box-sizing: border-box; }
.dpo__in { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.dpo__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 28px;
}
.dpo__eyebrow {
  display: inline-block; margin-bottom: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dpo-pink);
}
.dpo .dpo__title {
  margin: 0; padding: 0;
  font-family: inherit; font-size: 32px; line-height: 1.2; font-weight: 400;
  color: var(--dpo-ink); text-align: left; text-transform: none; letter-spacing: 0;
}
.dpo__sub {
  margin: 10px 0 0; max-width: 560px;
  font-size: 16px; line-height: 1.55; font-weight: 300; color: var(--dpo-muted);
}
.dpo .dpo__all {
  flex: none; white-space: nowrap; padding-bottom: 2px;
  font-size: 15px; font-weight: 500; color: var(--dpo-teal);
  text-decoration: none; border-bottom: 1px solid transparent;
}
.dpo .dpo__all::after { content: " \2192"; }
.dpo .dpo__all:hover { color: var(--dpo-teal); border-bottom-color: currentColor; }

.dpo__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.dpo .dpo__card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; overflow: hidden;
  color: inherit; text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
  transition: transform .25s, box-shadow .25s;
}
.dpo .dpo__card:hover {
  color: inherit; text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 12px 28px rgba(0,0,0,.09);
}
.dpo .dpo__card:focus-visible { outline: 2px solid var(--dpo-teal); outline-offset: 3px; }

.dpo__img { aspect-ratio: 4 / 3; overflow: hidden; background: #f1ecef; }
.dpo__img img {
  display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; border-radius: 0; transition: transform .6s;
}
.dpo__card:hover .dpo__img img { transform: scale(1.04); }
.dpo__img--empty { background: linear-gradient(135deg, #FDEFF6 0%, #E8F6F5 100%); }

.dpo__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.dpo__tag {
  align-self: flex-start; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--dpo-teal); background: var(--dpo-teal-bg);
}
.dpo .dpo__h {
  margin: 0 0 8px; padding: 0;
  font-family: inherit; font-size: 20px; line-height: 1.3; font-weight: 500; color: var(--dpo-ink);
  text-align: left; text-transform: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dpo .dpo__p {
  margin: 0; padding: 0;
  font-size: 15px; line-height: 1.6; font-weight: 300; color: var(--dpo-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dpo__foot {
  margin-top: auto; padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center; font-size: 14px;
}
.dpo__date { color: #8a8f94; }
.dpo__more { color: var(--dpo-teal); font-weight: 500; }
.dpo__more::after { content: " \2192"; display: inline-block; transition: transform .2s; }
.dpo__card:hover .dpo__more::after { transform: translateX(4px); }

/* tablet */
@media (max-width: 991px) {
  .dpo__in { padding: 0 24px; }
  .dpo__grid { gap: 16px; }
  .dpo .dpo__h { font-size: 18px; }
}

/* mobil: posun prstem, další karta je vidět na okraji */
@media (max-width: 767px) {
  .dpo { padding: 40px 0 44px; }
  .dpo__in { padding: 0 20px; }
  .dpo__head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .dpo .dpo__title { font-size: 25px; }
  .dpo__sub { font-size: 15px; }
  .dpo__grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -20px; padding: 4px 20px 12px; scroll-padding: 0 20px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .dpo__grid::-webkit-scrollbar { display: none; }
  .dpo .dpo__card { flex: 0 0 82%; scroll-snap-align: start; }
  .dpo .dpo__card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dpo .dpo__card, .dpo__img img, .dpo__more::after { transition: none; }
}
