.content__sidebar .block-lms-custom-course-navigation {
  min-width: 350px;
  border-radius: 1.2rem;
    background-color: #ffffff;
    box-shadow: 0.2rem 0.4rem 1rem 0 rgba(174, 181, 184, 0.4);
    margin: 1rem 0 0;
}

.content__sidebar .block-lms-custom-course-navigation > ul {
  padding: 8px 20px;
}

.lms-menu-item {
  display: block;
}

.course-nav-wrapper li::before,
.lms-menu-item:after,
.lms-menu-item.depth-2::before,
.lms-menu-item.depth-3::before,
.lms-menu-item:not(.depth-2):not(.depth-3) a::before,
.lms-menu-item.depth-2.complete::before,
.lms-menu-item.depth-3.complete::before,
.lms-menu-item.complete:not(.depth-2):not(.depth-3) a::before,
.lms-menu-item.lms_video.not-complete:not(.depth-2):not(.depth-3) a::before,
.lms-menu-item.not-module.lms_page.not-complete:not(.depth-2):not(.depth-3) a::before,
.lms-menu-item.lms_interactive_page.not-complete:not(.depth-2):not(.depth-3) a::before,
.lms-menu-item.module a::after {
  font: normal normal normal 14px/1 'Font Awesome 6 Pro';
}

.lms-menu-item.depth-2::before {
  font: normal normal normal 15px/1 'Font Awesome 6 Pro';
  margin-top: 7px;
}

.course-nav-wrapper li::before {
  content: '\f336';
}

.lms-menu-item a {
  display: inline-block;
  width: 92%;
}

.lms-menu-item:after {
  margin-left: 2px;
}

.content__sidebar .lms-menu-item.depth-2::before,
.content__sidebar .lms-menu-item.depth-3::before,
.content__sidebar .lms-menu-item:not(.depth-2):not(.depth-3) a::before {
  content: '\f058';
  display: inline-block;
  vertical-align: top;
}

.content__sidebar ul.lms-menu .lms-menu-item:not(.depth-2):not(.depth-3) a::before {
  content: none;
}

.lms-menu-item:not(.depth-2):not(.depth-3) a::before {
  position: absolute;
  left: -20px;
  top: 5px;
}

.content__sidebar .lms-menu-item.depth-2.complete::before,
.content__sidebar .lms-menu-item.depth-3.complete::before,
.content__sidebar .lms-menu-item.complete:not(.depth-2):not(.depth-3) a::before {
  color: #428533;
  font-weight: 900 !important;
}

.lms-menu-item.lms_video.not-complete:not(.depth-2):not(.depth-3) a::before {
  content: '\f144';
}

.lms-menu-item.not-module.lms_page.not-complete:not(.depth-2):not(.depth-3) a::before {
  content: '\e0ff';
}

.lms-menu-item.lms_interactive_page.not-complete:not(.depth-2):not(.depth-3) a::before {
  content: '\f059';
}

.lms-menu-item.module {
  margin: 0;
  padding: .5rem;
}


.lms-menu-item.module ul {
  padding-left: 25px;
}

.lms-menu-item.depth-3 {
  position: relative;
  padding: 2px 0;
}

.content__sidebar .lms-menu-item.depth-3 {
  cursor: pointer;
}

.content__sidebar .lms-menu-item.depth-3::before {
  margin-top: 5px;
}

.content__sidebar .lms-menu-item.depth-3::after {
  content: "";
  position: absolute;
  left: -40px;
  right: 0;
  bottom: -5px;
  height: 1px;
  background-color: #d4d4d4;
}

.lms-menu-item.depth-3:last-child::after {
  background-color: transparent;
}


.page-node-type-lms-course .content__sidebar .lms-menu-item.module ul {
  display: none;
}

.page-node-type-lms-course .content__sidebar .lms-menu-item.module:last-child {
  border-bottom: none;
}

