.story-grid { display: grid; gap: 20px; }
.story-card { background: #e0fff1; border-radius: 8px; padding: 10px; }
.story-info { display: flex; justify-content: space-between; }

.top24h-grid .card {
  background: #c8e6c9;
  width: 150px;
  height: 220px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.top24h-grid .card img {
  max-width: 100%;
  border-radius: 4px;
}
.top24h-grid .card .read-now {
  background: #f48fb1;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  margin-top: 10px;
}


.top24h-grid .card .read-now {
  background: #f48fb1;
  border: none;
  padding: 6px 12px;  /* Nhỏ hơn */
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  margin-top: 10px;
  align-self: flex-end; /* Xích qua phải */
  margin-right: 10px;
}


.top24h-grid .card .read-now {
  background: #f48fb1;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  margin-top: 10px;
  align-self: flex-end;
  margin-right: 0px;  /* Sát hơn */
}


.grid, .top24h-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-content: center;
}


.top24h-grid .card .read-now {
  background: #f48fb1;
  border: none;
  padding: 4px 10px;  /* Nhỏ xíu lại */
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  margin-top: 10px;
  align-self: flex-end;
  margin-right: 0;
  text-decoration: none; /* Bỏ gạch */
}


.top24h-grid .card .read-now {
  padding: 2px 8px;  /* Nhỏ hơn nữa */
}

.card-wrapper {
  text-align: center;
  margin-bottom: 20px;
}
.story-title {
  margin-top: 8px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

#filters {
  text-align: center;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  display: inline-block;
  background: #f0f0f0;
  padding: 6px 12px;
  margin: 5px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.filter-btn:hover {
  background: #ddd;
}

.genre-box {
  min-height: 60px;
  max-height: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
}
.story-genre {
  margin: 0;
}

.genre-box {
  min-height: 80px;
  max-height: 80px;
  overflow: visible;
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
  margin: 20px auto;
}

/* Button */
.dropbtn {
  background-color: #f0f0f0;
  color: #333;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 20px;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: #333;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}
