/* ARCHIVE LEARNING LIBRARY */
#primary {
  order: 2;
}

.learning-library-grid section {
  margin: 1em 0;
}

.learning-library-grid section:nth-child(1) {
  margin-top: -1em;
}

.learning-library-grid header {
  border-bottom: 1px solid var(--ODBUdarkgray);
  background: var(--bb-admin-screen-bgr-color);
  padding-top: 10px;
  margin-bottom: 15px;
  position: -webkit-sticky;
  position: sticky;
  top: 75px;
  z-index: 9;
}

.admin-bar .learning-library-grid header {
  top: 105px;
}

.learning-library-grid header h3 {
  margin-bottom: 10px;
  text-transform: uppercase;
}

.learning-library-grid header h3 i {
  font-weight: 400;
  margin-right: 5px;
}

.learning-library-grid a.item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  overflow: hidden;
  background: var(--bb-content-alternate-background-color);
  border-radius: var(--bb-block-radius-inner);
  min-height: 25px;
  color: var(--ODBUblack);
  gap: 10px;
  margin: 10px 0;
  padding-right: 10px;
}

.learning-library-grid a.item .icon {
  background: var(--ODBUblack);
  color: #ffffff;
  font-size: 1.3em;
  font-weight: 300;
  text-align: center;
  width: 35px;
  min-width: 35px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
}

.learning-library-grid a.item .image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100px;
  min-width: 100px;
  min-height: 55px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
}

.learning-library-grid .content {
  padding: 7px 0;
}

.learning-library-grid span.title {
  width: 100%;
  display: block;
  font-weight: 600;
  line-height: 1.3em;
  margin-bottom: 5px;
}

.learning-library-grid span.description {
  font-size: 0.825em;
  display: block;
  line-height: 1.2em;
}

.learning-library-grid a.item:hover,
.learning-library-grid a.item:focus {
  background-color: var(--bb-content-border-color);
}

.learning-library-grid #viewed {
  align-self: center;
  font-weight: 100;
  margin-left: auto;
}

.learning-library-grid .load-more {
  padding: 0.3em 1em;
  text-transform: uppercase;
  margin-top: 1em;
}

.post-type-archive-learning-library .library-tags,
.single-learning-library .library-tags {
  display: none;
}

.image.lazyload {
  background-color: #f0f0f0; /* placeholder bg */
  min-height: 200px; /* same as image height */
  background-size: cover;
  background-position: center;
}

/* Featured Posts Section and Latest Posts Section */
.popular-items {
  padding: 1em;
  border-radius: var(--bb-block-radius);
  border: 2px dashed #2279cb;
  margin-bottom: 2em;
  background: #b4b4b41c;
}

.popular-items .popular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.latest-items .latest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.popular-items .grid-item {
  position: relative;
  transition: box-shadow 0.3s ease;
  border-radius: var(--bb-block-radius-inner);
  overflow: hidden;
  height: 200px;
}

.latest-items .grid-item {
  position: relative;
  transition: box-shadow 0.3s ease;
  border-radius: var(--bb-block-radius-inner);
  overflow: hidden;
  height: 200px;
  display: flex;
  flex-direction: column;
}

.popular-items .grid-item.main {
  grid-row: 1 / span 2;
  grid-column: 1;
  height: 100%;
}

.latest-items .grid-item.main {
  grid-row: auto;
  grid-column: auto;
}

