.beca-footer {
  --beca-footer-bg: #020353;
  --beca-footer-bg-deep: #020247;
  --beca-footer-accent: #07a5f6;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--beca-footer-bg);
  color: #fff;
  font-family: "Open Sans", Arial, sans-serif;
  overflow-x: hidden;
}

.beca-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

.beca-footer a:hover,
.beca-footer a:focus-visible {
  color: var(--beca-footer-accent);
}

.beca-footer__inner,
.beca-footer__bottom-inner {
  width: min(100% - 2rem, 1240px);
  margin: 0 auto;
}

.beca-footer__inner {
  padding: 4.8rem 0 3.8rem;
}

.beca-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3.5rem;
  margin-bottom: 5.8rem;
}

.beca-footer__category h2,
.beca-footer__subscribe h2 {
  margin: 0 0 1.6rem;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 800;
}

.beca-footer__category ul,
.beca-footer__social {
  list-style: none;
  padding: 0;
  margin: 0;
}

.beca-footer__category li {
  margin: 0 0 .36rem;
  font-size: .98rem;
  line-height: 1.2;
}

.beca-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr) minmax(280px, .9fr);
  gap: 5.2rem;
  align-items: end;
}

.beca-footer__beca-logo {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin-bottom: 1.6rem;
}

.beca-footer__brand p {
  width: min(100%, 310px);
  margin: 0 0 4.9rem;
  color: #fff;
  font-size: .76rem;
  line-height: 1.25;
  font-weight: 700;
}

.beca-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  align-items: center;
}

.beca-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #336;
  transition:all 0.3s ease-in-out;
}

  .beca-footer__social a:hover {
    color: blue;
    background: #338;
  }

    .beca-footer__social a:hover img {
      transform:scale(1.1);
      opacity: 1;
    }

    .beca-footer__social a img {
      display: block;
      width: 18px;
      height: 18px;
      opacity: 0.9;
    }

  .beca-footer__subscribe {
    padding: 1.25rem 1.5rem;
    border-radius: .5rem;
    background:#226;
    align-self: end;    
  }

.beca-footer__subscribe p {
  margin: 0 0 .9rem;
  font-size: .98rem;
  line-height: 1.35;
  color:rgba(255,255,255,0.75);
}

.beca-footer__subscribe-form {
  display: flex;
  gap: 0;
  width: 100%;
  min-height: 42px;
  overflow: hidden;
  border-radius: 0;
}

  .beca-footer__subscribe-form input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    padding: 0 0.85rem;
    font: inherit;
    color: #123;
    height: 2.6rem;
    border-radius: 0 !important;
    margin: 0;
  }

.beca-footer__subscribe-form input::placeholder {
  color: #9ab0b9;
}

  .beca-footer__subscribe-form button {
    flex: 0 0 46px;
    width: 46px;
    border: 0;
    padding: 0;
    background: var(--beca-footer-accent);
    color: #fff;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 180ms ease, opacity 180ms ease;
    border-radius: 0 !important;
    margin: 0;
    font-size: 0;
    line-height: 0;
  }

    .beca-footer__subscribe-form button:hover,
    .beca-footer__subscribe-form button:focus-visible {
      background: #0588cc;
    }

    .beca-footer__subscribe-form button svg {
      display: block;
      width: 20px;
      height: 20px;
    }

.beca-footer__hosted {
  justify-self: end;
  align-self: end;
  width: min(100%, 320px);
}

.beca-footer__hosted-label {
  color:rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  font-size: 0.9rem;
  line-height:normal;
}

.beca-footer__ilri-logo {
  display: block;
  width: min(100%, 290px);
  height: auto;
}

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

.beca-footer__bottom-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .65rem 0;
}

.beca-footer__copyright,
.beca-footer__legal {
  font-size: .92rem;
  line-height: 1.3;
}

.beca-footer__legal {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .beca-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .beca-footer__main {
    grid-template-columns: 1fr 1fr;
  }
  .beca-footer__hosted {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .beca-footer__inner {
    padding: 3rem 0 2.4rem;
  }
  .beca-footer__nav,
  .beca-footer__main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .beca-footer__nav {
    margin-bottom: 3rem;
  }
  .beca-footer__brand p {
    margin-bottom: 2rem;
  }
  .beca-footer__bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: .8rem;
  }
}


/* Subscribe form: square joined input and icon-only button. */
.beca-footer__subscribe-form {
  display: flex;
  gap: 0;
  width: 100%;
  overflow: visible;
  border-radius: 0 !important;
}