.lms-menu-item.module .depth-3 ul {
  padding: 0 18px;
  background-color: white;
  height: 0;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
}

.lms-menu-item.module ul.lms-show {
  display: block;
  height: auto;
}

.content__sidebar .lms-menu-item.module .depth-3 > a {
  pointer-events: none;
  cursor: pointer;
  text-decoration: none;
  color: #1B2B34;
  position: relative;
  font-weight: bold;
  padding-right: 30px;
}

.lms-menu-item.module > a,
.lms-menu-item.module a.active-course {
  font-weight: bold;
  padding-left: 5px;
}

.lms-menu-item.module a.active-course {
  color: #01579B;
  padding-left: 0;
}

.lms-menu-item.module.depth-2 > a {
  font-size: 18px;
}

.lms-menu-item.module.depth-2 > a.active-course {
  padding-left: 5px;
}

 .lms-menu-item.module .depth-3 > a.has-children::after, .course--menu .depth-2 > a::after {
  content: '\2b';
  position: absolute;
  top: 50%; /* Move 50% down */
  transform: translateY(-50%); /* Adjust only the vertical axis */
  right: 0;
  font-weight: 700;
}

.course--menu .depth-2 > a::after {
  font-size: 24px;
  color: #01579b;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  display: var(--fa-display, inline-block);
  font-variant: normal;
  text-rendering: auto;
  font-style: normal;
  line-height: 1;
  top: 50%;
}

.lms-menu-item.module .depth-3.active > a.has-children::after, .course--menu .depth-2.open > a::after {
  content: '\f068';
}

.lms-menu-item.not-module a {
  pointer-events: bounding-box;
  cursor: pointer;
  color: #1B2B34;
  display: block;
  position: relative;
}

.lms-menu-item.not-module a::after {
  content: none;
}

.course--menu #block-nitaac-lmscustomcoursenavigation > ul {
  padding-left: 0;
}

.course--menu .lms-menu-item.module, .course--menu .lms-menu-item.module:last-child {
  border: 1px solid #bdbfc2;
}

.course--menu .lms-menu-item.module {
  border-bottom: none;
  padding: 20px;
}

.course--menu .lms-menu-item.module > a {
  position: relative;
  cursor: pointer;
  width: 100%;
  padding-right: 30px;
}

.course--menu a {
  color: #1b2b34;

}

.course--menu a:hover {
  text-decoration: none;
  color: #1b2b34;
}

@media all and (min-width: 1024px) {
  .page-node-type-lms-interactive-page .content__sidebar, .page-node-type-lms-video .content__sidebar {
    flex-basis: 32%;
    position: -webkit-sticky;
    position: sticky;
    top: 70px;
    align-self: flex-start;
  }

 .lms-user-admin .page-node-type-lms-interactive-page .content__sidebar, .page-node-type-lms-video .content__sidebar {
    top: 145px;
  }
}

.w3-border {
  background-color: #D8D9DA;
  height: 8px;
  margin: 0.9rem 2rem 0rem 0;
  width: 20rem;
}

.course-percentage--bar.w3-border {
  width: 97%;
  border-radius: 10px;
}
.w3-grey {
  height: 8px;
  width: 1%;
  background-color: #428533;
}

.card__article--percentage {
  font-family: Roboto;
  font-weight: 700;
  color: #000;
}
.card__article--body {
  padding: 1rem 1.6rem 0;
  font-family: Roboto;
  color: #000;
}
.card__article--body p {
  margin: 0;
}
.completion--container {
  padding: 1rem 1.6rem;
  display: flex;
}

.completion--container.completed {
  background-color: #E1F2D9;
}
.completed .card__article--percentage {
  display: flex;
  font-weight: normal;
}
.completed .card__article--percentage:before {
  content: '\f058';
  font: normal normal normal 14px/1 'Font Awesome 6 Pro';
  font-weight: 700;
  color: #428533;
  padding: 0.5rem;
}

