/* ════════════════════════════════════════════════════════
   UNIVERSITY ADMISSIONS NEWS
   ════════════════════════════════════════════════════════ */

.res-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* Hero */
.res-hero {
  text-align: center;
  padding: 32px 16px 24px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(168,85,247,0.10));
  border-radius: 24px;
  border: 1px solid var(--border-soft);
}
.res-hero-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 36px;
  font-weight: 900;
  margin: 0 0 12px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.res-hero-sub {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Bộ lọc */
.res-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 10px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.res-filter-btn {
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  white-space: nowrap;
}
.res-filter-btn:hover { background: rgba(99,102,241,0.08); color: var(--primary); }
.res-filter-btn.active {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 3px 10px rgba(99,102,241,0.30);
}
.res-search {
  flex: 1;
  min-width: 180px;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  transition: all .2s;
}
.res-search:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,0.10); }

/* Grid */
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Card */
.res-card {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.res-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(99,102,241,0.18);
  border-color: var(--primary);
}

/* Thumbnail */
.res-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.res-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.res-card:hover .res-thumb img { transform: scale(1.05); }

.res-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
:root[data-theme="dark"] .res-cat {
  background: rgba(30,30,60,0.92);
  color: #fff;
}

.res-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0.04em;
}
.res-badge-free  { background: linear-gradient(135deg, #10b981, #059669); }
.res-badge-paid  { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* Body */
.res-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.res-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  line-height: 1.35;
  color: var(--text);
}
.res-title a {
  color: inherit;
  text-decoration: none;
}
.res-title a:hover { color: var(--primary); }

.res-provider {
  font-size: 12px;
  color: var(--text-soft);
  margin: 0;
  font-weight: 600;
}

.res-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 4px 0 8px;
  flex: 1;
}

.res-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}
.res-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(99,102,241,0.10);
  padding: 3px 8px;
  border-radius: 999px;
}

.res-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.res-level {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 999px;
}

.res-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: var(--grad-btn);
  color: #fff !important;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
  letter-spacing: 0.04em;
  transition: all .2s;
  box-shadow: 0 3px 10px rgba(99,102,241,0.28);
  white-space: nowrap;
}
.res-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(99,102,241,0.40);
}

/* Empty state */
.res-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 600;
}

/* Info box */
.res-info {
  margin-top: 36px;
  padding: 22px 26px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 16px;
}
.res-info h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--primary);
}
.res-info ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.7;
}
.res-info li { margin-bottom: 4px; }
.res-info strong { color: var(--text); }

/* Mobile */
@media (max-width: 640px) {
  .res-hero-title { font-size: 26px; }
  .res-hero-sub { font-size: 14px; }
  .res-filter { border-radius: 18px; padding: 10px; }
  .res-filter-btn { padding: 6px 10px; font-size: 12px; }
  .res-search { width: 100%; }
  .res-grid { grid-template-columns: 1fr; gap: 16px; }
  .res-info { padding: 18px 20px; }
}

.res-kicker { margin: 0 0 8px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.news-filter { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
.news-filter label { display: flex; flex-direction: column; gap: 6px; color: var(--text-mid); font-size: 12px; font-weight: 800; }
.news-filter select, .news-filter input { width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); font-size: 16px; font-weight: 500; font-family: inherit; }
.news-filter select:focus, .news-filter input:focus { outline: 3px solid rgba(99,102,241,.16); border-color: var(--primary); }
.news-filter input::placeholder { color: var(--text-soft); opacity: 1; }
:root[data-theme="dark"] .news-filter select { color-scheme: dark; }
:root[data-theme="dark"] .news-filter select option { color: #f5f5fa; background: #222044; }
.news-status { margin: 14px 0 22px; color: var(--text-mid); font-size: 13px; }
.news-card .res-body { padding: 20px; gap: 10px; }
.news-card .res-title { font-size: 18px; }
.news-card .res-desc { margin: 0 0 12px; }
.news-thumb { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eef3ff, #e6dfff); }
.news-thumb img { width: 38%; height: 58%; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(34, 30, 96, .12)); }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-logo-fallback { width: 90px; height: 90px; border-radius: 20px; background: #fff; display: grid; place-items: center; color: #6358d8; font-weight: 900; font-size: 26px; }
.news-year { background: var(--grad-btn); }
.news-profile { color: var(--primary); font-size: 12px; font-weight: 800; text-decoration: none; }
.news-profile:hover { text-decoration: underline; }
.news-empty { margin: 18px 0; padding: 46px 22px; text-align: center; background: var(--surface); border: 1.5px dashed var(--border); border-radius: 18px; color: var(--text-mid); }
.news-empty h2 { margin: 0 0 8px; color: var(--text); font: 800 20px 'Quicksand', sans-serif; }
.news-empty p { margin: 0 0 12px; }
.news-empty a { color: var(--primary); font-weight: 800; }
.news-unverified { margin-top: 30px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px; padding: 17px 20px; }
.news-unverified[hidden] { display: none; }
.news-unverified summary { cursor: pointer; font-size: 14px; font-weight: 800; color: var(--text); }
.news-unverified summary span { color: var(--primary); }
.news-school-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 17px; }
.news-school-list a { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding: 11px 13px; color: var(--text); text-decoration: none; background: var(--surface-2); border-radius: 10px; font-size: 12px; font-weight: 700; }
.news-school-list a:hover { color: var(--primary); }
.news-school-list small { color: var(--text-soft); font-weight: 500; }
.news-disclaimer { color: var(--text-soft); font-size: 12px; line-height: 1.6; margin-top: 18px; }
.news-sources { max-width: none; margin: 16px 0 0; }
.news-sources summary { cursor: pointer; color: var(--text); font-size: 14px; }
.news-sources .res-search { flex: none; width: min(100%, 330px); margin: 8px 0 16px; }
.news-sources .policy-sources-grid { margin-top: 14px; }
@media (max-width: 800px) { .news-filter { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .news-filter, .news-school-list { grid-template-columns: 1fr; } .news-card .res-foot { align-items: flex-start; flex-direction: column; } }
