/* 活動區塊容器 */
.event-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    padding: 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* 每一張卡片 */
  .event-card {
    flex: 1 1 calc(33.333% - 40px);
    max-width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .event-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
  }
  
  /* 圖片與遮罩 */
  .event-img {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .event-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.3s ease;
  }
  
  .event-card:hover .event-img::before {
    background: rgba(0, 0, 0, 0.6);
  }
  
  /* 標題 */
  .event-img h3 {
    position: relative;
    color: #fff;
    font-size: 20px;
    z-index: 1;
    text-align: center;
    padding: 0 10px;
    transition: color 0.3s ease;
    font-weight: 600;
    text-decoration: none;
  }
 
  .event-card:hover .event-img h3 {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  }
  
  /* 日期 */
  .event-date {
    text-align: center;
    padding: 12px;
    font-size: 15px;
    color: #333;
  }
  
  /* ✅ RWD */
  @media (max-width: 992px) {
    .event-card {
      flex: 1 1 calc(50% - 40px);
    }
  }
  
  @media (max-width: 600px) {
    .event-card {
      flex: 1 1 100%;
    }
  }
  