:root {
  --nasmei-ink: #12201d;
  --nasmei-muted: #60706b;
  --nasmei-soft: #f3f7f4;
  --nasmei-surface: #ffffff;
  --nasmei-line: #dce6e0;
  --nasmei-teal: #0f6f68;
  --nasmei-teal-dark: #0a4844;
  --nasmei-gold: #c98a1a;
  --nasmei-red: #a43d35;
  --nasmei-shadow: 0 22px 70px rgba(18, 32, 29, 0.12);
}

html {
  scroll-behavior: smooth;
}

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

html,
body {
  width: 100%;
  margin: 0;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(15, 111, 104, 0.10), transparent 34rem),
    linear-gradient(180deg, #fbfcfb 0%, var(--nasmei-soft) 100%);
  color: var(--nasmei-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 32, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 32, 29, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 34rem);
}

a {
  color: var(--nasmei-teal);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

a:hover,
a:focus {
  color: var(--nasmei-teal-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

#page-container {
  overflow: hidden;
  padding: 0;
}

#top-nav.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  min-height: 82px;
  margin: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 230, 224, 0.95);
  box-shadow: 0 12px 36px rgba(18, 32, 29, 0.08);
  backdrop-filter: blur(18px);
}

#top-nav > .container-fluid {
  width: min(1180px, calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

#brand-name {
  margin: 0;
  line-height: 1;
}

#brand-name .navbar-brand {
  height: auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#brand-name .navbar-brand::after {
  content: "NASMEI";
  color: var(--nasmei-ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

#brand-name img {
  width: 64px !important;
  height: 64px;
  margin: 0 !important;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(18, 32, 29, 0.14);
}

#top-nav-collapse {
  width: auto !important;
  padding: 0;
  float: none !important;
}

#top-nav .navbar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#top-nav .navbar-nav > li {
  position: relative;
  list-style: none;
}

#top-nav .navbar-nav > li > a {
  display: block;
  padding: 11px 12px;
  border-radius: 999px;
  color: #213430;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

#top-nav .navbar-nav > li > a:hover,
#top-nav .navbar-nav > li > a:focus,
#top-nav .navbar-nav > .active > a,
#top-nav .navbar-nav > .open > a {
  background: rgba(15, 111, 104, 0.10);
  color: var(--nasmei-teal-dark);
}

#top-nav .navbar-nav > li:last-child > a,
#top-nav .navbar-nav > li:nth-last-child(2) > a[href="/contact"] {
  border: 1px solid rgba(15, 111, 104, 0.18);
}

#top-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  float: none;
  min-width: 230px;
  padding: 10px;
  border: 1px solid var(--nasmei-line);
  border-radius: 12px;
  background: var(--nasmei-surface);
  box-shadow: var(--nasmei-shadow);
}

#top-nav .open > .dropdown-menu {
  display: block;
}

#top-nav .dropdown-menu > li > a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #273a36;
  font-size: 0.9rem;
  font-weight: 650;
}

#top-nav .dropdown-menu > li > a:hover,
#top-nav .dropdown-menu > li > a:focus,
#top-nav .dropdown-menu > .active > a {
  background: rgba(15, 111, 104, 0.10);
  color: var(--nasmei-teal-dark);
}

.navbar-toggle {
  margin: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--nasmei-line);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.navbar-toggle .icon-bar {
  width: 22px;
  height: 2px;
  margin: 0;
  background: var(--nasmei-ink);
}

.wrapper {
  padding-top: 82px;
}

.row {
  margin-left: 0;
  margin-right: 0;
}

