/* ProFinder Blog Slider - self-contained styles */

.pfbs-section {
  padding: 60px 20px;
  text-align: center;
}

.pfbs-subtitle {
  display: block;
  color: #d50a08;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}

.pfbs-title {
  font-size: 34px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 40px;
  line-height: 1.2;
}

.pfbs-wrapper {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 50px;
}

.pfbs-track {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  text-align: left;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* old Edge/IE */
}
.pfbs-track::-webkit-scrollbar {
  display: none;              /* Chrome/Safari */
}

.pfbs-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: calc((100% - 5 * 20px) / 6); /* 6 visible on desktop */
}

.pfbs-img {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 180px;
  background: #f2f2f2;
}
.pfbs-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pfbs-img-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e9ecef, #f8f9fa);
}

.pfbs-date {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.pfbs-day {
  display: block;
  font-weight: 700;
  color: #111;
}
.pfbs-month {
  display: block;
  color: #777;
  text-transform: uppercase;
  font-size: 11px;
}

.pfbs-content {
  padding-top: 14px;
}

.pfbs-post-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  overflow: hidden;
}
.pfbs-post-title a {
  display: block;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;      /* force a single line, never wrap to 2 lines */
  overflow: hidden;
  text-overflow: ellipsis;  /* "..." exactly at the card's edge, matching the image width above it */
}
.pfbs-post-title a:hover {
  color: #d50a08;
}

.pfbs-arrow {
  position: absolute;
  top: 90px; /* vertically centered against the 180px image height */
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #eee;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #242424;
  transition: 0.2s ease;
}
.pfbs-arrow:hover {
  background: #d50a08;
  border-color: #d50a08;
  color: #fff;
}
.pfbs-prev {
  left: 0;
}
.pfbs-next {
  right: 0;
}

/* Responsive: fewer cards visible per screen going down */
@media (max-width: 1199px) {
  .pfbs-card {
    width: calc((100% - 3 * 20px) / 4); /* 4 visible */
  }
}
@media (max-width: 991px) {
  .pfbs-card {
    width: calc((100% - 20px) / 2); /* 2 visible */
  }
}
@media (max-width: 767px) {
  .pfbs-card {
    width: calc((100% - 20px) / 1.6); /* smoother transition down to mobile */
  }
}
@media (max-width: 575px) {
  .pfbs-section {
    padding: 40px 12px;
  }
  .pfbs-wrapper {
    padding: 0 8px;   /* was 0 30px - removes most of the wasted edge space */
  }
  .pfbs-title {
    font-size: 24px;
  }
  .pfbs-track {
    gap: 14px;        /* tighter gap lets more of the next card peek in */
  }
  .pfbs-card {
    width: 88%;       /* was 82% - larger, more prominent card on small screens */
  }
  .pfbs-img {
    height: 160px;
  }
  .pfbs-arrow {
    display: none;    /* rely on native touch swipe on small screens */
  }
}
