/* GovExam — attractive student-first theme + rich news cards */
:root {
  --gx-navy: #0a2748;
  --gx-navy-2: #13406e;
  --gx-ink: #0f1f33;
  --gx-muted: #5a6b7d;
  --gx-soft: #f0f5fb;
  --gx-soft-2: #e8f0fa;
  --gx-card: #ffffff;
  --gx-line: #dbe4ef;
  --gx-orange: #f06a12;
  --gx-orange-deep: #d45500;
  --gx-blue: #0b63c9;
  --gx-green: #0a8a4e;
  --gx-purple: #5b2db3;
  --gx-glow: rgba(240, 106, 18, 0.14);
  --gx-radius: 18px;
  --gx-shadow: 0 12px 36px rgba(10, 39, 72, 0.08);
  --gx-shadow-sm: 0 4px 14px rgba(10, 39, 72, 0.06);
}

body {
  background:
    radial-gradient(ellipse 90% 50% at 0% -10%, rgba(240, 106, 18, 0.07), transparent 50%),
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(11, 99, 201, 0.07), transparent 45%),
    #f7fafc;
}

/* Sticky header polish */
.site-header {
  background: linear-gradient(120deg, #061a32 0%, #0a2748 45%, #13406e 100%);
  border-bottom: 3px solid var(--gx-orange);
  box-shadow: 0 8px 28px rgba(6, 26, 50, 0.22);
}
.brand strong {
  background: linear-gradient(90deg, #fff, #ffd7b0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.main-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.progress-link {
  background: linear-gradient(135deg, rgba(240, 106, 18, 0.35), rgba(240, 106, 18, 0.15)) !important;
  border: 1px solid rgba(255, 180, 120, 0.45) !important;
  box-shadow: 0 2px 10px rgba(240, 106, 18, 0.2);
}

.gx-welcome-bar {
  background: linear-gradient(90deg, #061a32, #0f3a66 55%, #1a5085);
  color: #e8f1ff;
  padding: 11px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.gx-welcome-bar a {
  color: #ffc896;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gx-welcome-bar strong {
  color: #fff;
}

.gx-quote {
  margin: 0;
  padding: 16px 18px;
  border-left: 5px solid var(--gx-orange);
  background: linear-gradient(135deg, #fff8f2, #fff);
  border-radius: 0 16px 16px 0;
  color: #3d2a1a;
  font-weight: 600;
  box-shadow: var(--gx-shadow-sm);
}

.gx-hero-modern {
  padding: 36px 0 18px;
  position: relative;
}
.gx-hero-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, var(--gx-glow), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(11, 99, 201, 0.1), transparent 30%);
  pointer-events: none;
}
.gx-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .gx-hero-grid {
    grid-template-columns: 1fr;
  }
}

.gx-hero-modern h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #0a2748 0%, #0b63c9 70%, #0a2748 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.gx-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius);
  padding: 20px;
  box-shadow: var(--gx-shadow);
  position: relative;
  overflow: hidden;
}
.gx-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gx-orange), var(--gx-blue));
}
.gx-panel h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}
.gx-panel p {
  margin: 0 0 12px;
  color: var(--gx-muted);
}

