:root {
  --navy: #071426;
  --navy-2: #0b2342;
  --navy-3: #113663;
  --blue: #3a98da;
  --blue-2: #5ab4ee;
  --blue-soft: #e7f3fc;
  --yellow: #f2d24d;
  --yellow-2: #ffe27a;
  --yellow-soft: #fff8d6;
  --text: #122742;
  --muted: #5f7086;
  --line: rgba(7, 20, 38, .11);
  --card: rgba(255,255,255,.98);
  --soft: #f4f7fb;
  --shadow: 0 20px 60px rgba(7,20,38,.10);
  --shadow-soft: 0 10px 26px rgba(7,20,38,.08);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(58,152,218,.10), transparent 32%),
    radial-gradient(circle at top right, rgba(242,210,77,.13), transparent 24%),
    linear-gradient(180deg, #f5f6f8 0%, #eff4f8 52%, #f8fafc 100%);
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(90deg, rgba(7,20,38,.98), rgba(11,35,66,.96));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
  box-shadow: 0 10px 30px rgba(7,20,38,.18);
}
.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  min-width: 240px;
}
.brand img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  box-shadow: 0 12px 24px rgba(0,0,0,.20);
}
.brand-text strong {
  display: block;
  font-size: 1.08rem;
  letter-spacing: .18em;
  color: #fff;
}
.brand-text span {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  letter-spacing: .30em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  color: rgba(255,255,255,.84);
  padding: 10px 13px;
  border-radius: 999px;
  font-size: .92rem;
  transition: .2s ease;
}
.nav a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.nav .cta {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(242,210,77,.28);
}
.nav .cta:hover {
  background: linear-gradient(135deg, #f5d75d, #ffe895);
  color: var(--navy);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(7,20,38,.96), rgba(11,35,66,.88)),
    url('../img/brand/renis-banner.jpg') center/cover no-repeat;
  color: #fff;
}
.hero:before,
.hero:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero:before {
  top: -160px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(242,210,77,.22), transparent 68%);
}
.hero:after {
  left: -150px;
  bottom: -180px;
  width: 390px;
  height: 390px;
  background: radial-gradient(circle, rgba(58,152,218,.22), transparent 68%);
}
.hero-inner {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
  padding: 72px 22px 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 28px;
  align-items: center;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
}
.eyebrow:before {
  content: "";
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), transparent);
}
h1, h2, h3 { margin: 0; line-height: 1.08; }
.hero h1 {
  margin-top: 14px;
  font-size: clamp(2.25rem, 4.4vw, 5.15rem);
  letter-spacing: -.04em;
}
.hero h1 span,
.article-hero h1 span { color: var(--yellow); }
.hero p {
  margin: 18px 0 0;
  max-width: 740px;
  color: rgba(255,255,255,.84);
  font-size: 1.1rem;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 850;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: .96rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
  color: var(--navy);
  box-shadow: 0 12px 24px rgba(242,210,77,.26);
}
.btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.08);
}
.btn-dark { background: var(--navy); color: #fff; }
.btn-soft {
  background: var(--blue-soft);
  color: var(--navy);
  border-color: rgba(58,152,218,.18);
}
.hero-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.10));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  overflow: hidden;
}
.hero-card:after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 150px;
  height: 150px;
  background: url('../img/brand/renis-logo.jpg') center/contain no-repeat;
  opacity: .10;
  filter: saturate(.9);
}
.hero-card img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.18);
}
.hero-card strong { display: block; font-size: 1.2rem; }
.hero-card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.hero-card li {
  color: rgba(255,255,255,.86);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.hero-card li:before { content: "✓"; color: var(--yellow); font-weight: 900; }

.main-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px 22px 70px;
}
.toolbar {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,253,255,.98));
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: -60px;
  position: relative;
  z-index: 4;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(58,152,218,.18);
  border-radius: 16px;
  padding: 0 14px;
  background: linear-gradient(180deg, #fbfdff, #f2f7fc);
}
.search-box span { color: var(--blue); }
.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  padding: 15px 0;
  color: var(--text);
}
.toolbar select {
  border: 1px solid rgba(58,152,218,.18);
  background: linear-gradient(180deg, #fbfdff, #f2f7fc);
  border-radius: 16px;
  padding: 14px 13px;
  font: inherit;
  min-width: 185px;
  color: var(--text);
}

.blog-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 275px;
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}
.sidebar, .rightbar, .content-card, .article-card, .article-body, .toc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.sidebar, .rightbar {
  padding: 18px;
  position: sticky;
  top: 90px;
  background:
    linear-gradient(180deg, rgba(58,152,218,.05), rgba(242,210,77,.03) 28%, rgba(255,255,255,.98) 60%),
    var(--card);
}
.sidebar h2, .rightbar h2 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--navy);
}
.category-list, .level-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.filter-btn {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(58,152,218,.10);
  border-radius: 14px;
  padding: 11px 12px;
  background: linear-gradient(180deg, #f8fbff, #f1f7fc);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 750;
}
.filter-btn small { color: var(--muted); font-weight: 800; }
.filter-btn.active {
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  color: #fff;
  border-color: rgba(7,20,38,.15);
}
.filter-btn.active small { color: rgba(255,255,255,.72); }
.sidebar .divider, .rightbar .divider, .toc-card .divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}
.article-list-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
}
.article-list-head h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--navy); }
.article-list-head p { margin: 6px 0 0; color: var(--muted); }
.article-count { color: var(--muted); font-weight: 800; white-space: nowrap; }
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.article-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: linear-gradient(180deg, #fff, #fbfdff);
}
.thumb {
  height: 182px;
  background: linear-gradient(135deg, #0b2037, #173d63);
  position: relative;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(7,20,38,.44));
}
.status {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(7,20,38,.84);
  font-size: .78rem;
  font-weight: 850;
  backdrop-filter: blur(8px);
}
.status.publicado {
  background: linear-gradient(135deg, var(--blue), #4eacf0);
}
.status.em-breve {
  background: linear-gradient(135deg, rgba(7,20,38,.88), rgba(17,54,99,.88));
}
.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pill {
  border: 1px solid rgba(58,152,218,.14);
  color: var(--navy);
  background: #f4f8fc;
  font-size: .76rem;
  font-weight: 850;
  border-radius: 999px;
  padding: 6px 9px;
}
.pill.yellow {
  background: rgba(242,210,77,.22);
  border-color: rgba(242,210,77,.55);
}
.pill.red {
  background: rgba(58,152,218,.10);
  color: var(--blue);
  border-color: rgba(58,152,218,.24);
}
.card-body h3 { font-size: 1.18rem; line-height: 1.25; color: var(--navy); }
.card-body p { margin: 0; color: var(--muted); line-height: 1.6; }
.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-link {
  text-decoration: none;
  font-weight: 900;
  color: var(--blue);
}
.card-link.disabled { color: var(--muted); pointer-events: none; }
.path-list {
  counter-reset: path;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.path-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
}
.path-list li:before {
  counter-increment: path;
  content: counter(path);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(7,20,38,.14);
}
.path-list strong { display: block; color: var(--navy); }
.path-list span { color: var(--muted); font-size: .9rem; }
.promo {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(7,20,38,.98), rgba(17,54,99,.96)),
    url('../img/brand/renis-banner.jpg') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 36px rgba(7,20,38,.20);
}
.promo:after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(242,210,77,.16);
}
.promo strong { display: block; font-size: 1.05rem; }
.promo p { color: rgba(255,255,255,.77); line-height: 1.55; margin: 10px 0 16px; }
.promo a { position: relative; z-index: 2; }
.empty-state {
  padding: 36px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.site-footer {
  background: linear-gradient(90deg, var(--navy), var(--navy-2));
  color: rgba(255,255,255,.74);
  padding: 28px 22px;
  border-top: 3px solid rgba(242,210,77,.28);
}
.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-inner strong { color: #fff; }

.article-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(7,20,38,.96), rgba(11,35,66,.88)),
    url('../img/brand/renis-banner.jpg') center/cover no-repeat;
  color: #fff;
  padding: 62px 22px 42px;
}
.article-hero:before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 230px;
  height: 230px;
  background: url('../img/brand/renis-logo.jpg') center/contain no-repeat;
  opacity: .12;
  filter: saturate(.85);
}
.article-hero-inner { max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb { color: rgba(255,255,255,.72); font-size: .92rem; margin-bottom: 18px; }
.breadcrumb a { color: #fff; text-decoration: none; }
.article-hero h1 {
  font-size: clamp(2.05rem, 4.7vw, 4.8rem);
  letter-spacing: -.04em;
}
.article-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.84);
  font-size: 1.1rem;
  line-height: 1.7;
}
.article-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 24px;
  align-items: start;
}
.article-body {
  position: relative;
  padding: clamp(22px, 4vw, 44px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(58,152,218,.04), rgba(242,210,77,.02) 22%, rgba(255,255,255,.98) 50%),
    var(--card);
}
.article-body:before {
  content: "";
  position: absolute;
  top: 20px;
  right: 16px;
  width: 120px;
  height: 120px;
  background: url('../img/brand/renis-logo.jpg') center/contain no-repeat;
  opacity: .05;
  pointer-events: none;
}
.article-body h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  color: var(--navy);
  margin: 40px 0 12px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  margin: 26px 0 8px;
  color: var(--navy);
  font-size: 1.22rem;
}
.article-body p, .article-body li {
  line-height: 1.82;
  color: #344054;
  font-size: 1.03rem;
}
.article-body p { margin: 12px 0; }
.article-body ul { padding-left: 20px; }
.article-body strong { color: var(--navy); }
.article-body figure { margin: 28px 0; }
.article-body figure img {
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.article-body figcaption {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin-top: 10px;
}
.note {
  border-left: 5px solid var(--yellow);
  background: linear-gradient(180deg, #fffdf0, #fff8d6);
  border-radius: 16px;
  padding: 18px;
  margin: 22px 0;
  box-shadow: var(--shadow-soft);
}
.warning {
  border-left: 5px solid var(--blue);
  background: linear-gradient(180deg, #f4faff, #e9f4ff);
  border-radius: 16px;
  padding: 18px;
  margin: 22px 0;
  box-shadow: var(--shadow-soft);
}
.toc-card {
  padding: 18px;
  position: sticky;
  top: 90px;
  background:
    linear-gradient(180deg, rgba(58,152,218,.04), rgba(255,255,255,.98) 22%),
    var(--card);
}
.toc-card h2 { font-size: 1rem; margin-bottom: 14px; color: var(--navy); }
.toc-card a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.toc-card a:hover { color: var(--blue); }
.related { margin-top: 18px; display: grid; gap: 10px; }
.related a {
  text-decoration: none;
  background: linear-gradient(180deg, #f8fbff, #f2f7fc);
  border: 1px solid rgba(58,152,218,.12);
  padding: 12px;
  border-radius: 14px;
  display: block;
  color: var(--navy);
  font-weight: 850;
}
.article-cta {
  margin-top: 34px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(7,20,38,.98), rgba(17,54,99,.96)),
    url('../img/brand/renis-banner.jpg') center/cover no-repeat;
  color: #fff;
  padding: 26px;
  display: grid;
  gap: 12px;
  box-shadow: 0 20px 40px rgba(7,20,38,.18);
}
.article-cta p { color: rgba(255,255,255,.78); margin: 0; }

@media (max-width: 1040px) {
  .blog-grid { grid-template-columns: 230px minmax(0, 1fr); }
  .rightbar { grid-column: 1 / -1; position: static; }
  .rightbar .promo { max-width: 520px; }
  .article-layout { grid-template-columns: 1fr; }
  .toc-card { position: static; order: -1; }
}
@media (max-width: 820px) {
  .header-inner { flex-direction: column; align-items: stretch; }
  .brand { min-width: 0; }
  .nav { justify-content: flex-start; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; }
  .toolbar { grid-template-columns: 1fr; margin-top: -34px; }
  .toolbar select { width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .cards { grid-template-columns: 1fr; }
  .article-list-head { align-items: start; flex-direction: column; }
}
@media (max-width: 560px) {
  .nav a { padding: 9px 10px; font-size: .86rem; }
  .main-wrap { padding-left: 14px; padding-right: 14px; }
  .hero-inner, .article-hero { padding-left: 14px; padding-right: 14px; }
  .thumb { height: 160px; }
  .article-body { padding: 20px; }
}
