:root {
  --brand-navy: #152443;
  --brand-blue: #3156e8;
  --brand-gold: #f4b741;
  --brand-ink: #10203d;
  --brand-shadow: 0 14px 35px rgba(20, 38, 72, .12)
}

html {
  scroll-behavior: smooth
}

body.enhanced-ui {
  background: radial-gradient(circle at 100% 0, #eef3ff 0, rgba(238, 243, 255, 0) 31rem), linear-gradient(#fff, #fbfcff 44rem, #fff 75rem);
  overflow-x: hidden
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  transition: box-shadow .25s ease, border-color .25s ease
}

.site-header.scrolled {
  box-shadow: 0 8px 28px rgba(17, 35, 68, .12);
  border-bottom-color: #d9e3f4
}

.site-brand {
  display: flex;
  align-items: center;
  min-width: 208px
}

.site-brand img {
  display: block;
  width: min(218px, 23vw);
  height: auto;
  max-height: 56px;
  object-fit: contain;
  object-position: left center
}

.site-header .site-brand {
  transition: transform .2s ease
}

.site-header .site-brand:hover {
  transform: translateY(-1px)
}

.searchline {
  position: relative;
  border-color: #d3dff3;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 32px rgba(21, 36, 67, .08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease
}

.searchline:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 16px 36px rgba(49, 86, 232, .18);
  transform: translateY(-2px)
}

.searchline::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 1px;
  background: linear-gradient(100deg, transparent 12%, rgba(49, 86, 232, .55), transparent 87%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease
}

.searchline:focus-within::before {
  opacity: 1
}

.search input {
  font-weight: 600;
  color: var(--brand-ink)
}

.search input::placeholder {
  color: #76849c;
  opacity: 1;
  transition: opacity .14s ease, transform .14s ease
}

.search input.search-placeholder-swapping::placeholder {
  opacity: .16
}

.searchline>.primary {
  box-shadow: 0 8px 16px rgba(49, 86, 232, .2);
  transition: transform .18s ease, box-shadow .18s ease
}

.searchline>.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(49, 86, 232, .28)
}

.state {
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease
}

.state:hover {
  background: #f0f4ff;
  border-color: #d5e0ff;
  box-shadow: 0 6px 14px rgba(38, 73, 153, .08);
  transform: translateX(3px)
}

.state b {
  transition: transform .2s ease, background .2s ease, color .2s ease
}

.state:hover b {
  transform: scale(1.08)
}

.card,
.blog-card,
.infocard {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease
}

.card:hover,
.blog-card:hover,
.infocard:hover {
  border-color: #cbd8f3;
  box-shadow: var(--brand-shadow);
  transform: translateY(-4px)
}

.stat strong.is-counting {
  color: var(--brand-blue);
  text-shadow: 0 6px 18px rgba(49, 86, 232, .16)
}

.pagination {
  gap: 14px;
  padding: 24px 0 12px
}

