.carousel-section {
  margin-top: 30px;
  padding: 0 20px;
}

.carousel-container {
  position: relative;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}


.carousel-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 100px;
}

.slide-box {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 40px 60px 80px;
  border-radius: 20px;
  width: 100%;           /* previously 95% */
  max-width: 1800px;    /* was 1500px */
  margin-left: auto;
  margin-right: auto;

  /* Deep glossy black base with subtle diagonal crisscross pattern */
  background-color: #0a0a0a;
  background-image:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    linear-gradient(145deg, transparent 75%, rgba(255, 255, 255, 0.03) 75%),
    linear-gradient(to bottom, rgba(255,255,255,0.15), transparent 80%); /* Top light reflection */
  background-size: 20px 20px;
  background-blend-mode: overlay;

  /* Soft gold edge */
  border: 1px solid rgba(255, 215, 0, 0.25); /* subtle gold border */
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.05),
    0 0 30px rgba(0, 0, 0, 0.8);

  margin-bottom: 20px;
  animation: fadeIn 0.6s ease-in-out;
  position: relative;

  /* ✅ Add these for width */
  width: 100%;
  max-width: 1600px;  /* or 1400px depending on how much wider you want */
  margin-left: auto;
  margin-right: auto;
}




.slide-box.active {
  display: flex;
}

.trending-title {
  color: yellow;
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.slide-title {
  color: gold;
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

.coin-card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.coin-card {
  background-color: #0a0a0a;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.03) 25%, transparent 25%),
    linear-gradient(135deg, transparent 75%, rgba(255,255,255,0.03) 75%),
    linear-gradient(to bottom, rgba(255,255,255,0.1), transparent 80%);
  background-size: 20px 20px;
  background-blend-mode: overlay;
  border: 1px solid rgba(255,215,0,0.15);
  color: #fff;
  padding: 25px;
  width: 320px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}


.coin-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.coin-card img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: transform 0.4s ease-in-out;
}

/* 🔍 Zoom effect on hover */
.coin-card:hover img {
  transform: scale(1.75);
}

.coin-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #fff;
}

.coin-card p {
  font-size: 0.95rem;
  margin: 3px 0;
  color: #ccc;
}

.live-indicator {
  margin-top: 6px;
  font-weight: bold;
  color: #ff4d4d;
}

.dot-red {
  height: 10px;
  width: 10px;
  background-color: red;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.bid-now-btn {
  background-color: #2357f5;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  font-weight: bold;
}

.bid-now-btn:hover {
  background-color: #003ed1;
}

/* Dots - moved inside slide-box */
.dots {
  text-align: center;
  position: absolute;
  bottom: 40px; /* move up from edge */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.dot {
  height: 14px;
  width: 14px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.4s ease;
}

.dot.active {
  background-color: #007bff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .coin-card-container {
    flex-direction: column;
    align-items: center;
  }

  .coin-card {
    width: 90%;
  }
}

/* 🌟 Fixed heading - Trending Coins */
.trending-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #ffd700;
  text-align: center;
  text-shadow: 1px 1px 8px rgba(255, 215, 0, 0.6);
  letter-spacing: 1px;
  animation: flicker 3s infinite ease-in-out;
  margin-top: -20px;      /* 🔼 Moved upward */
  margin-bottom: 4px;
}

/* 💎 Dynamic heading - Slide Title (e.g. British India Coins) */
.slide-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: #00ffd5;
  text-align: center;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeInTitle 1s ease-in-out forwards;
  margin-top: 0px;      /* 🔼 Moved upward */
  margin-bottom: 25px;
}


/* ✨ Flicker animation for premium effect */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.6;
  }
}

/* 🎯 Fade animation for changing title */
@keyframes fadeInTitle {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-bar {
  position: relative;
  height: 16px;
  border-radius: 10px;
  margin: 8px 0;
  background: #222;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 2px 5px rgba(0,0,0,0.5);
}

.stat-label {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 4px;
}

.stat-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 5px;
  animation: growBar 1s ease-in-out forwards;
  background: linear-gradient(45deg, #fff, #ccc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.stat-bar-fill.bid {
  background: linear-gradient(45deg, #42a5f5, #1e88e5);
  box-shadow: 0 0 8px rgba(33, 150, 243, 0.8);
}

.stat-bar-fill.bidders {
  background: linear-gradient(45deg, #66bb6a, #43a047);
  box-shadow: 0 0 8px rgba(102, 187, 106, 0.8);
}

.stat-bar-fill.reserve {
  background: linear-gradient(45deg, #ef5350, #e53935);
  box-shadow: 0 0 8px rgba(244, 67, 54, 0.8);
}

@keyframes growBar {
  from {
    width: 0;
  }
  to {
    width: var(--bar-width);
  }
}

.countdown {
  text-align: center;
  font-weight: bold;
  color: #1e1e1e;
  margin-top: 10px;
  margin-bottom: 20px;
}

.countdown.ended {
  color: crimson;
}

.countdown-block {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-family: 'Orbitron', sans-serif;
}

.countdown-item {
  background: #111;
  color: #00e1ff;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 187, 255, 0.2);
  min-width: 60px;
}

.countdown-item .num {
  font-size: 20px;
  font-weight: bold;
  display: block;
  line-height: 1;
}

.countdown-item .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
