/* Berita AI on My learning (aiNewsSection in portal.js): a row of picture cards that scrolls sideways, each with its
   tag, date, title, a summary clamped to three lines with Read more, and its source. While the feed loads the same
   cards show as skeleton boxes (.skel from /academy/skeleton.css). */
.ainews { margin: 34px 0 6px; }
.ainews-head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 30px); }
.ainews-head p { margin: 4px 0 0; max-width: 60ch; font-size: 14px; line-height: 1.5; color: var(--faint); }
.ainews-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 28px) / 3)); gap: 14px; margin-top: 16px; padding: 2px 2px 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.ainews-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line2); scroll-snap-align: start; }
.ainews-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; background: #0b1020; }
.ainews-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 14px 16px 16px; }
.ainews-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font: 500 11px/1.2 var(--mono); letter-spacing: .06em; color: var(--faint); }
.ainews-tag { padding: 4px 8px; border-radius: var(--pill); color: var(--cyan); background: rgba(0,84,255,.16); box-shadow: inset 0 0 0 1px rgba(140,200,255,.35); }
.ainews-lang { margin-left: auto; padding: 3px 6px; border-radius: 6px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.ainews-card h3 { margin: 2px 0 0; font-size: 17px; line-height: 1.3; }
.ainews-sum { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ainews-card.full .ainews-sum { display: block; }
.ainews-more { align-self: flex-start; min-height: 32px; padding: 4px 0; border: 0; background: none; color: var(--cyan); font: 600 13px var(--sans); cursor: pointer; }
.ainews-more:hover { text-decoration: underline; }
.ainews-src { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: auto 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.4; color: var(--faint); }
.ainews-src a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ainews-src a:hover { text-decoration: underline; }
.ainews-strip[aria-hidden="true"] .ainews-card { pointer-events: none; }
@media (max-width: 700px) {
  .ainews-strip { grid-auto-columns: 82%; gap: 10px; margin-right: -16px; padding-right: 16px; }
}
