/* News/blog listing styles — Gravity Projex. Loaded via inc/assets.php per-template loader. */
/* News listing — self-contained scoped styles (purge-proof, no Tailwind reliance). */
.gp-news-wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }

.gp-news-hero { position: relative; overflow: hidden; background: #020617; padding: 8rem 0 4rem; margin-top: 5rem; text-align: center; }
.gp-news-hero__glow { position: absolute; bottom: 25%; right: -8rem; width: 24rem; height: 24rem; background: rgba(6,182,212,.2); border-radius: 9999px; filter: blur(80px); pointer-events: none; }
.gp-news-hero__inner { position: relative; z-index: 1; max-width: 48rem; margin-inline: auto; padding-inline: 1.5rem; }
.gp-news-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #ff6b6b; }
.gp-news-title { font-size: clamp(2.75rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.05; color: #fff; margin: 1rem 0 1.25rem; }
.gp-news-sub { font-size: 1.2rem; color: #94a3b8; max-width: 36rem; margin: 0 auto; }

/* Controls row */
.gp-news-controls { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; justify-content: space-between; padding-bottom: 3rem; }
@media (min-width: 768px){ .gp-news-controls { flex-direction: row; } }
.gp-news-search { position: relative; width: 100%; max-width: 20rem; }
.gp-news-search svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 1.15rem; height: 1.15rem; color: #64748b; pointer-events: none; }
.gp-news-search input { width: 100%; padding: .75rem 1rem .75rem 2.5rem; color: #fff; background: #0f172b; border: 1px solid #334155; border-radius: 9999px; }
.gp-news-search input::placeholder { color: #64748b; }
.gp-news-search input:focus { outline: 2px solid #7c3aed; outline-offset: 2px; border-color: transparent; }

.gp-news-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.gp-news-tab { padding: .5rem 1rem; font-size: .875rem; font-weight: 500; color: #94a3b8; background: transparent; border: 1px solid rgba(100,116,139,.4); border-radius: 9999px; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.gp-news-tab:hover { color: #fff; border-color: rgba(139,92,246,.5); }
.gp-news-tab:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }
.gp-news-tab[aria-pressed="true"] { color: #fff; background: #7c3aed; border-color: transparent; }

/* Featured */
.gp-news-featured { padding-bottom: 4rem; }
.gp-news-featured[hidden] { display: none; }
.gp-news-featured__card { position: relative; border-radius: 1.5rem; overflow: hidden; background: linear-gradient(135deg, #0f172b, #1e293b); border: 1px solid rgba(255,255,255,.1); display: grid; }
@media (min-width: 1024px){ .gp-news-featured__card { grid-template-columns: 1fr 1fr; } }
.gp-news-featured__media { position: relative; min-height: 16rem; }
.gp-news-featured__media img { width: 100%; height: 100%; object-fit: cover; }
.gp-news-featured__media .gp-news-ph { width: 100%; height: 100%; min-height: 16rem; background: linear-gradient(135deg, #7c3aed33, #06b6d433); }
.gp-news-featured__body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1024px){ .gp-news-featured__body { padding: 3rem; } }
.gp-news-badge--featured { display: inline-block; width: fit-content; margin-bottom: 1rem; padding: .25rem .75rem; border-radius: 9999px; font-size: .75rem; background: rgba(6,182,212,.2); color: #22d3ee; }
.gp-news-featured__body h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; color: #fff; margin: 0 0 1rem; line-height: 1.2; }
.gp-news-featured__body h2 a { color: inherit; text-decoration: none; }
.gp-news-featured__body h2 a:hover { color: #22d3ee; }
.gp-news-featured__excerpt { color: #94a3b8; font-size: 1.05rem; margin: 0 0 1.5rem; }
.gp-news-meta { display: flex; align-items: center; gap: 1rem; font-size: .8rem; color: #64748b; margin-bottom: 2rem; }
.gp-news-btn { display: inline-flex; align-items: center; gap: .5rem; width: fit-content; padding: .75rem 1.5rem; border-radius: 9999px; font-weight: 600; color: #fff; text-decoration: none; background: linear-gradient(90deg, #7c3aed, #06b6d4); }
.gp-news-btn svg { width: 1rem; height: 1rem; }

/* Grid */
.gp-news-grid-section { padding-bottom: 8rem; }
.gp-news-count { font-size: .85rem; color: #64748b; margin: 0 0 1.5rem; }
.gp-news-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px){ .gp-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .gp-news-grid { grid-template-columns: repeat(3, 1fr); } }

.gp-news-card { display: block; text-decoration: none; }
.gp-news-card[hidden] { display: none; }
.gp-news-card__inner { border-radius: 1rem; overflow: hidden; background: rgba(15,23,42,.5); border: 1px solid rgba(255,255,255,.1); transition: border-color .3s; height: 100%; }
.gp-news-card:hover .gp-news-card__inner { border-color: rgba(255,255,255,.2); }
.gp-news-card__media { position: relative; height: 12rem; overflow: hidden; }
.gp-news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gp-news-card:hover .gp-news-card__media img { transform: scale(1.05); }
.gp-news-card__media .gp-news-ph { width: 100%; height: 100%; background: linear-gradient(135deg, #7c3aed26, #06b6d426); }
.gp-news-badge { position: absolute; top: 1rem; left: 1rem; padding: .25rem .75rem; border-radius: 9999px; font-size: .75rem; background: rgba(2,6,23,.8); color: #cbd5e1; backdrop-filter: blur(6px); }
.gp-news-card__body { padding: 1.5rem; }
.gp-news-card__meta { display: flex; align-items: center; gap: 1rem; font-size: .75rem; color: #64748b; margin-bottom: .75rem; }
.gp-news-card__title { font-size: 1.125rem; font-weight: 600; color: #fff; margin: 0 0 .5rem; line-height: 1.35; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gp-news-card:hover .gp-news-card__title { color: #22d3ee; }
.gp-news-card__excerpt { color: #94a3b8; font-size: .875rem; margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gp-news-more { font-size: .875rem; color: #a78bfa; font-weight: 500; display: inline-flex; align-items: center; gap: .35rem; }
.gp-news-more svg { width: 1rem; height: 1rem; }

.gp-news-empty { text-align: center; padding: 3rem 1rem; color: #94a3b8; }
.gp-news-empty[hidden] { display: none; }