:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --ink: #0d1830;
  --muted: #5f6a7d;
  --line: #dce4ef;
  --brand-red: #e00612;
  --brand-red-dark: #b6040e;
  --brand-blue: #0d4cbf;
  --brand-blue-dark: #072d79;
  --accent: #eff5ff;
  --success: #1f8c4b;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(13, 24, 48, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header { background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-strip { background: linear-gradient(90deg, var(--brand-blue-dark), var(--brand-blue), var(--brand-red)); color: #fff; font-size: 0.85rem; display: flex; justify-content: space-between; gap: 16px; padding: 8px max(16px, calc((100vw - 1180px) / 2)); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-copy { min-width: 0; }
.brand-logo { width: min(280px, 42vw); max-height: 74px; object-fit: contain; }
.footer-logo { width: 220px; margin-bottom: 14px; }
.brand strong { display: block; font-size: 1.18rem; }
.brand small { display: block; color: var(--muted); font-size: 0.8rem; }
.nav-links { display: flex; align-items: center; gap: 20px; font-weight: 700; font-size: 0.94rem; }
.nav-links a:hover { color: var(--brand-red); }
.menu-btn { display: none; border: 0; background: var(--surface-soft); border-radius: 10px; padding: 10px 12px; color: var(--brand-blue-dark); }

.breaking-bar { background: linear-gradient(90deg, var(--brand-red), var(--brand-blue)); color: #fff; }
.breaking-inner { display: flex; align-items: center; gap: 18px; padding: 10px 0; }
.breaking-inner strong { background: #fff; color: var(--brand-red); padding: 4px 8px; border-radius: 6px; text-transform: uppercase; font-size: 0.78rem; }

.ad { border: 1px dashed #91addf; background: #f3f8ff; color: var(--brand-blue-dark); border-radius: 16px; display: grid; place-items: center; text-align: center; font-weight: 700; }
.ad-top { min-height: 90px; margin-top: 22px; margin-bottom: 22px; padding: 20px; }
.ad-sidebar, .ad-rectangle { min-height: 250px; padding: 20px; }
.in-article-ad { min-height: 90px; margin: 24px 0; }

.intro-banner { display: grid; grid-template-columns: minmax(0, 1.5fr) 320px; gap: 24px; margin-top: 24px; margin-bottom: 12px; }
.intro-banner > div { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: 0 10px 24px rgba(13, 24, 48, 0.06); }
.eyebrow { display: inline-block; margin-bottom: 10px; padding: 7px 12px; background: #edf4ff; color: var(--brand-blue-dark); border-radius: 999px; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.03em; text-transform: uppercase; }
.intro-banner h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.55rem); line-height: 0.98; letter-spacing: -1.8px; }
.intro-banner h1 span { color: var(--brand-red); }
.intro-banner p { margin: 0; color: var(--muted); line-height: 1.7; }
.intro-card h3 { margin-top: 0; }

.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr); gap: 24px; margin-top: 22px; }
.hero-card { min-height: 520px; position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--ink); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0.8; }
.hero-overlay { position: absolute; inset: auto 0 0; color: #fff; padding: 34px; background: linear-gradient(transparent, rgba(0,0,0,0.87)); }
.hero-overlay h1 { font-size: clamp(2rem, 5vw, 4.3rem); line-height: 0.94; max-width: 850px; margin: 16px 0 14px; letter-spacing: -2px; }
.hero-overlay p { max-width: 650px; color: rgba(255,255,255,0.88); font-size: 1.05rem; }
.side-panel, .right-rail { display: grid; gap: 20px; align-content: start; }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: 0 10px 24px rgba(13, 24, 48, 0.05); }
.panel-card h3 { margin-top: 0; }

