:root {
  --header-bg: linear-gradient(-180deg, #17181e 5%, #17181e 95%) !important;
  --primary-color: #fff !important;
}


.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
  }

  .news-card {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
  }

  .news-card img {
    width: 30%;
    object-fit: cover;
  }

  .news-content {
    padding: 5px 10px;
  }

  .news-category {
    font-size: 12px;
    color: #000;
    margin-bottom: 5px;
  }

  .news-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;  /* 限制顯示兩行 */
    line-clamp: 2;  /* Standard property for compatibility */
    -webkit-box-orient: vertical;
  }

  .ad-coin-img{
    width: 100%;
  }

  .ad-coin  a{
    display: contents;

  }

  .ad-coin{
    position: relative;
    width: 100%;
    }

    .ad-coin h4{
        position: absolute;
        bottom: 3.5%;
        left: 50%;
        transform: translateX(-50%);
        color: #fff; 
        width: 100%;
        text-align: center;
        font-size: 12px;
        margin: 0;
    }
    .ad-coin h4 .num{
        color:rgb(250, 253, 67);
        font-size: 22px;
        margin-left: 10px;
    }

    @media (max-width: 768px) {
      .ad-coin h4{
        font-size: 24px;
    }
    .ad-coin h4 .num{
        font-size: 36px;
    }
  }