:root {
  --teal: #0f766e;
  --teal-dark: #082f36;
  --teal-soft: #e7f7f3;
  --blue: #1b3f5f;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe5e9;
  --surface: #ffffff;
  --background: #f5f9f8;
  --lime: #a3e635;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 170px; }
.brand img { width: 112px; height: 38px; object-fit: contain; }
.brand span { width: 1px; height: 28px; background: var(--line); }
.brand strong { font-size: 16px; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-weight: 700; font-size: 14px; }
.site-header nav a:hover { color: var(--teal); }
.portal-link { padding: 11px 16px; border-radius: 6px; background: var(--teal); color: white !important; }

.blog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  gap: 54px;
  align-items: end;
  padding: 76px clamp(20px, 6vw, 96px) 64px;
  background: var(--teal-dark);
  color: white;
  position: relative;
  overflow: hidden;
}
.blog-intro::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 100%;
  right: 0;
  top: 0;
  background: linear-gradient(135deg, transparent, rgba(163, 230, 53, .14));
  pointer-events: none;
}
.eyebrow { display: block; color: var(--teal); font-size: 12px; font-weight: 900; letter-spacing: 1.4px; }
.blog-intro .eyebrow { color: var(--lime); }
.blog-intro h1 { max-width: 850px; margin: 14px 0 18px; font-size: clamp(38px, 5vw, 66px); line-height: 1.03; }
.blog-intro p { max-width: 720px; margin: 0; font-size: 19px; line-height: 1.6; color: #d7e5e4; }
.blog-intro form { position: relative; z-index: 2; }
.blog-intro label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 800; }
.blog-intro form div { display: flex; background: white; padding: 6px; border-radius: 7px; }
.blog-intro input { width: 100%; min-width: 0; padding: 14px 15px; border: 0; outline: 0; font: inherit; }
.blog-intro button { border: 0; border-radius: 5px; padding: 0 18px; background: var(--teal); color: white; font-weight: 800; cursor: pointer; }

.content-shell, .related { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 70px; }
.category-row { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 10px; }
.category-row a { white-space: nowrap; padding: 9px 12px; border: 1px solid var(--line); background: white; border-radius: 5px; font-size: 13px; font-weight: 800; }
.category-row a.active { color: white; background: var(--teal); border-color: var(--teal); }
.category-row span { opacity: .7; margin-left: 5px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 35px 0 22px; }
.section-heading h2 { margin: 7px 0 0; font-size: 30px; }
.section-heading > span { color: var(--muted); font-size: 14px; font-weight: 700; }

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.article-grid article { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.article-grid article.featured { grid-column: span 2; }
.article-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: var(--teal-soft); }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
article:hover .article-image img { transform: scale(1.025); }
.featured-label { position: absolute; left: 14px; top: 14px; padding: 7px 10px; border-radius: 4px; background: var(--lime); color: var(--teal-dark); font-size: 11px; font-weight: 900; }
.article-copy { padding: 21px; }
.article-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 800; color: var(--muted); }
.article-meta span { color: var(--teal); }
.article-copy h3 { margin: 13px 0 10px; font-size: 22px; line-height: 1.22; }
.article-copy p { margin: 0; color: var(--muted); line-height: 1.55; }
.read-link { display: inline-flex; gap: 8px; margin-top: 18px; color: var(--teal); font-weight: 900; }
.pagination { margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 18px; font-weight: 800; }
.pagination a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.empty-state, .not-found { padding: 90px 20px; text-align: center; }
.empty-state strong { font-size: 24px; }
.empty-state p { color: var(--muted); }

