<style>
  a.button {
    background: #b6acd1;
    color: #fff !important;
    border: none;
    font-family: "Akkurat Pro Bold", "Arial Black", sans-serif;
    font-size: 0.7778em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px 10px 0;
    padding: 15px 15px 12px 15px;
    min-width: 165px;
    text-align: center;
    line-height: 1;
    transition: background-color ease 200ms;
    position: relative;
    transition-property: color;
    transition-duration: 0.2s;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -moz-osx-font-smoothing: grayscale;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    box-shadow: 0 0 1px transparent;
    cursor: pointer;
    overflow: hidden;
  }
  a.button:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: -100%;
    right: auto;
    bottom: 0;
    width: 100%;
    background: #8273ba;
    -webkit-transform-origin: 0 50%;
    -ms-transform-origin: 0 50%;
    transform-origin: 0 50%;
    transition-property: left;
    transition-duration: 0.2s;
    transition-timing-function: ease-out;
  }
  .button:hover:before {
    transform: scaleX(1);
    left: 0;
  }
  a.button.green {
    background: #58b947;
  }
  a.button.green:before {
    background: #008656;
  }
  .modal-ab {
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    overflow-y: scroll;
    position: absolute;
    top: 0;
    width: 100vw;
    z-index: 9999999;
  }
  .modal-ab__content {
    background: white;
    box-sizing: border-box;
    max-height: 90vh;
    max-width: 640px;
    text-align: left;
    width: 100%;
    background-color: white;
    padding: 2.5rem;
  }
  .modal-ab__content-close {
    position: absolute;
    width: 100%;
    max-width: 640px;
    text-align: right;
    margin-top: -1rem;
    margin-left: -2.5rem;
  }
  .close-btn {
    margin-right: 20px;
    font-size: 2rem;
    color: #342f2e;
    text-decoration: none;
    opacity: 0.85;
  }
  a.close-btn:hover {
    opacity: 1;
    text-decoration: none;
  }
  .modal-ab__content-left {
    max-height: 90vh;
    width: 50%;
    display: flex-box;
    background-color: #4e2a84;
    background-image: url("/s/1479/images/gid2/editor/modal_window/happystudentcommencement.jpg");
    background-size: cover;
  }
  .modal-ab__content-right {
    max-height: 90vh;
    width: 50%;
    display: flex-box;
    background-color: rgba(228, 224, 238, 0.5);
    padding: 4rem 3.5rem;
  }
  body.no-scroll--modal {
    width: 100%;
    position: fixed;
    overflow-y: hidden;
  }
  .modal-ab__content-right h1 {
    font-family: "Poppins";
    color: #4e2a84;
    font-size: 2.2rem;
    margin-top: 0;
    line-height: normal !important;
  }
  .modal-ab__content-right p {
    font-family: "Akkurat Pro";
    line-height: 22px;
    color: #342f2e;
  }
  .modal-headline {
    font: 50px/1.1em "Poppins Bold", Impact, sans-serif;
    color: #4e2a84;
    margin-bottom: 1rem;
  }
  .modal-subhead {
    font-family: "Poppins ExtraLight 200";
    font-weight: 100;
    font-size: 60px;
    line-height: 1.3;
    color: #4e2a84;
    padding-bottom: 35px;
  }
  .modal-bodycopy {
    font-family: "Akkurat Pro";
    line-height: 24px;
    font-size: 18px;
    color: #5c5757;
    padding-bottom: 40px;
  }

  .modal-ab__content.purple {
    background-color: #4e2a84;
  }

  .modal-ab__content.purple .close-btn {
    color: white;
  }

  .modal-ab__content.purple .modal-headline {
    color: white;
  }

  .modal-ab__content.purple .modal-bodycopy {
    color: white;
  }

  @media screen and (max-width: 1120px) {
    .modal-ab__content {
      width: 600px;
      overflow-x: auto;
    }
    .modal-ab__content-close {
      width: 600px;
    }
    .modal-headline {
      font-size: 36px;
    }
  }

  @media screen and (max-width: 768px) {
    .modal-ab__content {
      width: 100%;
      max-width: 420px;
      padding: 2.5rem 1.5rem;
    }
    .modal-ab__content-close {
      width: 100%;
      max-width: 420px;
    }
  }
</style>
<script>
  // Cookies
  function createCookie(name, value, minutes) {
    var date = new Date();
    date.setTime(date.getTime() + minutes * 60 * 1000);
    var expires = "; expires=" + date.toGMTString();

    name = name;

    document.cookie = name + "=" + value + expires + "; path=/";
  }

  function readCookie(name) {
    var nameEQ = name + "=";
    var ca = document.cookie.split(";");
    for (var i = 0; i < ca.length; i++) {
      var c = ca[i];
      while (c.charAt(0) == " ") c = c.substring(1, c.length);
      if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
    }
    return null;
  }
  //end of cookies

  if (
    document.cookie.split(";").filter(function(item) {
      return item.indexOf("modalInteractNAA=yes") >= 0;
    }).length
  ) {
    jQuery(".modal-ab").remove();
    jQuery("body").removeClass("no-scroll--modal");
  } else {
    var modalHtml1 =
      '<article class="modal-ab"> <div class="modal-ab__content purple"> <div class="modal-ab__content-close"><a href="#" class="close-btn">x</a></div><div class="modal-headline balance-text">Northwestern is counting on you!</div><div class="modal-bodycopy">Time is running out to make your annual gift this fiscal year. Give by August 31 and be part of the donor community.</div> <a href="https://give.northwestern.edu/campaigns/48739/donations/new?a=10769790&utm_campaign=FYE25&utm_content=QU44B&utm_medium=referral&utm_source=alumni" style="font-size: 20px;" class="button green">Give now >></a></div> </div> </article>';

    var modalHtml = modalHtml1;

    jQuery(".modal-ab").remove();
    jQuery("body").addClass("no-scroll--modal");
    jQuery("body").append(modalHtml);

    dataLayer.push({
      event: "event",
      category: "modal",
      action: "appearance",
      label: "FYE25"
    });

    jQuery(".close-btn").click(function() {
      jQuery(".modal-ab").remove();
      jQuery("body").removeClass("no-scroll--modal");
    });

     createCookie('modalInteractNAA', 'yes', 3)
  }
</script>
<style>
  .modal-ab * > div {
    box-sizing: border-box;
  }
  @media only screen and (max-width: 480px) {
    .modal-headline {
      font-size: 50px;
    }
    .modal-subhead {
      font-size: 28px;
      padding-bottom: 20px;
    }
    .modal-bodycopy {
      padding-bottom: 20px;
    }
  }
  .modal-bodycopy {
    font-family: "Akkurat Pro Regular" !important;
  }
</style>
