.cnt-ticker-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding: 6px 0;
  box-sizing: border-box;
  user-select: none;
  background: transparent;
}

/* New stylized round arrow buttons */
.cnt-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #f0f0f0; /* light grey background */
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  z-index: 10;
  color: #333; /* dark grey arrow */
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px; /* padding inside the circle */
  user-select: none;
  transition: opacity 0.3s ease, background-color 0.3s ease, 
              color 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;              /* hidden by default */
  pointer-events: none;    /* disable clicks when hidden */
}

/* Show arrows when hovering over the ticker wrapper */
.cnt-ticker-wrapper:hover .cnt-arrow {
  opacity: 1;
  pointer-events: auto;
}

/* Arrow symbol inside */
.cnt-arrow .arrow-symbol {
  line-height: 1;
  font-weight: 600;
  font-family: "Noto Sans Bengali", "Hind Siliguri", "Anek Bangla", "Baloo Da 2", sans-serif;
  color: inherit;
}

/* Hover effect */
.cnt-arrow:hover {
  background-color: #e0e0e0;
  color: #000;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* Left arrow */
.cnt-arrow.left {
  left: 10px;
}

/* Right arrow */
.cnt-arrow.right {
  right: 10px;
}

/* Dark mode overrides */
.s-dark .cnt-arrow {
  background-color: #222; /* deep almost dark grey */
  color: #fff; /* white arrow */
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.s-dark .cnt-arrow:hover {
  background-color: #333;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.cnt-ticker {
  position: relative;
  width: 100%;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0 60px;
  box-sizing: border-box;
  font-family: "Noto Sans Bengali", "Hind Siliguri", "Anek Bangla", "Baloo Da 2", sans-serif;
  font-weight: 500;
  font-size: 19px;
  color: #000;
}

.cnt-news {
  position: absolute;
  white-space: nowrap;
  opacity: 0;
  left: 100%;
  transition: none;
  cursor: pointer;
  user-select: text;
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 100%;
}

.cnt-news.active {
  opacity: 1;
  left: 0;
  transition: left 0.5s ease;
}

.s-dark .cnt-ticker {
  color: #fff;
}

/* Slide animations for ticker */
.cnt-news.slide-left {
  animation: slideLeft 0.5s forwards;
}

.cnt-news.slide-right {
  animation: slideRight 0.5s forwards;
}

/* New rewind effect: current item exits right */
.cnt-news.exit-right {
  animation: exitRight 0.4s forwards; /* <-- reduce time to make transition quicker */
}

@keyframes slideLeft {
  from { left: 100%; opacity: 0; }
  to { left: 0; opacity: 1; }
}

@keyframes slideRight {
  from { left: -100%; opacity: 0; }
  to { left: 0; opacity: 1; }
}

@keyframes exitRight {
  from { left: 0; opacity: 1; }
  to { left: 100%; opacity: 0; }
}
