:root {
  --bg: #f1f3f8;
  --text: #1c1f26;
  --muted: #5f6573;
  --primary: #d10707;
  --primary-dark: #9f0505;
  --card: #ffffff;
  --border: #e4e8f1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.breaking-strip {
  background: #be0303;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.breaking-strip .container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}

.breaking-label {
  background: #7e0000;
  border-radius: 4px;
  padding: 2px 8px;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.market-bar {
  background: #111827;
  color: #f9fafb;
  font-size: 0.92rem;
  padding: 8px 0;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.up {
  color: #49df89;
}

.down {
  color: #ff8a80;
}

.top-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 14px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.top-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  margin-top: 24px;
}

.main-news,
.widget,
.footer {
  background: var(--card);
}

.main-news {
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 10px;
}

.hero-image {
  width: 100%;
  display: block;
  border-radius: 8px;
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #7b1111;
  background: #ffe7e7;
  border: 1px solid #ffc2c2;
  border-radius: 6px;
  padding: 4px 10px;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin: 0;
  line-height: 1.2;
}

.lead {
  color: #3e4452;
  font-size: 1.03rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #667085;
  font-size: 0.9rem;
  margin: 14px 0 18px;
}

.cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(209, 7, 7, 0.22);
}

.cta:hover {
  background: var(--primary-dark);
}

.second {
  margin-top: 8px;
}

h2 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background: #fbfcff;
}

.card h3 {
  margin: 0 0 6px;
}

.steps {
  padding-left: 20px;
}

.highlight-box {
  border: 1px solid var(--border);
  background: #f9fbff;
  border-radius: 10px;
  padding: 14px;
  margin-top: 14px;
}

.highlight-box h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.highlight-box ul {
  margin: 0;
  padding-left: 18px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compact p {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}

.compact p:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.widget {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.widget h3 {
  margin-top: 0;
}

.widget ul {
  padding-left: 20px;
  margin: 0;
}

.widget li {
  margin-bottom: 8px;
}

.widget a {
  color: #1d4ed8;
  text-decoration: none;
}

.widget details {
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.widget details:first-of-type {
  border-top: 0;
}

.footer {
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding: 24px 0 30px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.footer h4 {
  margin: 0 0 6px;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #4b5563;
  text-decoration: none;
}

@media (max-width: 900px) {
  .breaking-strip .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .market-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 2px 0;
  }

  .market-grid span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 0.84rem;
    line-height: 1.25;
  }

  .market-grid strong {
    font-weight: 700;
  }

  .market-grid em {
    font-style: normal;
    white-space: nowrap;
  }

  .nav-wrap {
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .menu {
    width: 100%;
    display: none !important;
    flex-direction: column;
    gap: 8px !important;
    padding-top: 10px !important;
  }

  .menu.open {
    display: flex !important;
  }

  .top-nav a {
    display: block;
    padding: 8px 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
  }

  .main-news {
    padding: 16px;
  }

  .widget {
    padding: 14px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .lead {
    font-size: 0.98rem;
  }

  .meta {
    flex-direction: column;
    gap: 5px;
  }
}
