.card.hover-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
  }
  
  .card.hover-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
  }
  
  .card.hover-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }
  
  .card.hover-card:hover .card-overlay {
    opacity: 1;
  }
  
  .overlay-content {
    text-align: center;
  }
  
  .overlay-content h2 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
  }
  
  .overlay-content a {
    color: #00baff;
    text-decoration: none;
    font-weight: bold;
  }

  .add-build-cta {
    text-align: center;
    background: #f0f0f0;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
  }
  

  .build-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
  }
  
  .main-image {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
  }
  
  
  .description {
    margin-top: 2rem;
  }

  .build-top {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .main-image {
    flex: 1;
    max-width: 500px;
  }
  .main-image img {
    width: 100%;
    border-radius: 10px;
  }

  /* Container for main preview image */
.main-photo-container {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* Main image shown on the build page */
.main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

  
.thumbnails {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}
.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
}
.build-text {
  flex: 1;
  min-width: 300px;
}
.subtitle {
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.builder {
  font-style: italic;
  margin-bottom: 1rem;
}

/* Horizontal banners */
.scroll-banner {
  display: flex;
  justify-content: center; /* 🔥 centers horizontally */
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 2rem;
  margin: 2rem auto;
  max-width: 100%;
}
.scroll-banner + h2 {
  text-align: center;
}

.scroll-banner::-webkit-scrollbar {
  height: 8px;
}


.scroll-banner::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.scroll-card {
  flex: 0 0 auto;
  width: 160px;
  background: #f7f7f7;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  padding: 0.5rem;
  text-align: center;
}
.scroll-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}
.scroll-card a,
.scroll-card p {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #0066cc;
  text-decoration: none;
}

.icon-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.icon-links a img.icon-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.icon-links a:hover img.icon-logo {
  transform: scale(1.1);
}