.beca-footer__subscribe-form input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 0 !important;
  margin: 0 !important;
}

.beca-footer__subscribe-form .beca-footer__subscribe-button {
  flex: 0 0 46px;
  width: 46px;
  min-width: 46px;
  height: 2.6rem;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--beca-footer-accent);
  color: #ffffff;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.beca-footer__subscribe-form .beca-footer__subscribe-icon {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 auto;
  overflow: visible;
  color: #ffffff;
  fill: #ffffff;
}

.beca-footer__subscribe-form .beca-footer__subscribe-icon path {
  fill: #ffffff !important;
}

/* Subscribe icon: load the SVG file from /assets and recolour it with CSS. */
.beca-footer__subscribe-form {
  display: flex;
  gap: 0;
  width: 100%;
  overflow: visible;
  border-radius: 0 !important;
}

.beca-footer__subscribe-form input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 0 !important;
  margin: 0 !important;
}

.beca-footer__subscribe-form .beca-footer__subscribe-button {
  flex: 0 0 46px;
  width: 46px;
  min-width: 46px;
  height: 2.6rem;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--beca-footer-accent);
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.beca-footer__subscribe-form .beca-footer__subscribe-icon {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 auto;
  background-color: #ffffff;
  -webkit-mask-image: var(--beca-subscribe-icon-url);
  mask-image: var(--beca-subscribe-icon-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: background-color 180ms ease, transform 180ms ease;
}

.beca-footer__subscribe-form .beca-footer__subscribe-button:hover,
.beca-footer__subscribe-form .beca-footer__subscribe-button:focus-visible,
.beca-footer__subscribe-form .beca-footer__subscribe-button:active {
  background: #ffffff;
}

.beca-footer__subscribe-form .beca-footer__subscribe-button:hover .beca-footer__subscribe-icon,
.beca-footer__subscribe-form .beca-footer__subscribe-button:focus-visible .beca-footer__subscribe-icon,
.beca-footer__subscribe-form .beca-footer__subscribe-button:active .beca-footer__subscribe-icon {
  background-color: var(--beca-footer-accent);
  transform: translateX(1px);
}


/* Final subscribe button icon implementation: file-based SVG image. */
.beca-footer__subscribe-form {
  display: flex !important;
  gap: 0 !important;
  width: 100% !important;
  overflow: visible !important;
  border-radius: 0 !important;
}

.beca-footer__subscribe-form input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 2.6rem !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.beca-footer__subscribe-form .beca-footer__subscribe-button {
  flex: 0 0 46px !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 2.6rem !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--beca-footer-accent) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  cursor: pointer !important;
  transition: background-color 180ms ease !important;
}

.beca-footer__subscribe-form .beca-footer__subscribe-icon {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  object-fit: contain !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: brightness(0) invert(1);
  pointer-events: none;
  transition: filter 180ms ease, transform 180ms ease !important;
}

.beca-footer__subscribe-form .beca-footer__subscribe-button:hover,
.beca-footer__subscribe-form .beca-footer__subscribe-button:focus-visible,
.beca-footer__subscribe-form .beca-footer__subscribe-button:active {
  background: #ffffff !important;
}

.beca-footer__subscribe-form .beca-footer__subscribe-button:hover .beca-footer__subscribe-icon,
.beca-footer__subscribe-form .beca-footer__subscribe-button:focus-visible .beca-footer__subscribe-icon,
.beca-footer__subscribe-form .beca-footer__subscribe-button:active .beca-footer__subscribe-icon {
  /* Changes black SVG asset to the footer accent colour on hover/touch. */
  filter: brightness(0) saturate(100%) invert(47%) sepia(91%) saturate(2114%) hue-rotate(170deg) brightness(98%) contrast(95%);
  transform: translateX(1px);
}


/* Final subscribe button icon fix.
   The arrow is rendered with a CSS mask from the module assets folder.
   This avoids Drupal/Twig image path issues and allows the icon colour to change on hover/touch. */
.beca-footer__subscribe-form {
  display: flex !important;
  gap: 0 !important;
  width: 100% !important;
  overflow: visible !important;
  border-radius: 0 !important;
}

.beca-footer__subscribe-form input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 2.6rem !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.beca-footer__subscribe-form .beca-footer__subscribe-button {
  position: relative !important;
  flex: 0 0 46px !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 2.6rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--beca-footer-accent) !important;
  cursor: pointer !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  transition: background-color 180ms ease !important;
}

