/* Featured Artists Section */
.featured-artists {
  background: #ffffff;
  padding: 28px 20px;
  box-sizing: border-box;
}

.featured-artists .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Title: left on desktop, centered on mobile, with red underline */
.featured-artists .section-title {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  margin: 0 0 18px 0;
  text-align: center;
  display: inline-block;
  position: relative;
}

/* red underline exactly under the text */
.featured-artists .section-title::after {
  content: "";
  display: block;
  width: 200px;              /* adjust width to match sample */
  height: 2px;
  background: #0166FF;      /* reddish color */
  margin-top: 6px;
  border-radius: 2px;
}

/* mobile center */
@media (max-width: 768px) {
  .featured-artists .section-title {
    display: block;
    text-align: center;
    margin-bottom: 18px;
  }
  .featured-artists .section-title::after {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Carousel wrapper */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 8px 0;
  box-sizing: border-box;
}

/* Track: horizontal flex container */
.carousel-track {
  display: flex;
  flex-direction: row;
  gap: 20px;
  transition: transform 0.45s ease;
  will-change: transform;
  align-items: center;
  box-sizing: border-box;
}

/* Desktop: show 7 items per view */
@media (min-width: 769px) {
  .artist {
    flex: 0 0 auto;
    width: calc((100% - 120px) / 7); /* 6 gaps * 20px = 120px */
    max-width: 160px;
    box-sizing: border-box;
    text-align: center;
  }
}

/* Mobile: show 3 items per view */
@media (max-width: 768px) {
  .artist {
    flex: 0 0 auto;
    width: calc((100% - 40px) / 3); /* 2 gaps * 20px = 40px */
    max-width: 140px;
    box-sizing: border-box;
    text-align: center;
  }
}

/* Artist visuals */
.artist img {
  width: 100%;
  max-width: 120px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border: 3px solid #eee;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.artist img:hover {
  transform: scale(1.07);
  border-color: #e60023;
  box-shadow: 0 6px 18px rgba(230,0,35,0.18);
}

.artist p {
  margin: 8px 0 0 0;
  font-size: 14px;
  color: #000;
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
   white-space: nowrap; /* Prevent text wrapping */
}

/* Plain arrow buttons - JS will set left/top to center over icons */
.carousel-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #e60023;
  font-size: 80px;
  cursor: pointer;
  z-index: 3;
  padding: 0 0 40px 0;
  transition: color 0.2s ease, transform 0.12s ease;
}

.carousel-btn:hover {
  color: #c4001e;
  transform: translateY(-2px);
}

/* smaller on tiny screens */
@media (max-width: 420px) {
  .carousel-btn { width: 40px; height: 40px; font-size: 60px; }
}

/* Make sure artists stay in a row */
.carousel-track .artist { display: block; }

/* Utility */
.featured-artists a { color: inherit; text-decoration: none; }
