/* Katrinna Life — Highlights Widget v1.0.0 */

.klhw-wrap *,
.klhw-wrap *::before,
.klhw-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.klhw-wrap {
  --kl-black:      #111111;
  --kl-white:      #ffffff;
  --kl-off-white:  #F7F2EC;
  --kl-beige:      #E8D8C6;
  --kl-sand:       #D8C4AD;
  --kl-gray:       #E9E9E9;
  --kl-text-muted: #787062;
  --kl-accent:     var(--kl-accent-custom, #111111);
  --kl-font-head:  'Montserrat', system-ui, sans-serif;
  --kl-font-body:  'Inter', system-ui, sans-serif;

  font-family: var(--kl-font-head);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow: hidden;
}

/* ── Ticker wrapper ────────────────────────────────────── */

.klhw-ticker-wrap {
  background: var(--kl-black);
  overflow: hidden;
  position: relative;
}

.klhw-ticker-wrap::before,
.klhw-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.klhw-ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, #111111 20%, transparent);
}
.klhw-ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, #111111 20%, transparent);
}

/* ── Linhas ────────────────────────────────────────────── */

.klhw-ticker-row {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}
.klhw-ticker-row:first-child {
  padding: 10px 0 5px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.klhw-ticker-row:last-child {
  padding: 5px 0 10px;
}

/* ── Tracks ────────────────────────────────────────────── */

.klhw-ticker-track {
  display: inline-flex;
  will-change: transform;
}
.klhw-ticker-track--fwd {
  animation: klhw-fwd var(--klhw-speed-fwd, 36s) linear infinite;
}
.klhw-ticker-track--rev {
  animation: klhw-rev var(--klhw-speed-rev, 42s) linear infinite;
}
.klhw-ticker-track:hover {
  animation-play-state: paused;
}

/* ── Item ──────────────────────────────────────────────── */

.klhw-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  font-family: var(--kl-font-head);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.60);
  white-space: nowrap;
  user-select: none;
}

.klhw-ticker-sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--kl-beige);
  flex-shrink: 0;
  opacity: 0.65;
}

@keyframes klhw-fwd {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes klhw-rev {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ── Features bar ──────────────────────────────────────── */

.klhw-features {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--kl-off-white);
  border-bottom: 1px solid var(--kl-beige);
}

/* ── Card ──────────────────────────────────────────────── */

.klhw-feat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 22px 30px;
  flex: 1 1 200px;
  max-width: 280px;
  min-width: 180px;
  position: relative;
  cursor: default;
  transition: background 240ms ease;
}
.klhw-feat:hover {
  background: rgba(255,255,255,0.70);
}

/* Divisor vertical */
.klhw-feat + .klhw-feat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: var(--kl-beige);
}

/* ── Ícone ─────────────────────────────────────────────── */

.klhw-feat-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kl-beige);
  border-radius: 50%;
  padding: 12px;
  color: var(--kl-black);
  transition: background 240ms ease, color 240ms ease, transform 240ms ease;
}
.klhw-feat:hover .klhw-feat-icon {
  background: var(--kl-black);
  color: var(--kl-white);
  transform: scale(1.07) rotate(-4deg);
}
.klhw-feat-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Texto ─────────────────────────────────────────────── */

.klhw-feat-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.klhw-feat-title {
  font-family: var(--kl-font-head);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--kl-black);
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.klhw-feat-sub {
  font-family: var(--kl-font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--kl-text-muted);
  line-height: 1.6;
}

/* ── Responsivo ────────────────────────────────────────── */

@media (max-width: 860px) {
  .klhw-feat {
    padding: 18px 22px;
    flex: 1 1 45%;
    max-width: 50%;
    min-width: 160px;
  }
  .klhw-feat + .klhw-feat::before { display: none; }
}

@media (max-width: 520px) {
  .klhw-feat {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 15px 18px;
    border-bottom: 1px solid var(--kl-beige);
  }
  .klhw-feat:last-child { border-bottom: none; }
  .klhw-feat-icon       { width: 42px; height: 42px; padding: 10px; }
  .klhw-feat-title      { font-size: 12px; }
  .klhw-feat-sub        { font-size: 10.5px; }
}

/* ── Reduced motion ────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .klhw-ticker-track { animation: none !important; }
  .klhw-ticker-row   { overflow-x: auto; scrollbar-width: none; }
}
