:root {
  --sg-red: #c8102e;
  --sg-red-dark: #8f1024;
  --sg-navy: #17324d;
  --sg-ink: #172033;
  --sg-muted: #5c6675;
  --sg-line: #d8e0ea;
  --sg-soft-line: #e8edf3;
  --sg-page: #f5f7fa;
  --sg-surface: #ffffff;
  --sg-green: #0f766e;
  --sg-gold: #a86612;
  --sg-shadow: 0 16px 40px rgba(23, 32, 51, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--sg-page);
}

body {
  background:
    linear-gradient(180deg, #f8fafc 0%, #f5f7fa 46%, #eef3f8 100%) !important;
  color: var(--sg-ink) !important;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 16px;
  line-height: 1.7 !important;
  overflow-x: hidden;
}

body::selection {
  background: rgba(200, 16, 46, 0.18);
}

a {
  color: var(--sg-red);
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  color: var(--sg-navy) !important;
  letter-spacing: 0 !important;
}

p,
li {
  color: #2f3b4d;
}

.navbar {
  align-items: center !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--sg-line);
  border-top: 4px solid var(--sg-red);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
  color: var(--sg-ink) !important;
  min-height: 72px;
  padding: 0 28px !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

@supports (backdrop-filter: blur(12px)) {
  .navbar {
    backdrop-filter: blur(12px);
  }
}

.navbar .logo,
.navbar a.logo {
  align-items: center;
  color: var(--sg-ink) !important;
  display: inline-flex;
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  gap: 10px;
  line-height: 1.1;
}

.navbar .logo::before,
.navbar a.logo::before {
  background:
    linear-gradient(180deg, #ffffff 0 42%, transparent 42% 100%),
    var(--sg-red);
  border: 1px solid rgba(200, 16, 46, 0.18);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  height: 28px;
  width: 38px;
}

.navbar ul {
  align-items: center;
  gap: 6px;
  margin: 0;
  padding-left: 0;
}

.navbar li {
  margin-left: 0 !important;
}

.navbar li a,
.navbar ul a {
  border-radius: 6px !important;
  color: var(--sg-ink) !important;
  font-size: 0.94rem;
  font-weight: 700 !important;
  padding: 11px 13px !important;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}

.navbar li a:hover,
.navbar ul a:hover {
  background: #f1f4f8 !important;
  color: var(--sg-red) !important;
  box-shadow: inset 0 0 0 1px var(--sg-soft-line);
}

.navbar li a i,
.navbar ul a i {
  color: var(--sg-red);
}

.menu-toggle {
  align-items: center;
  color: var(--sg-ink) !important;
  border: 1px solid var(--sg-line);
  border-radius: 6px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  padding: 8px 10px;
  width: 40px;
}

.menu-toggle i {
  display: none;
}

.menu-toggle::before {
  background: var(--sg-ink);
  box-shadow: 0 -6px 0 var(--sg-ink), 0 6px 0 var(--sg-ink);
  content: "";
  display: block;
  height: 2px;
  width: 18px;
}

.dropdown-content {
  background: var(--sg-surface) !important;
  border: 1px solid var(--sg-line);
  border-radius: 8px !important;
  box-shadow: var(--sg-shadow) !important;
  min-width: 220px !important;
  padding: 6px !important;
}

.dropdown-content a {
  border-bottom: 0 !important;
  color: var(--sg-ink) !important;
  display: flex !important;
  gap: 8px;
}

.dropdown-content a:hover {
  background: #f6f8fb !important;
}

.dropdown-content a i {
  color: var(--sg-red) !important;
}

.hero {
  align-content: center;
  background-image:
    linear-gradient(110deg, rgba(10, 30, 52, 0.78), rgba(10, 30, 52, 0.46) 55%, rgba(200, 16, 46, 0.34)),
    url("/images/hero-image.jpg") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  display: grid;
  isolation: isolate;
  min-height: clamp(360px, 48vh, 560px);
  overflow: hidden;
  padding: clamp(72px, 10vw, 118px) 24px !important;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(180deg, rgba(10, 30, 52, 0.08), rgba(10, 30, 52, 0.2)) !important;
  content: "" !important;
  inset: 0 !important;
  position: absolute !important;
  z-index: 0 !important;
}

.hero > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 880px;
  position: relative;
  z-index: 1 !important;
}

.hero h1 {
  color: #ffffff !important;
  font-size: clamp(2.1rem, 5vw, 4.25rem) !important;
  line-height: 1.05 !important;
  margin-bottom: 18px !important;
  max-width: 940px;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.28) !important;
}

.hero p {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(1rem, 1.6vw, 1.22rem) !important;
  line-height: 1.65 !important;
  max-width: 760px !important;
}

.hero .cta-button {
  width: auto;
}

.cta-button,
.read-more-link,
.back-link a {
  align-items: center;
  background: var(--sg-red) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 22px rgba(200, 16, 46, 0.22);
  color: #ffffff !important;
  display: inline-flex !important;
  font-weight: 800 !important;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

.cta-button:hover,
.read-more-link:hover,
.back-link a:hover {
  background: var(--sg-red-dark) !important;
  box-shadow: 0 12px 24px rgba(143, 16, 36, 0.26);
  transform: translateY(-1px);
}

.container {
  max-width: 1120px !important;
  margin: clamp(32px, 5vw, 64px) auto !important;
  padding: 0 22px !important;
}

section,
article {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid var(--sg-line);
  border-radius: 8px !important;
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.06) !important;
  margin-bottom: 26px !important;
  padding: clamp(24px, 4vw, 40px) !important;
}

