.courses-cont::part(inner-container) {
  margin-bottom: 72px;
}
.courses-cont helix-core-header ::part(heading) {
  font-family: "Noto Sans", sans-serif;
  font-weight: 300;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -1px;
  color: #292929;
  margin: 72px 0 56px;
}

/* Search and sort controls */
.courses-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 56px;
  width: 100%;
  max-width: 900px;
}
.courses-controls__search-row,
.courses-controls__sort-filter-btn-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.courses-controls__sort-filter-btn-wrap > p {
  margin: 0;
}
.courses-controls__search-row {
  flex: 1;
  position: relative;
}
.courses-controls__search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 524px;
}
.courses-controls__search {
  width: 100%;
  padding: 12px 32px 12px 12px;
  border: 2px solid #999999;
  border-radius: 12px;
  outline: none;
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.25px;
  color: #292929;
}
.courses-controls__clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #6d6d6d;
  cursor: pointer;
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 24px;
  letter-spacing: 0.25px;
  padding: 0;
}
.courses-controls__button {
  background: #fff;
  color: #0000c9;
  border: 2px solid #0000c9;
  border-radius: 32px;
  padding: 12px 24px;
  cursor: pointer;
  font-family: "Noto Sans", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.5px;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.courses-controls__filter-btn {
  display: none;
}
.courses-controls__button:hover {
  background: #0000c9;
  color: #fff;
}
.courses-controls__sort-btn {
  position: relative;
  padding-right: 48px;
}
.courses-controls__sort-btn:after {
  content: "";
  position: absolute;
  top: calc(50% - 2px);
  right: 20px;
  width: 11.18px;
  height: 6.59px;
  background: url("/images/26395f1fb02454e4de5bf7f4c84f63dc.png") no-repeat center center;
  transition: 0.3s all;
}
.courses-controls__sort-btn:hover:after {
  filter: invert(1);
}

/* Sort dropdown styles */
.courses-sort-dropdown,
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  background: #fff;
  border: 1px solid #c1c7cd;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  min-width: 220px;
  margin-top: 8px;
  padding: 0;
}
.search-results.d-none {
  display: none;
}
.courses-sort-dropdown ul,
.search-results .search-result-container {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
}
.courses-sort-dropdown li,
.search-results__item {
  padding: 12px 20px;
  cursor: pointer;
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  color: #292929;
  transition: background 0.2s, color 0.2s;
}
.search-results__item:not(:last-child) {
  border-bottom: 1px solid #e3e3ed;
}
.search-results__item a {
  text-decoration: none;
}
.search-results__item .course-card__title {
  margin: 0;
}
.courses-sort-dropdown li:hover,
.courses-sort-dropdown li:focus,
.search-results__item:not(.no-result):hover,
.search-results__item:not(.no-result):focus {
  background: #f1efff;
  color: #0047bb;
}
.courses-controls__sort-filter-btn-wrap {
  position: relative;
}

/* Filter sidebar styles */
.courses-sec {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.courses-filter {
  width: 20%;
  background: #f1efff;
  padding: 26px 20px;
  height: max-content;
}
.courses-filter__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Noto Sans", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.25px;
  margin-bottom: 20px;
  color: #292929;
}
.courses-filter__close {
  background: none;
  border: none;
  font-size: 20px;
  color: #6d6d6d;
  cursor: pointer;
  display: none;
}
.courses-filter__group {
  margin-bottom: 20px;
}
.courses-filter__label {
  margin-bottom: 20px;
  display: block;
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 0.25px;
  color: #292929;
}
.courses-filter__group label {
  position: relative;
}
.courses-filter__group label:before {
  width: 11px;
  content: "";
  height: 11px;
  background: #6c40d5;
  position: absolute;
  top: 6px;
  left: 5px;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}
.courses-filter label {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.25px;
  color: #292929;
}
.courses-filter input[type="checkbox"] {
  accent-color: #0000c9;
  margin-right: 7px;
}
.courses-filter hr {
  border: none;
  border-top: 1px solid #c9c9c9;
  margin: 20px 0;
}

/* Card grid layout */
.cards-cont {
  display: flex;
  flex-wrap: wrap;
  width: calc(80% - 16px);
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 16px;
  margin: 0 0 24px;
  align-items: flex-start;
  width: 100%;
  align-content: flex-start;
}
.courses-grid.no-data-parent {
  grid-template-columns: repeat(1, 1fr);
  text-align: center;
  align-items: center;
}

