:root {
  --blue: #19558e;
  --blue-dark: #0a1a30;
  --green: #10836f;
  --orange: #f59a18;
  --ink: #111827;
  --muted: #63728a;
  --line: #cfe0f2;
  --paper: #fffdf8;
  --soft: #eef5fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(25, 85, 142, 0.04) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(245, 154, 24, 0.12), transparent 32rem),
    linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
  background-size: 34px 34px, auto, auto;
}

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

.site-topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 45px rgba(12, 31, 58, 0.08);
}

.brand,
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img,
.footer-logo-row img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
}

.brand strong,
.footer-logo-row strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
}

.brand em,
.footer-logo-row em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.site-topbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-topbar nav a,
.site-topbar nav button,
.hero-button,
.article-cta a,
.footer-premium a {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #123d68;
  padding: 11px 16px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 900;
  cursor: pointer;
}

.site-topbar nav button[data-access-login="register"],
.hero-button,
.article-cta .is-primary {
  background: #2868aa;
  color: #fff;
  border-color: #2868aa;
}

.site-topbar nav .help-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: #b9dfd2;
  background: #f1fbf7;
  color: #17624e;
}

.site-topbar nav .help-link::before {
  content: "?";
  width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 900;
}

.site-topbar nav .help-link:hover {
  border-color: #7fc5af;
  background: #e5f7f0;
}

.blog-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 76px;
}

.blog-hero,
.blog-section,
.article-page {
  border: 1px solid var(--line);
  border-top: 8px solid var(--orange);
  border-radius: 8px;
  background: linear-gradient(110deg, var(--paper), #fff 48%, #f7fbff);
  box-shadow: 0 24px 55px rgba(12, 31, 58, 0.08);
}

.blog-hero {
  padding: clamp(34px, 4.8vw, 60px);
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(112deg, rgba(7, 17, 31, 0.94), rgba(10, 26, 48, 0.86) 48%, rgba(16, 131, 111, 0.28)),
    linear-gradient(135deg, #0a1a30, #123d68);
}

.blog-hero-editorial {
  border-radius: 24px;
}

.blog-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 46%;
  background:
    linear-gradient(90deg, rgba(10, 26, 48, 0), rgba(255, 255, 255, 0.06)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 16px);
  opacity: 0.55;
  pointer-events: none;
}

.blog-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--orange), var(--green), var(--blue));
}

.blog-hero.is-small {
  min-height: 260px;
}