.page-section {
  max-width: calc(100vw - 32px);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.page-section.tall-top,
.page-section.tall-bottom,
.page-section.medium-bottom,
.page-section.short-bottom,
.page-section.no-top,
.page-section.no-bottom {
  padding-top: 92px;
  padding-bottom: 92px;
}

.page-section.full-width {
  max-width: 100vw;
  width: 100%;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
}

.page-section > .row,
.page-section .row.no-gutters,
.container-fluid.solid-background .page-section > .row {
  display: flex;
  align-items: center;
  gap: 44px;
}

.page-section > .row::before,
.page-section > .row::after,
.row.no-gutters::before,
.row.no-gutters::after {
  display: none;
}

.page-section [class*="col-md-"] {
  float: none;
}

.page-section .col-md-4,
.page-section .col-md-5,
.page-section .col-md-6,
.page-section .col-md-7,
.page-section .col-md-8,
.page-section .col-md-12 {
  flex: 1 1 0;
}

.page-section .col-md-12 {
  flex-basis: 100%;
}

.page-section.tall-top:first-of-type {
  padding-top: 86px;
}

body:has(.page-section.tall-top:first-of-type) .page-section.tall-top:first-of-type .row.no-gutters {
  min-height: min(650px, calc(100vh - 120px));
}

.page-section.tall-top:first-of-type .col-md-5 img,
.page-section img,
.image-frame-half-screen-tall {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: var(--nasmei-shadow);
}

.page-section.tall-top:first-of-type .col-md-5 img {
  width: 100%;
  height: min(560px, 68vh);
  object-fit: cover;
}

article {
  color: var(--nasmei-ink);
}

article.pad-left,
.pad-left {
  padding-left: 0;
}

.section-header {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading,
article .heading,
.stats .heading,
.event-card .heading {
  margin-top: 0;
  color: var(--nasmei-ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-weight: 700;
  letter-spacing: 0;
}

.section-heading {
  font-size: clamp(2.3rem, 4vw, 4.7rem);
  line-height: 1.04;
  max-width: 850px;
}

.page-section.tall-top:first-of-type .section-heading {
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  max-width: 760px;
}

.section-subheading,
.subheading {
  color: var(--nasmei-red);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.section-content,
article p,
.event-card p,
.stats p,
li {
  color: var(--nasmei-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.page-section.tall-top:first-of-type .section-content {
  max-width: 660px;
  color: #40514c;
  font-size: 1.18rem;
}

.content-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: var(--nasmei-teal);
  font-weight: 800;
  letter-spacing: 0;
}

.content-link::after {
  content: "";
  width: 18px;
  height: 1px;
  margin-left: 10px;
  background: currentColor;
  transition: width 160ms ease;
}

.content-link:hover::after,
.content-link:focus::after {
  width: 30px;
}

.btn,
.btn.btn-solid,
input.btn,
button.btn {
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--nasmei-teal);
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  box-shadow: 0 12px 30px rgba(15, 111, 104, 0.22);
}

.btn:hover,
.btn:focus,
.btn.btn-solid:hover,
.btn.btn-solid:focus {
  background: var(--nasmei-teal-dark);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn.btn-inverse {
  background: #ffffff;
  color: var(--nasmei-teal-dark) !important;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.18);
}

.solid-background,
.container-fluid.solid-background,
.image-background.dark {
  position: relative;
  background:
    linear-gradient(135deg, rgba(10, 72, 68, 0.96), rgba(15, 111, 104, 0.90)),
    var(--nasmei-teal-dark) !important;
  color: #ffffff;
}

.image-background.dark {
  background-size: cover !important;
  background-position: center !important;
  overflow: hidden;
}

.dark-transparent-cover,
.light-transparent-cover {
  display: none;
}

.inverse,
.inverse p,
.inverse .section-heading,
.inverse .heading,
.solid-background .section-heading,
.solid-background .heading,
.image-background.dark .section-heading,
.image-background.dark .heading {
  color: #ffffff;
}

.inverse .section-subheading,
.inverse .subheading,
.solid-background .section-subheading,
.solid-background .subheading,
.image-background.dark .section-subheading,
.image-background.dark .subheading {
  color: #f3c15f;
}

.inverse p,
.solid-background p,
.image-background.dark p {
  color: rgba(255, 255, 255, 0.82);
}

.solid-background img {
  width: auto !important;
  max-width: 100% !important;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.stats,
.event-card,
.featured-card,
.remodal,
form,
.forum-post,
.post-card {
  border: 1px solid var(--nasmei-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 48px rgba(18, 32, 29, 0.10);
}

.stats,
.event-card,
.featured-card {
  height: 100%;
  padding: 28px;
}

.stats .heading,
.event-card .heading {
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  line-height: 1.15;
}

.stats .subheading,
.event-card .subheading {
  color: var(--nasmei-teal);
  letter-spacing: 0.04em;
}

.image-background.dark .stats,
.solid-background .stats {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

.image-background.dark .stats p,
.solid-background .stats p {
  color: rgba(255, 255, 255, 0.78);
}

.event-card {
  margin-bottom: 22px;
}

.event-card footer,
.stats footer,
.section-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.section-footer {
  justify-content: center;
  margin-top: 24px;
}

input,
textarea,
select,
.form-control {
  min-height: 44px;
  border: 1px solid var(--nasmei-line);
  border-radius: 8px;
  box-shadow: none;
  color: var(--nasmei-ink);
  font: inherit;
}

textarea.form-control,
textarea {
  min-height: 130px;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
  border-color: rgba(15, 111, 104, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 111, 104, 0.12);
  outline: none;
}

form {
  padding: 24px;
}

label {
  color: var(--nasmei-ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.image-frame-half-screen-tall {
  min-height: 520px;
  background-position: center;
  background-size: cover;
}

#page-footer {
  background: #0b1715;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

#page-footer .page-section {
  padding-top: 30px;
  padding-bottom: 30px;
}

#page-footer a {
  color: #ffffff;
}

.nasmei-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1100;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--nasmei-ink);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(18, 32, 29, 0.24);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nasmei-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nasmei-back-to-top:focus {
  outline: 3px solid rgba(201, 138, 26, 0.45);
  outline-offset: 3px;
}

@media (min-width: 992px) {
  #top-nav .navbar-toggle {
    display: none !important;
  }

  #top-nav .dropdown:hover > .dropdown-menu,
  #top-nav .dropdown:focus-within > .dropdown-menu {
    display: block;
  }
}

@media (max-width: 991px) {
  #top-nav .navbar-toggle {
    order: 2;
    display: inline-flex !important;
  }

  #brand-name {
    order: 1;
  }

  #top-nav > .container-fluid {
    width: 100%;
    padding: 0 16px;
    display: block;
  }

  #top-nav .navbar-header {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  #top-nav-collapse {
    width: 100%;
    max-height: calc(100vh - 92px);
    overflow: auto;
    border-top: 1px solid var(--nasmei-line);
    background: #ffffff;
  }

  #top-nav-collapse.collapse {
    display: none !important;
  }

  #top-nav-collapse.collapse.in {
    display: block !important;
  }

  #top-nav .navbar-nav {
    display: block;
    margin: 12px 0 16px;
    text-align: left;
  }

  #top-nav .navbar-nav > li > a {
    display: block;
    padding: 14px 16px;
    border-radius: 8px;
  }

  #top-nav .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin: 0 0 10px 12px;
    box-shadow: none;
  }

  .page-section,
  .page-section.full-width {
    width: min(100% - 28px, 720px);
    padding: 64px 0;
  }

  .page-section.tall-top,
  .page-section.tall-bottom,
  .page-section.medium-bottom,
  .page-section.short-bottom,
  .page-section.no-top,
  .page-section.no-bottom {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .page-section > .row,
  .page-section .row.no-gutters,
  .container-fluid.solid-background .page-section > .row {
    display: block;
  }

  .page-section [class*="col-md-"] {
    width: 100%;
    margin-bottom: 24px;
  }

  .section-header {
    text-align: left;
  }

  .section-heading,
  .page-section.tall-top:first-of-type .section-heading {
    font-size: clamp(2.1rem, 10vw, 3.6rem);
  }

  .page-section.tall-top:first-of-type .col-md-5 img,
  .image-frame-half-screen-tall {
    height: auto;
    min-height: 320px;
  }

  .event-card footer,
  .stats footer,
  .section-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .btn.btn-solid,
  input.btn,
  button.btn {
    width: 100%;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* 2026 left-rail redesign */
:root {
  --nasmei-rail: 276px;
  --nasmei-rail-bg: #062f2d;
  --nasmei-rail-bg-2: #021f1e;
  --nasmei-canvas: #f7faf7;
  --nasmei-paper: rgba(255, 255, 255, 0.94);
  --nasmei-accent-soft: #edf5f0;
  --nasmei-copper: #d7a247;
  --nasmei-copper-dark: #9e6f22;
  --nasmei-radius: 8px;
}

body {
  background:
    linear-gradient(90deg, rgba(6, 47, 45, 0.02) 0, rgba(6, 47, 45, 0.02) var(--nasmei-rail), transparent var(--nasmei-rail)),
    radial-gradient(circle at 82% 4%, rgba(215, 162, 71, 0.14), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, var(--nasmei-canvas) 46%, #eef6f1 100%);
}

body::before {
  left: var(--nasmei-rail);
  background-image:
    linear-gradient(rgba(6, 47, 45, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 47, 45, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.52), transparent 42rem);
}

#page-container {
  padding-left: var(--nasmei-rail);
}

.wrapper {
  padding-top: 0;
}

#top-nav.navbar {
  position: fixed !important;
  inset: 0 auto 0 0 !important;
  width: var(--nasmei-rail) !important;
  min-height: 100vh;
  padding: 22px 22px;
  background:
    linear-gradient(180deg, rgba(11, 85, 79, 0.42), transparent 36%),
    linear-gradient(180deg, var(--nasmei-rail-bg), var(--nasmei-rail-bg-2));
  border-right: 1px solid rgba(215, 162, 71, 0.30);
  border-bottom: 0;
  box-shadow: 18px 0 60px rgba(6, 47, 45, 0.22);
  overflow-y: auto;
  overflow-x: hidden;
}

#top-nav::after {
  content: "Advancing marketing education. Building stronger communities.";
  display: block;
  margin-top: 18px;
  padding-top: 26px;
  border-top: 1px solid rgba(215, 162, 71, 0.55);
  color: #efc66c;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 1.02rem;
  line-height: 1.35;
}