/* Card container */
.course-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0px 4px 4px -2px #18274b1f;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  border: none;
  position: relative;
  padding-bottom: 78px;
  height: 100%;
}
.course-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Image wrapper for badge/bookmark */
.course-card__img-wrap {
  position: relative;
  width: 100%;
  height: 208px;
  background-color: #f1efff;
}

/* Card image */
.course-card__img {
  width: 100%;
  height: 208px;
  object-fit: cover;
  background: #f6f6f6;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

/* Badge */
.course-card__badge {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 16px;
  background: #ffc043;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: capitalize;
}
.training-badge {
  background: #7f7fe4;
}
.certification-badge {
  background: #0095ff;
}

/* Bookmark button */
.course-card__bookmark {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  padding: 0;
}
.course-card__bookmark--active {
  border: 2px solid transparent;
  background: #fff;
}
.bookmark-icon {
  display: block;
  width: 14px;
  height: 18px;
}
.course-card__bookmark--active .bookmark-icon {
  fill: #0000c9;
}
/* Card body */
.course-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.course-card__body a {
  text-decoration: none;
}

/* Meta (duration) */
.course-card__meta {
  font-size: 1rem;
  color: #888;
  margin-bottom: 8px;
}

/* Tags */
.course-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Tag pill */
.course-card__tag {
  background: #cceaff;
  color: #00004e;
  padding: 8px 16px;
  border-radius: 18px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Title */
.course-card__title {
  margin: 0;
  color: #383838;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.25px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Description */
.course-card__desc {
  color: #383838;
  margin: -8px 0 0;
  flex: 1;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.25px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Action button */
.course-card__action {
  background: #0000c9;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 40px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.25px;
  text-align: center;
  margin-bottom: 13px;
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
}
.course-card__action:hover {
  background: #001bb5;
}

/* Pagination styles */
.courses-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1.1rem;
  user-select: none;
  width: 100%;
}
.courses-pagination__arrow {
  color: #a1aab1;
  cursor: pointer;
  padding: 0 6px;
  font-size: 30px;
  line-height: 20px;
  transition: color 0.2s;
  margin-right: -8px;
  margin-bottom: 3px;
}
.courses-pagination__page {
  color: #383838;
  background: none;
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.25px;
  text-align: center;
  margin-left: 8px;
}
.courses-pagination__page--active {
  color: #0000c9;
  font-weight: 700;
  vertical-align: middle;
}
.courses-pagination__dots {
  color: #383838;
  padding: 0 12px 0 20px;
}
.course-card__body-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.course-card__duration {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.5px;
  color: #383838;
}

/* Horizontal cards container */
.horizontal-cards-cont {
  padding: 60px 0 78px;
  border-width: 1px 0px 1px 0px;
  border-style: solid;
  border-color: #000000;
  background: #f6f6f6;
}
.horizontal-cards-cont > helix-core-grid helix-core-header ::part(heading) {
  font-family: "Noto Sans", sans-serif;
  font-weight: 300;
  font-size: 48px;
  line-height: 120%;
  letter-spacing: 0;
  color: #000000;
  margin-bottom: 40px;
}
.horizontal-cards-cont
  > helix-core-grid
  .helix-core-content:not(.helix-core-content__paragraph--unstyled)
  p {
  font-family: "Noto Sans", sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0;
  margin-bottom: 40px;
  color: #000;
}

/* Horizontal scrollable grid for horizontal-cards-div */
.horizontal-cards-div {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: 1fr;
  grid-auto-columns: minmax(298px, 1fr);
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 40px;
  scrollbar-color: #c1c7cd #e3e3ed;
  scrollbar-width: thin;
  max-width: calc(4 * 298px + 3 * 40px); /* 4 cards + 3 gaps */
}
.horizontal-cards-div > .course-card {
  scroll-snap-align: start;
}
.open-view-badges {
  cursor: pointer;
}

/* Custom horizontal scrollbar for horizontal-cards-div */
.horizontal-cards-div::-webkit-scrollbar {
  height: 8px;
  background: #e3e3ed;
  border-radius: 4px;
}
.horizontal-cards-div::-webkit-scrollbar-thumb {
  background: #c1c7cd;
  border-radius: 4px;
}
.horizontal-cards-div::-webkit-scrollbar-thumb:hover {
  background: #c1c7cd;
}
.horizontal-cards-div::-webkit-scrollbar-button:single-button {
  display: none;
  width: 0;
  height: 0;
}
.horizontal-cards-div::-webkit-scrollbar-corner {
  background: transparent;
}
.horizontal-cards .course-card__badge,
.viewmore-cont .course-card__badge {
  background: #f6f6f6;
  color: #0000c9;
}

/* View More Cards section */
.viewmore-cont::part(inner-container) {
  padding-bottom: 72px;
}
.viewmore-cont helix-core-header ::part(heading) {
  font-family: "Noto Sans", sans-serif;
  font-weight: 300;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -1px;
  margin: 72px 0;
}
.viewmore-cards-div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(326px, 1fr));
  gap: 30px 40px;
  margin-bottom: 48px;
}
.viewmore-cards-div.no-margin {
  margin-bottom: 0;
}
.viewmore-cards-div.no-data-parent {
  grid-template-columns: repeat(1, minmax(326px, 1fr));
}
.viewmore-cont .viewmore-btn {
  display: block;
  margin: 0 auto;
  padding: 12px 24px;
  border: 2px solid #0000c9;
  border-radius: 32px;
  background: #fff;
  color: #0000c9;
  font-family: "Noto Sans", sans-serif;
  font-weight: 500;
  font-style: Medium;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.5px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.viewmore-cont .viewmore-btn:hover,
.viewmore-cont .viewmore-btn:focus {
  background: #0000c9;
  color: #fff;
}
@media (max-width: 1023px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fill, minmax(267px, 1fr));
  }
  .courses-grid.no-data-parent {
    grid-template-columns: repeat(1, 1fr);
  }
  .courses-filter,
  .cards-cont {
    width: 100%;
  }
  .courses-filter__close {
    display: block;
  }
}
/* Responsive styles */
@media (max-width: 767px) {
  body:has(.courses-sec.filter-visible) {
    overflow: hidden;
  }
  .courses-filter__group label:before {
    position: relative;
    top: 0;
    left: 16px;
    display: inline-block;
  }
  .courses-cont helix-core-header ::part(heading) {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.67px;
    margin: 24px 0 48px;
  }
  .courses-controls {
    margin: 0 0 32px;
    flex-direction: column;
    padding: 0 16px;
  }
  .courses-controls__search-row {
    gap: 0;
    width: 100%;
  }
  .courses-controls__search-wrap {
    max-width: unset;
  }
  .course-card__action {
    left: 24px;
    right: 24px;
  }
  .course-card__body {
    padding-left: 24px;
    padding-right: 24px;
  }
  .courses-controls__search-wrap::before {
    content: "";
    position: absolute;
    left: 15px;
    width: 18px;
    height: 18px;
    background: url("/images/49f2f4b2653d9068a9d1c287bb774d1e.png")
      no-repeat center;
    background-size: cover;
  }
  .courses-controls__search {
    padding-left: 40px;
    border-radius: 32px 0 0 32px;
    border-right: none;
  }
  .courses-controls__sort-btn:after {
    right: 14px;
  }
  .courses-controls__search-btn {
    border-radius: 0 32px 32px 0;
    border-color: #999999;
    color: #383838;
  }
  .courses-controls__sort-filter-btn-wrap {
    width: 100%;
  }
  .courses-controls__sort-filter-btn-wrap > button {
    flex: 1;
    padding: 8px 24px;
  }
  .courses-controls__sort-filter-btn-wrap .courses-controls__sort-btn {
    padding: 8px 30px 8px 20px;
  }
  .courses-controls__filter-btn {
    display: block;
  }
  .courses-filter {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;
    max-width: unset;
    max-height: 100vh;
    overflow-y: auto;
  }
  .courses-pagination__dots {
    padding: 0 6px 0 12px;
  }
  .courses-cont::part(inner-container) {
    margin-bottom: 24px;
  }
  .horizontal-cards-cont {
    padding: 48px 0;
  }
  .horizontal-cards-cont > helix-core-grid helix-core-header ::part(heading) {
    margin-bottom: 16px;
    font-size: 32px;
    line-height: 48px;
    letter-spacing: -0.83px;
    color: #292929;
  }
  .horizontal-cards-cont
    > helix-core-grid
    .helix-core-content:not(.helix-core-content__paragraph--unstyled)
    p {
    margin-bottom: 24px;
    font-size: 16px;
    letter-spacing: 0;
  }
  .horizontal-cards-div {
    grid-auto-columns: minmax(90vw, 1fr);
    max-width: 100vw;
    gap: 14px;
    padding-bottom: 24px;
  }
  .viewmore-cont .horizontal-cards-div {
    margin-bottom: 32px;
  }
}