.course-complete .w3-border {
  width: 0;
}
.percentage--1 .w3-grey, .percentage--2 .w3-grey {
  width: 1%;
}
.percentage--3 .w3-grey, .percentage--4 .w3-grey,
.percentage--5 .w3-grey {
  width: 5%;
}
.percentage--6 .w3-grey, .percentage--7 .w3-grey, .percentage--8 .w3-grey, .percentage--9 .w3-grey,
.percentage--11 .w3-grey, .percentage--12 .w3-grey, .percentage--13 .w3-grey, .percentage--14 .w3-grey, .percentage--10 .w3-grey {
  width: 10%;
}
.percentage--15 .w3-grey, .percentage--16 .w3-grey, .percentage--17 .w3-grey, .percentage--18 .w3-grey, .percentage--19 .w3-grey,
.percentage--20 .w3-grey {
  width: 20%;
}
.percentage--21 .w3-grey, .percentage--22 .w3-grey, .percentage--23 .w3-grey, .percentage--24 .w3-grey,
.percentage--25 .w3-grey, .percentage--26 .w3-grey, .percentage--27 .w3-grey, .percentage--28 .w3-grey, .percentage--29 .w3-grey,
.percentage--30 .w3-grey,
.percentage--31 .w3-grey, .percentage--32 .w3-grey, .percentage--33 .w3-grey {
  width: 30%;
}
.percentage--34 .w3-grey,
.percentage--41 .w3-grey, .percentage--42 .w3-grey, .percentage--43 .w3-grey, .percentage--44 .w3-grey,
.percentage--35 .w3-grey, .percentage--36 .w3-grey, .percentage--37 .w3-grey, .percentage--38 .w3-grey, .percentage--39 .w3-grey,
.percentage--40 .w3-grey {
  width: 40%;
}
.percentage--45 .w3-grey, .percentage--46 .w3-grey, .percentage--47 .w3-grey, .percentage--48 .w3-grey, .percentage--49 .w3-grey,
.percentage--51 .w3-grey, .percentage--52 .w3-grey, .percentage--53 .w3-grey, .percentage--50 .w3-grey {
  width: 50%;
}
.percentage--54 .w3-grey,
.percentage--55 .w3-grey, .percentage--56 .w3-grey, .percentage--57 .w3-grey, .percentage--58 .w3-grey, .percentage--59 .w3-grey,
.percentage--60 .w3-grey {
  width: 60%;
}

.percentage--61 .w3-grey, .percentage--62 .w3-grey, .percentage--63 .w3-grey, .percentage--64 .w3-grey,
.percentage--65 .w3-grey, .percentage--66 .w3-grey, .percentage--67 .w3-grey, .percentage--68 .w3-grey, .percentage--69 .w3-grey,
.percentage--70 .w3-grey {
  width: 70%;
}
.percentage--71 .w3-grey, .percentage--72 .w3-grey, .percentage--73 .w3-grey, .percentage--74 .w3-grey,
.percentage--75 .w3-grey, .percentage--76 .w3-grey, .percentage--77 .w3-grey, .percentage--78 .w3-grey, .percentage--79 .w3-grey,
.percentage--80 .w3-grey {
  width: 80%;
}
.percentage--81 .w3-grey, .percentage--82 .w3-grey, .percentage--83 .w3-grey, .percentage--84 .w3-grey,
.percentage--85 .w3-grey, .percentage--86 .w3-grey, .percentage--87 .w3-grey, .percentage--88 .w3-grey, .percentage--89 .w3-grey,
.percentage--90 .w3-grey {
  width: 90%;
}
.percentage--91 .w3-grey, .percentage--92 .w3-grey, .percentage--93 .w3-grey, .percentage--94 .w3-grey,
.percentage--95 .w3-grey, .percentage--96 .w3-grey, .percentage--97 .w3-grey, .percentage--98 .w3-grey, .percentage--99 .w3-grey,
.percentage--100 .w3-grey {
  width: 100%;
}

