/* ============ Testimonial (config přes CSS proměnné) ============ */
.tb-testimonial{
    --tb-bg: #f9f9f9;
    --tb-text: #111;
    --tb-radius: 8px;
    --tb-pad: 20px;
    --tb-shadow: 0 2px 6px rgba(0,0,0,0.05);
    --tb-shadow-hover: 0 10px 24px rgba(0,0,0,0.10);
    --tb-hover-y: 2px;
  }
  
  .tb-testimonial .tb-testimonial__inner{
    background: var(--tb-bg);
    color: var(--tb-text);
    padding: var(--tb-pad);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
    will-change: transform, box-shadow;
  }
  
  .tb-testimonial:hover .tb-testimonial__inner{
    transform: translateY(calc(-1 * var(--tb-hover-y)));
    box-shadow: var(--tb-shadow-hover);
  }
  
  .tb-testimonial .tb-testimonial__quote{
    margin:0 0 10px 0;
    line-height:1.6;
    position: relative;
  }
  
  /* Volitelné uvozovky (toggle v nastavení) */
  .tb-testimonial .tb-testimonial__inner[data-show-quotes="1"] .tb-testimonial__quote::before{
    content: "“";
    position: absolute;
    left: -10px;
    top: -10px;
    font-size: 34px;
    opacity: 0.15;
    line-height: 1;
  }
  
  .tb-testimonial .tb-testimonial__meta{
    margin:0;
    line-height:1.4;
  }

  /* === Columns: všechny sloupce stejně vysoké + karta 100% === */
/* === Equal height sloupce JEN pro tianDe sekci === */
.tb-equal-cols.wp-block-columns{
  align-items: stretch;
}

.tb-equal-cols.wp-block-columns > .wp-block-column{
  display: flex;
}

