/* ============================================================================
   Global Academic Award — app stylesheet
   ----------------------------------------------------------------------------
   This layer replaces the Bootstrap 4 bundle that used to be loaded from
   /css/style.min.css. It provides:

     1. @font-face declarations for the LibreFranklin family
        (previously embedded inside the vendor bundle).
     2. Base / reset styles (the job Bootstrap's reboot used to do).
     3. The small set of utility classes the site markup actually uses
        (flex, grid, spacing, text helpers).
     4. Navbar layout and mobile-menu behaviour (previously Bootstrap JS).
     5. Responsive refinements — the site must not scroll horizontally.
     6. Lightweight, performance-friendly animations.
     7. Apply / auth page polish.

   Loaded LAST, after theme.css and custom-theme.css, so overrides land last.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Fonts
--------------------------------------------------------------------------- */
@import url(https://fonts.googleapis.com/css?family=Montserrat);

@font-face {
  font-family: "LibreFranklin-Regular";
  src: url(/fonts/LibreFranklin-Regular.woff) format("woff"),
    url(/fonts/LibreFranklin-Regular.eot);
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LibreFranklin-Bold";
  src: url(/fonts/LibreFranklin-Bold.woff) format("woff"),
    url(/fonts/LibreFranklin-Bold.eot);
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LibreFranklin-SemiBold";
  src: url(/fonts/LibreFranklin-SemiBold.woff) format("woff"),
    url(/fonts/LibreFranklin-SemiBold.eot);
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LibreFranklin-Light";
  src: url(/fonts/LibreFranklin-Light.woff) format("woff"),
    url(/fonts/LibreFranklin-Light.eot);
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LibreFranklin-Thin";
  src: url(/fonts/LibreFranklin-Thin.woff) format("woff"),
    url(/fonts/LibreFranklin-Thin.eot);
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------------------
   2. Base / reset
--------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "LibreFranklin-Regular", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #212529;
  background-color: #ffffff;
  /* Safety net: no horizontal scrolling on any viewport. */
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border-style: none;
  vertical-align: middle;
}

svg {
  overflow: hidden;
  vertical-align: middle;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  font-weight: 600;
  color: inherit;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--brand-teal, #0f766e);
  text-decoration: none;
  background-color: transparent;
}
a:hover {
  color: var(--brand-teal-dark, #134e4a);
}

ul, ol, dl {
  margin-top: 0;
  margin-bottom: 1rem;
}
ul ul, ol ul, ul ol, ol ol {
  margin-bottom: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Keyboard focus — visible everywhere, even where the old theme
   suppressed it with `button:focus { outline: none !important }`. */
:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.55);
  outline-offset: 2px;
}
button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.55) !important;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------------
   3. Utility classes used by the site markup
   (the minimal replacement for the Bootstrap utilities the old markup used)
--------------------------------------------------------------------------- */

/* Flex — base (all viewports) then responsive variants */
.d-flex { display: flex !important; }
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
@media (min-width: 768px) { .flex-md-row { flex-direction: row !important; } }
@media (min-width: 992px) { .flex-lg-row { flex-direction: row !important; } }
@media (min-width: 1200px) { .flex-xl-row { flex-direction: row !important; } }

/* Justify content — base then responsive variants */
.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
@media (min-width: 576px) { .justify-content-sm-start { justify-content: flex-start !important; } }
@media (min-width: 768px) { .justify-content-md-between { justify-content: space-between !important; } }
@media (min-width: 992px) {
  .justify-content-lg-center { justify-content: center !important; }
  .justify-content-lg-end { justify-content: flex-end !important; }
}
@media (min-width: 1200px) {
  .justify-content-xl-center { justify-content: center !important; }
  .justify-content-xl-between { justify-content: space-between !important; }
}

/* Align items — base then responsive variants */
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
@media (min-width: 992px) {
  .align-items-lg-start { align-items: flex-start !important; }
  .align-items-lg-center { align-items: center !important; }
}
@media (min-width: 1200px) {
  .align-items-xl-start { align-items: flex-start !important; }
  .align-items-xl-end { align-items: flex-end !important; }
}

