:root {
  --site-bg: #f7f7f8;
  --site-surface: #ffffff;
  --site-text: #18181b;
  --site-muted: #71717a;
  --site-line: #e4e4e7;
  --site-brand: #dc2626;
  --site-brand-dark: #991b1b;
  --site-radius: 18px;
  --site-shadow: 0 18px 50px rgba(24, 24, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--site-text);
  background: var(--site-bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--site-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--site-text);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.site-logo img {
  display: block;
  max-width: 180px;
  max-height: 46px;
  object-fit: contain;
}

.home-hero {
  padding: 48px 0;
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.10), transparent 34%),
    linear-gradient(180deg, #ffffff, #f7f7f8);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.home-copy,
.home-panel {
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--site-shadow);
}

.home-copy {
  padding: 34px;
}

.home-panel {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
}

.section-eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--site-brand-dark);
  background: rgba(220, 38, 38, 0.1);
  font-weight: 800;
}

h1 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

p {
  max-width: 720px;
  margin: 0;
  color: var(--site-muted);
}

.home-copy p {
  font-size: 17px;
}

.article-section,
.article-detail-section {
  padding: 40px 0 72px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  box-shadow: var(--site-shadow);
}

.article-card-image {
  display: block;
  background: #ffffff;
}

.article-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-card-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.article-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.article-card h3 a:hover,
.read-more:hover,
.back-link:hover {
  color: var(--site-brand);
}

.read-more,
.back-link {
  display: inline-flex;
  color: var(--site-brand);
  font-weight: 800;
}

.article-detail {
  display: grid;
  gap: 18px;
}

.article-cover {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 520px;
  margin: 0 0 28px;
  border-radius: 18px;
  object-fit: contain;
  object-position: center;
  background: #f8fafc;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

@media (max-width: 768px) {
  .article-cover {
    max-height: 360px;
    margin-bottom: 20px;
    border-radius: 14px;
  }
}

.article-header {
  display: grid;
  gap: 10px;
}

.article-body {
  padding: 34px;
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
  color: var(--site-text);
  background: var(--site-surface);
  box-shadow: var(--site-shadow);
  font-size: 18px;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--site-line);
  background: #ffffff;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer span {
  color: var(--site-muted);
}

@media (max-width: 900px) {
  .home-hero-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .home-hero {
    padding: 28px 0;
  }

  .home-copy,
  .home-panel,
  .article-body {
    padding: 22px;
  }

  .site-footer .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

.article-body h2,
.article-body h3 {
  margin: 26px 0 12px;
  color: var(--site-text);
  line-height: 1.2;
}

.article-body p {
  margin: 0 0 16px;
  color: var(--site-text);
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--site-brand);
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.06);
}

.article-body a {
  color: var(--site-brand);
  font-weight: 800;
  text-decoration: underline;
}

.article-detail-section {
  padding: 34px 0 72px;
}