.block-custom-course-traversal {
  display: flex; 
  align-items: center;
  overflow: hidden;
  margin: 30px 15px;
}

.block-custom-course-traversal .flag-lms-completed, .block-custom-course-traversal > p {
  text-align: center;
  border: 1px solid #BDBFC2;
  color: #1B2B34;
  size: 18px;
  padding: 8px 14px;
  border-radius: 4px;
}

.block-custom-course-traversal .flag-lms-completed {
  flex-grow: 1; 
  margin-right: 20px;
}

.block-custom-course-traversal .flag-lms-completed a {
  display: inline-block;
  font-size: 18px;
  color: #1B2B34;
  width: 100%; 
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.block-custom-course-traversal .flag-lms-completed a::before {
  content: '\f058';
  font: normal normal normal 16px/1 'Font Awesome 6 Pro';
  padding-right: 5px;
}

.block-custom-course-traversal .flag-lms-completed.action-unflag {
  border: 1px solid #428533;
  background-color: #428533;
}

.block-custom-course-traversal .flag-lms-completed.action-unflag a::before {
  color: #fff;
  font-weight: 900 !important;
}

.block-custom-course-traversal > p {
  background-color: #1B2B34;
  margin: 0;
}

.block-custom-course-traversal > p a {
  display: inline-block;
  font-size: 18px;
  width: 100%; 
  height: 100%;
  color: white;
  text-decoration: none;
}

.block-custom-course-traversal > p a::before {
  content: '\f062';
  font: normal normal normal 16px/1 'Font Awesome 6 Pro';
  color: #fff;
  padding-right: 5px;

}

@media screen and (max-width: 1024px){
  .block-custom-course-traversal {
    margin: 4rem 0;
  }
}
.course-traversal--links h2 {
  display: none;
}
.course-traversal--links ul {
  overflow: hidden;
}

#block-nitaac-lms-course-page-percentage-block {
  border-radius: 0;
  background-color: #F0F2F3;
  box-shadow: none;
  margin: 0 0 1rem;
  overflow: hidden;
}

@media screen and (max-width: 769px) {

  .course-percentage--button {
    padding-left: 2rem;
  }
}

.course-percentage--button a {
  color: #ffffff;
  background-color: #1b2b34;
  border: 0.2rem solid #1b2b34;
  border-radius: 3rem;
  padding: 1rem 15px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: -4px;
}

.course-percentage--button a:visited {
  color: #fff;
}

.course-percentage--button a:hover {
  color: #1b2b34;
  background-color: #fff;
  text-decoration: none;
}

#block-nitaac-lms-course-page-percentage-block .content-contain {
  flex-direction: row;
  display: flex;
  overflow: hidden;
  padding: 3rem 0 1rem;
}

#block-nitaac-lms-course-page-percentage-block .content-contain.complete .course-percentage--bar .w3-grey {
  border-radius: 20px;
}

#block-nitaac-lms-course-page-percentage-block .content-contain.complete .course-percentage--container:before {
  content: '\f058';
  color: #428533;
  font: normal normal normal 100px/1 'Font Awesome 6 Pro';
  font-weight: 300;
  font-size: 4rem;
  float: left;
  margin-right: 19px;
  padding-left: 1rem;
}

.complete .course-percentage--bar.w3-border {
  width: 87%;
  float: left;
}
.complete .course-percentage--value {
  float: left;
}

@media screen and (max-width: 940px) {
  #block-nitaac-lms-course-page-percentage-block .content-contain.complete .course-percentage--container:before {
    content: '';
  }
  .course-percentage--container {
    padding: 0 2rem;
  }
}

@media screen and (max-width: 769px) {
  #block-nitaac-lms-course-page-percentage-block {
    padding: 2rem;
  }
  #block-nitaac-lms-course-page-percentage-block .course-percentage--container {
    width: 100%;
    padding-bottom: 2rem;
  }
  #block-nitaac-lms-course-page-percentage-block .course-percentage--button {
    width: 100%;
  }
  #block-nitaac-lms-course-page-percentage-block .content-contain{
    padding: 0 0 1rem;
    flex-direction: column;
  }
}