#top-nav > .container-fluid {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: block;
}

#top-nav .navbar-header {
  float: none;
}

#brand-name {
  width: 100%;
  margin: 0 0 22px;
}

#brand-name .navbar-brand {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

#brand-name .navbar-brand::after {
  content: none;
  display: none;
}

#brand-name img {
  width: 130px !important;
  height: auto;
  padding: 0;
  border-radius: 4px;
  object-fit: contain;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

#top-nav-collapse,
#top-nav-collapse.collapse {
  display: block !important;
  height: auto !important;
  width: 100% !important;
  padding: 0;
  border: 0;
  float: none !important;
  background: transparent;
}

#top-nav .navbar-nav {
  display: block;
  margin: 0;
  padding: 0;
  text-align: left;
}

#top-nav .navbar-nav > li {
  display: block;
  margin: 0 0 4px;
}

#top-nav .navbar-nav > li > a {
  position: relative;
  display: block;
  padding: 9px 10px 9px 34px;
  border-radius: var(--nasmei-radius);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.2;
}

#top-nav .navbar-nav > li > a::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(215, 162, 71, 0.86);
  border-radius: 999px;
  transform: translateY(-50%);
}

#top-nav .navbar-nav > li > a:hover,
#top-nav .navbar-nav > li > a:focus,
#top-nav .navbar-nav > .active > a,
#top-nav .navbar-nav > .open > a {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

