/* override footer margin*/
.mtpc_footer.mtpc_build_standard {
  margin-top: 0;
}

/* Dedicated layout and visual styling for the CLE course node template clone.
   Catalogue list rows use templates/partials/cle-course-row.html.twig (cle-course-row.css). */
.cle-course-page {
  color: var(--cle-primary);
  margin: 0;
  padding: 0;
}

.cle-course-page-header {
  padding: clamp(1.15rem, 2.2vw, 1.8rem) clamp(1rem, 3.2vw, 2rem);
  padding-bottom: 0;
  background: #ffffff;
}

.cle-course-page-header__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.cle-course-page-header__inner .title {
  margin-bottom: 1rem;
}

.cle-course-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.cle-course-page .cle-course-meta-tags a {
  padding: 0;
  background-image: none;
}

.cle-course-meta-tags__icon-wrapper {
  display: inline-flex;
  margin-right: 4px;
}

.cle-course-meta-tags__icon-wrapper svg {
  width: 15px;
  height: 15px;
}

.cle-course-meta-tags__item {
  display: flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--cle-secondary-light);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 0px;
}

.cle-course-meta-tags__item:hover {
  background: var(--cle-secondary);
}

.cle-course-main {
  min-width: 0;
  display: block;
  font-size: 16px;
}

.cle-course-section {
  margin: 0;
  padding: clamp(1.2rem, calc(5.333px + 3.333vw), 3rem) clamp(1rem, 3.2vw, 2rem);
  scroll-margin-top: 120px;
}

.cle-course-section__container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: clamp(0.50rem, calc(0.136rem + 1.818vw), 1.50rem);
}

.cle-course-section:nth-of-type(odd) {
  background: #ffffff;
  color: #000000;
}

.cle-course-section:nth-of-type(odd) .cle-course-section__title,
.cle-course-section:nth-of-type(odd) .cle-course-section__icon-wrapper {
  color: var(--cle-primary);
}

.cle-course-section:nth-of-type(even) .cle-course-section__title,
.cle-course-section:nth-of-type(even) .cle-course-section__icon-wrapper {
  color: var(--cle-secondary-light);
}

.cle-course-section__icon-wrapper {
  margin-top: 0.25rem
}

.cle-course-section__icon-wrapper>svg {
  width: clamp(1.3rem, 2.6vw, 1.9rem);
  height: clamp(1.3rem, 2.6vw, 1.9rem);
}

.cle-course-section__title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  padding-left: 0;
  border-left: none;
}

.cle-course-section__title-icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}

.cle-course-section:nth-of-type(even) {
  background: var(--cle-primary);
  color: #ffffff;
}

.cle-course-section:nth-of-type(even) h2,
.cle-course-section:nth-of-type(even) h3,
.cle-course-section:nth-of-type(even) h4,
.cle-course-section:nth-of-type(even) p,
.cle-course-section:nth-of-type(even) li,
.cle-course-section:nth-of-type(even) strong,
.cle-course-section:nth-of-type(even) em,
.cle-course-section:nth-of-type(even) a {
  color: #ffffff;
}

.cle-course-section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.2;
}

.cle-course-section h3 {
  margin: 1.15rem 0 0.55rem;
  font-size: 1.05rem;
}

.cle-course-section h4 {
  margin: 1.15rem 0 0.55rem;
  font-size: 1rem;
}

.cle-course-section p {
  margin: 0;
  line-height: 1.7;
}

.cle-course-section p+p {
  margin-top: 0.7rem;
}

.cle-course-section.cle-course-section--syllabus {
  background: #f1eadc
}

.cle-course-section--syllabus .cle-course-section__container {
  flex-direction: column;
  align-items: center;
}

.cle-course-section--syllabus .cle-course-section__container .cle-course-section__title {
  color: var(--cle-secondary);
  margin-bottom: 0;
}

.cle-course-section--syllabus .cle-course-section__container p {
  color: #000000de;
}

.cle-course-section--syllabus .cle-course-section__container .cle-course-button {
  display: inline-flex;
  background: var(--cle-secondary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  padding: 13px 34px;
  border-radius: 4px;
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}

.cle-course-section--syllabus .cle-course-section__container .cle-course-button::after {
  content: " \2192";
  display: inline-block;
  transition: transform .3s ease;
}

.cle-course-section--syllabus .cle-course-section__container .cle-course-button:hover {
  background-color: color-mix(in oklab, var(--cle-secondary) 90%, transparent);
  text-decoration: none;
  transform: translateY(-2px);
}

.cle-course-section--syllabus .cle-course-section__container .cle-course-button:hover::after {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .cle-course-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cle-course-page-header {
    padding: 1rem;
  }

  .cle-course-section {
    padding: 1rem;
  }
}

/* —— Responsive layout adjustments for the course page —— */
@media (min-width: 1081px) and (max-width: 1344px) {
  .cle-course-section__container {
    max-width: calc(100% - 188px);
    margin: 0 188px 0 auto;
  }
}

@media (min-width: 1345px) and (max-width: 1600px) {
  .cle-course-section__container {
    max-width: calc(50% + 452px);
    margin: 0 188px 0 auto;
  }
}

/* hide default breadcrumb */
#block-cle-mtpc-breadcrumbs {
  display: none;
}


/* breadcrumbs */
.cle-course-page__breadcrumb {
  max-width: 1280px;
  margin: 20px auto;
  text-align: right;
}

.cle-course-page__breadcrumb-inner {
  margin-bottom: 0;
  margin-right: 8px;
}

.cle-course-page__breadcrumb-inner ol li {
  color: #0085b2;
  font-size: 13px;
  font-weight: unset;
  display: inline;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.cle-course-page__breadcrumb-inner ol li a {
  color: #0085b2;
}

.cle-course-page__breadcrumb-inner ol li:before {
  content: '/';
  padding: 0 5px;
}

.cle-course-page__breadcrumb-inner ol li:first-of-type:before {
  content: '';
}

@media (max-width: 767px) {
  .cle-course-page__breadcrumb {
    display: none;
  }
}