:root {
  --primary: #0d2f4f;
  --primary-deep: #071f35;
  --accent: #c99a20;
  --breaking: #b81f2b;
  --surface: #ffffff;
  --background: #f4f5f7;
  --text: #17212b;
  --muted: #68727d;
  --border: #dde2e7;
  --soft: #edf1f4;
  --radius: 14px;
  --shadow: 0 14px 38px rgba(7, 31, 53, 0.09);
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 30px));
  margin-inline: auto;
}

.utility-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.utility-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.utility-links a:hover {
  color: #fff;
}

.masthead {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.masthead-inner {
  min-height: 110px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 25px;
}

.site-brand {
  grid-column: 2;
  text-align: center;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 56px;
}

.site-logo img {
  max-width: 260px;
  max-height: 70px;
  object-fit: contain;
}

.logo-text {
  display: block;
  color: var(--primary);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}

.site-tagline {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.masthead-date {
  justify-self: start;
  color: var(--muted);
  font-size: 13px;
}

.masthead-source {
  justify-self: end;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: var(--primary);
  color: #fff;
}

.nav-inner {
  min-height: 51px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-inner a {
  flex: 0 0 auto;
  padding: 15px 16px;
  font-size: 14px;
  font-weight: 700;
}

.nav-inner a:hover,
.nav-inner a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
}

.breaking-bar {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.breaking-inner {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
}

.breaking-label {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-inline: 18px;
  background: var(--breaking);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.breaking-list {
  display: flex;
  gap: 28px;
  overflow: hidden;
  white-space: nowrap;
  color: #26313a;
  font-size: 13px;
}

.breaking-list a {
  position: relative;
}

.breaking-list a:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -15px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.page-main {
  padding: 32px 0 70px;
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.72fr) minmax(250px, 0.63fr);
  gap: 18px;
  margin-bottom: 34px;
}

.lead-story,
.side-story,
.quick-news {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.lead-story {
  min-height: 520px;
  position: relative;
  display: flex;
  align-items: end;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  color: #fff;
}

.lead-story::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 20, 34, 0.97), rgba(3, 20, 34, 0.08) 75%);
}

.lead-content {
  position: relative;
  z-index: 1;
  padding: 35px;
}

.story-category {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.lead-story .story-category {
  display: inline-flex;
  margin-bottom: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #191919;
}

.lead-story h1,
.lead-story h2 {
  margin: 0 0 12px;
  font-size: clamp(29px, 4vw, 47px);
  line-height: 1.35;
}

.lead-story p {
  margin: 0 0 15px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.story-time {
  color: var(--muted);
  font-size: 12px;
}

.lead-story .story-time {
  color: rgba(255, 255, 255, 0.67);
}

.side-stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.side-story {
  display: flex;
  flex-direction: column;
}

.side-story-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--soft);
}

.side-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-story-body {
  padding: 16px;
}

.side-story h3 {
  margin: 7px 0 8px;
  font-size: 18px;
  line-height: 1.5;
}

.quick-news {
  padding: 19px;
}

.quick-news-title {
  margin: 0 0 9px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
  font-size: 20px;
}

.quick-news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-news-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.quick-news-list li:last-child {
  border-bottom: 0;
}

.quick-news-list a {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.quick-news-list time {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.section {
  margin-top: 38px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
  padding-bottom: 11px;
  border-bottom: 2px solid var(--primary);
}

.section-title {
  margin: 0;
  color: var(--primary);
  font-size: 26px;
}

.section-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 26px;
}

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

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 7px 23px rgba(7, 31, 53, 0.04);
}

.news-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--soft);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover img {
  transform: scale(1.03);
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-card h3 {
  margin: 9px 0 9px;
  font-size: 18px;
  line-height: 1.55;
}

.news-card h3 a:hover,
.list-story h3 a:hover,
.section-link:hover {
  color: var(--accent);
}

.card-excerpt {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 13px;
}

.read-more {
  margin-top: auto;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.read-more::after {
  content: " ←";
}

.sidebar-box {
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.sidebar-title {
  margin: 0;
  padding: 15px 17px;
  border-bottom: 3px solid var(--primary);
  color: var(--primary);
  font-size: 19px;
}

.sidebar-list {
  margin: 0;
  padding: 0 17px;
  list-style: none;
}

.sidebar-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-list li:last-child {
  border-bottom: 0;
}

.sidebar-list a {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.sidebar-list time {
  color: var(--muted);
  font-size: 11px;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 17px;
}

.category-chips a {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.category-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
}

.category-primary {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.category-primary img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.category-primary-body {
  padding: 19px;
}

.category-primary h3 {
  margin: 7px 0 8px;
  font-size: 24px;
  line-height: 1.5;
}

.category-secondary {
  display: grid;
  gap: 14px;
}

.list-story {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.list-story:last-child {
  border-bottom: 0;
}

.list-story img {
  width: 120px;
  height: 80px;
  border-radius: 9px;
  object-fit: cover;
}

.list-story h3 {
  margin: 3px 0 5px;
  font-size: 15px;
  line-height: 1.5;
}

.archive-header {
  margin-bottom: 24px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.archive-header h1 {
  margin: 0 0 5px;
  color: var(--primary);
  font-size: 34px;
}

.archive-header p {
  margin: 0;
  color: var(--muted);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 35px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
}

.pagination .current {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.site-footer {
  margin-top: 10px;
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.75);
}

.footer-top {
  padding: 42px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 40px;
}

.footer-brand {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.footer-text {
  max-width: 550px;
  margin: 12px 0 0;
}

.footer-title {
  margin: 0 0 13px;
  color: #fff;
  font-size: 17px;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.footer-bottom-inner {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}

.empty {
  grid-column: 1 / -1;
  padding: 50px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}

@media (max-width: 1050px) {
  .lead-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  }

  .quick-news {
    grid-column: 1 / -1;
  }

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

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .masthead-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 24px 0;
  }

  .site-brand {
    grid-column: auto;
    grid-row: 1;
  }

  .masthead-date,
  .masthead-source {
    display: none;
  }

  .lead-layout {
    grid-template-columns: 1fr;
  }

  .lead-story {
    min-height: 440px;
  }

  .side-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

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

  .category-feature {
    grid-template-columns: 1fr;
  }

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .utility-links {
    display: none;
  }

  .utility-inner {
    justify-content: center;
  }

  .breaking-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  .breaking-label {
    padding-inline: 11px;
  }

  .lead-story {
    min-height: 390px;
  }

  .lead-content {
    padding: 24px;
  }

  .side-stack,
  .news-grid,
  .sidebar,
  .quick-news-list {
    grid-template-columns: 1fr;
  }

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

  .footer-grid > :first-child {
    grid-column: auto;
  }

  .footer-bottom-inner {
    min-height: 90px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}