.latest-items .grid-item a,
.popular-items .grid-item a {
  justify-content: space-between;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.latest-items .grid-item a:hover .item-content,
.latest-items .grid-item a:focus .item-content,
.popular-items .grid-item a:hover .item-content,
.popular-items .grid-item a:focus .item-content {
  background-color: var(--bb-content-border-color);
}

.latest-items .item-image,
.popular-items .item-image {
  height: inherit;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  position: relative;
}

.latest-items .item-image span.views,
.popular-items .item-image span.views {
  color: #ffffff;
  background: var(--ODBUblack);
  position: absolute;
  bottom: 0;
  font-size: 0.8em;
  line-height: 1em;
  padding: 5px 10px;
  border-top-right-radius: var(--bb-block-radius);
  z-index: 9;
}

.latest-items .top .item-image,
.latest-items .bottom .item-image,
.popular-items .top .item-image,
.popular-items .bottom .item-image {
  min-height: 75px;
}

.latest-items .item-image .icon,
.popular-items .item-image .icon {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.latest-items .item-image .icon i,
.popular-items .item-image .icon i {
  font-size: 2em;
  line-height: 2em;
  color: #ffffff;
}

.popular-items .item-content {
  background: #ffffff;
  padding: 12px;
  height: fit-content;
}

.latest-items .item-content {
  background: var(--bb-content-alternate-background-color);
  padding: 12px;
  height: fit-content;
}

.latest-items .item-title,
.popular-items .item-title {
  color: var(--ODBUblack);
  font-weight: 600;
  line-height: 1.3em;
  margin-bottom: 5px;
}

.latest-items .item-title i,
.popular-items .item-title i {
  font-weight: 400;
}

.latest-items .item-excerpt,
.popular-items .item-excerpt {
  color: var(--ODBUblack);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.825em;
  display: block;
  line-height: 1.2em;
}

.latest-items .item-meta,
.popular-items .item-meta {
  font-size: 11px;
  color: #888;
}

@media (max-width: 899px) {
  .latest-items .latest-grid,
  .popular-items .popular-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 500px) {
  .latest-items .latest-grid,
  .popular-items .popular-grid {
    display: block;
    margin: 20px 0;
  }

  .latest-items .grid-item,
  .popular-items .grid-item {
    margin: 10px 0;
    height: auto;
  }

  .latest-items .grid-item a,
  .popular-items .grid-item a {
    flex-direction: row;
  }

  .latest-items .item-image,
  .popular-items .item-image {
    height: auto;
    width: 30%;
  }

  .latest-items .item-content,
  .popular-items .item-content {
    width: 70%;
  }
}

/* SINGULAR LEARNING LIBRARY */
.entry-content p {
  margin-bottom: 0.875rem;
}

.entry-header {
  margin-top: 10px;
}

.entry-header h1 {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--bb-content-border-color);
  margin-bottom: 15px !important;
}

h1.entry-title i {
  font-weight: 400;
  margin-right: 5px;
}

.meta-top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1em;
}

.single-learning-library .wp-block-image figure img {
  border-radius: var(--bb-block-radius-inner);
}

.meta-bottom {
  font-size: 0.825em;
  padding: 5px 15px;
  border-radius: var(--bb-block-radius-inner);
  border: 1px solid var(--bb-content-border-color);
  margin-top: 1em;
  display: inline-block;
  width: 100%;
}

.meta-bottom span {
  margin: 0 5px;
  font-weight: 400;
}

.meta-bottom a {
  display: inline-block;
  margin-right: 7px;
  line-height: 0.825em;
  background-color: var(--bb-label-background-color);
  padding: 5px 10px;
  border-radius: var(--bb-block-radius);
}

.provider,
.level {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: var(--bb-content-alternate-background-color);
  padding-right: 10px;
  border-radius: var(--bb-block-radius);
  overflow: hidden;
}

.provider .icon,
.level .icon {
  background: var(--ODBUblue);
  color: #ffffff;
  min-width: 30px;
  font-size: 1em;
  font-weight: 300;
  text-align: center;
  width: 4%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
}

.level .basic {
  background-color: var(--basic);
}

.level .seeker {
  background-color: var(--seeker);
}

.level .intermediate {
  background-color: var(--intermediate);
}

.level .apprentice {
  background-color: var(--apprentice);
}

.level .advanced {
  background-color: var(--advanced);
}

.level .disciple {
  background-color: var(--disciple);
}

.level .legacy {
  background-color: var(--legacy);
}

.level .leader {
  background-color: var(--leader);
}

.provider .details,
.level .details {
  padding: 2px 10px;
  font-size: 0.825em;
}

.provider .details a,
.level .details a {
  color: var(--ODBUblack);
}

.additional-section {
  line-height: 1.35;
  margin-top: 2.25rem;
}

@media (max-width: 599px) {
  .learning-library-grid .load-more {
    padding: 0.5em 2em;
    width: 100%;
  }
  .single-learning-library .wp-block-image figure {
    float: none;
    margin: auto;
  }
  .single-learning-library .wp-block-image figure img {
    width: 100% !important;
    max-width: 300px;
    max-height: 250px;
  }
  .meta-top {
    flex-wrap: wrap;
  }
}
