/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-900: #0a1628;
  --blue-800: #0f2440;
  --blue-700: #133366;
  --blue-600: #1a4480;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #60a5fa;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Breaking News Banner ── */
.breaking-bar {
  background: var(--red-600);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
}

.breaking-bar__inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 12px;
}

.breaking-bar__badge {
  background: var(--white);
  color: var(--red-600);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.breaking-bar__text {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Header ── */
.header {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.header__top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo__icon {
  width: 40px;
  height: 40px;
  background: var(--blue-500);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--white);
}

.logo__text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo__text span {
  color: var(--blue-300);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__date {
  font-size: 0.8rem;
  color: var(--blue-300);
  display: none;
}

@media (min-width: 768px) {
  .header__date {
    display: block;
  }
}

.btn-subscribe {
  background: var(--blue-500);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-subscribe:hover {
  background: var(--blue-400);
}

/* ── Navigation ── */
.nav {
  background: var(--blue-800);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav__inner::-webkit-scrollbar {
  display: none;
}

.nav__link {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
}

.nav__link:hover,
.nav__link--active {
  color: var(--white);
  border-bottom-color: var(--blue-400);
}

/* ── Article Layout ── */
.article-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .article-wrapper {
    grid-template-columns: 1fr 340px;
  }
}

/* ── Article ── */
.article {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.article__category {
  display: inline-block;
  background: var(--blue-500);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 4px;
  margin: 1.5rem 1.5rem 0;
}

.article__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--gray-900);
  padding: 1rem 1.5rem 0;
}

@media (min-width: 768px) {
  .article__title {
    font-size: 2.25rem;
  }
}

.article__lead {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.6;
  padding: 0.75rem 1.5rem 0;
  font-weight: 400;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-100);
  flex-wrap: wrap;
}

.article__author {
  font-weight: 600;
  color: var(--blue-600);
}

.article__meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-300);
}

.article__share {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray-500);
}

.share-btn:hover {
  background: var(--blue-50);
  border-color: var(--blue-300);
  color: var(--blue-500);
}

.share-btn svg {
  width: 14px;
  height: 14px;
}

/* ── Article Image ── */
.article__image-wrapper {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.article__image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article__image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  font-size: 0.75rem;
  padding: 2rem 1.5rem 0.75rem;
}

/* ── Article Body ── */
.article__body {
  padding: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gray-700);
}

.article__body p {
  margin-bottom: 1.25rem;
}

.article__body p:last-child {
  margin-bottom: 0;
}

.article__body blockquote {
  border-left: 4px solid var(--blue-500);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--blue-50);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--blue-800);
}

.article__body h2 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue-100);
}

.article__body .highlight-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.article__body .highlight-box strong {
  color: var(--blue-700);
}

.article__tags {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--gray-100);
}

.tag {
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.2s;
}

.tag:hover {
  background: var(--blue-100);
  color: var(--blue-600);
}

/* ── Sidebar ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.sidebar-card__header {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1.25rem;
}

.sidebar-card__body {
  padding: 1rem 1.25rem;
}

.sidebar-news {
  list-style: none;
}

.sidebar-news li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
  line-height: 1.4;
}

.sidebar-news li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-news li a {
  color: var(--gray-700);
  transition: color 0.2s;
  font-weight: 500;
}

.sidebar-news li a:hover {
  color: var(--blue-500);
}

.sidebar-news__time {
  display: block;
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 2px;
}

/* ── Newsletter Box ── */
.newsletter {
  padding: 1.25rem;
}

.newsletter p {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}

.newsletter__form {
  display: flex;
  gap: 0.5rem;
}

.newsletter__input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter__input:focus {
  border-color: var(--blue-400);
}

.newsletter__btn {
  background: var(--blue-500);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter__btn:hover {
  background: var(--blue-600);
}

/* ── Key Figures ── */
.key-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.key-figure {
  text-align: center;
  padding: 0.75rem;
  background: var(--blue-50);
  border-radius: 8px;
}

.key-figure__number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1;
}

.key-figure__label {
  font-size: 0.65rem;
  color: var(--gray-500);
  margin-top: 4px;
  line-height: 1.3;
}

/* ── Footer ── */
.footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 3rem;
}

.footer__top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer__brand span {
  color: var(--blue-300);
}

.footer__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__bottom a {
  color: var(--blue-300);
  transition: color 0.2s;
}

.footer__bottom a:hover {
  color: var(--white);
}

/* ── Legal page ── */
.legal-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.legal-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.legal-card h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--blue-500);
}

.legal-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-700);
  margin: 2rem 0 0.75rem;
}

.legal-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-card ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Utilities ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
