/* GROUP ARCHIVE PAGE */
#group-dir-list .grid-view .learning-path-details {
  padding: 0 15px 5px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#group-dir-list .bb-course-items .bb-course-cover {
  min-height: fit-content;
}

#group-dir-list .grid-view .bb-course-title {
  color: var(--bb-headings-color);
}

#group-dir-list .bb-cover-list-item:hover {
  background: var(--bb-content-alternate-background-color);
}

#group-dir-list .bb-cover-list-item a {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#group-dir-list li.bb-course-item-wrap .bb-course-cover::after {
  content: "";
  position: absolute;
  transition: all 0.3s;
  width: 30%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
  right: 0;
  top: 0;
  margin: -5px 0 0 -5px;
  transform-origin: 0 0;
  transform: rotate(-20deg);
}

#group-dir-list li.bb-course-item-wrap a:hover .bb-course-cover::after {
  width: 40%;
}

#group-dir-list .group-data {
  display: flex;
  justify-content: space-around;
  font-size: 0.875em;
  color: var(--bb-body-text-color);
  padding-top: 5px;
  border-top: 1px solid var(--bb-alternate-text-color);
  margin-top: auto;
}

#group-dir-list .grid-view .bb-course-excerpt {
  color: var(--bb-body-text-color);
}

.group-data span {
  white-space: nowrap;
}

.group-data span i {
  display: inline-block;
  margin-right: 2px;
  font-weight: 300;
}

.learning-path-details .group-status {
  margin: 0 -30px 15px;
  padding: 3px;
  font-size: 0.875em;
}

/* SINGLE GROUP PAGE */

/* GROUP BANNER */

.single.single-groups .content-area,
.single.single-groups .entry-content-wrap {
  padding-top: 0;
}

.group-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 40vh;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.group-banner-container {
  padding: 30px 10px;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

.group-content-left {
  max-width: calc(100% - 480px);
  width: calc(100% - 480px);
}

.group-content h1.entry-title {
  font-size: 48px;
  color: inherit;
  line-height: 1.25;
  margin-bottom: 15px;
}

.group-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.learndash-wrapper .ld-progress .ld-progress-bar,
.learndash-wrapper .ld-progress .ld-progress-bar .ld-progress-bar-percentage {
  height: 8px;
}

.learndash-wrapper .ld-course-status.ld-course-status-enrolled {
  border: 1px solid #e0e0e0;
}

.learndash-wrapper .ld-course-status .ld-status.ld-status-progress.ld-primary-background {
  background-color: var(--ODBUblue) !important;
  color: #ffffff !important;
}

.learndash-wrapper .ld-alert-success {
  margin-top: 0;
}

.learndash-wrapper .ld-alert-success .ld-alert-content {
  width: fit-content;
}

.learndash-wrapper--group {
  padding-right: 8%;
  padding-top: 15px;
}

.group .course-dir-list li {
  position: relative;
  padding: 10px 10px 10px 30px;
}

.group .course-dir-list li.bb-course-item-wrap::before {
  content: attr(data-count);
  position: absolute;
  left: 5px;
  top: 10%;
  width: 25px;
  height: 80%;
  background-color: var(--bb-content-alternate-background-color);
  color: var(--ODBUdarkgray);
  border-bottom-left-radius: var(--bb-block-radius);
  border-top-left-radius: var(--bb-block-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

/* SINGLE GROUP SIDEBAR */

.group-sidebar {
  margin-top: -300px;
  max-width: 380px;
  flex: 0 0 42%;
  margin-left: auto;
  position: sticky;
  z-index: 2;
  line-height: 1.35;
  font-size: 0.875em;
}

.group-sidebar-content {
  background: var(--bb-content-background-color);
  border: 1px solid var(--bb-content-border-color);
  border-radius: var(--bb-block-radius);
  padding: 0 30px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.group-sidebar-content h4 {
  color: var(--bb-headings-color);
  letter-spacing: 0.5px;
  margin: 0;
  padding-bottom: 15px;
}

.group-featured-image {
  margin-left: -30px;
  margin-right: -30px;
}

.group-status {
  text-align: center;
  padding: 10px 5px;
  margin: 0 -30px 30px;
}

.group-status.premium {
  background: #d1e5f8;
  color: #194d7e;
}

.group-status.not-started {
  background: #d7f7bc;
  color: #43731c;
}

.group-status.in-progress {
  background: #ffeed1;
  color: #946814;
}

.group-status.completed {
  background: var(--ODBUblack);
  color: #ffffff;
}

.group-featured-image .group-status.not-enrolled {
  background-color: var(--ODBUyellow);
}

.group-students {
  justify-content: center;
  padding: 0 10px 30px;
}

.group-students .students {
  display: inline-block;
  margin-right: 12px;
}

.group-students .students img {
  border: 1px solid #fff;
  max-width: 28px;
  display: inline-block;
  margin-right: -8px;
  position: relative;
  z-index: 3;
  border-radius: 50%;
  float: left;
}

.bb-button-wrap {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  margin-bottom: 30px;
  text-align: center;
}

a.button-group button {
  padding: 5px;
  border-radius: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-button-wrap a.left button {
  border-top-left-radius: var(--bb-block-radius-inner);
  border-bottom-left-radius: var(--bb-block-radius-inner);
}

.bb-button-wrap a.right button {
  border-top-right-radius: var(--bb-block-radius-inner);
  border-bottom-right-radius: var(--bb-block-radius-inner);
}

.bb-button-wrap a.middle button {
  border-left: 0;
  border-right: 0;
}

a.full button {
  border-radius: var(--bb-block-radius-inner);
}

a.button-group {
  flex: 1;
  display: flex;
}

a.button-group button i {
  font-weight: 300;
  margin-right: 5px;
}

a.button-group button span {
  font-size: 0.875em;
}

.group-data ul {
  list-style: none;
  margin: 0;
  padding: 0 0 30px;
}

.group-data ul li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.group-data ul li i {
  margin-right: 12px;
  font-size: 18px;
  max-width: 18px;
  position: relative;
  top: 1px;
  font-weight: 300;
}

.group-course-levels {
  padding-bottom: 30px;
}

.group-course-levels span {
  color: #ffffff;
  padding: 2px 10px;
  font-size: 0.875rem;
  line-height: 1.35;
  display: inline-block;
  border-radius: var(--bb-block-radius-inner);
  margin: 3px 3px;
  text-transform: capitalize;
}

.spin-animation::before {
  animation: spin 2s linear infinite;
}

.one-time-purchase {
  text-align: center;
  flex: 0 0 100%;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1200px) {
  .group-content-left {
    max-width: calc(100% - 380px);
    width: calc(100% - 380px);
  }
}

@media (max-width: 800px) {
  #group-dir-list .grid-view .learning-path-details {
    height: auto;
  }

  .learndash-wrapper .ld-alert-success .ld-alert-content {
    flex-direction: column;
  }

  .learndash-wrapper .ld-alert-success .ld-alert-icon.ld-icon {
    margin-left: 0;
  }

  .learndash-wrapper .ld-alert-success {
    padding: 0;
  }

  .bb-grid .learndash-wrapper--group {
    order: 2;
  }

  .group-content-left {
    max-width: 100%;
    flex: 0 0 100%;
    margin: 0 auto;
    padding-top: 30px;
  }

  .group-sidebar {
    order: 1;
    max-width: 100%;
    flex: 0 0 100%;
    margin-top: 15px;
  }

  .group-featured-image {
    display: none;
  }
}

@media (max-width: 599px) {
  .group .bb-cover-wrap {
    padding-top: 50%;
  }
}