/* banner img */
.banner-bg {
  background: url('/ver2/images/article/article-banner.webp') center center / cover no-repeat;
}

.story-bg{
    background: url('/ver2/images/bear.png') repeat;
}

/* 故事時間 */
.story-card-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px 0;
}

/* 單張卡片樣式 */
.story-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background 0.3s ease;
  cursor: pointer;
  position: relative;
}

.story-card:hover {
  background: linear-gradient(135deg, #7d6d91,rgba(229, 213, 248, 0.66));
  transform: translateY(-5px);
}

.story-card-img img {
  width: 100%;
  display: block;
}

/* 文字區塊 */
.story-card-text {
  padding: 15px;
}

.story-card-text h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: #333;
}

.story-card-text p {
  font-size: 14px;
  color: #666;
}

/* tag & button */
.story-card-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 0px 10px 0px;
  align-items: center;
}

.story-card-footer a {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px 0px 0 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.story-level {
  /* background-color: #f44336; */
  color:rgb(102, 98, 98);
}

.story-read-more {
  background-color: #7d6d91;
  color:rgb(255, 255, 255);
}

.story-level:hover,
.story-read-more:hover {
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .story-card-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .story-card-list {
    grid-template-columns: 1fr;
  }
}