/* news.css — "ข่าวสารและกิจกรรม" single-column horizontal list (chrome in site.css) */

    .news-wrap { max-width: 1080px; margin: 0 auto; padding: 2.4rem 1.5rem 3.5rem; }

    /* ── 2-column: news list (left) • search + categories (right) ── */
    .news-layout { display: grid; grid-template-columns: 1fr 264px; gap: 2rem; align-items: start; }
    .news-side { position: sticky; top: 80px; display: flex; flex-direction: column; }
    .news-side-title { font-size: .92rem; font-weight: 700; color: var(--primary); border-left: 4px solid var(--accent); padding-left: .6rem; margin: 1.2rem 0 .7rem; }

    .news-search { position: relative; margin-bottom: .2rem; }
    .news-search .ns-ic { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: .9rem; opacity: .55; }
    .news-search input {
      width: 100%; padding: .72rem 1.1rem .72rem 2.45rem; font-family: inherit; font-size: .9rem;
      border: 1.5px solid #e4e4de; border-radius: 12px; background: #fff; transition: .18s;
    }
    .news-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,206,27,.16); }

    /* year / month dropdowns */
    .news-period { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .3rem; }
    .news-period select { width: 100%; padding: .55rem .8rem; font-family: inherit; font-size: .85rem; font-weight: 600; color: #555; border: 1.5px solid #e6e6e0; border-radius: 10px; background: #fff; cursor: pointer; transition: .15s; }
    .news-period select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,206,27,.16); }

    /* chips stacked as a vertical filter list in the right column */
    .news-chips { display: flex; flex-direction: column; gap: .45rem; }
    .news-chip {
      display: inline-flex; align-items: center; gap: .4rem; width: 100%; text-align: left;
      border: 1.5px solid #e6e6e0; background: #fff; color: #555; font-family: inherit;
      font-size: .85rem; font-weight: 600; border-radius: 10px; padding: .5rem .8rem; cursor: pointer; transition: .15s;
    }
    .news-chip:hover { border-color: var(--accent); color: #1f1f1f; }
    .news-chip.active { background: var(--primary); color: var(--accent); border-color: var(--primary); }
    .news-chip .cc { margin-left: auto; font-size: .75rem; opacity: .6; font-weight: 700; }
    .news-chip.active .cc { opacity: .85; }

    /* ── single-column list of horizontal cards (รูปซ้าย • ข้อความขวา) ── */
    .news-grid { display: flex; flex-direction: column; gap: 1.2rem; }
    .news-empty { text-align: center; padding: 4rem 1rem; }

    a.news-card { text-decoration: none; color: inherit; }
    .news-card {
      display: grid; grid-template-columns: 210px 1fr; gap: 0;
      background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #ededed;
      border-left: 4px solid transparent; box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s, border-color .2s;
    }
    .news-card:hover { transform: translateY(-3px); border-left-color: var(--accent); box-shadow: 0 10px 24px rgba(0,0,0,.11); }

    /* cover: whole image visible (contain), not cropped */
    .news-card .nc-thumb { background: #f1f1ec; display: flex; align-items: center; justify-content: center; min-height: 158px; overflow: hidden; }
    .news-card .nc-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
    .news-card .nc-emoji { font-size: 3rem; color: #c3c8bd; }

    .news-card .nc-body { padding: 1.05rem 1.25rem; display: flex; flex-direction: column; min-width: 0; }
    .news-card .tag {
      align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .02em;
      background: var(--accent); color: #111; border-radius: 5px; padding: .2rem .55rem; margin-bottom: .5rem;
    }
    .news-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.5; color: var(--primary); margin-bottom: .4rem; }
    .news-card h3 .news-ic { margin-right: .35rem; }
    .news-card .nc-excerpt {
      font-size: .84rem; color: #666; line-height: 1.65;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .news-card .nc-meta {
      display: flex; align-items: center; justify-content: space-between; gap: .6rem;
      margin-top: auto; padding-top: .7rem; font-size: .76rem; color: #999;
    }
    .news-card .read-more { color: #b8860b; font-weight: 700; white-space: nowrap; }
    .news-card:hover .read-more { color: #1f1f1f; }

    /* ── pagination ── */
    .pagination { display: flex; gap: .45rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
    .page-btn {
      padding: .5rem .95rem; border: 1.5px solid #e4e4de; border-radius: 10px; font-size: .85rem; cursor: pointer;
      text-decoration: none; color: var(--primary); background: #fff; font-weight: 600; transition: .15s;
    }
    .page-btn.active, .page-btn:hover { background: var(--accent); color: #111; border-color: var(--accent); }

    @media (max-width: 820px) {
      .news-layout { grid-template-columns: 1fr; }
      .news-side { order: -1; position: static; }       /* filters above the list on mobile */
      .news-side-title { margin-top: 0; }
      .news-chips { flex-direction: row; flex-wrap: wrap; }
      .news-chip { width: auto; border-radius: 30px; }
      .news-chip .cc { margin-left: .15rem; }
    }
    @media (max-width: 620px) {
      .news-card { grid-template-columns: 1fr; }
      .news-card .nc-thumb { min-height: 190px; }
    }
