:root {
  --blue-950: #07254a;
  --blue-800: #0d3d76;
  --blue-700: #1a59a3;
  --blue-500: #3a7fca;
  --blue-200: #d5e8ff;
  --blue-100: #ecf4ff;
  --white: #ffffff;
  --ink: #15263f;
  --muted: #506580;
  --border: #b7d2f2;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "PT Sans", "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f4f9ff 0%, #ffffff 35%, #f8fbff 100%),
    repeating-linear-gradient(
      120deg,
      rgba(26, 89, 163, 0.06) 0,
      rgba(26, 89, 163, 0.06) 14px,
      rgba(26, 89, 163, 0.02) 14px,
      rgba(26, 89, 163, 0.02) 28px
    );
}

a {
  color: var(--blue-800);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--white), #f2f8ff);
}

.state-line {
  background: linear-gradient(90deg, var(--blue-950), var(--blue-700));
  color: #f2f7ff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.7rem 1rem;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0 1.25rem;
}

.brand-kicker {
  margin: 0;
  color: var(--blue-700);
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.73rem;
}

.brand-title {
  margin: 0.35rem 0 0;
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.2vw, 2.25rem);
  color: var(--blue-950);
}

.brand-meta {
  text-align: right;
  color: var(--muted);
  font-size: 0.92rem;
  align-self: flex-end;
}

.brand-meta p {
  margin: 0.15rem 0;
}

.main-nav {
  border-top: 1px solid var(--blue-200);
  border-bottom: 1px solid var(--blue-200);
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  padding: 0.75rem 0;
}

.nav-row a {
  color: var(--blue-800);
  font-weight: 700;
  font-size: 0.93rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  padding: 1.5rem 0 2rem;
}

.content-column {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.filter-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.filters-form {
  margin: 0;
}

.filters-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) minmax(170px, 1fr) minmax(140px, 0.8fr) auto;
  gap: 0.7rem;
  align-items: end;
}

.filters-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filters-field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-800);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filters-field input,
.filters-field select {
  height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8fbff;
  padding: 0 0.72rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.filters-field input:focus,
.filters-field select:focus {
  outline: 2px solid rgba(26, 89, 163, 0.24);
  border-color: var(--blue-500);
}

.filters-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding-bottom: 0.05rem;
}

.filters-submit {
  height: 2.4rem;
  border: none;
  border-radius: 6px;
  background: var(--blue-700);
  color: var(--white);
  font-size: 0.93rem;
  font-weight: 700;
  padding: 0 0.95rem;
  cursor: pointer;
}

.filters-submit:hover {
  background: var(--blue-800);
}

.filters-reset {
  font-weight: 700;
  font-size: 0.9rem;
}

.results-meta {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 7px solid var(--blue-700);
  padding: 1.35rem 1.45rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(9, 44, 85, 0.08);
}

.hero-card .tagline {
  display: inline-block;
  margin: 0;
  padding: 0.23rem 0.55rem;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.hero-card h2 {
  margin: 0.7rem 0 0.5rem;
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.15vw, 1.9rem);
  line-height: 1.27;
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.7rem;
}

.excerpt {
  margin: 0.5rem 0 1rem;
  line-height: 1.65;
}

.read-button {
  display: inline-block;
  background: var(--blue-700);
  color: var(--white);
  font-weight: 700;
  border-radius: 6px;
  padding: 0.6rem 0.95rem;
}

.read-button:hover {
  background: var(--blue-800);
  text-decoration: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.05rem;
}

.news-card h3 {
  margin: 0.35rem 0 0.45rem;
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: 1.07rem;
  line-height: 1.35;
}

.news-card p {
  margin: 0.32rem 0;
  line-height: 1.57;
}

.news-card a {
  display: inline-block;
  margin-top: 0.45rem;
  font-weight: 700;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.pagination-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--blue-800);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 0.65rem;
}

.pagination-link:hover {
  background: #eff6ff;
  text-decoration: none;
}

.pagination-link.is-active {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
}

.pagination-link.is-disabled {
  color: #9cb3cc;
  background: #f5f8fc;
  border-color: #d9e5f4;
  pointer-events: none;
}

.pagination-ellipsis {
  color: var(--muted);
  font-weight: 700;
  margin: 0 0.1rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.side-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
}

.side-panel p,
.side-panel li {
  margin: 0;
  line-height: 1.62;
}

.side-panel ul {
  padding-left: 1.2rem;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.message-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.message-block h2 {
  margin: 0 0 0.5rem;
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
}

.message-error {
  border-color: #b04a4a;
  background: #fff8f8;
}

.article-layout {
  padding: 1.5rem 0 2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 700;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.3rem 1.5rem;
  box-shadow: 0 8px 24px rgba(9, 44, 85, 0.08);
}

.article-card h2 {
  margin: 0.2rem 0 1rem;
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.3;
  color: var(--blue-950);
}

.article-text p {
  margin: 0 0 0.9rem;
  line-height: 1.72;
  font-size: 1.03rem;
}

.site-footer {
      border-top: 1px solid var(--blue-200);
    background: linear-gradient(180deg, #f3f8ff, #e8f2ff);
    position: relative;
    bottom: 0;
    width: 100vw;
}

.footer-row {
  padding: 1.05rem 0 1.3rem;
}

.footer-row p {
  margin: 0;
  color: #2f4f73;
  line-height: 1.6;
  font-size: 0.92rem;
}

.footer-row a {
  font-weight: 700;
}

@media (max-width: 980px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .brand-row {
    flex-direction: column;
    gap: 0.8rem;
  }

  .brand-meta {
    text-align: left;
    align-self: flex-start;
  }

  .filters-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .filters-actions {
    padding-bottom: 0;
  }
}