section h2,
article h2 {
  border-bottom: 1px solid var(--sg-line) !important;
  color: var(--sg-navy) !important;
  font-size: clamp(1.35rem, 2.5vw, 2rem) !important;
  line-height: 1.2 !important;
  margin-bottom: 22px !important;
  padding-bottom: 14px !important;
  position: relative;
  text-transform: none !important;
}

section h2::after,
article h2::after {
  background: var(--sg-red);
  bottom: -1px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  width: 72px;
}

section h3,
article h3,
.subheading {
  color: var(--sg-navy) !important;
  font-size: clamp(1.08rem, 1.6vw, 1.32rem) !important;
  line-height: 1.35;
}

ol,
ul {
  padding-left: 1.25rem !important;
}

li::marker {
  color: var(--sg-red);
}

section a,
article a,
.card-body a,
.breadcrumbs a,
.toc a,
.footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

section a,
article a,
section a[style],
article a[style],
.card-body h3 a,
.toc a,
.breadcrumbs a {
  color: var(--sg-red) !important;
}

section a:hover,
article a:hover,
.card-body h3 a:hover,
.toc a:hover,
.breadcrumbs a:hover {
  color: var(--sg-red-dark) !important;
}

.breadcrumbs {
  color: var(--sg-muted) !important;
  font-size: 0.92rem !important;
  margin-bottom: 18px !important;
}

.byline,
.card-meta {
  color: var(--sg-muted) !important;
  font-size: 0.92rem !important;
}

.toc,
.callout {
  background: #f7fafc !important;
  border: 1px solid var(--sg-line) !important;
  border-left: 4px solid var(--sg-red) !important;
  border-radius: 8px !important;
  padding: 18px 20px !important;
}

.toc h3,
.callout strong {
  color: var(--sg-navy) !important;
}

.callout {
  background: #fff9f7 !important;
}

.highlight-list li {
  margin-bottom: 8px !important;
}

.grid {
  gap: 24px !important;
}

.card {
  border: 1px solid var(--sg-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.08) !important;
  overflow: hidden;
  padding: 0 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(200, 16, 46, 0.34) !important;
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.12) !important;
  transform: translateY(-2px);
}

.card-img {
  background-color: #dce6ef;
  background-position: center !important;
  background-size: cover !important;
  min-height: 210px;
  position: relative;
}

.card-img::after {
  background: linear-gradient(180deg, transparent 44%, rgba(10, 30, 52, 0.48) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.card-body {
  padding: 22px !important;
}

.card-body h3 {
  margin-bottom: 12px !important;
}

.card-body h3 a {
  color: var(--sg-navy) !important;
  text-decoration: none !important;
}

.card-desc {
  color: #3f4c5f !important;
}

.read-more-link {
  margin: 0 22px 22px !important;
}

.faq-category {
  border-top: 1px solid var(--sg-soft-line);
  padding-top: 18px;
}

.faq-category + .faq-category {
  margin-top: 24px;
}

.faq-item {
  border-bottom: 1px solid var(--sg-soft-line) !important;
  padding: 0 !important;
}

.faq-item:hover {
  background: transparent !important;
}

.faq-question {
  color: var(--sg-ink);
  display: block;
  font-weight: 800 !important;
  min-height: 52px;
  padding: 15px 42px 15px 0 !important;
}

.faq-question::after {
  align-items: center;
  background: #f1f4f8;
  border: 1px solid var(--sg-line);
  border-radius: 999px;
  color: var(--sg-red);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  line-height: 1;
  right: 0 !important;
  top: 12px;
  width: 28px;
}

.faq-answer {
  color: #3f4c5f !important;
  padding: 0 0 18px !important;
}

.footer {
  background: var(--sg-navy) !important;
  border-top: 4px solid var(--sg-red);
  color: rgba(255, 255, 255, 0.88) !important;
  margin-top: 56px !important;
  padding: 30px 20px !important;
}

.footer p {
  color: rgba(255, 255, 255, 0.88) !important;
}

.footer a {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.footer a:hover {
  color: #ffd6de !important;
}

table {
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
}

th {
  background: var(--sg-navy) !important;
}

@media (max-width: 1024px) {
  html,
  body {
    max-width: 100%;
    width: 100%;
  }

  .navbar {
    flex-wrap: wrap;
    min-height: 64px;
    padding: 0 18px !important;
    width: 100vw;
  }

  .menu-toggle {
    display: inline-flex !important;
  }

  .navbar ul {
    background: #ffffff !important;
    border-top: 1px solid var(--sg-line);
    display: none !important;
    flex-direction: column;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    padding: 8px 0 !important;
    width: 100%;
  }

  .navbar ul.active {
    display: flex !important;
    max-height: 1000px;
    box-shadow: none;
  }

  .navbar li {
    border-top: 0 !important;
  }

  .navbar li a,
  .navbar ul a {
    display: flex !important;
    padding: 13px 8px !important;
  }

  .dropdown-content {
    box-shadow: none !important;
    margin: 4px 0 8px;
    position: static !important;
    width: 100%;
  }

  .hero {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 390px;
    max-width: 100vw;
    padding: 72px 18px !important;
    width: 100vw;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.2rem) !important;
    max-width: calc(100vw - 36px) !important;
    overflow-wrap: break-word;
    white-space: normal;
    width: 100%;
  }

  .hero p {
    max-width: calc(100vw - 36px) !important;
    width: 100%;
  }

  .hero .cta-button {
    max-width: calc(100vw - 36px) !important;
    width: min(100%, 320px) !important;
  }

  .container {
    max-width: 100vw !important;
    padding: 0 16px !important;
    width: 100vw !important;
  }

  section,
  article {
    padding: 22px !important;
    max-width: 100% !important;
    overflow-wrap: break-word;
    width: 100% !important;
  }

  p,
  li {
    overflow-wrap: break-word;
  }
}
