.family-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Roboto" !important;
  src: url("https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap");
  font-weight: normal;
}

@font-face {
  font-family: "Roboto" !important;
  src: url("https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap");
  font-weight: bold;
}

.family-container {
  border-radius: 10px;
  background: #cedff1;
  color: #333;
  line-height: 1.6;
  font-family: "Roboto", Arial, sans-serif !important;
  width: 95%;
  margin: 0 auto;
  padding: 20px;
  margin-bottom: 20px;
}

.news-ticker-wrapper-family {
  background: white;
  border-radius: 8px;
  /* margin-bottom: 20px; */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.news-ticker-family {
  padding: 12px 20px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ticker-content-family {
  display: flex;
  animation: tickerAnimation linear infinite; /* Thời gian và keyframes sẽ được JS điều chỉnh */
  white-space: nowrap; /* Đảm bảo các item nằm trên một hàng */
  cursor: grab; /* Con trỏ chuột khi kéo */
}

.ticker-content-family:active {
  cursor: grabbing; /* Con trỏ khi đang kéo */
}

.ticker-item-family {
  display: flex;
  align-items: center;
  padding: 0 20px;
  flex-shrink: 0;
}

.ticker-item-family i {
  margin-right: 8px;
  font-size: 16px;
}

.ticker-item-family .ticker-title {
  font-weight: 600;
  color: #1877f2;
  margin-right: 5px;
}

.ticker-item-family .ticker-content {
  color: #666;
}

.ticker-item-family .countdown-span-family {
  font-weight: 700;
  color: #1877f2;
  background: #e8f4fc;
  padding: 2px 6px;
  border-radius: 4px;
  margin: 0 2px;
}

.ticker-separator-family {
  width: 1px;
  height: 20px;
  background: #e0e0e0;
  margin: 0 15px;
  flex-shrink: 0;
}

/* Keyframes mặc định, sẽ bị ghi đè bởi JS */
@keyframes tickerAnimation {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}