.complete .course-percentage--container {
  min-width: 80%;
}

@media screen and (max-width: 1024px) {
  .complete .course-percentage--container {
    min-width: 77%;
  }
}

.course-percentage--container {
  min-width: 100%;
  padding: 0 2rem;
}

.course-percentage--button  {
  min-width: 31%;
}

.course-percentage--value {
  padding: 1rem 0;
  font-weight: 700;
}

.course-percentage--bar .w3-grey {
  border-radius: 20px 0 0 20px;
}

.certificate-share-title {
  margin-top: 3rem;
  margin-bottom: 0;
}

.certificateDownload {
  display: inline-block;
  color: #ffffff;
  background-color: #1b2b34;
  border: 0.3rem solid #1b2b34;
  border-radius: 28px;
  padding: 16px 24px;
  cursor: pointer;
  transition: all .5s;
  margin: 2rem 0 0;
}

.certificateDownload:hover {
  background-color: #fff;
  border: 0.2rem solid #1a2b34;
  color: #1a2b34;
  text-decoration: none;
}

.webform-submission-course-survey-form {
  background-color: #F0F2F3;
  padding: 2rem !important;
  border-radius: 8px;
  counter-reset: survey-question; /* Initialize counter */
}

.webform-submission-course-survey-form h3 {
  margin-bottom: 0;
}

.webform-submission-course-survey-form .form-item {
  margin-top: 0;
  margin-bottom: 16px;
}

.webform-submission-course-survey-form .form-item:not(.form-type-radio).form-item:not(.form-type-checkbox) > label::before, .webform-submission-course-survey-form .form-item > legend::before {
  counter-increment: survey-question;
  content: counter(survey-question) ". ";
  font-weight: bold;
  margin-left: -20px;
}

.webform-submission-course-survey-form .form-item > legend,
.webform-submission-course-survey-form .form-type-select > label, .webform-submission-course-survey-form .form-type-textarea > label {
  font-weight: bold;
  margin-left: 20px;
  display: block;
}

.webform-submission-course-survey-form .form-type-select > label, .webform-submission-course-survey-form .form-type-textarea > label {
  margin-bottom: 10px;
}

.webform-submission-course-survey-form .form-type-processed-text {
  margin-bottom: 0;
}

.webform-submission-course-survey-form .webform-button--submit {
    color: #ffffff;
    background-color: #1b2b34;
    border: 2px solid #1b2b34;
    border-radius: 28px;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.5s;
}

.webform-submission-course-survey-form .webform-button--submit:hover {
  background-color: #ffffff;
  border: 0.2rem solid #1a2b34;
  color: #1a2b34;
}

.node--type-lms-certificate .flex-views {
  gap: 0;
}

.node--type-lms-certificate .flex-views .flex-views--item.content__main {
  margin-top: 30px;
  margin-bottom: 30px;
}

@media screen and (min-width: 1024px) {
    .node--type-lms-certificate .flex-views .flex-views--item.content__main {
        width: 65%;
        margin: 0 3rem 0 0;
        padding-right: 0;
        padding-left: 0;
        margin-right: 0;
    }
}

