/* ===== Post Item ===== */
.wsbb-post-item {
  break-inside: avoid;
}

.wsbb-post-item-inner {
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.wsbb-post-item-inner:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ===== Image ===== */
.wsbb-post-image {
  overflow: hidden;
}

.wsbb-post-image-link {
  display: block;
}

.wsbb-post-image img {
  display: block;
  width: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.wsbb-post-image-link:hover img {
  transform: scale(1.05);
}

/* ===== Content ===== */
.wsbb-post-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wsbb-post-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.wsbb-post-date,
.wsbb-post-author {
  display: inline-flex;
  align-items: center;
}

.wsbb-post-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.4;
}

.wsbb-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wsbb-post-title a:hover {
  color: #0073aa;
}

.wsbb-post-excerpt {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
  flex: 1;
}

.wsbb-post-readmore {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0073aa;
  text-decoration: none;
  transition: color 0.2s ease;
  align-self: flex-start;
}

.wsbb-post-readmore:hover {
  color: #005177;
}

/* ===== List Layout ===== */
.wsbb-post-list .wsbb-post-item-inner {
  flex-direction: row;
}

.wsbb-post-list .wsbb-post-image {
  flex: 0 0 40%;
  max-width: 40%;
}

.wsbb-post-list .wsbb-post-image img {
  height: 100% !important;
}

@media (max-width: 600px) {
  .wsbb-post-list .wsbb-post-item-inner {
    flex-direction: column;
  }

  .wsbb-post-list .wsbb-post-image {
    flex: 0 0 auto;
    max-width: 100%;
  }
}

/* ===== Carousel ===== */
.wsbb-post-carousel {
  position: relative;
  overflow: hidden;
}

.wsbb-post-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 20px;
}

.wsbb-carousel-prev,
.wsbb-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: all 0.2s ease;
  padding: 0;
}

.wsbb-carousel-prev:hover,
.wsbb-carousel-next:hover {
  background: #fff;
  border-color: #aaa;
  color: #0073aa;
}

.wsbb-carousel-prev {
  left: 10px;
}

.wsbb-carousel-next {
  right: 10px;
}

.wsbb-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.wsbb-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.wsbb-carousel-dot.wsbb-active {
  background: #0073aa;
  border-color: #0073aa;
}

.wsbb-carousel-dot:hover {
  border-color: #0073aa;
}

/* ===== Pagination ===== */
.wsbb-post-pagination {
  margin-top: 30px;
  font-size: 0.95rem;
}

.wsbb-post-pagination .page-numbers,
.wsbb-post-pagination .wsbb-prev,
.wsbb-post-pagination .wsbb-next {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
}

.wsbb-post-pagination .page-numbers.current {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

.wsbb-post-pagination .page-numbers:hover,
.wsbb-post-pagination .wsbb-prev:hover,
.wsbb-post-pagination .wsbb-next:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.wsbb-post-pagination .page-numbers.current:hover {
  background: #005177;
  border-color: #005177;
}

.wsbb-post-empty {
  text-align: center;
  color: #888;
  padding: 30px;
}
