:root {
  --primary: #002b49;
  --primary-hover: #001f35;
  --primary-rgb: 0, 43, 73;

  --secondary: #f5a623;
  --secondary-hover: #e59610;
  --secondary-rgb: 245, 166, 35;

  --text-dark: #222222;
  --text-muted: #6b7280;
  --bg-light: #e8eff5;
  --border-light: rgba(255, 255, 255, 0.15);
  --bg-header: #fff;
  --bg-footer: var(--primary);

  --cassiopeia-color-primary: var(--primary);
  --color-primary: var(--primary);
  --color-secondary: var(--secondary);
  --cassiopeia-color-hover: #001f35;
  --cassiopeia-color-link: #001f35;
  --color-blue: #004687;

  --body-font-family: "Poppins", sans-serif;
  --cassiopeia-font-family-headings: "Poppins", sans-serif;
  --modal-width: 80%;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Main Container */
body {
  margin: 0;
  font-family: var(--body-font-family);
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* :focus {
  outline: 2px solid !important;
} */

:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.site-grid > [class*=" container-"],
.site-grid > [class^="container-"] {
  background-color: #fff;
}

.container-component:has(#full-width-article) {
  grid-column-start: full-start;
  grid-column-end: full-end;
  padding-bottom: 0;
}

main:has(#full-width-article) {
  padding: 0;
  margin-top: 0;
}

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

h1,
h2,
h3 {
  margin-block-end: 0.67em;
  color: var(--primary);
}
:has(+ h2, + .h2) {
  margin-block-end: 2.5rem;
}
:has(+ h3, + .h3) {
  margin-bottom: 1.5rem;
}

h2,
.h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

.border-primary {
  border-color: var(--primary) !important;
}
.text-navy {
  color: var(--primary) !important;
}
.text-muted-custom {
  color: var(--text-muted) !important;
}
.container-header {
  background: var(--bg-header);
}

.section-divider {
  width: 42px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.btn {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border-radius: 2rem;
  transition: all 0.2s ease;
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
  padding: 0.6rem 1.2rem;
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #ffffff;
}

.login-toggle {
  background: var(--color-blue);
  border-color: var(--color-blue);
}

.bg-light-blue {
  background-color: #e4edf7;
}

.bg-light-yellow {
  background-color: #fde2ab;
}

.title-badge {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-blue);
  font-size: 0.875rem;
  line-height: 1.53rem;
  letter-spacing: 0.12rem;
  text-align: center;
}

.title-badge-light {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffe0aa;
  font-size: 0.875rem;
  line-height: 1.53rem;
  letter-spacing: 0.12rem;
  text-align: center;
}

.divider {
  width: 48px;
  height: 4px;
  background-color: var(--secondary);
  margin: 0 auto;
}

.quick-link {
  border-right: 1px solid #ffffff1a;
}

.rates-section {
  background-color: #082d53;
  background: radial-gradient(circle at 50% 30%, #0d3d6e 0%, #062647 100%);
  color: #ffffff;
}

.rate-card {
  background-color: #ffffff;
  color: #082d53;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.rate-icon-box {
  width: 52px;
  height: 52px;
  background-color: #dbeaf7;
  color: #0b3d6d;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.rate-value {
  color: #082d53;
  font-size: 2.2rem;
  letter-spacing: -0.5px;
}

.life-stage-card-wrapper {
  position: relative;
  padding-bottom: 75px;
}

.life-stage-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.life-stage-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.life-stage-floating-card {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.life-stage-card-title {
  color: var(--primary);
  font-size: 1.05rem;
}

.life-stage-rate {
  color: var(--primary);
  font-size: 2.15rem;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.spotlight-card {
  background-color: #ffffff;
  border: none;
  border-left: 4px solid var(--primary) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.spotlight-img-box {
  position: relative;
  width: 100%;
  max-height: 200px;
}

.spotlight-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-icon-badge {
  position: absolute;
  bottom: -20px;
  left: 24px;
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 2;
}

.spotlight-card-title {
  color: var(--primary);
  font-size: 1.15rem;
}

.spotlight-link {
  color: #0b457c;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.spotlight-link:hover {
  color: var(--primary);
}

.spotlight-link i {
  transition: transform 0.2s ease;
}

.spotlight-link:hover i {
  transform: translateX(4px);
}

.newsletter-bar {
  background-color: #fde2ab;
  border-top: 4px solid var(--secondary);
}

.newsletter-input {
  border: 1.5px solid var(--primary);
  border-radius: 0;
  height: 48px;
  font-size: 0.95rem;
}

.newsletter-input::placeholder {
  color: #627d98;
}

.newsletter-input:focus {
  box-shadow: none;
  border-color: var(--primary);
}

.loan-card {
  background-color: #f4f1ea;
  border: 1px solid #f4f1ea;
  box-shadow: 0 2px 6px rgba(0, 35, 77, 0.1);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.loan-card-header {
  color: var(--primary);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--secondary);
}

.loan-card-title {
  font: 700 20px / 1.25 Poppins;
  margin: 0;
}

/* .loan-rate-box {
  text-align: right;
} */

.loan-rate {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.02;
}

.loan-apr-label {
  color: var(--primary);
  font: 700 20px / 1.25 Poppins;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.loan-card-body {
  padding: 1.5rem 2rem 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.loan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.loan-features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  color: #14161a;
  font-size: 0.95rem;
}

.loan-features-list li:first-child {
  padding-top: 0;
}

.loan-features-list li i {
  color: var(--primary);
  font-size: 0.9rem;
}

.program-card {
  background-color: #ffffff;
  border: 1px solid #eaedf1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  padding: 2rem 2rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.icon-box-outline {
  width: 40px;
  height: 40px;
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.program-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.program-card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.more-details-toggle {
  border-top: 1px solid #eaedf1;
  padding-top: 1.25rem;
  margin-top: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.more-details-toggle:hover * {
  color: var(--primary) !important;
}

details.more-details-container summary .toggle-icon {
  transition: transform 0.3s ease;
}

details.more-details-container[open] summary .toggle-icon {
  transform: rotate(180deg);
}

.feature-icon-solid {
  width: 48px;
  height: 48px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  font-size: 1.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.feature-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5a6a7a;
}

/* FOOTER */

.footer-brand,
.footer-left {
  width: 100%;
  font-size: clamp(0.875rem, 13.4px + 0.125vw, 0.9375rem);
  display: flex;
  flex-direction: column;
  gap: 35px;
  flex-shrink: 0;
}

.footer .grid-child {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  justify-content: center;
  margin-inline: auto;
}

.footer-right {
  overflow: visible;
}

.footer-brand-text {
  color: var(--ft-text-light);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 320px;
}

.footer-phone {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.footer-phone:hover {
  color: var(--ft-accent);
}

.footer-contact-link {
  color: var(--secondary) !important;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-contact-link:hover {
  color: #ffffff;
}

.footer-routing {
  color: #ffffffa6;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-menu p {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  margin-bottom: 1.5rem;
}

.footer-menu .nav-item,
.footer-menu a:not(.btn),
.footer-menu span {
  color: #ffffff8c;
}

.mod-list li {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.mod-list li li {
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}

.footer-menu .mod-list li a,
.footer-menu .mod-list li span.nav-header {
  color: var(--ft-text-light);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 400;
}

.footer-menu .mod-list li a::before,
.footer-menu .mod-list li span.nav-header::before {
  content: "»";
  color: var(--secondary);
  font-weight: 800;
  font-size: 1.05rem;
}

.footer-menu .mod-list li a:hover {
  color: #ffffff;
}

/* Bottom */
.footer-bottom-border {
  border-top: 1px solid var(--ft-border);
}

.footer-copy-text {
  color: var(--ft-text-light);
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer-logos img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Make the definition lists look like tables. 
   Add "table" class to <dl>
*/

.mobile-menu .navbar-toggler {
  display: none;
}

dl.table {
  display: grid;
  grid-auto-columns: auto;
  grid-template-columns: 40% 60%;
}

dl.table > dt,
dl.table > dd {
  padding: 0.5rem;
  border-collapse: collapse;
  margin: 0;
  border: 0 solid;
  border-bottom-width: 1px;
  border-color: inherit;
}

dl.table > dt:nth-child(4n + 1),
dl.table > dd:nth-child(4n + 2) {
  background-color: var(--table-striped-bg);
}

/* Small menu triangles */
.metismenu.mod-menu .mm-toggler:after {
  color: var(--primary);
  border-left: 0.4em solid transparent;
  border-right: 0.4em solid transparent;
  border-top: 0.4em solid;
}

.metismenu.mod-menu .mm-toggler {
  color: #00284b;
  font-weight: 600;
}

.container-header .mod-menu > li {
  align-content: center;
}

.metismenu.mod-menu .metismenu-item {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary) !important;
  line-height: 23px;
}

.mod-list li a:hover {
  color: var(--cassiopeia-color-hover);
}

.footer {
  background: var(--bg-footer);
}

.table thead th {
  white-space: normal;
}

.rsfp-signature-footer .description {
  color: #fff;
}

.footer {
  margin-block-start: 0;
}

/* headings spacing */
:has(+ h2, + .h2) {
  margin-block-end: 2.5rem;
}

:has(+ h3, + .h3) {
  margin-bottom: 1.5rem;
}

.container-bottom-a > *,
.container-bottom-b > *,
.container-top-a > *,
.container-top-b > * {
  margin: 0;
}

[align="center"] {
  text-align: center;
}

.metismenu.mod-menu {
  margin: 0.5rem 0;
}

.container-header nav {
  margin-top: 0;
}

.table {
  margin-block-end: 2rem;
}

.container-topbar a:not(.btn):hover,
.container-topbar a:not(.btn):focus,
.container-topbar .btn-link:hover,
.container-topbar .btn-link:focus,
.container-below-top a:not(.btn):hover,
.container-below-top a:not(.btn):focus,
.container-below-top .btn-link:hover,
.container-below-top .btn-link:focus {
  color: var(--primary);
}

.navbar .mod-menu .level-1 > ul {
  padding-block: 0.4rem;
}

.table-primary {
  --table-bg: #e4e7ed;
  --table-striped-bg: #f6f6f6;
  --table-color: #fff;
}

.form-control {
  border-color: #555;
}

.table-primary thead th {
  background-color: var(--color-secondary);
  color: #fff;
}

.table th {
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-block-end: 0.67em;
}

blockquote {
  font-size: 2rem;
  padding: 3rem;
  background: var(--footer-color);
  font-style: italic;
  font-weight: 600;
}

.dog404 {
  background: transparent url("/images/404-dog.jpg") right bottom no-repeat;
  background-size: contain;
}

.djslider-default .navigation-container img {
  z-index: 1;
}

.mod-articles li {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid #d6dee8;
  line-height: 1.5rem;
}

.mod-articles li a:hover {
  color: #001f35;
}

/* .mod-articles li a::after {
    content: "»";
    color: var(--secondary);
    font-weight: 800;
    font-size: 0.875rem;
    margin-block-start: auto;
} */

.djslider-default {
  .navigation-container img {
    z-index: 1;
  }

  .slide-desc:before {
    background: linear-gradient(0deg, #fff9 50%, transparent);
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 160%;
    z-index: 0;
    left: 0;
  }

  .slide-desc-text-default {
    color: var(--color-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 1rem;
  }

  .slide-desc-text-default h1 {
    font-size: 1.5625rem;
    font-weight: 800;
  }

  .slide-text {
    background: #ffe0aae5;
    padding: 1.75rem 2rem;
    display: inline-block;
    border: 2px solid #f7a82d;
    max-width: 420px;
  }
}

.container-banner img:not(.dj-image) {
  object-fit: cover;
  width: 100%;
  max-height: 200px;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-header {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 0;
  position: relative;
  margin-bottom: 2rem;
  background-color: var(--primary);
  min-height: 125px;
  align-content: center;
}

.page-header h1,
.page-header h2 {
  color: #fff;
  margin: 0;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 33.6px;
}

.page-header p {
  color: #ffffffb2;
  margin: 0;
  font-size: 0.9375rem;
}

/* Mobile slideshow */
@media (max-width: 767px) and (orientation: portrait) {
  .container-banner .djslider-default,
  .container-banner .djslider-default ul.djslider-in > li {
    height: 550px !important;
    max-width: 100vw;
  }

  .container-banner .djslider-default img.dj-image {
    aspect-ratio: 11/16;
    object-fit: cover;
  }

  .djslider-default,
  .djslider-default ul.djslider-in > li {
    height: 360px !important;
  }

  .djslider-default {
    .slide-desc {
      bottom: 0 !important;
    }

    img.dj-image {
      aspect-ratio: 1/1;
      object-fit: cover;
    }
  }
}

@media (min-width: 768px) {
  .metismenu.mod-menu {
    margin: 0;
  }

  .djslider-default .slide-desc-text-default {
    max-width: 58%;
  }
}

@media (min-width: 992px) {
  /* .footer-brand {
        width: 90%;
    } */

  .footer .grid-child {
    grid-template-columns: auto 1fr;
    gap: 20px clamp(3rem, -10rem + 0.203125 * 100vw, 6.25rem);
    align-items: start;
  }

  .footer-right .row.g-5 {
    display: flex;
    flex-wrap: nowrap;
  }

  .footer-right .row.g-5 > .footer-menu {
    width: auto !important;
    flex: 1;
    padding: 0 0.5rem;
  }

  .container-banner .djslider-default,
  .container-banner .djslider-default ul.djslider-in > li {
    height: 686.5px !important;
    width: 100% !important;
  }

  .container-banner .djslider-default img.dj-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    aspect-ratio: unset;
    filter: none;
  }

  .djslider-default {
    .slide-desc {
      left: calc(50% - 750px) !important;
      max-width: 980px;
      background: transparent none;
      bottom: 15% !important;

      &:before {
        display: none;
      }
    }
  }
}

@media (max-width: 1200px) {
  .footer .grid-child {
    gap: 40px;
  }
}