@media screen and (min-width: 1200px) {
    .node--type-lms-certificate .flex-views .flex-views--item.content__main {
        margin-right: 3rem;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1200px)  {
    .node--type-lms-certificate .flex-views .content__sidebar:first-child  {
        padding: 15px;
    }
}

.certificate-container-outer {
  margin: 16px 0 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  background-color: white;
  font-weight: bold;
  color: #1B2B34;
}

.certificate-container {
  background-image: url('/themes/custom/nitaac/dist/images/NITAACU_CourseCertificate_2024.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: auto; 
  padding-top: 78%; 
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-size: 50px;
}

.certificate-container .content {
  position: absolute;
  top: 52%;
  left: 61%;
  transform: translate(-50%, -40%);
  text-align: center;
  width: 80%;
}

.certificate-container .username {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: bold;
}

.certificate-container .text {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 20px;
}

.certificate-container .course-title {
  font-size: 22px;
  margin-bottom: 50px;
  font-weight: bold;
}

.certificate-container .date-issued {
  position: absolute;
  bottom: 19%;
  left: 30%;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  width: 135px;
}

.certificate-container .clp {
  position: absolute;
  bottom: 15%;
  width: 10%;
  left: 56%;
  font-weight: bold;
  color: #1B2B34;
  text-align: center;
}

.certificate-container .clp_number {
  font-size: 53px;
  line-height: 1;
}

.certificate-container .clp_label {
  font-size: 8px;
  line-height: 1;
}

/* Combine similar media queries */
@media screen and (max-width: 1200px) {

  /* Adjustments for screens between 1024px and 1200px */
  .certificate-container .date-issued {
    font-size: 11px;
    width: 120px;
    left: 28%;
  }

  .certificate-container .clp {
    bottom: 14%;
  }

  .certificate-container .clp_number {
    font-size: 38px;
    line-height: 1;
  }

  .certificate-container .clp_label {
    font-size: 6px;
  }
}

@media screen and (max-width: 1023px) {

  /* Adjustments for screens between 976px and 1023px */
  .certificate-container .date-issued {
    width: 147px;
    left: 32%;
  }

  .certificate-container .clp {
    bottom: 14%;
  }

  .certificate-container .clp_number {
    font-size: 58px;
  }

  .certificate-container .clp_label {
    font-size: 10px;
  }

  /* Adjustments for screens below 976px */
  .node--type-lms-certificate .content-padding {
    padding: 0 3rem;
  }
}

@media screen and (max-width: 768px) {
  .certificate-container .content {
    top: 55%;
    left: 61%;
    width: 80%;
  }

  .certificate-container .username {
    font-size: 22px;
    margin-bottom: 0;
  }

  .certificate-container .text {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .certificate-container .course-title {
    font-size: 14px;
    margin-bottom: 50px;
  }

  .certificate-container .date-issued {
    font-size: 11px;
    left: 30%;
    width: 118px;
  }

  .certificate-container .clp {
    bottom: 15%;
    width: 12%;
    left: 55%;
  }

  .certificate-container .clp_number {
    font-size: 40px;
  }

  .certificate-container .clp_label {
    font-size: 7px;
  }
}

@media screen and (max-width: 476px) {
  .certificate-container .date-issued {
    font-size: 8px;
    left: 25%;
    width: 95px;
  }

  .certificate-container .clp_number {
    font-size: 26px;
  }

  .certificate-container .clp_label {
    font-size: 4px;
  }
}

@media print {

  /* Print in landscape orientation */
  @page {
    size: landscape;
    margin: 40px 0 0 50px;
  }

  body, 
  html {
    margin: 0; 
    padding: 0; 
    height: 96%; 
    width: 96%; 
  }

  .certificate-container-outer {
    display: flex;
    align-items: center;
    justify-content: center;
    page-break-inside: avoid; 
    height: 100vh; 
    width: 100vw;
  }

  .certificate-container {
    width: 100%;
    height: 100%;
    background-image: url('/themes/custom/nitaac/dist/images/NITAACU_CourseCertificate_2024.jpg') !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background-size: contain; 
    background-position: center; 
    background-repeat: no-repeat;
    transform-origin: center center;
  }

  .certificate-container .date-issued {
    text-align: center;
    font-size: 14px;
    left: 32%;
    width: 135px;
  }

  .certificate-container .clp_number {
    font-size: 58px;
  }

  .certificate-container .clp_label {
    font-size: 12px;
  }
          
}
