/* Blog sidebar — listing & detail */
body.page-blog .fz-blog-sidebar {
  position: relative;
}

@media (min-width: 992px) {
  body.page-blog .fz-blog-sidebar__inner {
    position: sticky;
    top: calc(var(--header-offset, 72px) + 20px);
  }
}

body.page-blog .fz-blog-sidebar-card {
  background: #fff;
  border: 1px solid rgba(0, 33, 71, 0.09);
  border-radius: 20px;
  padding: 1.35rem 1.35rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 33, 71, 0.06);
}

body.page-blog .fz-blog-sidebar-card__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0, 33, 71, 0.08);
}

body.page-blog .fz-blog-sidebar-card__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #002147 0%, #0d315f 100%);
  color: #c8a84b;
  font-size: 1.05rem;
}

body.page-blog .fz-blog-sidebar-card__title {
  margin: 0;
  font-family: 'Emilie Display', serif !important;
  font-size: 1.2rem;
  font-weight: 400 !important;
  color: #001a38;
  line-height: 1.2;
}

body.page-blog .fz-blog-sidebar-card--search .togo-sidebar-search-input {
  border: 1px solid rgba(0, 33, 71, 0.12);
  border-radius: 14px;
  background: #f8f9fc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.page-blog .fz-blog-sidebar-card--search .togo-sidebar-search-input:focus-within {
  border-color: #c8a84b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 168, 75, 0.18);
}

body.page-blog .fz-blog-sidebar-card--search .togo-sidebar-search-input input {
  height: 46px;
  font-size: 0.95rem;
}

body.page-blog .fz-blog-sidebar-card--search .togo-sidebar-search-input button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #002147;
  color: #fff;
  margin-right: 4px;
  transition: background 0.2s ease, transform 0.15s ease;
}

body.page-blog .fz-blog-sidebar-card--search .togo-sidebar-search-input button:hover {
  background: #001a38;
  color: #fff;
  transform: scale(1.04);
}

body.page-blog .fz-blog-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

body.page-blog .fz-blog-recent-item {
  margin: 0;
}

body.page-blog .fz-blog-recent-link {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0.85rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.5rem;
  margin: -0.5rem;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

body.page-blog .fz-blog-recent-link:hover {
  background: rgba(0, 33, 71, 0.04);
  transform: translateX(2px);
}

body.page-blog .fz-blog-recent-thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8ecf2;
  box-shadow: 0 4px 14px rgba(0, 33, 71, 0.1);
}

body.page-blog .fz-blog-recent-thumb img,
body.page-blog .fz-blog-recent-thumb .togo-img-skeleton-wrap {
  width: 100% !important;
  height: 100% !important;
  min-height: 76px !important;
  border-radius: 12px;
  object-fit: cover;
}

body.page-blog .fz-blog-recent-body {
  min-width: 0;
}

body.page-blog .fz-blog-recent-date {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c8a84b;
  margin-bottom: 0.25rem;
}

body.page-blog .fz-blog-recent-title {
  display: block;
  font-family: 'Emilie Display', serif !important;
  font-size: 0.98rem;
  font-weight: 400 !important;
  line-height: 1.35;
  color: #001a38;
  margin: 0;
}

body.page-blog .fz-blog-recent-link:hover .fz-blog-recent-title {
  color: #002147;
}

body.page-blog .fz-blog-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.page-blog .fz-blog-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 500;
  background: #f8f9fc;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.page-blog .fz-blog-cat-link:hover {
  background: #fff;
  border-color: rgba(0, 33, 71, 0.12);
  color: #002147;
}

body.page-blog .fz-blog-cat-link.is-active {
  background: linear-gradient(135deg, #002147 0%, #0d315f 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0, 33, 71, 0.18);
}

body.page-blog .fz-blog-cat-link.is-active .fz-blog-cat-count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

body.page-blog .fz-blog-cat-name {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

body.page-blog .fz-blog-cat-count {
  flex-shrink: 0;
  min-width: 1.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 33, 71, 0.08);
  color: #002147;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

body.page-blog .fz-blog-sidebar-card--cta {
  padding: 0;
  overflow: hidden;
  border: none;
  background: linear-gradient(145deg, #002147 0%, #0a2a52 55%, #001a38 100%);
  color: #fff;
}

body.page-blog .fz-blog-sidebar-cta {
  padding: 1.5rem 1.35rem 1.35rem;
  position: relative;
}

body.page-blog .fz-blog-sidebar-cta::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(200, 168, 75, 0.12);
  pointer-events: none;
}

body.page-blog .fz-blog-sidebar-cta__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8a84b;
  margin-bottom: 0.5rem;
}

body.page-blog .fz-blog-sidebar-cta__title {
  font-family: 'Emilie Display', serif !important;
  font-size: 1.35rem;
  font-weight: 400 !important;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  color: #fff;
}

body.page-blog .fz-blog-sidebar-cta__text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1rem;
}

body.page-blog .fz-blog-sidebar-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: #c8a84b;
  color: #001a38 !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

body.page-blog .fz-blog-sidebar-cta__btn:hover {
  background: #d4b85c;
  transform: translateY(-1px);
  color: #001a38 !important;
}

body.page-blog .fz-blog-sidebar-empty {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

@media (max-width: 991px) {
  body.page-blog .fz-blog-sidebar-card {
    border-radius: 16px;
    padding: 1.15rem;
  }

  body.page-blog .fz-blog-recent-link {
    grid-template-columns: 64px 1fr;
  }

  body.page-blog .fz-blog-recent-thumb {
    width: 64px;
    height: 64px;
  }
}