.profile-cont helix-core-heading p {
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.25px;
  margin: 0;
  color: #292929;
}

.details-cont helix-core-heading p {
  font-weight: 500;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: 0.25px;
  margin: 0;
  color: #292929;
}

.badges-modal.d-none {
  display: none;
}
.badges-modal .badges-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.badges-modal-content {
  max-width: 830px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0px 5.82px 11.64px -4.37px #18274B14;
  border-radius: 11.64px;
  padding: 40px 18px 26px;
  background-color: #fff;
  position: relative;
}
.badges-modal-header {
  padding-bottom: 13px;
  border-bottom: 1px solid #BEBEBE
}
.badges-modal-header h2 {
  font-weight: 300;
  font-style: Light;
  font-size: 32px;
  line-height: 29.1px;
  letter-spacing: 0.18px;
  color: #000;
  margin-bottom: 8px;
}
.badges-modal-header .badges-modal-close {
  color: #6F6F6F;
  background-color: unset;
  border: none;
  font-size: 28px;
  position: absolute;
  top: 17.5px;
  right: 17.5px;
  cursor: pointer;
}
.badges-modal-body {
  margin-top: 17.5px
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 17.5px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.badge-icon {
  width: 100px;
}
.badge-icon img {
  width: 100%;
  height: auto;
}
.badge-details {
  width: calc(100% - 298px);
}
.badge-details h3 {
  font-weight: 500;
  font-style: Medium;
  font-size: 20px;
  line-height: 20.37px;
  letter-spacing: 0.18px;
  vertical-align: middle;
  color: #383838;
  margin: 8px 0;
}
.badge-details p {
  font-weight: 400;
  font-size: 16px;
  line-height: 20.37px;
  letter-spacing: 0.18px;
  color: #383838;
  margin: 0;
}
.badge-action button {
  width: 160px;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.25px;
  text-align: center;
  color: #0000C9;
  border: 1px solid #0000C9;
  border-radius: 32px;
  background-color: #fff;
  padding: 12px 20px;
  cursor: pointer;
}
@media (max-width: 767px) {
  .badges-modal-content {
    padding: 32px 18px 18px;
  }
  .badges-modal-header h2 {
    font-size: 26px;
    line-height: 29.1px;
  }
  .badge-item {
    gap: 16px;
    padding: 8px 0;
  }
  .badge-icon {
    width: 80px;
  }
  .badge-details {
    width: calc(100% - 238px);
  }
  .badge-details h3 {
    font-size: 18px;
  }
  .badge-action button {
    width: 120px;
    padding: 12px;
  }
}

/* GRV restricted page error */
.grv-restricted-access-page h1 {
  max-width: 75rem;
  margin: 50px auto;
  padding-left: var(--helix-core-footer-lg-padding-left-property, calc(var(--helix-core-spacing-multiplier) * 8));
  padding-right: var(--helix-core-footer-lg-padding-right-property, calc(var(--helix-core-spacing-multiplier) * 8));
}

.viewmore-cont helix-core-header,
.viewmore-cont helix-core-heading,
.courses-cont helix-core-header,
.courses-cont helix-core-heading,
.horizontal-cards-cont helix-core-heading {
  --subtheme-mid: #292929;
}

::placeholder {
  color: #292929;
  opacity: 1; /* Firefox */
}

::-ms-input-placeholder { /* Edge 12 -18 */
  color: #292929;
}

.learning-journey > .content-sec p {
  font-weight: 700;
}

.helix-core-menu__toggle button {
  border: 1px solid #0000C9;
  border-radius: 32px;
  padding: 5px 2px 5px 12px;
}

.helix-core-menu__toggle-icon {
  margin-left: 15px;
}

.courses-controls input[type="text"] {
  color: #292929;
}

.course-actions button {
  min-width: 200px;
}

@media (max-width: 767px) {
  .details-cont > helix-core-grid.point-badge-grid::part(grid) {
    flex-wrap: wrap;
    gap: 24px 40px;
  }

  .details-cont > helix-core-grid.point-badge-grid helix-core-grid-item {
    width: calc(50% - 20px);
  }

  .viewmore-cont helix-core-grid-item,
  .courses-cont helix-core-grid-item {
    width: 100%;
    text-align: center;
  }

  .viewmore-cont helix-core-header ::part(heading) {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.67px;
    margin: 24px 0 48px;
  }
}