/* Order — base then responsive variants */
.order-1 { order: 1 !important; }
.order-2 { order: 2 !important; }
@media (min-width: 768px) {
  .order-md-0 { order: 0 !important; }
  .order-md-1 { order: 1 !important; }
}
@media (min-width: 992px) {
  .order-lg-0 { order: 0 !important; }
  .order-lg-1 { order: 1 !important; }
  .order-lg-2 { order: 2 !important; }
}

/* Spacing */
.ml-auto { margin-left: auto !important; }
@media (min-width: 992px) { .ml-lg-auto { margin-left: auto !important; } }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }

/* Text + images */
.text-center { text-align: center !important; }
.img-fluid { max-width: 100%; height: auto; }

/* Grid — container / row / the col-* classes used by the awards grid */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-sm-12, .col-md-6, .col-lg-3 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
@media (min-width: 576px) {
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
}

/* ---------------------------------------------------------------------------
   4. Navbar — layout + mobile menu (previously Bootstrap JS + collapse CSS)
--------------------------------------------------------------------------- */

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0rem 0rem;
}

.navbar-brand {
  display: inline-block;
  padding: 0;
  margin-right: 1rem;
  line-height: inherit;
  white-space: nowrap;
}
.navbar-brand:hover,
.navbar-brand:focus {
  text-decoration: none;
}

.footer-content > .footer-contact-details {
  padding: 0;
}
.footer-content > .footer-menu.footer-contact-details:last-child .footer-menu-list {
  padding: 0;
  margin: 0;
  gap: 8px;
}
.footer-content > .footer-contact-details .footer-menu-list li {
  margin: 0 0 8px;
  padding: 0;
  line-height: 1.5;
}
.footer-section-wrapper .footer-contact-details a[href^="mailto:"] {
  color: #fff;
}
.page-logo {
  display: block;
  width: 180px;
  height: 75px;
  object-fit: contain;
}

.footer-section-wrapper .footer-contact-logo .contact-logo {
  display: block;
  width: 120px;
  max-width: 100%;
  height: auto;
}

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.1rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}
.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.collapse:not(.show) {
  display: none;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
}

.nav-item {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .navbar-expand-lg {
    flex-flow: row nowrap;
    justify-content: flex-start;
  }
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
}

/* Mobile menu panel */
.mobile-navigation {
  display: none;
}
.desktop-navigation {
  display: contents;
}
@media (max-width: 991.98px) {
  .desktop-navigation {
    display: none;
  }
  .mobile-navigation {
    display: block;
    flex-basis: 100%;
    width: 100%;
  }
  .mobile-navigation > summary {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    list-style: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
  }
  .mobile-navigation > summary::-webkit-details-marker {
    display: none;
  }
  .mobile-navigation > summary:focus-visible {
    outline: 2px solid var(--brand-teal);
    outline-offset: 2px;
  }
  .mobile-navigation[open] .navbar-collapse {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 6px 10px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f4faf9 100%);
    border-top: 1px solid #e7efed;
    box-shadow: 0 20px 32px rgba(16, 24, 40, 0.14);
    border-radius: 0 0 16px 16px;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    animation: nav-slide-down 0.28s ease both;
  }

  .navbar-nav {
    width: 100%;
  }
  .navbar-nav .nav-item {
    width: 100%;
    padding: 0 !important;
  }
  .navbar-nav .nav-link {
    width: 100%;
    padding: 13px 16px !important;
    text-align: center;
    font-size: 13px;
  }

  .navbar-social-links {
    width: 100%;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e7efed;
  }
  .navbar-social-links .navbar-follow {
    margin-bottom: 10px;
  }
}

@keyframes nav-slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Apply CTA in the navbar --------------------------------------------- */
.navbar-nav .nav-apply-item {
  display: flex;
  align-items: center;
  margin-left: 10px;
}
.navbar-nav .nav-apply-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px !important;
  border-radius: 24px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59c00 100%);
  box-shadow: 0 8px 18px rgba(245, 156, 0, 0.28);
  color: #fff !important;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.navbar-nav .nav-apply-link::after {
  display: none;
}
.navbar-nav .nav-apply-link i {
  font-size: 14px;
}
.navbar-nav .nav-apply-link:hover,
.navbar-nav .nav-apply-link:focus {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(245, 156, 0, 0.4);
}
.navbar-nav .nav-apply-item.current-menu-item .nav-apply-link {
  box-shadow: 0 0 0 3px rgba(245, 156, 0, 0.3), 0 12px 24px rgba(245, 156, 0, 0.4);
}

