.featured-webinar {
  list-style: none;
}
ul.webinar-cards.list {
  list-style: none;
  padding: 0;
}
ul.filter-options {
  list-style: none;
  padding: 0;
}
.webinar-card-wrapper h2 {
  padding: 0;
  margin-bottom: 30px;
}

.webinar-module {
  .sort-wrapper-inner {

    button {
      margin-bottom: 2rem; // breathing room under Reset Filters
    }

    .filter-group {
      margin-bottom: 2rem;

      &:last-child {
        margin-bottom: 0;
      }
    }

    summary.filter-group-label {
      text-transform: uppercase;
      font-size: 0.9rem;
      font-weight: 700 !important;
      letter-spacing: 0.5px;
      margin: 0;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      list-style: none; // hides default disclosure marker in Firefox

      &::-webkit-details-marker {
        display: none; // hides default disclosure marker in Chrome/Safari
      }
      &::after {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 200ms ease;
        margin-left: 0.5rem;
        flex-shrink: 0;
      }
      .filter-options {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
      }
    }
    &[open] summary.filter-group-label::after {
      transform: rotate(-135deg);
    }

    .filter-options {
      margin-top: 1rem;
    }
    .filter-option {
      line-height: 0;

      input.filter_input {
        // visually hidden but still focusable/functional
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
        overflow: hidden;

        &:focus-visible + label {
          outline: 2px solid #000;
          outline-offset: 2px;
        }

        &:checked + label {
          background: #000;
          border-color: #000;
          color: #fff;
        }
      }

      label {
        display: block;
        width: 100%;
        padding: 0.85rem 1rem;
        background: #eceef0;
        border: 1px solid transparent;
        border-radius: 0;
        cursor: pointer;
        transition: 150ms ease;
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.5;

        &:hover {
          background: #dfe2e5;
        }
      }
    }
  }
  .tag-wrapper {
    margin-bottom: 1rem;
    display: flex;
    flex-flow: wrap;
    gap: .3rem;
    align-items: center;

    strong {
      text-transform: uppercase;
      font-size: .8rem;
    }
    .tag {
      font-size: .8rem;
      display: inline-block;
      border: 1px solid currentColor;
      padding: .2rem .4rem;
      border-radius: .2rem; 
      white-space: nowrap;
    }
  }
  .list, .pagination {
    margin: 0;
    padding: 0;
  }

  input.search {
    width: 100%;
    padding: 1rem;
  }

  .shortened {
    overflow: hidden;
    position: relative;
    max-height: 8em;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    padding-bottom: 1rem;

    &.expanded {
      max-height: calc(100% + 1rem);
      transition: max-height 1s ease-in-out;
    }

    &:after {
      background: #fff;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.50) 19.14%), linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, #FFF 52.88%);
      content:"View Full description";
      position: absolute;
      width: 100%;
      padding: 4.5rem 0 .5rem 0;
      bottom: 0;
      left: 0;
      cursor: pointer;
      transition: 250ms;
      text-transform: uppercase; 
      letter-spacing: 1px;
      font-size: 12px;
      font-weight: 400;
    }

    &.expanded:after {
      content: "Hide";
      pointer-events: none;
      padding: 1rem 0 .5rem 0;
    }
  }

  .featured {
  }

  .webinar-info {
    padding: 1.2rem;
    .button {
      margin-top: 20px;
    }
  }

  .pagination {
    display: flex;
    list-style: none;
    gap: 1rem;
    justify-content: center;

    @media (max-width: 599px) {
      gap: 0.5rem;
      row-gap: 0.5rem;

      li {
        button {
          min-width: 36px;
          padding: 0.4rem 0.6rem;
          font-size: 0.85rem;
        }
      }
    }

    :not(.disabled) button {
      border: 2px solid #000;
    }

    :not(.active, :hover) button {
      border: 2px solid #000;
      color: #000;
      background: transparent;
    }

    .disabled :is(button, button:hover, button:active) {
      pointer-events: none;
      background: none;
      border: none;
      color: #000;
      border: 0;
    }
  }

  .btnmodal {
    letter-spacing: 1px;
    line-height: 24px;
  }

  .modal-content .submitted-message, 
  .modal-content form {
    text-align: left;
  }
  .modal-content .input {
    margin: 0 !important;
  }
  .modal-content .hs-input {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }
  /* The Modal (background) */
  .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }

  /* Modal Content */
  .modal-content {
    background-color: #fefefe;
    border: 1px solid #888;
    box-shadow: 0 7px 14px 0 rgba(60,66,87,.08),0 3px 6px 0 rgba(0,0,0,.12);
    margin: auto;
    max-width: 90%;
    padding: 40px;
    width: 550px;
    position: relative;
    right: 0;
    left: 0;
    max-height: 95%;
    overflow-y: auto;
    overflow-x: hidden;
    top: 50%;
    transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
  }

  /* The Close Button */
  .close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }

  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    right: 10px;
    top: 0px;
  }

  .webinar-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 300ms;
  }

  .webinar-img {
    width: 250px;
    height: 400px;
  }

  .webinar-card {
    margin-bottom: 60px;
  }
  @media (min-width: 600px) {
    .webinar-card {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
    }
    .webinar-img {
      width: 40%;
    }
    .webinar-info {
      flex: 1;
    }

  }
}

.on-demand-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.on-demand-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;

  @media (max-width: 899px) {
    flex-direction: column;
  }
}

.on-demand-sidebar {
  flex: 0 0 25%;
  max-width: 25%;
  margin-top: 24px;

  @media (max-width: 899px) {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  input.search {
    margin-bottom: 1rem;
  }
}

.on-demand-content {
  flex: 0 0 75%;
  max-width: 75%;
  min-width: 0; // prevents flex children (cards) from overflowing

  @media (max-width: 899px) {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 650px) {
  .on-demand-content {
    width: 100%;
    max-width: 100%;
  }
  .webinar-img {
    width: 100% !important;
    height: auto !important;
  }
  .webinar-info {
    padding: 0 !important;
  }
}