html {
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

body * {
  outline: none;
}

[id] {
  scroll-margin-top:130px;
}

/* Footer */
main:not(.block-page-template):has(+.main-footer) {
  padding-bottom: var(--spacing-lg);
}

.main-footer {
  padding-top: var(--spacing-lg);
  background-color: #000000;
  /*background: linear-gradient(270deg, rgba(0, 0, 0, 0.00) 0.15%, rgba(0, 0, 0, 0.40) 99.86%), linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.60) 100%), url("") lightgray 0px -28.813px / 129.138% 169.023% no-repeat;*/

  .iss-logo {
    padding-bottom: 60px;
    max-width: 250px;
  }

  .copyright {
    padding: 30px 0;
    margin: 40px 0 0 0;
    border-top: 1px solid var(--color-g500);
    color: var(--color-n00);
  }
  a {
    color: var(--color-n00);
  }
  a:hover {
    color: var(--color-sg500);
  }
  .footer-nav {
    h5 {
      color: var(--color-gMain);
      font-size: var(--font-size-1);
      font-weight: 700;
      letter-spacing: 5%;
      margin-bottom: 1.2em;
    }
  
    li {
      margin: 1.2em 0;
    }
  }
}

/* Hero Area */
.hero-background {
  width: 100%;
  height: 70vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;

  .text {
    width: 50%;
    padding-top: 10vh;
  }
}

.pre-title {
  color: var(--color-dp200);
  font-size: var(--font-size-125);
  font-weight: 700;
}

.site-overlay-transparant {
  width: 100%;
  height: 100%;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  /* > 10,000 above overlay */
  z-index: 10000;
}

.site-overlay-transparant.on {
  opacity: 1;
  pointer-events: all;
}

.sub-detail {
  color: var(--color-g200);
  font-weight: 400;
}

.main-article {
  color: var(--color-gMain);
  header  {
    h1 {
      margin-bottom: 20px;
    }
    .sub-text-1 {
      color: var(--color-g200);
    }
  }

  .bio-header {
    h1 {
      margin-top: 0;
      margin-bottom: 5px;
    }
  }

  h1:not([class]), h2:not([class]), h3:not([class]), h4:not([class]), h5:not([class]), h6:not([class]) {
    margin-bottom: 0.5em;
    color: var(--color-g400);
  }

  blockquote {
    color: var(--color-gMain);
  }

  p {
    color: var(--color-gMain);
  }

  .featured-image {
    margin-bottom: 40px;
  }

  footer {
    margin-top: var(--spacing-lg);
    border-top: 1px solid var(--color-section-border);
  }

  .key-topics {
    font-size: var(--font-size-115);
    font-style: italic;
    line-height: 1.2em;
    color: var(--color-g200);
    margin: var(--spacing-lg) 0;
  }

}

.paged-pagination {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top:var(--spacing-lg);
  a, .current {
    padding:0 5px;
    margin:0 5px;
    text-decoration: none;
  }
  a:not(.disabled):hover {
    color: var(--color-sg800);
  }
  i {
    font-size: 1rem;
    width:20px;
    text-align: center;
  }
  .current {
    color: var(--color-sg800);
    text-decoration: underline;
  }
  .disabled {
    color: var(--color-g100);
  }
}

.header-area {
  &.text-align-center > *,
  >.text-align-center {
    padding-left: 10%;
    padding-right: 10%;
  }
}

.header-area h1,
.header-area h2,
.header-area h3,
.header-area h4,
.header-area h5,
.header-area h6 {
  color: var(--color-g400);
  &:not(:last-child) {
    margin-bottom: 0.23em;
  }
}

.accordion-container {
  .iss-ac {
    border: none;
    background-color: transparent;
    margin-bottom: 20px;
    padding-bottom: 24px;
    .iss-ac-header {
      margin: 0;
    }
    .iss-ac-trigger::after {
      content: "\f054";
      font-size: 0.8em;
      font-weight: 900;
      margin-left: 15px;
      transform-origin: center;
      transition: transform 0.3s ease-in-out;
    }
    .ac-panel .iss-ac-text {
      padding: 20px 0;
      font-size: 1rem;
      font-family: var(--font-family-main);
      line-height: 1.7;

      p {
        font-size: 1em;
      }
    }
  }
  .iss-ac.is-active {
    .iss-ac-trigger::after {
      transform: rotate(90deg);
    }
  }
}

.thank-you-page .swiper-module h2 {
  text-align: center;
}

/* Phone Breakpoint (phone ONLY) */
@media (min-width: 0px) AND (max-width: 767px) {
  .paged-pagination {
    width: 100%;
    max-width: 350px;
    .prev-button,
    .next-button {
      display: block;
      text-align: center;
    }
    .numbers {
      display: flex;
      justify-content: space-between;
      margin:20px 0;
    }
  }
}

/* Phone Breakpoint (phone & tablet) */
@media (min-width: 0px) AND (max-width: 992px) {
  html {
    margin-top: 0 !important;
  }
  body {
    padding-top: 0;
    background-color: #f9f9f9;
  }
  #wpadminbar {
    display: none !important;
  }
  main .main-content-wrapper .container,
  .main-footer > .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  main .main-content-wrapper .block-module .background > .container  {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .container {
    max-width: 100%;
  }
  .container .container {
    padding-left: 0;
    padding-right: 0;
  }
  .mobile-header {
    background-color: var(--color-n00);
    position: sticky;
    top: 0;
    z-index: 10500;
    box-shadow: 1px 3px 18px 0px rgba(182, 190, 195, 0.20);
    .mobile-header-container {
      width: 100%;
      padding: 25px 1em 25px 1em;
      margin-bottom: calc(var(--spacing-margin-md) * -1);
    }

    .hamburger-menu-icon {
      min-width: 30px;
      min-height: 30px;
      .bars {
        width: 30px;
        height: 21px;
        position: relative;
      }
      .bar {
        width: 25px;
        height: 4px;
        border-radius: 10px;
        background-color: #555A62;
        position: absolute;
        &:nth-child(1) {
          top: 0;
          right: 0;
          transform: rotate(0);
          transform-origin: top right;
        }
        &:nth-child(2) {
          bottom: 0;
          right: 0;
          transform: rotate(0);
          transform-origin: bottom right;
        }
      }

      &.on .bars .bar {
        &:nth-child(1) {
          top: 0;
          right: 8px;
          transform: rotate(-45deg);
        }
        &:nth-child(2) {
          bottom: 0;
          right: 8px;
          transform: rotate(45deg);
        }
      }
    }

    .iss-logo img {
      height: 25px;
      width: auto;
    }
  }

  .mobile-nav-menu {
    width: 100%;
    background-color: var(--color-n00);
    z-index: 10500;
    padding-top: 25px;
    padding-bottom: 25px;
    border-radius: 0 0 10px 0;
    position: absolute;
    left: 0;
    opacity: 0;
    pointer-events: none;

    &.active {
      opacity: 100%;
      pointer-events: all;
    }

    .outer-contianer {
      max-height: calc(100vh - 80px);
      overflow-y: auto;
    }
    
    .container,
    .menu-container,
    .mobile-login-buttons {
      padding-left: 1.5em;  
      padding-right: 1.5em;
    }

    .menu-item {
      margin: 25px 0;

      .menu-container {
        background-color: var(--color-mobilenav-background);
        overflow: hidden;
        height: auto;
      }

      .menu-item-header {
        padding-bottom: 15px;
        cursor: pointer;

        &.on h3 {
          font-weight: 700;
          color: var(--color-agMain);
        }
        

        i {
          font-size: 20px;
        }
      }

      h3 {
        font-weight: 500;
        font-size: var(--font-size-125);
        color: var(--color-gMain);
      }

      .menu-item-section:first-child {
        border-top: 1px solid var(--color-mobilenav-border);
        padding-top: 30px;
      }

      .menu-item-section {
        /* block for testing */
        display: block;
        /* li margin fix */
        padding-bottom: 1px;


        h4 {
          font-weight: 700;
          font-size: var(--font-size-sm);
          color: var(--color-mobilenav-subheader);
          margin-top: 15px;
          margin-bottom: 15px;
          line-height: 1em;
        }

        li {
          font-size:  var(--font-size-115);
          font-weight: 500;
          color: var(--color-gMain);
          margin-bottom: 20px;
        }
      }
    }

    .menu-item-section:first-child h4 {
      margin-top: 0;
    }

    .view-all-link {
      font-weight: 600;
      color: var(--color-gMain);
      margin: 30px 0;
    }

    .mobile-login-buttons .button {
      margin: 15px 0;
    }

  }

}

.solutions-boxes-container {
  .info-square {
    margin-bottom: 1.5em;
  }
}

/* Tablet Breakpoint (tablet only) */
@media (min-width: 768px) AND (max-width: 992px) {
  .mobile-header {
    .mobile-nav-menu {
      max-width: 370px;
      .outer-contianer {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
      }
    }
    .hamburger-menu-icon {
      i {
        font-size: 30px;
      }
    }

    .iss-logo img {
      height: 30px;
      width: auto;
    }
  }

}

/* Desktop Breakpoint (desktop only) */
@media (min-width: 992px) {
  body {
    font-size: var(--font-size-1);
  }

  .container {
    max-width: 1136px;
    width: 100%;
  }
  
  .main-article .article-area {
    max-width: 73%;
  }

  /* Main Navigation */
  .main-header {
    box-shadow: 0px 2px 14px 0px rgba(128, 135, 144, 0.18);
    position: fixed;
    top: auto;
    padding-top: 1px;
    z-index: 10000;
    background-color: #fff;
    width: 100%;
  }

  .main-header.transparant-background {
    background-color: transparent;
    box-shadow: none;
  }

  .main-header.fixed {
    position: fixed;
    width: 100%;
    margin: 0 auto;
    top: 0;
  }

  .main-header.isSticky{
    position: fixed !important;
    top: 0;
    .nav-container {
      padding-top: 10px;
      padding-bottom: 10px;
    }
    .iss-logo img {
      max-width: 250px;
    }
  }

  .main-header .nav-container {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .main-nav {
    width: 70%;
    flex-grow: 1;

    ul {
      li {
        list-style-type: none;

        a:not(.button) {
          color: inherit;
        }
      }
    }

    .main-nav-list {
      width: 100%;
      min-width: 250px;
      margin: 0 20px;

      li {
        margin: 0 20px;
        font-size: var(--font-size-1);
        font-weight: 600;
        position: relative;
        cursor: pointer;
        .bar {
          display: block;
          width:0%;
          opacity: 0;
          height: 5px;
          background-color: var(--color-agMain);
          border-radius: 8px;
          position: absolute;
          bottom: -10px;
        }
      }
    }

    .login-buttons {
      flex-shrink: 0;

      li {
        margin: 0 10px;
      }
    }
    &.on-surface {
      li.on {
        color: var(--color-sgMain);
        .bar {
          background-color: var(--color-sgMain);
        }
      }
    }
  }

  .main-header .ultranav-container {
    width:97%;
    height: 1000px;
    position: absolute;
    top: 120px;
    z-index: 1000;
    overflow: hidden;
    pointer-events: none;
  }
  .main-header.isSticky .ultranav-container {
    top:90px;
  }

  .main-header .ultranav {
    width: 99%; /* 100% cuts off drop shadow */
    min-height: 260px;
    box-shadow: 2px 2px 10px 0px rgba(182, 190, 195, 0.5);
    position: absolute;
    top: -999px;
    opacity: 1;
    pointer-events: none;
    border-radius: 0 10px 10px 0;

    .ultranav-col {
      max-width: 30%;
      min-width: 250px;
      width: 100%;
      padding: 0 30px;
      align-self: stretch;
      background-color: var(--color-n00);

      .ultranav-header {
        margin-bottom: 14px;
      }

      .ultranav-list-header {
        color: var(--color-g100);
        font-size: var(--font-size-sm);
        margin-bottom: 1em;
      }

      .ultranav-list {

        li {
          margin: 1em 0;
          font-weight: 500;
        }

        li:first-of-type {
          margin-top: 0;
        }

        li:last-of-type {
          margin-bottom: 0;
        }

      }

      .ultranav-list:not(:last-of-type) {
        margin-bottom: 30px;
      }

      .fixed-content div {
        >div {
          margin-bottom: 15px;
        }
      }
    }

    .ultranav-col.left-col {
      align-self: stretch;
      background-color: var(--color-ag800);
      color: var(--color-ag-on);
      border-radius: 10px 0 0 10px;
    }

    .ultranav-col.middle-col {
      >div {
        padding-left: 15px;
        margin: 40px 0;
      }
    }

    .ultranav-col.right-col {
      max-width: 100%;
      flex-grow: 1;
      padding-left: 0;
      padding-right: 0;
      border-left: 1px solid var(--color-n300);
      border-radius: 0 10px 10px 0;
      position: relative;
      overflow: hidden;
      /* Removed background squares as per request
      background-image: url('../images/nav-background.png'); */
      background-position: bottom right;
      background-repeat: no-repeat;
      
      .slider-container{
        position: absolute;
        overflow: hidden;
        >div {
          min-height: 200px;
          padding: 40px 0;
        }
        >.has-image {
          padding: 0;
          align-items: start !important;
        }
        .nav-content-header {
          color: var(--color-agMain);
          font-size: 1.3rem;
          font-weight: bold; 
          line-height: 1em;
          margin-bottom: 0.5em;
        }
      }

      .text-container {
        padding: 0 25px;
      }

      >figure>img {
        width: 100%;
      }

      .ultranav-topic-header {
        color: var(--color-sg800);
        font-size: var(--font-size-sm);
        font-weight: 700;
        letter-spacing: 0.3em;
        margin-bottom: 0.5em;
      }
    }
  }

  .main-header .nav-container {
    position: relative;
    z-index: 1500;
  }

  /* Main Footer - Desktop */
  .main-footer {
    .iss-logo {
      max-width: 364px;
    }
  }

}