@media (max-width: 991.98px) {
  .navbar-nav .nav-apply-item {
    margin: 12px 0 6px;
  }
  .navbar-nav .nav-apply-link {
    width: 100%;
    min-height: 46px;
  }
}

/* --- Auth area (Dashboard / Sign out) ------------------------------------ */
/* The legacy nav underline becomes a flex item here and squeezes the controls. */
.navigation-wrapper .navbar .navbar-nav .nav-auth-item::after,
.navigation-wrapper .navbar .navbar-nav .nav-auth-item:hover::after {
  display: none;
}

.nav-auth-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-auth-logout {
  flex-shrink: 0;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 8px 4px;
  color: #828190;
  font-family: "LibreFranklin-Semi-Bold", sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}
.nav-auth-logout:hover,
.nav-auth-logout:focus {
  color: var(--brand-teal, #0f766e);
}
.nav-auth-placeholder {
  color: #b9c4c1 !important;
}

@media (max-width: 991.98px) {
  .nav-auth-group {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav-auth-logout {
    font-size: 13px;
    padding: 10px 4px;
  }
}

/* ---------------------------------------------------------------------------
   5. Responsive refinements
--------------------------------------------------------------------------- */

/* Inner page hero — comfortable on small phones */
.page-hero {
  padding-top: 132px;
}
@media (max-width: 767.98px) {
  .page-hero {
    padding: 112px 16px 54px;
  }
  .page-hero h1 {
    font-size: 28px;
  }
  .page-hero p {
    font-size: 14.5px;
  }
}

/* Keep the mobile awards heading close to the hero content. */
@media (max-width: 767px) {
  .global-award-wrapper .global-award-header-container {
    padding: 32px 20px 28px;
    margin-top: 0;
  }
  .global-award-wrapper .global-award-header-container .global-header-content {
    margin-top: 0;
  }
  .global-award-wrapper .global-award-header-container::after {
    display: none;
  }
}

/* Native scrolling supports touch, buttons and automatic news advances. */
.home-news-carousel { min-width: 0; width: 100%; box-sizing: border-box; }
.home-news-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.home-news-track::-webkit-scrollbar { display: none; }
.home-news-card { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; scroll-snap-align: start; text-align: center; }
.home-news-media { height: 220px; border-radius: 10px; position: relative; display: flex; align-items: center; justify-content: center; font-size: 44px; overflow: hidden; }
.home-news-date { position: absolute; top: 10px; left: 10px; padding: 5px 10px; background: #f59c00; color: white; font-size: 16px; }
.home-news-title { margin: 10px 0; color: #1d1c22; font-family: "LibreFranklin-Bold", sans-serif; white-space: normal; }
.home-news-controls { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 20px; }
.home-news-controls button { display: grid; place-items: center; width: 36px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; touch-action: manipulation; }
.home-news-controls button span { display: block; width: 7px; height: 7px; border-radius: 99px; background: #cdd9d7; transition: width .2s ease, background .2s ease; }
.home-news-controls button[aria-pressed="true"] span { width: 24px; background: #0f766e; }
@media (hover: hover) { .home-news-controls button:hover span { background: #0f766e; } }
@media (prefers-reduced-motion: reduce) { .home-news-controls button span { transition: none; } }
.home-news-controls button:focus-visible, .home-news-track:focus-visible { outline: 2px solid #f59c00; outline-offset: 3px; }
@media (max-width: 1024px) { .home-news-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) {
  .home-news-track { gap: 16px; }
  .home-news-card { flex-basis: 100%; }
  .home-news-controls { justify-content: center; }
}
/* Home hero */
@media (max-width: 480px) {
  .banner-header .banner-title {
    font-size: 30px;
  }
  .banner-header .banner-subtitle {
    padding: 10px 4px;
    line-height: 1.55;
  }
  .banner-buttons {
    width: 100%;
    margin: 22px 0;
  }
  .banner-buttons .banner-button {
    margin: 0 0 14px;
  }
}

/* Content sections */
@media (max-width: 767.98px) {
  .content-section {
    padding: 44px 16px;
  }
  .content-section-title {
    font-size: 23px;
  }
}

/* Forms */
@media (max-width: 640px) {
  .contact-form-box,
  .apply-form-box {
    padding: 24px 18px;
  }
  .contact-form .form-row {
    gap: 16px;
    margin-bottom: 16px;
  }
}

/* Footer */
@media (min-width: 992px) {
  .footer-section-wrapper .footer-container {
    width: 100%;
    max-width: 1248px;
    margin: 0 auto;
    padding: 40px 24px 24px;
  }
  .footer-section-wrapper .footer-container .footer-content {
    width: 100%;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.65fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 32px;
  }
  .footer-section-wrapper .footer-content > * {
    min-width: 0;
  }
  .footer-section-wrapper .footer-contact-content > .d-flex {
    flex-direction: column !important;
    gap: 16px;
  }
  .footer-section-wrapper .footer-contact-content .footer-contact-numbers,
  .footer-section-wrapper .footer-contact-content .footer-contact-adress {
    border: 0;
    padding: 0;
    margin: 0 !important;
  }
  .footer-section-wrapper .footer-contact-content .contact-email,
  .footer-section-wrapper .footer-contact-content .contact-adress {
    margin: 0 !important;
    overflow-wrap: anywhere;
  }
  .footer-section-wrapper .footer-contact-info .footer-contact-logo {
    margin: 0 0 24px !important;
  }
  .footer-section-wrapper .footer-contact-logo .contact-logo {
    height: auto !important;
  }
  .footer-section-wrapper .footer-menu-header,
  .footer-section-wrapper .footer-awards-title {
    padding-left: 0 !important;
  }
  .footer-section-wrapper .footer-menu-header::after,
  .footer-section-wrapper .footer-awards-title::after {
    left: 0 !important;
  }
  .footer-section-wrapper .footer-container .footer-cross-line {
    width: 100%;
    margin: 28px 0 16px;
  }
  .footer-section-wrapper .footer-container .footer-social-content {
    width: 100%;
  }
}
@media (max-width: 991.98px) {
  .footer-section-wrapper .footer-container {
    width: 100%;
    padding: 32px 20px 100px;
  }
  .footer-section-wrapper .footer-container .footer-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 28px 20px;
    width: 100%;
    text-align: left;
  }
  .footer-section-wrapper .footer-container .footer-content > * {
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow-wrap: anywhere;
  }
  .footer-content > .footer-contact-info,
  .footer-content > .footer-menu:last-child {
    grid-column: 1 / -1;
  }
  .footer-section-wrapper .footer-contact-info .footer-contact-logo {
    margin: 0 0 20px !important;
  }
  .footer-section-wrapper .footer-contact-logo .contact-logo {
    height: auto !important;
  }
  .footer-section-wrapper .footer-contact-content .footer-contact-numbers,
  .footer-section-wrapper .footer-contact-content .footer-contact-adress {
    margin: 0 !important;
    padding: 0;
    border: 0;
  }
  .footer-section-wrapper .footer-contact-content > .d-flex {
    gap: 16px;
  }
  .footer-section-wrapper .footer-contact-content .contact-email,
  .footer-section-wrapper .footer-contact-content .contact-adress {
    margin: 0 !important;
  }
  .footer-section-wrapper .footer-menu-header,
  .footer-section-wrapper .footer-awards-title {
    padding-left: 0 !important;
  }
  .footer-section-wrapper .footer-menu-header::after,
  .footer-section-wrapper .footer-awards-title::after {
    left: 0 !important;
  }
  .footer-content > .footer-menu:last-child .footer-menu-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px 20px;
  }
  .footer-section-wrapper .footer-container .footer-cross-line {
    width: 100%;
    margin: 28px 0 20px;
  }
  .footer-section-wrapper .footer-container .footer-social-content {
    width: 100%;
  }
  .footer-section-wrapper .footer-copy-right {
    text-align: center;
  }
}

/* Newsletter */
@media (max-width: 767.98px) {
  .newsletter-section-wrapper {
    padding: 42px 0;
  }
  .mc4wp-form-fields {
    justify-content: center;
  }
  .mc4wp-form-fields input[type="email"] {
    width: 100%;
    min-width: 0;
  }
}

/* Back-to-top */
@media (max-width: 480px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

/* ---------------------------------------------------------------------------
   6. Animations
--------------------------------------------------------------------------- */

/* Content stays visible until its observer is ready. Mobile content never
   depends on JavaScript or a scroll animation becoming ready. */
.reveal.reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .reveal.reveal-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Success banner pop-in (apply / contact forms) */
@keyframes success-pop {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.contact-form-success.is-visible {
  animation: success-pop 0.35s ease both;
}

/* Submit spinner */
@keyframes app-spin {
  to {
    transform: rotate(360deg);
  }
}
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: app-spin 0.7s linear infinite;
}
.contact-form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Respect reduced-motion preferences everywhere */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal.reveal-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------------------
   7. Apply page polish
--------------------------------------------------------------------------- */

.apply-intro {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}
.apply-intro h2 {
  color: var(--brand-navy, #152338);
  font-family: "LibreFranklin-Bold", sans-serif;
  font-size: 26px;
  margin: 0 0 12px;
}
.apply-intro > p {
  color: #4a4a4a;
  font-family: "LibreFranklin-Regular", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 10px;
}

.apply-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 26px;
  text-align: left;
}
@media (min-width: 640px) {
  .apply-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.apply-step {
  background: #f7fbfa;
  border: 1px solid #e7efed;
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 0.2s ease-in-out, transform 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
}
.apply-step:hover {
  border-color: #cfe3df;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.07);
}
.apply-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-teal-light, #14b8a6), var(--brand-teal, #0f766e));
  color: #fff;
  font-family: "LibreFranklin-Bold", sans-serif;
  font-size: 14px;
  margin-bottom: 10px;
}
.apply-step h3 {
  color: var(--brand-navy, #152338);
  font-family: "LibreFranklin-SemiBold", sans-serif;
  font-size: 14px;
  margin: 0 0 6px;
}
.apply-step p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  color: #4a4a4a;
}

/* Inline field errors on the apply form */
.field-error {
  margin-top: 6px;
  color: #b3261e;
  font-size: 12px;
  line-height: 1.4;
}
.contact-form .input-error {
  border-color: #dc3545;
}
.contact-form .input-error:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}
.apply-form label:has(+ input[required])::after,
.apply-form label:has(+ select[required])::after {
  content: " *";
  color: #b3261e;
}
.apply-form label:has(+ [aria-invalid="true"]),
.apply-form .checkbox-option:has(input[aria-invalid="true"]) {
  color: #b3261e;
}

.global-award-box {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.global-award-box .global-award-img {
  transition: transform 0.45s ease;
}
.global-award-box:hover, .global-award-box:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(21, 35, 56, 0.18);
}
.global-award-box:hover .global-award-img,
.global-award-box:focus-within .global-award-img {
  transform: scale(1.035);
}
@media (prefers-reduced-motion: reduce) {
  .global-award-box, .global-award-box .global-award-img { transition: none; }
  .global-award-box:hover, .global-award-box:focus-within,
  .global-award-box:hover .global-award-img,
  .global-award-box:focus-within .global-award-img { transform: none; }
}

/* Subtle stagger for form rows */
.apply-form .form-row {
  animation: field-in 0.4s ease both;
}
.apply-form .form-row:nth-child(2) { animation-delay: 0.04s; }
.apply-form .form-row:nth-child(3) { animation-delay: 0.08s; }
.apply-form .form-row:nth-child(4) { animation-delay: 0.12s; }
.apply-form .form-row:nth-child(5) { animation-delay: 0.16s; }
.apply-form .form-row:nth-child(6) { animation-delay: 0.2s; }
.apply-form .form-row:nth-child(7) { animation-delay: 0.24s; }
.apply-form .form-row:nth-child(8) { animation-delay: 0.28s; }
.apply-form .form-row:nth-child(9) { animation-delay: 0.32s; }
.apply-form .form-row:nth-child(10) { animation-delay: 0.36s; }

@keyframes field-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