.toolbar { display: flex; justify-content: space-between; gap: 16px; margin: 34px auto 24px; }
.search-box { flex: 1; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 13px 14px; font: inherit; color: var(--ink); }
textarea { resize: vertical; }
label { display: grid; gap: 7px; font-weight: 700; color: var(--ink); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; margin-bottom: 50px; }
.section-title { margin-bottom: 18px; }
.section-title h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -1px; }
.section-title p { margin: 6px 0 0; color: var(--muted); }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 10px 26px rgba(13, 24, 48, 0.06); }
.news-card img { height: 230px; width: 100%; object-fit: cover; }
.news-card-body { padding: 20px; }
.news-card h3 { margin: 12px 0; font-size: 1.25rem; line-height: 1.22; }
.news-card p { color: var(--muted); }
.read-more { color: var(--brand-red); font-weight: 800; }
.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.84rem; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; background: #eaf2ff; color: var(--brand-blue-dark); font-weight: 900; font-size: 0.76rem; text-transform: uppercase; }
.badge.sponsored, .sponsored { background: #eaf6ee; color: var(--success); }
.mini-list { display: grid; gap: 12px; }
.mini-item { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mini-item:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-item strong { line-height: 1.25; }
.mini-item span { font-size: 0.82rem; color: var(--muted); }

.btn { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 13px; padding: 12px 16px; font-weight: 900; transition: 0.2s ease; }
.btn-primary { background: linear-gradient(90deg, var(--brand-red), var(--brand-blue)); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(0.96); }
.btn-ghost { background: #eef4ff; color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.newsletter form { display: grid; gap: 10px; }
.site-footer { background: #0d1830; color: #fff; padding: 42px 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
.site-footer a { display: block; color: #dbe7ff; margin: 8px 0; }
.site-footer p { color: rgba(255,255,255,0.75); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 36px; }
.article-page { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.article-hero-image { border-radius: 22px; overflow: hidden; margin-bottom: 22px; }
.article-hero-image img { width: 100%; height: min(52vw, 520px); object-fit: cover; }
.article-page h1 { font-size: clamp(2rem, 5vw, 4.5rem); letter-spacing: -2px; line-height: 0.98; margin: 16px 0; }
.article-excerpt { font-size: 1.25rem; color: var(--muted); }
.author-line { font-weight: 800; margin: 18px 0; }
.article-body p { font-size: 1.08rem; line-height: 1.75; color: #2f3650; }
.notice { background: #eaf6ee; color: #145a37; border: 1px solid #bfe6cd; border-radius: 14px; padding: 12px; margin: 16px 0; font-weight: 800; }
.source-line { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; color: var(--muted); word-break: break-word; }
.share-row { margin-top: 22px; }
.empty-state { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; color: var(--muted); }

.admin-body { background: #091121; }
.admin-shell { min-height: 100vh; }
.hidden { display: none !important; }
.login-card { width: min(520px, calc(100% - 32px)); margin: 7vh auto; background: var(--surface); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 2.4rem; margin-bottom: 8px; }
.login-card p { color: var(--muted); }
.login-card form { display: grid; gap: 16px; margin: 20px 0; }
.dashboard { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { background: linear-gradient(180deg, #0d1830, #07101e); color: #fff; padding: 22px; display: grid; align-content: start; gap: 10px; position: sticky; top: 0; height: 100vh; }
.admin-sidebar .brand small { color: rgba(255,255,255,0.72); }
.admin-logo { width: 230px; max-height: 110px; }
.brand-stack { align-items: flex-start; }
.tab-btn { text-align: left; border: 0; border-radius: 14px; padding: 13px 14px; font-weight: 900; background: transparent; color: rgba(255,255,255,0.72); cursor: pointer; }
.tab-btn.active, .tab-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.admin-main { padding: 28px; background: var(--bg); }
.admin-header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -1px; }
.admin-header p { color: var(--muted); }
.stats { display: flex; gap: 12px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; min-width: 110px; }
.stats strong { display: block; font-size: 1.7rem; }
.stats span { color: var(--muted); font-size: 0.84rem; }
.tab { display: none; }
.tab.active { display: block; }
.admin-list { display: grid; gap: 16px; }
.admin-story { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px; }
.admin-story img { width: 180px; height: 150px; object-fit: cover; border-radius: 16px; }
.admin-story h3 { margin: 10px 0 6px; }
.admin-story p { margin-top: 0; color: var(--muted); }
.editor-form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 20px; }
.checkbox-row label, .checklist label { display: flex; align-items: center; gap: 8px; }
.checkbox-row input, .checklist input { width: auto; }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.clean-list { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.checklist { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }

@media (max-width: 980px) {
  .intro-banner,
  .hero,
  .content-grid,
  .article-layout,
  .ai-grid,
  .dashboard,
  .footer-grid { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
}

@media (max-width: 760px) {
  .top-strip { flex-direction: column; padding-inline: 16px; }
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); flex-direction: column; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .toolbar,
  .form-grid,
  .stats,
  .news-grid,
  .admin-story { grid-template-columns: 1fr; display: grid; }
  .brand { gap: 10px; }
  .brand strong { font-size: 1rem; }
  .brand small { font-size: 0.74rem; }
  .brand-logo { width: min(220px, 46vw); }
  .admin-logo { width: 180px; }
  .hero-card { min-height: 430px; }
  .article-page { padding: 22px; }
}
