.wp-block-edwiser-bridge-course-description {
  // CSS reset
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
  }

  * {
    margin: 0;
  }

  img,
  picture,
  video,
  canvas,
  svg {
    display: block;
    max-width: 100%;
  }

  input,
  button,
  textarea,
  select {
    font: inherit;
  }

  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    overflow-wrap: break-word;
    margin: 0 !important;
  }

  p {
    text-wrap: pretty;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    text-wrap: balance;
  }

  background: none !important;
  width: 100%;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
  font-size: 1rem;
  line-height: 1.5rem;

  .eb-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    text-align: center;
    width: 100%;
    height: 40px;
    padding: 0.5em 1em;
    border-radius: 0.25em;
    background: #f75d25;
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
    transition: all 0.3s ease;

    &:hover {
      background: hsl(16, 93%, 56%, 0.8);
    }
  }

  .eb-course-desc__wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5em;
    max-width: 1190px;
    width: 100%;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e5e5;
    padding: 1.5em 1.5em 2em;
    margin: 0 auto !important;
  }

  .eb-course-desc__empty-state {
    padding: 6.25em 1.25em;

    .eb-course-desc__empty-state-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.5em;

      h2 {
        font-weight: 700;
        font-size: 2rem;
        line-height: 1.3;
        color: #162324;
      }

      p {
        font-weight: 400;
        font-size: 1rem;
        line-height: 1.5;
        color: #273e3f;
      }
    }
  }

  .eb-course-desc {
    display: flex;
    flex-direction: column;
    gap: 2em;
  }

  .eb-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #283b3c;
  }

  .eb-course-desc__details {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5em;

    .eb-course-desc__course-image {
      width: 100%;
      border-radius: 0.5rem;
      overflow: hidden;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    .eb-course-desc__course-meta {
      display: flex;
      flex-direction: column;
      width: 100%;
      border: 1px solid #d6d8e7;
      border-radius: 0.5rem;
      background: #ffffff;

      .course-meta__header {
        padding: 1.5rem 2em;
        background: #f8fbfc;
        border-bottom: 1px solid #dbdbdb;
        border-radius: 0.5rem 0.5rem 0 0;

        h3 {
          font-weight: 700;
          font-size: 1.125rem;
          line-height: 1.5rem;
          color: #283b3c;
        }
      }

      .course-meta__content {
        flex: 1;
        display: grid;
        gap: 2em;
        padding: 2em;

        .course-meta__content-top {
          display: grid;
          gap: 1.5em;

          .course-meta__category,
          .course-meta__course-access,
          .course-meta__course-status,
          .course-meta__price {
            display: flex;
            align-items: center;
            gap: 0.5em;
            justify-content: space-between;
          }

          .course-meta__category,
          .course-meta__course-access,
          .course-meta__course-status {
            .label {
              display: flex;
              align-items: center;
              gap: 0.25rem;
              color: #819596;
              font-weight: 600;
              font-size: 1rem;

              svg {
                width: 18px;
                height: 18px;
                color: #abbebe;
                flex-shrink: 0;
              }
            }

            .value {
              font-weight: 600;
              font-size: 1rem;
              line-height: 1.25rem;
              color: #4b5858;
              text-align: right;
            }

            .enrolled {
              width: max-content;
              background: #00b61d1a;
              border-radius: 4px;
              padding: 4px 12px;
              color: #00b61d;
              font-size: 14px;
              font-weight: 500;
              line-height: 20px;
              text-transform: capitalize;
            }

            .suspended {
              width: max-content;
              background: #dd14051a;
              border-radius: 4px;
              padding: 4px 12px;
              color: #dd1405;
              font-size: 14px;
              font-weight: 500;
              line-height: 20px;
              text-transform: capitalize;
            }
          }

          .course-meta__price {
            .label {
              font-weight: 600;
              font-size: 1rem;
              color: #283b3c;
            }

            .value {
              font-weight: 600;
              font-size: 1.5rem;
              color: #283b3c;
            }

            .original-price {
              font-size: 14px;
              font-weight: 400;
              line-height: 18px;
              color: #819596;
              margin-left: 8px;
              margin-top: 2px;
              text-decoration: line-through;
            }

            .recurring {
              align-self: flex-end;
              font-size: 14px;
              font-weight: 400;
              line-height: 18px;
              color: #819596;
              margin-bottom: 6px;
              margin-left: 2px;
            }

            .enrolled {
              width: max-content;
              background: #00b61d1a;
              border-radius: 4px;
              padding: 4px 12px;
              color: #00b61d;
              font-size: 14px;
              font-weight: 700;
              line-height: 20px;
              text-transform: capitalize;
            }
          }
        }

        .course-meta__content-bottom {
          a,
          input[type='submit'] {
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border: none;
            text-align: center;
            width: 100%;
            height: 40px;
            padding: 0.5em 1em;
            border-radius: 0.25em;
            background: #f75d25;
            font-weight: 600;
            font-size: 0.875rem;
            color: #fff;
            transition: all 0.3s ease;

            &:hover {
              background: hsl(16, 93%, 56%, 0.8);
            }
          }

          .eb_join_button {
            margin: 0;

            & > div {
              margin: 0 !important;
            }
          }
        }
      }
    }
  }

  .eb-course-desc__content {
    display: grid;
    gap: 1.5em;

    .eb-course-desc__content-title {
      font-weight: 700;
      font-size: 1.5rem;
      line-height: 2rem;
      color: #283b3c;
      margin-bottom: 0 !important;
    }
  }

  .eb-course-desc__recom-courses-wrapper {
    display: grid;
    gap: 1.5em;

    .recom-courses-title {
      font-weight: 700;
      font-size: 1.5rem;
      line-height: 2rem;
      color: #283b3c;
    }

    .recom-courses {
      display: grid;
      gap: 2em;
      grid-template-columns: repeat(1, 1fr);
    }

    .eb-courses__course-anchor {
      text-decoration: none !important;
    }

    .eb-courses__course-anchor:focus,
    .eb-courses__course-anchor:focus-within {
      outline: none;
    }

    .eb-courses__course-card {
      display: flex;
      flex-direction: column;
      width: 100%;
      height: 100%;
      border: 1px solid #dbdbdb;
      border-radius: 8px;
      overflow: hidden;

      .course-thumbnail-container {
        position: relative;

        .course-thumbnail {
          width: 100%;
          height: 140px;
          object-fit: cover;
        }

        .course-category {
          position: absolute;
          left: 14px;
          top: 100%;
          transform: translateY(-50%);
          width: max-content;
          display: flex;
          align-items: center;
          gap: 4px;
          padding: 4px 8px;
          background: #f8fbfc;
          border: 1px solid #d6eaeb;
          border-radius: 4px;
          height: 24px;
          font-size: 12px;
          line-height: 16px;
          font-weight: 400;
          color: #819596;

          svg {
            width: 16px;
            height: 16px;
            color: #abbebe;
          }
        }
      }

      .course-meta {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }

      .course-content {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 24px 16px;

        .course-title {
          font-size: 16px;
          font-weight: 600;
          line-height: 22px;
          color: #283b3c;
          transition: all 0.1s ease-in-out;
        }

        .course-excerpt {
          font-size: 14px;
          font-weight: 400;
          line-height: 18px;
          color: #819596;
          overflow: hidden;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          line-clamp: 2;
          -webkit-line-clamp: 2;
        }
      }

      .course-details {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        border-top: 1px solid #dbdbdb;
        height: 64px;

        .course-price {
          font-size: 24px;
          font-weight: 600;
          line-height: 32px;
          color: #283b3c;
          display: flex;
          align-items: center;

          .original-price {
            font-size: 14px;
            font-weight: 400;
            line-height: 18px;
            color: #819596;
            margin-left: 8px;
            margin-top: 2px;
            text-decoration: line-through;
          }

          .recurring {
            align-self: flex-end;
            font-size: 14px;
            font-weight: 400;
            line-height: 18px;
            color: #819596;
            margin-bottom: 6px;
            margin-left: 2px;
          }

          .enrolled {
            width: max-content;
            background: #00b61d1a;
            border-radius: 4px;
            padding: 4px 12px;
            color: #00b61d;
            font-size: 14px;
            font-weight: 700;
            line-height: 20px;
          }

          .suspended {
            width: max-content;
            background: #dd14051a;
            border-radius: 4px;
            padding: 4px 12px;
            color: #dd1405;
            font-size: 14px;
            font-weight: 700;
            line-height: 20px;
            text-transform: capitalize;
          }
        }

        .btn {
          font-size: 14px;
          font-weight: 600;
          line-height: 18px;
          text-decoration: none;
          color: #f75d25;

          &:hover {
            text-decoration: underline;
          }
        }
      }

      &:hover {
        .course-title {
          color: #f75d25;
        }
      }
    }
  }

  @media (min-width: 768px) {
    .eb-course-desc__wrapper {
      padding: 1.5em 2em 2em;
    }

    .eb-course-desc__details {
      .eb-course-desc__course-image {
        max-height: 400px;
      }
    }

    .eb-course-desc__recom-courses-wrapper {
      .recom-courses {
        grid-template-columns: repeat(2, 1fr);
      }
    }
  }

  @media (min-width: 1024px) {
    .eb-course-desc__wrapper {
      padding: 1.75em 2.5em 3em;
    }

    .eb-course-desc__details {
      grid-template-columns: repeat(3, 1fr);

      .eb-course-desc__course-image {
        max-height: 350px;
        grid-column: 1 / 3;
      }
    }

    .eb-course-desc__recom-courses-wrapper {
      .recom-courses {
        grid-template-columns: repeat(3, 1fr);
      }
    }
  }

  // Mantine Skeleton
  .mantine-Skeleton-root {
    --mantine-scale: 1;
    height: var(--skeleton-height, auto);
    width: var(--skeleton-width, 100%);
    border-radius: 4px;
    position: relative;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);

    &:where([data-animate])::after {
      animation: skeleton-fade 1500ms linear infinite;
    }

    &:where([data-visible]) {
      overflow: hidden;

      &::before {
        position: absolute;
        content: '';
        inset: 0;
        z-index: 10;
        background-color: #fff !important;
      }

      &::after {
        position: absolute;
        content: '';
        inset: 0;
        z-index: 11;
        background-color: #dee2e6 !important;
      }
    }
  }

  @keyframes skeleton-fade {
    0%,
    100% {
      opacity: 0.4;
    }

    50% {
      opacity: 1;
    }
  }
}