#top-nav .navbar-nav > .active > a::before,
#top-nav .navbar-nav a[aria-current="page"]::before {
  background: var(--nasmei-copper);
}

#top-nav .caret {
  float: right;
  margin-top: 7px;
  border-top-color: rgba(255, 255, 255, 0.65);
}

#top-nav .dropdown-menu,
#top-nav .open > .dropdown-menu,
#top-nav .dropdown:hover > .dropdown-menu,
#top-nav .dropdown:focus-within > .dropdown-menu {
  display: block;
  position: static;
  min-width: 0;
  margin: 0 0 8px 34px;
  padding: 0 0 0 10px;
  border: 0;
  border-left: 1px solid rgba(215, 162, 71, 0.34);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#top-nav .dropdown-menu > li > a {
  padding: 6px 8px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
}

#top-nav .dropdown-menu > li > a:hover,
#top-nav .dropdown-menu > li > a:focus,
#top-nav .dropdown-menu > .active > a {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

#top-nav .navbar-nav > li:last-child > a,
#top-nav .navbar-nav > li:nth-last-child(2) > a[href="/contact"] {
  border: 0;
}

#top-nav .navbar-nav > li > a[href="/account"] {
  margin-top: 14px;
  border: 1px solid rgba(215, 162, 71, 0.52);
  background: rgba(215, 162, 71, 0.12);
  color: #ffe0a0;
}

