:root {
  --financing-red: #ff0000;
  --financing-red-dark: #c40000;
  --financing-black: #0c0c0c;
  --financing-ink: #252525;
  --financing-muted: #666;
  --financing-line: #dedede;
  --financing-light: #f7f7f7;
}

html { scroll-padding-top: 85px; }
.financing-page { color: var(--financing-ink); background: #fff; }
.financing-page *, .financing-page *::before, .financing-page *::after,
.homepage-financing *, .homepage-financing *::before, .homepage-financing *::after { box-sizing: border-box; }
.financing-page h1, .financing-page h2, .financing-page h3 { color: inherit; }
.financing-page p, .homepage-financing p { line-height: 1.7; }

.financing-hero {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: center;
  margin-top: 70px;
  padding: 100px 0;
  color: #fff;
  background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.78) 48%, rgba(0,0,0,.38) 100%), url("../img/RAWeb/Flight%20Training.JPG") center 45% / cover no-repeat;
}
.financing-hero-content { position: relative; z-index: 1; }
.financing-hero-content > * { max-width: 700px; }
.financing-eyebrow { margin: 0 0 14px; color: #fff; font-size: .9rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.financing-eyebrow-red { color: var(--financing-red); }
.financing-hero h1 { margin: 0; font-size: clamp(3rem, 7vw, 5.4rem); font-weight: 600; letter-spacing: .025em; line-height: .98; text-transform: uppercase; }
.financing-lead { margin: 28px 0 34px; color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.financing-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.financing-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 25px;
  border: 2px solid var(--financing-red);
  border-radius: 4px;
  color: #fff;
  background: var(--financing-red);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.financing-button:hover { color: #fff; background: var(--financing-red-dark); border-color: var(--financing-red-dark); transform: translateY(-1px); }
.financing-button-outline { border-color: #fff; color: #fff; background: transparent; }
.financing-button-outline:hover { color: #111; border-color: #fff; background: #fff; }
.financing-button:focus-visible, .financing-page a:focus-visible, .homepage-financing a:focus-visible { outline: 3px solid #ffcf40; outline-offset: 3px; }

.financing-section { padding: 100px 0; overflow: hidden; }
.financing-section-muted { background: var(--financing-light); }
.financing-heading { max-width: 780px; margin-bottom: 48px; }
.financing-heading-centered { margin-right: auto; margin-left: auto; text-align: center; }
.financing-heading h2, .financing-path h2, .financing-final-cta h2 { margin: 0 0 18px; font-size: clamp(2.2rem, 4vw, 3.25rem); font-weight: 500; line-height: 1.08; text-transform: uppercase; }
.financing-heading > p:last-child { margin: 0; color: var(--financing-muted); font-size: 1.08rem; }

.financing-card { width: 100%; padding: 34px 28px; border: 1px solid var(--financing-line); border-top: 4px solid var(--financing-red); border-radius: 5px; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.06); }
.financing-card > i { color: var(--financing-red); font-size: 2.35rem; }
.financing-card h3 { margin: 21px 0 12px; font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.financing-card p { margin: 0; color: var(--financing-muted); }
.disclosure-mark { display: inline-block; margin-left: 2px; color: var(--financing-red); font-weight: 700; text-decoration: none; }
.disclosure-mark:hover { color: var(--financing-red-dark); }
.disclosure-link { display: inline-block; margin-top: 24px; color: #555; font-size: .9rem; font-weight: 600; text-decoration: underline; }

.financing-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; margin: 60px 0 0; padding: 0; list-style: none; }
.financing-steps::before { content: ""; position: absolute; top: 29px; left: 16.5%; right: 16.5%; height: 2px; background: #cfcfcf; }
.financing-steps li { position: relative; z-index: 1; text-align: center; }
.financing-step-number { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 24px; border: 5px solid var(--financing-light); border-radius: 50%; color: #fff; background: var(--financing-red); font-size: 1.15rem; font-weight: 700; }
.financing-steps h3 { margin: 0 0 12px; font-size: 1.45rem; font-weight: 600; text-transform: uppercase; }
.financing-steps p { max-width: 340px; margin: 0 auto; color: var(--financing-muted); }

.financing-path { color: #fff; background: #191919; border-top: 5px solid var(--financing-red); }
.financing-path-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 110px); align-items: center; }
.financing-path-copy { padding-left: 38px; border-left: 1px solid #555; }
.financing-path-copy p { color: #d0d0d0; font-size: 1.06rem; }
.financing-path-copy p:last-child { margin-bottom: 0; }

.financing-eligibility-card { border-radius: 5px; background: #fff; box-shadow: 0 12px 34px rgba(0,0,0,.08); overflow: hidden; }
.financing-checklist { margin: 0; padding: 32px 38px; list-style: none; }
.financing-checklist li { display: flex; align-items: flex-start; gap: 14px; padding: 11px 0; font-size: 1.08rem; }
.financing-checklist i { flex: 0 0 auto; margin-top: 4px; color: var(--financing-red); }
.financing-eligibility-cta { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 25px 38px; border-top: 1px solid var(--financing-line); }
.financing-eligibility-cta h3 { margin: 0; font-size: 1.3rem; font-weight: 600; text-transform: uppercase; }
.financing-eligibility-cta .financing-button { flex: 0 0 auto; }

.financing-section-dark { color: #fff; background: var(--financing-black); }
.financing-section-dark .financing-heading > p:last-child { color: #ccc; }
.application-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.application-steps li { padding: 32px; border: 1px solid #333; border-radius: 5px; background: #171717; }
.application-steps > li > span { color: var(--financing-red); font-size: 1rem; font-weight: 700; letter-spacing: .12em; }
.application-steps h3 { margin: 18px 0 12px; font-size: 1.35rem; font-weight: 600; text-transform: uppercase; }
.application-steps p { margin: 0; color: #c8c8c8; }
.application-action { margin-top: 40px; text-align: center; }

.financing-final-cta { padding: 90px 0; color: #fff; background: #202020; border-top: 5px solid var(--financing-red); }
.financing-final-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.financing-final-inner > div:first-child { max-width: 700px; }
.financing-final-cta p:not(.financing-eyebrow) { margin: 0; color: #d0d0d0; font-size: 1.08rem; }
.financing-final-cta .financing-actions { flex: 0 0 auto; justify-content: flex-end; }

.financing-disclosures { scroll-margin-top: 85px; padding: 56px 0; border-top: 1px solid var(--financing-line); color: #555; background: #f3f3f3; }
.financing-disclosures h2 { margin: 0 0 22px; color: #222; font-size: 1.3rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.financing-disclosures p { margin: 0 0 14px; font-family: "Open Sans", sans-serif; font-size: .8rem; line-height: 1.75; }
.financing-disclosures p:last-child { margin-bottom: 0; }

.homepage-financing { padding: 76px 0; color: #fff; background: #111; border-top: 5px solid var(--financing-red); }
.homepage-financing-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: clamp(50px, 8vw, 100px); align-items: center; }
.homepage-financing-copy h2 { max-width: 780px; margin: 0 0 22px; color: #fff; font-size: clamp(2.25rem, 4.2vw, 3.7rem); font-weight: 500; line-height: 1.06; text-transform: uppercase; }
.homepage-financing-copy > p:not(.financing-eyebrow) { max-width: 690px; margin: 0 0 28px; color: #d0d0d0; font-size: 1.08rem; }
.homepage-financing-benefits { display: grid; gap: 0; margin: 0; padding: 10px 0; list-style: none; }
.homepage-financing-benefits li { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid #383838; color: #fff; font-size: 1.18rem; font-weight: 600; }
.homepage-financing-benefits li:last-child { border-bottom: 0; }
.homepage-financing-benefits i { flex: 0 0 auto; color: var(--financing-red); font-size: 2.2rem; }
.homepage-financing-benefits a,
.homepage-financing-benefits a:hover,
.homepage-financing-benefits a:focus { margin-left: 2px; color: #fff; text-decoration: none; }

@media (max-width: 991.98px) {
  .financing-hero { min-height: 500px; margin-top: 60px; }
  .financing-section { padding: 80px 0; }
  .financing-path-grid, .homepage-financing-grid { grid-template-columns: 1fr; gap: 40px; }
  .application-steps { grid-template-columns: 1fr; }
  .financing-final-inner { align-items: flex-start; flex-direction: column; }
  .financing-final-cta .financing-actions { justify-content: flex-start; }
}

@media (max-width: 767.98px) {
  .financing-hero { min-height: 520px; padding: 82px 0 72px; background-position: 60% center; }
  .financing-hero h1 { font-size: 3rem; }
  .financing-actions { width: 100%; }
  .financing-actions .financing-button, .application-action .financing-button { width: 100%; }
  .financing-section { padding: 68px 0; }
  .financing-heading { margin-bottom: 36px; }
  .financing-heading-centered { text-align: left; }
  .financing-steps { grid-template-columns: 1fr; gap: 0; margin-top: 42px; }
  .financing-steps::before { top: 30px; bottom: 30px; left: 29px; right: auto; width: 2px; height: auto; }
  .financing-steps li { min-height: 150px; display: grid; grid-template-columns: 60px 1fr; gap: 22px; text-align: left; }
  .financing-step-number { margin: 0; }
  .financing-steps p { margin: 0; }
  .financing-path-copy { padding: 25px 0 0; border-top: 1px solid #555; border-left: 0; }
  .financing-checklist { padding: 25px 22px; }
  .financing-eligibility-cta { align-items: stretch; flex-direction: column; padding: 25px 22px; }
  .application-steps li { padding: 28px 24px; }
  .financing-final-cta { padding: 68px 0; }
  .financing-disclosures { padding: 46px 0; }
  .homepage-financing { padding: 62px 0; }
  .homepage-financing-grid { gap: 32px; }
}

@media (max-width: 380px) {
  .financing-hero h1 { font-size: 2.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .financing-button { transition: none; }
}
