/* Medical Szczecin – style bloga (Poradnik). Plik ładowany przez override kontrolerów xipblog z wersją (data modyfikacji). */

/* ===== Xpert Blog – pojedynczy wpis (Medical, 2026-09) ===== */
.page-module-xipblog-single .blog_post .post_meta,
.page-module-xipblog-single .comments_area,
.page-module-xipblog-single #comments,
.page-module-xipblog-single .comment_respond {
  display: none !important;
}

/* Karty polecanych produktów w artykułach */
.xb-products {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 25px 0;
}
.xb-product {
  flex: 1 1 220px;
  max-width: 300px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 15px;
  text-align: center;
  background: #fff;
}
.xb-product img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}
.xb-product h4 {
  font-size: 15px;
  margin: 0 0 8px;
}
.xb-product .xb-price {
  display: block;
  font-weight: 700;
  color: #051f60;
  margin-bottom: 12px;
}
.xb-product .btn {
  display: inline-block;
}

#module-xipblog-single .card {
  box-shadow: none;
  border: none;
}

#module-xipblog-single .card ol,
#module-xipblog-single .card ul {
    margin: 20px;
}

/* ===== Xpert Blog – strona główna bloga / Poradnik (Medical, 2026-09) ===== */
.xb-archive {
  --xb-navy: #051f60;
  --xb-red: #de0000;
  --xb-sky: #eaf4fd;
  --xb-line: #e6ebf2;
  --xb-text: #4a5568;
  padding: 0;
  margin-bottom: 40px;
  background: transparent;
  box-shadow: none;
  border: 0;
}

/* Nagłówek */
.xb-hero-head {
  background: linear-gradient(135deg, var(--xb-sky) 0%, #f7fbff 100%);
  border-radius: 10px;
  padding: 36px 40px;
  margin-bottom: 32px;
}
.xb-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--xb-red);
  margin-bottom: 8px;
}
.xb-archive-title {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--xb-navy);
  margin: 0 0 12px;
  text-transform: none;
}
.xb-archive-intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--xb-text);
  max-width: 780px;
  margin: 0;
}

/* Etykiety */
.xb-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.xb-badge {
  display: inline-block;
  background: var(--xb-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.xb-chip {
  display: inline-block;
  background: var(--xb-sky);
  color: var(--xb-navy);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  align-self: flex-start;
}
.xb-labels .xb-chip { margin-bottom: 0; }
.xb-chip:hover { background: var(--xb-navy); color: #fff; }
.xb-read {
  font-size: 13px;
  color: #7a8699;
  white-space: nowrap;
}
.xb-read::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -1px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}

/* Wyróżniony artykuł */
.xb-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--xb-line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 44px;
  box-shadow: 0 8px 24px rgba(5, 31, 96, .06);
}
.xb-featured-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  min-height: 340px;
  border-right: 1px solid var(--xb-line);
}
.xb-featured-img img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  padding: 24px;
}
.xb-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px;
}
.xb-featured-title {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 800;
  margin: 0 0 14px;
  text-transform: none;
}
.xb-featured-title a { color: var(--xb-navy); }
.xb-featured-title a:hover { color: var(--xb-red); }
.xb-featured-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--xb-text);
  margin: 0 0 22px;
}
.xb-featured-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.xb-btn {
  background: var(--xb-navy);
  border-color: var(--xb-navy);
  border-radius: 4px;
  padding: 10px 22px;
  text-transform: none;
  font-weight: 600;
}
.xb-btn:hover { background: var(--xb-red); border-color: var(--xb-red); }

/* Siatka */
.xb-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--xb-navy);
  margin: 0 0 20px;
  text-transform: none;
}
.xb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.xb-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--xb-line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.xb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(5, 31, 96, .12);
}
.xb-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-bottom: 1px solid var(--xb-line);
  overflow: hidden;
}
.xb-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform .3s ease;
}
.xb-card:hover .xb-card-img img { transform: scale(1.04); }
.xb-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}
.xb-card-title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 10px;
  text-transform: none;
}
.xb-card-title a { color: var(--xb-navy); }
.xb-card-title a:hover { color: var(--xb-red); }
.xb-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--xb-text);
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xb-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--xb-line);
}
.xb-card-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--xb-navy);
}
.xb-card-more:hover { color: var(--xb-red); }

/* Zastępnik zdjęcia */
.xb-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--xb-navy) 0%, #1c4fa0 100%);
  color: #fff;
}
.xb-ph svg { fill: rgba(255, 255, 255, .9); }
.xb-ph-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .85;
}
.xb-featured-img .xb-ph { min-height: 340px; }

/* Stronicowanie */
.xb-pagination { margin: 36px 0 0; }
.xb-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.xb-pagination a,
.xb-pagination .current {
  display: inline-block;
  min-width: 42px;
  padding: 9px 13px;
  text-align: center;
  border: 1px solid var(--xb-line);
  border-radius: 6px;
  color: var(--xb-navy);
  background: #fff;
}
.xb-pagination .current {
  background: var(--xb-navy);
  border-color: var(--xb-navy);
  color: #fff;
}
.xb-pagination a:hover { border-color: var(--xb-navy); }

/* Pas CTA */
.xb-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 32px 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--xb-navy) 0%, #1c4fa0 100%);
  color: #fff;
}
.xb-cta h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
  text-transform: none;
}
.xb-cta p {
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 640px;
}
.xb-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}
.xb-cta-btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.xb-cta-btn--light { background: #fff; color: var(--xb-navy); }
.xb-cta-btn--light:hover { background: var(--xb-red); color: #fff; }
.xb-cta-btn--outline { border: 2px solid rgba(255, 255, 255, .8); color: #fff; }
.xb-cta-btn--outline:hover { background: #fff; color: var(--xb-navy); }

.xb-empty { font-size: 16px; color: var(--xb-text); }

/* Responsywność */
@media (max-width: 991px) {
  .xb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xb-featured { grid-template-columns: 1fr; }
  .xb-featured-img { border-right: 0; border-bottom: 1px solid var(--xb-line); min-height: 260px; }
  .xb-featured-body { padding: 28px; }
  .xb-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575px) {
  .xb-grid { grid-template-columns: 1fr; gap: 20px; }
  .xb-hero-head { padding: 26px 22px; }
  .xb-archive-title { font-size: 26px; }
  .xb-featured-title { font-size: 21px; }
  .xb-cta { padding: 26px 22px; }
}

/* Nagłówki bloga – bez górnych marginesów z motywu */
.xb-archive .xb-archive-title,
.xb-archive .xb-featured-title,
.xb-archive .xb-card-title,
.xb-archive .xb-section-title,
.xb-archive .xb-cta h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.xb-archive .xb-cta-btn--light { color: #051f60 !important; }
.xb-archive .xb-cta-btn--outline { color: #fff !important; }
.xb-archive .xb-cta-btn--light:hover { color: #fff !important; }
.xb-archive .xb-cta-btn--outline:hover { color: #051f60 !important; }