.nasmei-rail-links {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(215, 162, 71, 0.46);
}

.nasmei-rail-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 750;
}

.nasmei-rail-links span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(215, 162, 71, 0.50);
  border-radius: 8px;
  color: #efc66c;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
}

.nasmei-rail-links a:hover,
.nasmei-rail-links a:focus {
  color: #ffffff;
}

.page-section {
  width: min(1120px, calc(100% - 64px));
  max-width: 1120px;
  padding: 76px 0;
}

.page-section.full-width {
  max-width: none;
  width: 100%;
  padding-left: max(32px, calc((100vw - var(--nasmei-rail) - 1120px) / 2));
  padding-right: max(32px, calc((100vw - var(--nasmei-rail) - 1120px) / 2));
}

.page-section.tall-top,
.page-section.tall-bottom,
.page-section.medium-bottom,
.page-section.short-bottom,
.page-section.no-top,
.page-section.no-bottom {
  padding-top: 76px;
  padding-bottom: 76px;
}

.page-section > .row,
.page-section .row.no-gutters,
.container-fluid.solid-background .page-section > .row {
  gap: 56px;
}

.page-section.tall-top:first-of-type {
  padding-top: 72px;
}

body:has(.page-section.tall-top:first-of-type) .page-section.tall-top:first-of-type .row.no-gutters {
  min-height: min(660px, calc(100vh - 72px));
}

.section-heading,
article .heading,
.stats .heading,
.event-card .heading {
  color: #092a27;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  letter-spacing: 0;
}

.section-heading {
  font-size: clamp(1.95rem, 3.1vw, 3.45rem);
  line-height: 1.06;
  max-width: 900px;
}

.page-section.tall-top:first-of-type .section-heading {
  font-size: clamp(4rem, 7.5vw, 7.6rem);
  line-height: 0.98;
  max-width: 760px;
}

.section-subheading,
.subheading {
  color: var(--nasmei-copper-dark);
  letter-spacing: 0.10em;
}

.section-content,
article p,
.event-card p,
.stats p,
li {
  color: #50625d;
}

.page-section.tall-top:first-of-type .section-content {
  max-width: 650px;
  color: #30443f;
  font-size: 1.2rem;
}

.content-link {
  color: #0a5953;
}

.btn,
.btn.btn-solid,
input.btn,
button.btn {
  border-radius: var(--nasmei-radius);
  background: #063f3b;
  box-shadow: 0 16px 32px rgba(6, 63, 59, 0.22);
}

.btn:hover,
.btn:focus,
.btn.btn-solid:hover,
.btn.btn-solid:focus {
  background: #022c2a;
}