.tb-equal-cols.wp-block-columns > .wp-block-column > *{
  width: 100%;
}
  
  /* Náš reference blok vyplní výšku sloupce */
  .wp-block-columns > .wp-block-column .tb-testimonial{
    height: 100%;
  }
  
  .tb-testimonial .tb-testimonial__inner{
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  /* Pokud chceš autora vždy dole (jako na obrázku) */
  .tb-testimonial .tb-testimonial__meta{
    margin-top: auto;
    padding-top: 12px;
  }

  /* Hover dej přímo na kartu + i focus-within (editor/klávesnice) */
.tb-testimonial .tb-testimonial__inner{
    transition: transform .18s ease, box-shadow .18s ease;
    will-change: transform, box-shadow;
  }
  
  .tb-testimonial .tb-testimonial__inner:hover,
  .tb-testimonial:focus-within .tb-testimonial__inner{
    transform: translateY(calc(-1 * var(--tb-hover-y)));
    box-shadow: var(--tb-shadow-hover);
  }
  
  /* ============ FAQ ============ */
  .tb-faq{
    padding:60px 0;
  }
  .tb-faq .tb-faq__list{
    max-width:900px;
    margin:0 auto;
  }
  .tb-faq .tb-faq__details{
    background:#fff;
    border:1px solid rgba(0,0,0,0.08);
    border-radius:12px;
    margin:12px 0;
    overflow:hidden;
  }
  .tb-faq .tb-faq__summary{
    list-style:none;
    cursor:pointer;
    padding:16px 18px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
  .tb-faq .tb-faq__summary::-webkit-details-marker{ display:none; }
  .tb-faq .tb-faq__summary::after{
    content:"+";
    font-weight:800;
    margin-left:16px;
    opacity:.7;
  }
  .tb-faq .tb-faq__details[open] .tb-faq__summary::after{
    content:"–";
  }
  .tb-faq .tb-faq__content{
    padding:0 18px 16px 18px;
    line-height:1.6;
  }
  /* ============ CTA ============ */
.tb-cta{
  --tb-cta-bg:#4a90a4;
  --tb-cta-text:#fff;
  --tb-cta-radius:8px;
  --tb-cta-pad:30px;
  --tb-cta-my:30px;
  --tb-cta-btn-bg:#fff;
  --tb-cta-btn-text:#4a90a4;
}

.tb-cta .tb-cta__inner{
  background: var(--tb-cta-bg);
  color: var(--tb-cta-text);
  padding: var(--tb-cta-pad);
  margin: var(--tb-cta-my) 0;
  border-radius: var(--tb-cta-radius);
  text-align:center;
}

/* ✅ DŮLEŽITÉ: přepiš globální p{color:#666} */
.tb-cta .tb-cta__heading,
.tb-cta .tb-cta__text{
  color: var(--tb-cta-text);
}

.tb-cta .tb-cta__heading{
  margin-top:0;
  margin-bottom:14px;
  color: var(--tb-cta-text);
}

.tb-cta .tb-cta__text{
  font-size: 18px;
  margin: 0 0 18px 0;
}

.tb-cta .tb-cta__button{
  display:inline-block;
  background: var(--tb-cta-btn-bg);
  color: var(--tb-cta-btn-text);
  padding: 15px 40px;
  text-decoration:none;
  font-weight:700;
  border-radius: 6px;
  transition: transform .15s ease, filter .15s ease;
}

.tb-cta .tb-cta__button:hover{
  transform: translateY(-1px);
  filter: brightness(0.98);
}

/* ============ TIP ============ */
.tb-tip{
  --tb-tip-bg:#e8f4f8;
  --tb-tip-border:#4a90a4;
  --tb-tip-text:#111111;
}

.tb-tip .tb-tip__inner{
  background: var(--tb-tip-bg);
  border-left: 4px solid var(--tb-tip-border);
  padding: 20px;
  margin: 20px 0;
}

.tb-tip .tb-tip__text{
  margin: 0;
  font-size: 18px;
  font-style: italic;
  color: var(--tb-tip-text);
}

.tb-tip .tb-tip__icon{
  margin-right: 2px;
}

/* ===== tianDe: Timeline block ===== */
.tb-timeline-wrap{
  --tb-tl-accent: #66ad44;
  --tb-tl-line: rgba(0,0,0,0.12);
  --tb-tl-bg: #ffffff;
  --tb-tl-radius: 16px;
  --tb-tl-dot: 70px;
  --tb-tl-shadow-a: 0 10px 30px rgba(0,0,0,0.06);
  --tb-tl-shadow-b: 0 22px 70px rgba(0,0,0,0.08);

  max-width: 900px;
  margin: 28px auto;
}

.tb-timeline-wrap .tb-timeline__heading{
  margin: 0 0 14px 0;
}

.tb-timeline{
  display: grid;
  gap: 14px;
}

.tb-timeline__item{
  display: grid;
  grid-template-columns: var(--tb-tl-dot) 1fr;
  gap: 14px;
  align-items: stretch;
  position: relative;
}

.tb-timeline__item::before{
  content:"";
  position: absolute;
  left: calc(var(--tb-tl-dot) / 2);
  top: -14px;
  bottom: -14px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--tb-tl-line), transparent);
}

.tb-timeline__dot{
  width: var(--tb-tl-dot);
  height: var(--tb-tl-dot);
  border-radius: 999px;
  background: var(--tb-tl-bg);
  box-shadow: var(--tb-tl-shadow-a);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-weight: 900;
  color: var(--tb-tl-accent);
  line-height: 1.05;
  position: relative;
  z-index: 1;
}

.tb-timeline__dot small{
  display:block;
  font-weight: 700;
  color: rgba(0,0,0,0.55);
  margin-top: 4px;
  font-size: 12px;
}

.tb-timeline__card{
  background: var(--tb-tl-bg);
  border-radius: var(--tb-tl-radius);
  padding: 18px;
  box-shadow: var(--tb-tl-shadow-a), var(--tb-tl-shadow-b);
  transition: transform .16s ease, box-shadow .16s ease;
}

.tb-timeline__card h4{
  margin: 0 0 6px 0;
}

.tb-timeline__card p{
  margin: 0;
  color: rgba(0,0,0,0.70);
  line-height: 1.6;
}

.tb-timeline__item:hover .tb-timeline__card{
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.10), 0 30px 90px rgba(0,0,0,0.12);
}

@media (max-width: 600px){
  .tb-timeline-wrap{
    margin: 18px auto;
  }
  .tb-timeline__item{
    grid-template-columns: 56px 1fr;
  }
  .tb-timeline__item::before{
    left: 28px;
  }
}