.gx-chip-row,
.gx-prep-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gx-chip,
.gx-check {
  border: 1px solid var(--gx-line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gx-ink);
  transition: 0.15s ease;
  box-shadow: 0 1px 2px rgba(10, 39, 72, 0.04);
}
.gx-chip:hover {
  border-color: #9ec0ef;
  transform: translateY(-1px);
}
.gx-chip.is-on,
.gx-check:has(input:checked) {
  background: linear-gradient(135deg, #e8f2ff, #f0f7ff);
  border-color: #6ea4ef;
  color: var(--gx-blue);
  box-shadow: 0 4px 12px rgba(11, 99, 201, 0.12);
}
.gx-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.gx-check input {
  margin: 0;
}

.gx-q-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.gx-q-box {
  background: #fff;
  border: 1px dashed #c5d7ee;
  border-radius: 14px;
  padding: 12px;
}
.gx-q-text {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.45;
}
.gx-options {
  display: grid;
  gap: 8px;
}
.gx-option {
  text-align: left;
  border: 1px solid var(--gx-line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  transition: 0.12s ease;
}
.gx-option:hover {
  border-color: #9ec0ef;
  background: #f8fbff;
  box-shadow: var(--gx-shadow-sm);
}
.gx-option.is-correct {
  border-color: #6fbf90;
  background: #edf8f1;
  color: #0a7a45;
}
.gx-option.is-wrong {
  border-color: #f0a8a2;
  background: #fff5f4;
  color: #b42318;
}
.gx-explain {
  margin: 12px 0 0;
  color: var(--gx-muted);
  font-size: 0.92rem;
}
.gx-text-btn {
  border: 0;
  background: transparent;
  color: var(--gx-blue);
  font-weight: 800;
  padding: 0;
}

.gx-pill,
.gx-mini-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  background: #eef5ff;
  color: #0b5fbf;
  letter-spacing: 0.01em;
}
.gx-mini-pill.muted {
  background: #f1f5f9;
  color: #475569;
}
.gx-pill-vacancy {
  background: linear-gradient(135deg, #fff0e4, #ffe8d6);
  color: #c44d00;
}
.gx-pill-result {
  background: linear-gradient(135deg, #e8faf0, #d9f5e5);
  color: #0a7a45;
}
.gx-pill-admit-card {
  background: linear-gradient(135deg, #eaf2ff, #dce9ff);
  color: #0b5fbf;
}
.gx-pill-exam-date {
  background: linear-gradient(135deg, #f3eeff, #ebe4ff);
  color: #5b21b6;
}

/* —— Rich news —— */
.gx-news-disclaimer {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: linear-gradient(90deg, #fff8ef, #fff);
  border: 1px solid #f0d8b8;
  border-radius: 12px;
  color: #6b4a22;
  font-size: 0.9rem;
  font-weight: 600;
}
.gx-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
/* host can wrap disclaimer + grid */
[data-home-news] {
  display: block;
}
[data-updates-list] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.gx-news-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--gx-line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
  box-shadow: var(--gx-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}
.gx-news-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at 100% 0%, rgba(11, 99, 201, 0.08), transparent 70%);
  pointer-events: none;
}
.gx-news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--gx-shadow);
  border-color: #c5d8ef;
}
.gx-news-card.is-rich {
  min-height: 280px;
}
.gx-news-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--gx-ink);
}
.gx-news-org {
  margin: 0;
  color: var(--gx-blue);
  font-size: 0.88rem;
  font-weight: 700;
}
.gx-news-summary {
  margin: 0;
  color: var(--gx-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.gx-news-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: var(--gx-muted);
  font-size: 0.8rem;
}
.gx-fact-grid {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding: 10px;
  background: var(--gx-soft);
  border-radius: 12px;
  border: 1px solid #e4ecf6;
}
.gx-fact {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  font-size: 0.84rem;
  line-height: 1.35;
}
.gx-fact-label {
  color: #64748b;
  font-weight: 700;
}
.gx-fact-value {
  color: var(--gx-ink);
  font-weight: 600;
}
.gx-next {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: #0f3a66;
  background: #eef6ff;
  border-radius: 10px;
  padding: 8px 10px;
}
.gx-news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}
.gx-link {
  color: var(--gx-blue);
  font-weight: 800;
}
.gx-link-soft {
  color: #47617a;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Goal rail cards more attractive */
.goal-link {
  border-radius: 14px !important;
  box-shadow: var(--gx-shadow-sm);
  transition: 0.15s ease;
}
.goal-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--gx-shadow);
}

.feature-card {
  border-radius: 16px !important;
  box-shadow: var(--gx-shadow-sm);
  border: 1px solid var(--gx-line) !important;
  background: linear-gradient(180deg, #fff, #f9fbfe) !important;
}
.feature-card:hover {
  border-color: #b9d0ee !important;
}

.gx-exam-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.gx-exam-row {
  align-items: center;
}

.gx-login-wrap {
  padding: 32px 0 48px;
  max-width: 720px;
}
.gx-login-card {
  background: linear-gradient(180deg, #fff, #f9fbfe);
  border: 1px solid var(--gx-line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--gx-shadow);
}
.gx-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fff0e4, #ffe8d6);
  color: #c44d00;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  margin: 0 0 10px;
}
.gx-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.gx-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--gx-ink);
}
.gx-form input[type="text"],
.gx-form input[type="email"],
.gx-form input[type="tel"] {
  border: 1px solid var(--gx-line);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 500;
  background: #fff;
}
.gx-form input:focus {
  outline: 2px solid rgba(11, 99, 201, 0.25);
  border-color: #6ea4ef;
}
.gx-prep-fieldset {
  border: 1px solid var(--gx-line);
  border-radius: 14px;
  padding: 14px;
  background: #fafcff;
}
.gx-prep-fieldset legend {
  font-weight: 800;
  padding: 0 6px;
}
.gx-prep-fieldset legend span {
  font-weight: 600;
  color: var(--gx-muted);
  font-size: 0.85rem;
}
.gx-hint {
  margin: 0 0 10px;
  color: var(--gx-muted);
  font-weight: 500;
  font-size: 0.9rem;
}
.gx-error {
  color: #b42318;
  font-weight: 700;
  margin: 0;
}
.gx-fine {
  color: var(--gx-muted);
  font-size: 0.85rem;
  margin: 0;
}
.gx-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.filters {
  max-height: none;
}
.filter-group {
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.button-primary {
  background: linear-gradient(135deg, #f06a12, #e85d04) !important;
  border: none !important;
  box-shadow: 0 6px 16px rgba(232, 93, 4, 0.28);
}
.button-primary:hover {
  filter: brightness(1.05);
}

.site-footer {
  background: linear-gradient(180deg, #0a2748, #061a32) !important;
}
.site-footer a {
  color: #ffc896;
}

.section-title-row h2 {
  letter-spacing: -0.01em;
}

/* updates page filter chips */
.update-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}
.update-filters button {
  border: 1px solid var(--gx-line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  color: var(--gx-ink);
}
.update-filters button.active,
.update-filters button:hover {
  background: linear-gradient(135deg, #e8f2ff, #f0f7ff);
  border-color: #6ea4ef;
  color: var(--gx-blue);
}