.pagination button {
  min-width: 100px;
  border: 0;
  background: linear-gradient(135deg, #2445bc, #3156e8);
  color: #fff;
  box-shadow: 0 8px 17px rgba(35, 65, 173, .24);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease
}

.pagination button:hover:not([aria-disabled=true]) {
  background: linear-gradient(135deg, #18389c, #3156e8);
  color: #fff;
  box-shadow: 0 12px 22px rgba(35, 65, 173, .3);
  filter: saturate(1.08);
  transform: translateY(-2px)
}

.pagination button[aria-disabled=true] {
  opacity: .44;
  background: #9aa9c8;
  box-shadow: none;
  cursor: not-allowed
}

.pagination span {
  font-weight: 700;
  color: #4a5d7f;
  padding: 0 6px
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .58s ease, transform .58s cubic-bezier(.2, .75, .25, 1)
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0)
}

.card.reveal.is-visible:hover,
.blog-card.reveal.is-visible:hover,
.infocard.reveal.is-visible:hover {
  transform: translateY(-4px)
}

/* Change only these three URLs when you want to replace the public-page hero images. */
.page-hero,
.infohero {
  --page-hero-image: none;
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 294px;
  max-width: none;
  margin: 32px 0 42px;
  padding: clamp(36px, 6vw, 74px);
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background-image: linear-gradient(96deg, rgba(7, 22, 53, .96) 0%, rgba(14, 39, 87, .82) 49%, rgba(17, 45, 91, .38) 100%), var(--page-hero-image);
  background-position: center;
  background-size: cover;
  box-shadow: 0 22px 42px rgba(20, 38, 72, .19);
  color: #fff
}

.page-hero--blogs,
body[data-page-type="blogs"] .infohero {
  --page-hero-image: url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?auto=format&fit=crop&w=1800&q=82')
}

.page-hero--scholarships,
body[data-page-type="scholarships"] .infohero {
  --page-hero-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1800&q=82')
}

.page-hero--about,
body[data-page-type="about"] .infohero {
  --page-hero-image: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1800&q=82')
}

.page-hero .eyebrow,
.infohero .eyebrow {
  color: #f6c75f
}

.page-hero h1,
.infohero h1 {
  max-width: 700px;
  margin: 14px 0;
  color: #fff;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -.055em;
  text-shadow: 0 3px 22px rgba(4, 13, 33, .38)
}

.page-hero h1 em,
.infohero h1 em {
  color: #b8ccff
}

.page-hero p,
.infohero p {
  max-width: 590px;
  margin: 0;
  color: #e8eefb;
  font-size: 16px;
  line-height: 1.72;
  text-shadow: 0 1px 10px rgba(4, 13, 33, .3)
}

.footer-brand {
  min-width: 0
}

footer.site-footer {
  display: block;
  margin-top: 62px;
  padding: 0 5%;
  border: 0;
  background: linear-gradient(135deg, #0d1d3a 0%, #172f5d 62%, #243f76 100%);
  color: #c9d6ec;
  box-shadow: inset 0 1px rgba(255, 255, 255, .1)
}

.site-footer__main,
.site-footer__bottom {
  width: min(1400px, 100%);
  margin: 0 auto
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(240px, 1.55fr) repeat(3, minmax(145px, .8fr));
  gap: 36px;
  padding: 52px 0 37px
}

.site-footer__brand {
  max-width: 360px
}

.site-footer .footer-brand {
  display: inline-flex;
  margin-bottom: 17px
}

.site-footer .footer-brand img {
  width: 210px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center
}

.site-footer p {
  margin: 0;
  color: #dbe5f5;
  font-size: 13px;
  line-height: 1.65
}

.site-footer__brand>p {
  max-width: 325px
}

.site-footer__cta {
  margin-top: 20px;
  border: 1px solid #f2bd4b;
  background: #f5bf4c;
  color: #132849;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(0, 0, 0, .18)
}

.site-footer__cta:hover {
  border-color: #ffd36f;
  background: #ffd16b;
  color: #10203d
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px
}

.site-footer__links h2 {
  margin: 2px 0 7px;
  color: #fff;
  font-size: 14px;
  letter-spacing: .01em
}

.site-footer__links a,
.site-footer__text-button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d0dcf1;
  font-size: 13px;
  font-weight: 500;
  text-align: left
}

.site-footer__links a:hover,
.site-footer__text-button:hover {
  background: transparent;
  color: #f6c75f
}

.site-footer__links span {
  color: #aebedb;
  font-size: 12px;
  line-height: 1.55
}

.site-footer__bottom {
  display: grid;
  grid-template-columns: 1fr 1.45fr 1.45fr 1.8fr;
  gap: 22px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(209, 222, 246, .2)
}

.site-footer__bottom p {
  font-size: 11px;
  line-height: 1.6
}

.site-footer__bottom b {
  color: #fff
}

.site-footer a[href='/admin'] {
  color: #f6c555
}

.site-footer p {
  display: block
}

@media(max-width:980px) {
  .site-footer__main {
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 30px
  }

  .site-footer__links:last-child {
    grid-column: 2
  }

  .site-footer__bottom {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:720px) {
  .site-header {
    top: 0
  }

  .site-brand {
    min-width: 145px
  }

  .site-brand img {
    width: 174px;
    max-height: 44px
  }

  .site-header .site-brand {
    order: 0
  }

  .searchline:focus-within {
    transform: none
  }

  .state:hover {
    transform: none
  }

  .pagination {
    gap: 8px
  }

  .pagination button {
    min-width: 88px;
    padding: 10px 12px
  }

  .pagination span {
    font-size: 12px;
    padding: 0
  }

  .card:hover,
  .blog-card:hover,
  .infocard:hover {
    transform: none
  }

  .page-hero,
  .infohero {
    min-height: 252px;
    margin: 22px 0 30px;
    padding: 33px 26px;
    border-radius: 15px;
    background-image: linear-gradient(100deg, rgba(7, 22, 53, .94) 0%, rgba(14, 39, 87, .7) 100%), var(--page-hero-image)
  }

  .page-hero h1,
  .infohero h1 {
    font-size: 34px
  }

  .page-hero p,
  .infohero p {
    font-size: 14px
  }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 40px 0 30px
  }

  .site-footer__brand {
    grid-column: 1/-1;
    max-width: 440px
  }

  .site-footer .footer-brand img {
    width: 188px
  }

  .site-footer__links:last-child {
    grid-column: auto
  }

  .site-footer__bottom {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0 24px
  }
}

/* The desktop overlay is deliberately lighter so the configured hero image stays visible on all screen sizes. */
body[data-page-type="blogs"] .infohero,
body[data-page-type="scholarships"] .infohero,
body[data-page-type="about"] .infohero {
  background-color: #0b2454;
  background-image: linear-gradient(102deg, rgba(5, 17, 45, .79) 0%, rgba(13, 37, 84, .61) 51%, rgba(22, 57, 117, .28) 100%), var(--page-hero-image) !important;
  background-position: center !important;
  background-size: cover !important;
}

/* Policy pages are full pages opened from the footer, not repeated footer text. */
.legal-page {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 34px 0 76px
}

.legal-page .breadcrumbs {
  margin: 0 0 4px;
  color: #71819a;
  font-size: 13px
}

.legal-page .breadcrumbs a {
  color: #2d65c6;
  font-weight: 700
}

.legal-page__hero {
  --page-hero-image: none;
  min-height: 250px;
  margin-top: 16px;
  margin-bottom: 26px;
  background-image: linear-gradient(110deg, #0a1f49 0%, #173b82 65%, #2d68d4 100%) !important
}

.legal-page__card {
  overflow: hidden;
  border: 1px solid #e0e8f4;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(23, 54, 105, .09)
}

.legal-page__section {
  padding: 27px 31px;
  border-top: 1px solid #e8edf5
}

.legal-page__section:first-child {
  border-top: 0
}

.legal-page__section h2 {
  margin: 0 0 8px;
  color: #142f59;
  font-size: 19px;
  letter-spacing: -.02em
}

.legal-page__section p {
  max-width: 790px;
  margin: 0;
  color: #566984;
  font-size: 14px;
  line-height: 1.72
}

.legal-page__updated {
  margin: 0;
  padding: 18px 31px;
  background: #f7f9fc;
  color: #7a899e;
  font-size: 12px
}

.site-footer__bottom {
  grid-template-columns: 1fr
}

@media(max-width:720px) {

  body[data-page-type="blogs"] .infohero,
  body[data-page-type="scholarships"] .infohero,
  body[data-page-type="about"] .infohero {
    background-image: linear-gradient(102deg, rgba(5, 17, 45, .83) 0%, rgba(13, 37, 84, .59) 100%), var(--page-hero-image) !important;
  }

  .legal-page {
    width: min(92vw, 680px);
    padding: 25px 0 56px
  }

  .legal-page__hero {
    min-height: 226px;
    margin-top: 14px
  }

  .legal-page__section {
    padding: 22px 20px
  }

  .legal-page__section h2 {
    font-size: 17px
  }

  .legal-page__updated {
    padding: 16px 20px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  .site-header,
  .site-header .site-brand,
  .searchline,
  .searchline>.primary,
  .state,
  .state b,
  .card,
  .blog-card,
  .infocard,
  .pagination button,
  .reveal,
  .search input::placeholder {
    transition: none !important
  }

  .reveal {
    opacity: 1;
    transform: none
  }
}