/* ============================================================
   News listing — modern newsroom cards (on-brand: gold / red / dark)
   Loaded after style.css on news.php, overrides the legacy layout.
   ============================================================ */

/* ── Filter panel: titled, card-style, floating-label fields ── */
.news-page .filter-bar {
  padding: 30px 5% 6px;
}
.news-page .filter-bar .filter-head {
  margin-bottom: 16px;
}
.news-page .filter-bar .filter-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c19114;
}
.news-page .filter-bar .filter-title {
  margin: 6px 0 0;
  font-size: 1.55em;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}
.news-page .filter-bar .filter-sub {
  margin: 6px 0 0;
  font-size: 0.92em;
  color: #9a9a9a;
}

.news-page .filter-bar form {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 14px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

/* Field shell with a small floating label */
.news-page .filter-bar form .field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex: 1 1 240px;
  min-width: 200px;
  margin: 0;
  padding: 8px 16px;
  background: #1b1b1b;
  border: 1px solid #2c2c2c;
  border-radius: 11px;
  cursor: text;
  transition: border-color .2s ease, background .2s ease;
}
.news-page .filter-bar form .field-select { cursor: pointer; }
.news-page .filter-bar form .field:focus-within {
  border-color: #c19114;
  background: #1f1f1f;
}
.news-page .filter-bar form .field .field-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #8a8a8a;
}
.news-page .filter-bar form .field select,
.news-page .filter-bar form .field input {
  width: 100%;
  height: 26px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.98em;
  font-family: inherit;
  padding: 0;
}
.news-page .filter-bar form .field input::placeholder { color: rgba(255, 255, 255, 0.4); }
.news-page .filter-bar form .field select option { color: #111; }

/* custom chevron on the category select */
.news-page .filter-bar form .field-select select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c19114' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 14px;
}
/* magnifier on the topic search */
.news-page .filter-bar form .field-search input {
  padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 16px;
}

/* Apply (gold) inherits the unified pill style; just align it to the fields */
.news-page .filter-bar form .filter-apply {
  flex: 0 0 auto;
  align-self: stretch;
}
/* Clear → ghost/outline button matching the modern set */
.news-page .filter-bar form .filter-clear {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 24px;
  background: transparent;
  border: 1px solid #3a3a3a;
  border-radius: 9px;
  color: #cfcfcf;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.84em;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.news-page .filter-bar form .filter-clear:hover {
  border-color: #c19114;
  color: #fff;
  background: rgba(193, 145, 20, 0.1);
}

@media screen and (max-width: 680px) {
  .news-page .filter-bar form .field { flex: 1 1 100%; }
  .news-page .filter-bar form .filter-apply,
  .news-page .filter-bar form .filter-clear { flex: 1 1 auto; padding: 14px 20px; }
}

.news-page .sec1 {
  padding: 34px 5% 70px;
  margin-bottom: 40px;
}

.news-page .sec1 .posts-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* Card shell — vertical, dark, rounded */
.news-page .sec1 .posts-list .post {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  padding: 0;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.news-page .sec1 .posts-list .post:hover {
  transform: translateY(-6px);
  border-color: rgba(193, 145, 20, 0.5);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.9);
}

/* Featured image on top (16:9) — whole card clickable via the overlay link */
.news-page .sec1 .posts-list .post .img {
  position: static;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  background-size: cover;
  background-position: center;
}
.news-page .sec1 .posts-list .post .img a {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

/* Body */
.news-page .sec1 .posts-list .post .right {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-page .sec1 .posts-list .post .right .category {
  align-self: flex-start;
  background-color: #c19114;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.news-page .sec1 .posts-list .post .right .title {
  font-size: 1.12em;
  font-weight: 600;
  line-height: 1.38;
  margin-top: 12px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}
.news-page .sec1 .posts-list .post:hover .right .title { color: #c19114; }

.news-page .sec1 .posts-list .post .right .excerpt {
  font-size: .9em;
  line-height: 1.55;
  color: #a9a9a9;
  margin: 10px 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-page .sec1 .posts-list .post .right .date {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82em;
  color: #888;
}
.news-page .sec1 .posts-list .post .right .date::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c62307;
}

/* ── Tablet / mobile ── */
@media screen and (max-width: 1024px) {
  .news-page .sec1 .posts-list { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 680px) {
  .news-page .sec1 .posts-list { grid-template-columns: 1fr; }
}
