/* blog-tabs.css — обʼєднаний Блог: вкладки Статті / Новини / Відео */

.blog-section {
  padding: 48px 0 80px;
  background: #F8FAFB;
}

.blog-tabs {
  display: block;
}

/* ── Сегментований перемикач ─────────────────────────────────────────────── */
.blog-tabs__nav {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  margin: 0 auto 40px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #E2E8E8;
  box-shadow: 0 6px 20px rgba(22, 62, 64, 0.06), 0 1px 2px rgba(22, 62, 64, 0.04);
  /* центрування блоку */
  left: 50%;
  transform: translateX(-50%);
}

.blog-tabs__indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #226468 0%, #163E40 100%);
  box-shadow: 0 6px 16px rgba(34, 100, 104, 0.32);
  transition: transform .34s cubic-bezier(.4, 0, .2, 1), width .34s cubic-bezier(.4, 0, .2, 1);
  z-index: 0;
}

.blog-tabs__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #4A5658;
  cursor: pointer;
  white-space: nowrap;
  transition: color .25s ease;
}

.blog-tabs__btn:hover {
  color: #163E40;
}

.blog-tabs__btn.is-active {
  color: #fff;
}

.blog-tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  background: rgba(34, 100, 104, 0.1);
  color: #226468;
  transition: background .25s ease, color .25s ease;
}

.blog-tabs__btn.is-active .blog-tabs__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ── Панель з контентом ──────────────────────────────────────────────────── */
.blog-tabs__panel {
  animation: blogFadeIn .4s cubic-bezier(.2, .6, .2, 1);
}

@keyframes blogFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .blog-tabs__panel { animation: none; }
  .blog-tabs__indicator { transition: none; }
}

/* ── Порожній стан ───────────────────────────────────────────────────────── */
.blog-empty {
  text-align: center;
  padding: 64px 20px;
  font-size: 16px;
  color: #6A6C72;
}

/* ── «Показати ще» ───────────────────────────────────────────────────────── */
.blog-loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.blog-loadmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 999px;
  border: 1px solid #226468;
  background: #fff;
  color: #226468;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.blog-loadmore:hover:not(:disabled) {
  background: #226468;
  color: #fff;
  box-shadow: 0 10px 24px rgba(34, 100, 104, 0.24);
  transform: translateY(-2px);
}

.blog-loadmore:disabled {
  opacity: 0.6;
  cursor: default;
}

.blog-loadmore__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(34, 100, 104, 0.12);
  color: inherit;
}

.blog-loadmore:hover:not(:disabled) .blog-loadmore__count {
  background: rgba(255, 255, 255, 0.22);
}

/* ── CTA на вкладці «Відео» ──────────────────────────────────────────────── */
.blog-video-cta {
  margin-top: 48px;
}

/* ── Адаптив ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .blog-section { padding: 32px 0 64px; }
  .blog-tabs__nav {
    display: flex;
    width: 100%;
    left: 0;
    transform: none;
    justify-content: space-between;
  }
  .blog-tabs__btn {
    flex: 1;
    justify-content: center;
    padding: 11px 8px;
    font-size: 14px;
  }
  .blog-tabs__btn .blog-tabs__count { display: none; }
}