.kicker {
  margin: 0 0 12px;
  color: #00806d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-hero h1,
.article-header h1 {
  margin: 0;
  max-width: 870px;
  color: var(--blue-dark);
  font-size: clamp(2rem, 3.85vw, 3.95rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.blog-hero h1,
.blog-hero p,
.blog-hero .kicker,
.blog-hero .hero-button,
.blog-hero-tags,
.blog-hero-visual {
  position: relative;
  z-index: 1;
}

.blog-hero h1 {
  color: #fff;
  text-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.blog-hero p:not(.kicker) {
  color: rgba(255, 255, 255, 0.88);
}

.blog-hero .kicker {
  color: #8ff0d6;
}

.blog-hero p:not(.kicker),
.article-header p:not(.post-meta) {
  max-width: 780px;
  margin: 18px 0 0;
  color: #52647e;
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 600;
}

.blog-hero-editorial p:not(.kicker) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.blog-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.hero-button.is-light {
  background: rgba(255, 255, 255, 0.93);
  color: #123d68;
  border-color: rgba(255, 255, 255, 0.7);
}

.blog-hero-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.blog-hero-tags span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0 13px;
  font-size: 0.72rem;
  font-weight: 900;
}

.blog-hero-visual {
  min-height: 310px;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(8, 19, 33, 0.1), rgba(8, 19, 33, 0.72)),
    url("../shared/hero-commercial.png") center / cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 22px 48px rgba(0, 0, 0, 0.2);
}

.blog-visual-card {
  width: min(100%, 330px);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.blog-visual-card span,
.featured-label {
  display: inline-flex;
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-visual-card strong {
  display: block;
  color: var(--blue-dark);
  font-size: 1.35rem;
  line-height: 1.08;
  font-weight: 900;
}

.blog-visual-card small {
  display: block;
  margin-top: 10px;
  color: #52647e;
  font-size: 0.82rem;
  line-height: 1.55;
  font-weight: 800;
}

.blog-section {
  margin-top: 22px;
  padding: clamp(22px, 3vw, 34px);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

.section-head-editorial p:not(.kicker) {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  font-weight: 650;
}

.section-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #123d68;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 900;
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
  gap: 0;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid #c9dceb;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, #f6fbff);
  box-shadow: 0 24px 58px rgba(15, 42, 75, 0.1);
}

.featured-media {
  min-height: 310px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 24% 28%, rgba(245, 154, 24, 0.26), transparent 9rem),
    radial-gradient(circle at 80% 68%, rgba(16, 131, 111, 0.2), transparent 10rem),
    linear-gradient(135deg, #e8f2fb, #fffaf0);
  color: #164a7d;
  font-size: 1.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-body {
  padding: clamp(26px, 3.4vw, 46px);
  align-self: center;
}

.featured-body h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(1.65rem, 2.5vw, 2.75rem);
  line-height: 1.06;
}

.featured-body p:not(.post-meta) {
  color: #52647e;
  font-size: 1.03rem;
  line-height: 1.7;
  font-weight: 650;
}

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

.post-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(15, 42, 75, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: #b9d1e7;
  box-shadow: 0 22px 46px rgba(15, 42, 75, 0.1);
}

.post-media {
  display: block;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 26% 34%, rgba(245, 154, 24, 0.22), transparent 6rem),
    linear-gradient(135deg, #eaf2fb, #fff);
}

.post-media.is-empty {
  display: grid;
  place-items: center;
  color: #164a7d;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-body,
.empty-state {
  padding: 24px;
}

.post-meta {
  margin: 0 0 10px;
  color: #0d806e;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.post-card h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.12rem;
  line-height: 1.25;
}

.post-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
  font-weight: 600;
}

.read-more {
  color: #1f63a3;
  font-weight: 900;
}

.read-more.is-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 18px;
  border-radius: 999px;
  background: #2868aa;
  color: #fff;
}

.article-page {
  padding: clamp(28px, 5vw, 68px);
  background:
    radial-gradient(circle at 92% 4%, rgba(245, 154, 24, 0.16), transparent 16rem),
    linear-gradient(180deg, #fffdf8, #fff);
}

.article-header {
  max-width: 840px;
}

.article-header h1 {
  font-size: clamp(2rem, 3.7vw, 3.9rem);
  line-height: 1.05;
}

.article-cover {
  margin: 32px 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.article-content {
  max-width: 820px;
  font-size: 1.02rem;
  line-height: 1.78;
  color: #27364b;
  font-weight: 500;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--blue-dark);
  line-height: 1.15;
  margin: 34px 0 10px;
  font-weight: 900;
}

.article-content h2 {
  font-size: 2rem;
}

.article-content h3 {
  font-size: 1.45rem;
}

.article-content h4 {
  font-size: 1.16rem;
}

.article-content ul {
  padding-left: 1.2rem;
}

.article-content li + li {
  margin-top: 8px;
}

.article-content figure {
  margin: 34px 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.article-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 6px solid var(--orange);
  border-radius: 12px;
  background: #fff8ec;
  color: #23324a;
  font-size: 1.12rem;
  font-weight: 800;
}

.article-content a {
  color: #1f63a3;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 34px 0;
}

.article-content pre {
  margin: 28px 0;
  padding: 20px;
  overflow: auto;
  border: 1px solid #cfddea;
  border-radius: 14px;
  background: #0f2742;
  color: #eaf3fb;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.article-content code {
  padding: 0.12rem 0.34rem;
  border-radius: 6px;
  background: #eef5fb;
  color: #123d68;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
  font-weight: 700;
}

.article-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.article-cta {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  width: 100%;
  padding: 48px 0 28px;
  color: #eaf4ff;
  background: radial-gradient(circle at right top, rgba(16, 131, 111, 0.28), transparent 32rem), linear-gradient(110deg, #101010, #061c24);
}

.site-footer-grid,
.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.site-footer p {
  color: #b9c7db;
  line-height: 1.55;
  font-weight: 700;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #8aa8cf;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer nav a {
  display: block;
  margin: 10px 0;
  color: #fff;
  font-weight: 900;
}

.footer-premium {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.footer-premium a {
  display: inline-flex;
  background: var(--orange);
  border-color: var(--orange);
  color: #101010;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #9eb8d8;
  font-size: 0.84rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-topbar,
  .blog-hero,
  .section-head,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .site-topbar,
  .site-topbar nav,
  .footer-bottom {
    justify-content: center;
  }

  .blog-hero {
    grid-template-columns: 1fr;
  }

  .post-grid,
  .featured-post,
  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .featured-media {
    min-height: 240px;
  }
}

@media (max-width: 620px) {
  .site-topbar,
  .blog-shell,
  .site-footer-grid,
  .footer-bottom {
    width: min(100% - 18px, 1180px);
  }

  .brand span {
    min-width: 0;
  }

  .site-topbar nav a,
  .site-topbar nav button {
    flex: 1 1 auto;
    text-align: center;
  }

  .blog-section {
    padding: 18px;
  }
}