.btn.btn-inverse,
.inverse .btn.btn-inverse,
.solid-background .btn.btn-inverse {
  border-color: rgba(255, 255, 255, 0.72);
  background: #ffffff;
  color: #063f3b !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.btn.btn-inverse:hover,
.btn.btn-inverse:focus,
.inverse .btn.btn-inverse:hover,
.inverse .btn.btn-inverse:focus,
.solid-background .btn.btn-inverse:hover,
.solid-background .btn.btn-inverse:focus {
  background: #ffe6aa;
  color: #052a27 !important;
}

.page-section.tall-top:first-of-type .col-md-5 img,
.page-section img,
.image-frame-half-screen-tall {
  border-radius: var(--nasmei-radius);
  box-shadow: 0 24px 64px rgba(6, 47, 45, 0.18);
}

.page-section.tall-top:first-of-type .col-md-5 img {
  height: min(590px, 76vh);
}

.solid-background,
.container-fluid.solid-background,
.image-background.dark {
  background:
    linear-gradient(135deg, rgba(5, 42, 39, 0.98), rgba(9, 78, 72, 0.94)),
    #052a27 !important;
}

.row.solid-background,
.container-fluid.solid-background .page-section {
  border-radius: var(--nasmei-radius);
  box-shadow: 0 24px 72px rgba(6, 47, 45, 0.20);
}

.row.solid-background {
  padding: 34px;
}

.stats,
.event-card,
.featured-card,
.remodal,
form,
.forum-post,
.post-card {
  border-color: rgba(6, 47, 45, 0.10);
  border-radius: var(--nasmei-radius);
  background: var(--nasmei-paper);
  box-shadow: 0 18px 52px rgba(6, 47, 45, 0.10);
}

.event-card,
.featured-card,
.stats {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.event-card:hover,
.featured-card:hover,
.stats:hover {
  border-color: rgba(215, 162, 71, 0.36);
  box-shadow: 0 24px 64px rgba(6, 47, 45, 0.15);
  transform: translateY(-2px);
}

#page-footer {
  background:
    linear-gradient(90deg, #052a27, #073a36);
  border-top: 1px solid rgba(215, 162, 71, 0.30);
}

.nasmei-back-to-top {
  right: 28px;
  background: #063f3b;
}

@media (min-width: 992px) {
  #top-nav .navbar-toggle {
    display: none !important;
  }
}

@media (max-width: 991px) {
  :root {
    --nasmei-rail: 0px;
  }

  body::before {
    left: 0;
  }

  #page-container {
    padding-left: 0;
  }

  .wrapper {
    padding-top: 76px;
  }

  #top-nav.navbar {
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    min-height: 76px;
    max-height: 100vh;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(215, 162, 71, 0.30);
    overflow-y: auto;
  }

  #top-nav::after {
    display: none;
  }

  .nasmei-rail-links {
    margin-top: 10px;
    padding: 14px 0 0;
  }

  #top-nav > .container-fluid {
    width: 100%;
    padding: 0 16px;
  }

  #top-nav .navbar-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  #brand-name {
    width: auto;
    margin: 0;
  }

  #brand-name .navbar-brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  #brand-name img {
    width: 54px !important;
    height: auto;
    padding: 0;
  }

  #brand-name .navbar-brand::after {
    content: none;
    display: none;
  }

  #top-nav .navbar-toggle {
    order: 2;
    display: inline-flex !important;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
  }

  .navbar-toggle .icon-bar {
    background: #ffffff;
  }

  #top-nav-collapse,
  #top-nav-collapse.collapse {
    display: none !important;
    max-height: calc(100vh - 76px);
    padding: 10px 0 18px;
    overflow: auto;
  }

  #top-nav-collapse.collapse.in {
    display: block !important;
  }

  #top-nav .navbar-nav > li > a {
    padding: 13px 10px 13px 34px;
  }

  #top-nav .dropdown-menu,
  #top-nav .open > .dropdown-menu {
    margin-bottom: 8px;
  }

  .page-section,
  .page-section.full-width {
    width: min(100% - 28px, 720px);
    padding: 60px 0;
  }

  .page-section.full-width {
    padding-left: 0;
    padding-right: 0;
  }

  .page-section.tall-top,
  .page-section.tall-bottom,
  .page-section.medium-bottom,
  .page-section.short-bottom,
  .page-section.no-top,
  .page-section.no-bottom {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .page-section.tall-top:first-of-type .section-heading {
    font-size: clamp(2.75rem, 13vw, 4.5rem);
  }

  .row.solid-background {
    padding: 22px;
  }
}
