:root {
  --deep-navy: #0a1f44;
  --royal-blue: #1e5bff;
  --soft-blue: #4a7dff;
  --light-blue: #eaf1ff;
  --sky-blue: #2f80ed;
  --white: #ffffff;
  --light-gray: #f5f7fb;
  --text-dark: #1a1a1a;
  --text-light: #6b7280;
  --orange: #ff8a00;
  --success-green: #22c55e;
  --border: #dbe4f0;
  --shadow: rgba(10, 31, 68, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
  color: var(--text-dark);
}

.container {
  display: block;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.articles-hero,
.article-detail-hero {
  background: linear-gradient(135deg, var(--deep-navy), var(--royal-blue));
  color: var(--white);
  padding: 120px 0 48px;
  margin-bottom: 34px;
}

.articles-hero-inner,
.article-detail-hero-inner {
  display: block;
  max-width: 860px;
}

.article-eyebrow {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.articles-hero h1,
.article-detail-hero h1 {
  margin: 0 0 12px;
  max-width: 980px;
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.articles-hero p,
.article-detail-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
}

.articles-page {
  display: block;
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 64px;
  float: none;
  clear: both;
}

.article-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto auto;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(10, 31, 68, 0.08);
  margin-bottom: 28px;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-filters input,
.article-filters select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 46px;
  font: inherit;
  color: var(--text-dark);
  background: var(--white);
}

.filter-search input {
  border: 0;
  padding-left: 0;
}

.filter-search {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  min-height: 46px;
}

.filter-search i {
  color: var(--royal-blue);
}

.filter-search input:focus,
.article-filters select:focus {
  outline: none;
}

.filter-button,
.filter-reset,
.read-more-btn,
.back-to-articles {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
}

.filter-button,
.read-more-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--royal-blue), var(--sky-blue));
}

.filter-reset,
.back-to-articles {
  color: var(--deep-navy);
  background: var(--light-blue);
}

.articles-page .articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  animation: none;
}

.articles-page .article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(10, 31, 68, 0.08);
  min-width: 0;
  width: 100%;
  padding: 0;
}

.articles-page .article-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--light-blue);
  overflow: hidden;
  width: 100%;
}

.articles-page .article-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.articles-page .article-card:hover .article-card-image img {
  transform: scale(1.04);
}

.articles-page .article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.articles-page .article-card-meta,
.articles-page .article-card-footer,
.article-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-light);
  font-size: 0.88rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--royal-blue);
  background: var(--light-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.articles-page .article-card h2 {
  margin: 14px 0 10px;
  font-size: 1.25rem;
  line-height: 1.35;
  min-height: 0;
}

.articles-page .article-card h2 a {
  color: var(--deep-navy);
  text-decoration: none;
}

.articles-page .article-card h2 a:hover {
  color: var(--royal-blue);
}

.articles-page .article-card p {
  margin: 0 0 20px;
  color: var(--text-light);
  line-height: 1.65;
}

.articles-page .article-card-footer {
  margin-top: auto;
  justify-content: space-between;
}

.articles-empty {
  max-width: 680px;
  margin: 36px auto 72px;
  text-align: center;
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 38px 24px;
}

.articles-empty h1,
.articles-empty h2 {
  margin: 0 0 10px;
  color: var(--deep-navy);
}

.articles-empty p {
  color: var(--text-light);
}

.article-detail-hero .category-badge {
  margin-bottom: 14px;
}

.article-detail-hero-inner {
  max-width: 1040px;
}

.article-detail-hero-inner p {
  max-width: 820px;
}

.article-detail-meta {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.article-detail-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  padding-bottom: 70px;
}

.article-detail-content,
.related-article-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(10, 31, 68, 0.08);
}

.article-detail-content {
  padding: 28px;
  min-width: 0;
}

.article-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 28px;
}

.article-body {
  color: var(--text-dark);
  line-height: 1.85;
  font-size: 1.03rem;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--deep-navy);
  line-height: 1.25;
  margin-top: 1.6em;
}

.article-body p {
  color: #374151;
}

.article-body a {
  color: var(--royal-blue);
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-body figure.image,
.article-body .image {
  margin: 28px auto;
  max-width: 100%;
}

.article-body figure.image img,
.article-body .image img {
  display: block;
  margin: 0 auto;
}

.article-body figcaption {
  margin-top: 8px;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  display: block;
  overflow-x: auto;
}

.article-body th,
.article-body td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}

.article-body th {
  background: var(--light-blue);
  color: var(--deep-navy);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 20px;
}

.article-tags span {
  background: var(--light-gray);
  color: var(--deep-navy);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.84rem;
  font-weight: 800;
}

.back-to-articles {
  margin-top: 24px;
}

.related-article-panel {
  position: sticky;
  top: 18px;
  padding: 20px;
}

.related-article-panel h2 {
  margin: 0 0 16px;
  color: var(--deep-navy);
  font-size: 1.2rem;
}

.related-article {
  display: block;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  color: var(--deep-navy);
  text-decoration: none;
}

.related-article span {
  display: block;
  color: var(--royal-blue);
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.related-article strong {
  line-height: 1.35;
}

@media (max-width: 980px) {
  .articles-page .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-detail-page {
    grid-template-columns: 1fr;
  }

  .related-article-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .articles-hero,
  .article-detail-hero {
    padding: 104px 0 36px;
  }

  .articles-hero h1,
  .article-detail-hero h1 {
    font-size: clamp(2rem, 12vw, 3.35rem);
  }

  .articles-hero p,
  .article-detail-hero p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .article-filters {
    grid-template-columns: 1fr;
  }

  .articles-page .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-detail-content {
    padding: 20px;
  }
}