.article-page { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 55px 0 70px; }
.article-page > header { max-width: 800px; margin: 0 auto 34px; text-align: center; }
.breadcrumbs { display: flex; justify-content: center; gap: 9px; margin-bottom: 30px; color: var(--muted); font-size: 13px; font-weight: 700; }
.article-page h1 { margin: 14px 0 18px; font-size: clamp(38px, 5vw, 60px); line-height: 1.05; }
.article-lead { margin: 0 auto; max-width: 760px; color: var(--muted); font-size: 20px; line-height: 1.55; }
.byline { margin-top: 25px; display: flex; justify-content: center; gap: 12px; color: var(--muted); font-size: 13px; }
.article-page > figure { margin: 0 0 42px; aspect-ratio: 16 / 8.5; overflow: hidden; border-radius: 7px; }
.article-page > figure img { width: 100%; height: 100%; object-fit: cover; }
.article-body { width: min(760px, 100%); margin: 0 auto; font-size: 18px; line-height: 1.75; }
.article-body p { margin: 0 0 24px; }
.article-body h2 { margin: 42px 0 15px; font-size: 32px; line-height: 1.2; }
.article-body h3 { margin: 32px 0 13px; font-size: 24px; }
.article-body h4 { margin: 27px 0 12px; font-size: 20px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 25px; }
.article-body li { margin-bottom: 9px; }
.article-body a { color: var(--teal); text-decoration: underline; }
.article-body blockquote {
  margin: 30px 0;
  padding: 19px 23px;
  border-left: 5px solid var(--teal);
  background: var(--teal-soft);
  color: #284149;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body hr { margin: 38px 0; border: 0; border-top: 1px solid var(--line); }
.article-body > div { margin-bottom: 24px; }
.article-cta { margin-top: 52px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--teal-dark); color: white; border-radius: 7px; }
.article-cta h2 { margin: 6px 0; font-size: 26px; }
.article-cta p { margin: 0; color: #c7dcda; }
.article-cta a { flex: none; padding: 12px 16px; border-radius: 5px; background: var(--lime); color: var(--teal-dark); font-weight: 900; }
.related { padding-top: 0; }
.article-grid.compact article { display: flex; flex-direction: column; }

.not-found { min-height: 65vh; display: grid; place-items: center; align-content: center; }
.not-found span { color: var(--teal); font-size: 70px; font-weight: 900; }
.not-found h1 { margin: 0; font-size: 36px; }
.not-found p { color: var(--muted); }
.not-found a { margin-top: 10px; padding: 12px 16px; background: var(--teal); color: white; border-radius: 5px; font-weight: 800; }

body > footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 35px;
  padding: 48px clamp(20px, 6vw, 96px) 24px;
  background: var(--teal-dark);
  color: white;
}
.footer-brand img { width: 115px; }
body > footer p { max-width: 490px; color: #c7dcda; line-height: 1.6; }
body > footer > div:not(:first-child) { display: flex; flex-direction: column; gap: 11px; }
body > footer > div:not(:first-child) a { color: #c7dcda; font-size: 14px; }
body > footer small { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px; color: #9eb8b5; }

@media (max-width: 900px) {
  .site-header nav a:not(.portal-link) { display: none; }
  .blog-intro { grid-template-columns: 1fr; align-items: start; gap: 30px; padding-top: 52px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid article.featured { grid-column: span 2; }
}
@media (max-width: 620px) {
  .site-header { min-height: 66px; padding: 11px 16px; }
  .brand img { width: 95px; }
  .brand strong, .brand span { display: none; }
  .portal-link { font-size: 12px; padding: 10px 12px; }
  .blog-intro { padding: 44px 20px 40px; }
  .blog-intro h1 { font-size: 40px; }
  .blog-intro p { font-size: 17px; }
  .blog-intro form div { display: grid; }
  .blog-intro button { padding: 12px; }
  .content-shell, .related, .article-page { width: min(100% - 28px, 1240px); }
  .article-grid, .article-grid.compact { grid-template-columns: 1fr; }
  .article-grid article.featured { grid-column: span 1; }
  .section-heading { align-items: start; }
  .article-page h1 { font-size: 40px; }
  .article-lead { font-size: 18px; }
  .byline { flex-direction: column; gap: 4px; }
  .article-page > figure { margin-left: -14px; margin-right: -14px; border-radius: 0; }
  .article-body { font-size: 17px; }
  .article-cta { align-items: start; flex-direction: column; }
  body > footer { grid-template-columns: 1fr 1fr; }
  body > footer > div:first-child { grid-column: 1 / -1; }
}
