* { box-sizing: border-box; }

body {
  margin: 0;
  font: 1rem/1.5 Verdana, Geneva, Tahoma, sans-serif;
  color: #222;
  background: rgb(237, 241, 235);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header,
.site-footer {
  background: rgb(170, 38, 38);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-inner,
.footer-inner,
.content-wrap {
  margin: 0 auto;
  padding: 16px;
}

.header-inner,
.footer-inner {
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  flex-wrap: wrap;
}

.content-wrap {
  max-width: 1100px;
}

.branding,
.site-nav,
.bgs-intro {
  display: flex;
  gap: 12px;
}

.branding {
  align-items: center;
  min-width: 0;
}

.branding img {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.site-title {
  margin: 0;
  color: white;
  font-size: 1rem;
  line-height: 1.3;
}

.site-nav {
  flex-wrap: wrap;
  gap: 12px 16px;
}

.site-nav a,
.site-footer a {
  color: white;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-footer a:hover,
.box a:hover {
  text-decoration: underline;
}

.page {
  padding-top: 110px;
}

.box {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.box h1,
.box h2,
.box h3 {
  margin-top: 0;
  color: rgb(182, 39, 39);
  line-height: 1.25;
}

.box a {
  color: rgb(182, 39, 39);
  text-decoration: none;
}

.box p:last-child,
.box ul:last-child {
  margin-bottom: 0;
}

ul {
  padding-left: 22px;
}

.bgs-intro {
  align-items: stretch;
  gap: 20px;
}

.bgs-logo {
  max-height: 160px;
  width: auto;
  object-fit: contain;
}

.bgs-text {
  flex: 1;
}

.site-footer {
  margin-top: 24px;
}

@media (max-width: 700px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .branding img {
    height: 38px;
  }

  .site-nav {
    width: 100%;
  }

  .site-title {
    font-size: 0.95rem;
  }

  .page {
    padding-top: 150px;
  }

  .content-wrap {
    padding: 12px;
  }

  .box {
    padding: 16px;
    border-radius: 12px;
  }

  .bgs-logo {
    width: 90px;
  }
}

@media (min-width: 1200px) {
  .content-wrap {
    max-width: 1200px;
  }
}

.site-nav a.active{
  text-decoration: underline;
  font-weight: bold;
}

.site-footer a.active{
  text-decoration: underline;
  font-weight: bold;
}