.article-detail {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.article-detail .container {
  width: 100%;
}

.article-header h1 {
  max-width: 100%;
  font-size: clamp(32px, 4vw, 52px);
}

.article-header p {
  max-width: 100%;
  font-size: 18px;
}

.article-body {
  width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.article-body strong,
.article-body b {
  font-weight: 900;
}

.article-body h2,
.article-body h3 {
  max-width: 100%;
}

.article-body p,
.article-body li,
.article-body blockquote {
  max-width: 100%;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 8px;
}

@media (max-width: 640px) {
  .article-detail {
    width: min(100% - 24px, 920px);
  }

  .article-detail-section {
    padding: 24px 0 52px;
  }
}

.article-date,
.article-card-date {
  display: inline-flex;
  width: fit-content;
  color: var(--site-muted);
  font-size: 14px;
  font-weight: 800;
}

.article-date {
  margin-bottom: 6px;
}

.article-category,
.category-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--site-brand-dark);
  background: rgba(220, 38, 38, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.article-cta {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: var(--site-radius);
  background: rgba(220, 38, 38, 0.06);
}

.article-cta strong {
  color: var(--site-text);
  font-size: 22px;
}

.article-cta p {
  max-width: 100%;
}

.article-cta a {
  display: inline-flex;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--site-brand);
  font-weight: 900;
}

.article-cta a:hover {
  background: var(--site-brand-dark);
}

/* Home article pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 34px 0 0;
}

.pagination-link,
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  background: var(--site-surface);
  color: var(--site-text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.pagination-link:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.pagination-link.is-active {
  border-color: #dc2626;
  background: #dc2626;
  color: #ffffff;
}

.pagination-ellipsis {
  border-color: transparent;
  background: transparent;
  color: var(--site-muted);
}

.pagination-prev,
.pagination-next {
  min-width: 86px;
}

@media (max-width: 640px) {
  .pagination {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .pagination-link,
  .pagination-ellipsis {
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 13px;
  }
}

/* === Home Article Image Fit START === */
.article-card .article-image,
.article-card .article-thumb,
.article-card .thumb,
.article-card figure,
.article-list-card .article-image,
.article-list-card .article-thumb,
.home-article-card .article-image,
.home-article-card .article-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
  border-radius: 16px 16px 0 0;
}

.article-card .article-image img,
.article-card .article-thumb img,
.article-card .thumb img,
.article-card figure img,
.article-list-card .article-image img,
.article-list-card .article-thumb img,
.home-article-card .article-image img,
.home-article-card .article-thumb img,
.article-card > a > img,
.article-list-card > a > img,
.home-article-card > a > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
}

.article-card img,
.article-list-card img,
.home-article-card img {
  max-width: 100%;
}
/* === Home Article Image Fit END === */

/* === Article Card Image Ratio Final START === */
.article-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: #f1f5f9;
}

.article-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
}
/* === Article Card Image Ratio Final END === */

/* 3otuz public header */
.site-topbar {
  border-bottom: 1px solid var(--site-line);
  background: #18181b;
  color: #ffffff;
  font-size: 13px;
}

.site-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
}

.site-header-main {
  background: rgba(255, 255, 255, 0.96);
}

.site-header .container {
  width: min(1320px, calc(100% - 32px));
}

.header-inner {
  display: grid;
  grid-template-columns: 170px minmax(260px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 13px 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 38px;
  color: var(--site-text);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.site-logo img {
  display: block;
  width: auto;
  max-width: 160px;
  max-height: 42px;
  object-fit: contain;
}

.site-search {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  background: #ffffff;
}

.site-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 13px;
  color: var(--site-text);
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.site-search button {
  flex: 0 0 auto;
  border: 0;
  padding: 0 16px;
  color: #ffffff;
  background: var(--site-brand);
  font-weight: 800;
  cursor: pointer;
}

.site-search button:hover {
  background: var(--site-brand-dark);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
  white-space: nowrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--site-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--site-brand-dark);
  background: rgba(220, 38, 38, 0.10);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 150px minmax(220px, 300px) minmax(0, 1fr);
    gap: 10px;
  }

  .site-logo img {
    max-width: 145px;
  }

  .site-nav a {
    padding: 6px 6px;
    font-size: 12.5px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
  }

  .site-logo {
    justify-content: center;
  }

  .site-search {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .site-nav {
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
  }

  .site-nav a {
    font-size: 13px;
    padding: 7px 10px;
  }
}

@media (max-width: 640px) {
  .site-topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .site-header .container {
    width: min(100% - 24px, 1320px);
  }

  .site-search input {
    padding: 10px 12px;
    font-size: 13px;
  }

  .site-search button {
    padding: 0 14px;
  }

  .site-nav {
    gap: 5px;
  }

  .site-nav a {
    font-size: 12.5px;
    padding: 7px 9px;
  }
}


/* === Home Article Card Image Final Fix START === */
.article-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f4f4f5;
  border-bottom: 1px solid var(--site-line);
}

.article-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
/* === Home Article Card Image Final Fix END === */
