.cc-task-track a {
  text-decoration: none;
  display: block;
  flex: 0 0 auto;
  min-width: 263px;
}

/* ── Section ── */
.cc-featured-tasks {
  margin: 0 auto;
  padding: 0 0 56px;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
}

.cc-task-card.cc-task-card-template {
  display: none;
}

.server-response {
  display: none;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #6b7280;
  padding: 24px 16px;
}

/* ── Header ── */
.cc-task-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d0d5dd;
  margin-bottom: 44px;
}

.cc-task-header-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: #082f49;
  text-align: center;
}

/* ── Carousel ── */
.cc-task-carousel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  margin-bottom: 44px;
}

.cc-task-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: cc-task-scroll-left 30s linear infinite;
}

/* Second row scrolls in reverse */
.cc-task-track-2 {
  animation-name: cc-task-scroll-right;
}

/* Pause both rows on hover */
.cc-task-carousel:hover .cc-task-track {
  animation-play-state: paused;
}

@keyframes cc-task-scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes cc-task-scroll-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* ── Card ── */
.cc-task-card {
  width: 100%;
  /* height: 162px; */
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.cc-task-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
}

/* ── Card Info ── */
.cc-task-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.cc-task-title {
  font-family: "Poppins";
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--Gray-800, #1d2939);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-task-location {
  font-family: "Poppins";
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--Gray-500, #667085);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* ── Stars ── */
.cc-task-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-task-stars {
  position: relative;
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

/* Gray background stars */
.cc-task-stars::before {
  content: "★★★★★";
  color: #d0d5dd;
}

/* Gold filled stars — width set by JS: (rating/5*100)% */
.cc-stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #fdb022;
}

.cc-stars-fill::before {
  content: "★★★★★";
  font-size: 15px;
  line-height: 1;
}

.cc-task-reviews {
  font-family: "Poppins";
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #667085;
  white-space: nowrap;
}

/* ── Card Meta ── */
.cc-task-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cc-task-budget {
  display: flex;
  align-items: baseline;
  gap: 3px;
  overflow: hidden;
  white-space: nowrap;
}

.cc-budget-from {
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  color: #667085;
}

.cc-budget-amount {
  font-size: 17px;
  font-weight: 600;
  line-height: normal;
  color: #344054;
}

.cc-task-posted {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #667085;
  white-space: nowrap;
}

/* ── Browse Button ── */
.cc-browse-btn {
  display: flex;
  justify-content: center;
}

.cc-browse-tasks-btn {
  min-width: 190px;
  height: 48px;
  padding: 0 24px;
  border: 1.5px solid #0284c7;
  border-radius: 6px;
  background: transparent;
  color: #0284c7;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.cc-browse-tasks-btn:hover {
  background: #0284c7;
  color: #ffffff;
}