.beca-footer__subscribe-form .beca-footer__subscribe-button::before {
  content: "" !important;
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  background-color: #ffffff !important;
  -webkit-mask-image: url('../assets/subscribe.svg') !important;
  mask-image: url('../assets/subscribe.svg') !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  transition: background-color 180ms ease, transform 180ms ease !important;
}

.beca-footer__subscribe-form .beca-footer__subscribe-button:hover,
.beca-footer__subscribe-form .beca-footer__subscribe-button:focus-visible,
.beca-footer__subscribe-form .beca-footer__subscribe-button:active {
  background: #ffffff !important;
}

.beca-footer__subscribe-form .beca-footer__subscribe-button:hover::before,
.beca-footer__subscribe-form .beca-footer__subscribe-button:focus-visible::before,
.beca-footer__subscribe-form .beca-footer__subscribe-button:active::before {
  background-color: var(--beca-footer-accent) !important;
  transform: translateX(1px) !important;
}

/* Final override: hover/touch changes ONLY the subscribe button background.
   The masked SVG arrow remains white. */
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:hover,
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:focus-visible,
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:active {
  background-color: #074FF6 !important;
  background: #074FF6 !important;
}

.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:hover::before,
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:focus-visible::before,
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:active::before {
  background-color: #ffffff !important;
  transform: none !important;
}

/* Definitive subscribe form height fix.
   Forces the email input and submit button to use the exact same border-box height
   across Chrome, Edge, Firefox, and Safari. */
.beca-footer .beca-footer__subscribe-form {
  --beca-subscribe-control-height: 52px;
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100% !important;
  height: var(--beca-subscribe-control-height) !important;
  min-height: var(--beca-subscribe-control-height) !important;
  max-height: var(--beca-subscribe-control-height) !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  line-height: normal !important;
}

.beca-footer .beca-footer__subscribe-form input[type="email"],
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button {
  box-sizing: border-box !important;
  height: var(--beca-subscribe-control-height) !important;
  min-height: var(--beca-subscribe-control-height) !important;
  max-height: var(--beca-subscribe-control-height) !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline-offset: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  vertical-align: top !important;
}

.beca-footer .beca-footer__subscribe-form input[type="email"] {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  padding: 0 16px !important;
  line-height: var(--beca-subscribe-control-height) !important;
  background: #ffffff !important;
}

.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button {
  position: relative !important;
  display: flex !important;
  flex: 0 0 var(--beca-subscribe-control-height) !important;
  width: var(--beca-subscribe-control-height) !important;
  min-width: var(--beca-subscribe-control-height) !important;
  max-width: var(--beca-subscribe-control-height) !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--beca-footer-accent) !important;
  cursor: pointer !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  transition: background-color 180ms ease !important;
}

.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:hover,
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:focus-visible,
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:active {
  background: #074FF6 !important;
  background-color: #074FF6 !important;
}

.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button::before {
  content: "" !important;
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  background-color: #ffffff !important;
  -webkit-mask-image: url('../assets/subscribe.svg') !important;
  mask-image: url('../assets/subscribe.svg') !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  transform: none !important;
}

/* Final isolation: subscribe button hover must only change background color.
   This neutralizes any theme/global button hover rules that lift buttons. */
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button,
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:hover,
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:focus,
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:focus-visible,
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:active {
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transform: none !important;
  translate: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:hover,
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:focus-visible,
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:active {
  background: #074FF6 !important;
  background-color: #074FF6 !important;
}

.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button::before,
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:hover::before,
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:focus-visible::before,
.beca-footer .beca-footer__subscribe-form .beca-footer__subscribe-button:active::before {
  transform: none !important;
  translate: none !important;
  margin: 0 !important;
  background-color: #ffffff !important;
  filter: none !important;
}

/* Prevent text/content selection across the rendered footer surface. */
.beca-footer,
.beca-footer * {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  cursor: default;
}

/* Preserve expected interaction cursors for actionable elements. */
.beca-footer a,
.beca-footer button,
.beca-footer [role="button"],
.beca-footer input[type="submit"],
.beca-footer input[type="button"] {
  cursor: pointer !important;
}

/* Keep form fields usable for typing, selecting, and editing entered values. */
.beca-footer input,
.beca-footer textarea,
.beca-footer select,
.beca-footer [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  cursor: text !important;
}
