/* ============================================================
   cjworld - Animations & Extra Styles
   ============================================================ */

/* ===== Live Date Bar ===== */
.live-date {
  text-align: center;
  padding: 10px 20px;
  background: #e2e8f0;
  font-size: 0.9rem;
  color: #475569;
  border-bottom: 1px solid #d1d5db;
  transition: background 0.3s;
}
.live-date strong {
  color: #2563eb;
}

/* ===== Scroll to Top Button (Hover effect) ===== */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  transform: translateY(20px);
}
#scrollToTop:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 24px rgba(37,99,235,.5);
}
#scrollToTop:active {
  transform: scale(0.95) !important;
}
#scrollToTop:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 4px;
}

/* ===== Stat Bar ===== */
.stat-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 30px 20px;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
  text-align: center;
}
.stat-item {
  min-width: 140px;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.2;
  transition: all 0.3s;
}
.stat-label {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* ===== Promo Read More Button ===== */
.promo-readmore {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  margin-left: 4px;
  transition: color 0.2s;
  white-space: nowrap;
}
.promo-readmore:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ===== Fade-in Section Animation ===== */
.anim-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.anim-section.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive for animations ===== */
@media (max-width: 480px) {
  .stat-item { min-width: 100px; }
  .stat-number { font-size: 1.6rem; }
  #scrollToTop {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
    bottom: 20px;
    right: 20px;
  }
}
