html {
  font-size: 100%;
}

body {
  font-family: 'Inter';
}

:root {
  --color-black: #212121;
  --color-white: #FFFFFF;
  --color-red: #bd2626;
  --color-blue: #146DF4;
  --color-light-blue: #D2EEFF;
  --color-green: #A4D07C;
  --color-yellow: #F7C844;
  --color-grey-background: #FAFAFA;
  --color-grey-text: #6B6B6B;
  --color-border: #e0e0e0;
  --color-blue-hover: #0055D4;
  --color-grey-hover: #ECECEC;
  --color-black-hover: #333333;
}

/* Fonts */
.h1, .h2, .p, .p1 {
  font-family: Inter;
  font-style: normal;
}

.h1 {
  color: var(--color-black);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 4.375rem;
  letter-spacing: -0.14rem;
}

.h2 {
  color: var(--color-black);
  font-size: 2rem;
  font-weight: 600;
  line-height: 2.5rem;
  letter-spacing: -0.06rem;
}

.h3 {
  color: var(--color-black);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2.125rem;
  letter-spacing: -0.025rem;
}

.p {
  color: var(--color-black);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75rem;
}

.p1 {
  color: var(--color-grey-text);
  font-size: 1.15625rem;
  font-weight: 400;
  line-height: 1.9375rem;
  letter-spacing: -0.03469rem;
}

.a {
  color: var(--color-blue);
  text-decoration: none;
}

.a:hover {
  color: var(--color-blue-hover);
}

.text-grey {
  color: var(--color-grey-text);
}

strong {
  font-weight: 700;
}

.fs-7 {
  font-size: 0.7rem;
}

/* Forms */
.login-form {
  border: none;
  border-bottom: .0625rem solid var(--color-border);
  border-radius: 0%;
  padding: 1.25rem 0.25rem;
  color: var(--color-black);
  font-size: 1.15625rem;
  line-height: 1.15625rem;
  letter-spacing: -0.02313rem;
}

.login-form:focus {
  box-shadow: none;
}

.login-form::placeholder {
  color: rgba(107, 107, 107, 0.60);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-black {
  text-align: center;
  font-family: Inter;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  line-height: 0.875rem;
  letter-spacing: -0.0175rem;
  border-radius: 2.5rem;
  padding: 0.8125rem 1.25rem;
}

.btn-primary {
  color: var(--color-white);
  border: none;
  background: var(--color-blue);
}

.btn-primary:hover {
  background-color: var(--color-blue-hover);
}

.btn-secondary {
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--color-grey-text);
}

.btn-secondary:hover, .btn.btn-secondary:active {
  color: var(--color-black);
  background-color: var(--color-grey-hover);
}

.btn-black {
  color: var(--color-white);
  background: var(--color-black);
  border: none;
}

.btn-black:hover, .btn.btn-black:active {
  color: var(--color-white);
  background-color: var(--color-black-hover);
}

.btn-continue {
  font-weight: 500;
  line-height: 1rem;
  padding: 1rem 2rem;
  color: var(--color-white);
  background-color: var(--color-black);
}

.btn-continue:hover, .btn.btn-continue:active {
  color: var(--color-white);
  background-color: var(--color-black-hover);
}

.btn-large {
  font-size: 1rem;
  line-height: 1rem;
  letter-spacing: -0.02rem;
  padding: 1rem 1.5rem;
}

.dynamic-course-btn {
  border: none;
}

.dynamic-course-btn:hover {
  border: none;
  filter: brightness(90%);
}

.rounded-corners-lg {
  border-radius: 2rem;
}

/* Navbar */
.navbar {
  background-color: var(--color-white);
  max-height: 4.56rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-grey-hover);
}

.navbar .nav-item {
  padding: 0 1rem;
}

.navbar .navbar-toggler {
  margin: 0 0 .875rem .875rem;
}

.navbar-nav .nav-item .nav-link {
  color: var(--color-black);
  text-align: center;
  font-family: Inter;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  line-height: 0.875rem;
  letter-spacing: -0.0175rem;
  border-radius: 2.5rem;
  padding: 0.8125rem 1.25rem;
  transition: background-color 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover {
  background: var(--color-grey-hover);
}

.navbar-nav .nav-item .nav-link[aria-current='true'],
.navbar-nav .nav-item .nav-link[aria-current='page'] {
  color: var(--color-white);
  background: var(--color-black);
}

.circle-nav-item {
  width: 2.1875rem;
  height: 2.1875rem;
  border-radius: 50%;
  background-color: var(--color-black);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  text-decoration: none;
}

.navbar .dropdown-menu p,
.dropdown-menu a {
  font-size: 0.875rem;
  line-height: 1rem;
  margin-bottom: 0rem;
  color: black;
  -webkit-font-smoothing: antialiased;
  text-decoration: none;
}

.navbar .dropdown-menu .text-light-grey {
  color: var(--color-grey-text);
}

.navbar .dropdown-menu .dropdown-item {
  padding: 0.875rem 1rem;
}

.navbar .dropdown-menu .dropdown-item:hover {
  color: var(--color-black);
  background-color: var(--color-grey-hover);
}

.navbar .dropdown-menu .dropdown-item.dropdown-item-active,
.dropdown-menu .dropdown-item:active {
  background-color: var(--color-border);
}

/* Footer */
.footer {
  background-color: var(--color-black);
  padding: 3rem 3rem;
  margin: 4rem 0 0;
}

.footer .nav-item {
  padding: 0 1rem;
}

.footer .nav-item .nav-link {
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: var(--color-white);
}

.footer .nav-item .nav-link:hover {
  color: var(--color-green);
  background-color: var(--color-white);
}

.footer #switchLanguage {
  color: var(--color-white);
}

.social-media-icons {
  display: flex;
  flex-wrap: wrap;
  gap: .9375rem 2.1875rem;
  margin-top: 1rem;
}

/* Progress Bar */
.progress {
  margin-top: 4.25rem;
  padding: 0.25rem 0;
  background-color: var(--color-white);
  z-index: 1;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  height: 100%;
  border-right: .0625rem solid var(--color-border);
  width: 17.5rem;
}

.sidebar .nav-item .nav-link{
  color: var(--color-black);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 0.875rem;
  line-height: 0.875rem;
  letter-spacing: -0.0175rem;
  margin: 0 1rem 0.5rem 1rem;
  padding: 0.8125rem 1.25rem;
  border-radius: 2.375rem;
  transition: background-color 0.3s ease;
}

.sidebar .nav-item .nav-link:hover {
  background: var(--color-grey-hover);
}

.sidebar .nav-item .nav-link[aria-current='true'],
.sidebar .nav-item .nav-link[aria-current='page'] {
  color: var(--color-white);
  background: var(--color-blue);
}

.sidebar .nav-item .nav-link .nav-image {
  height: 1.25rem;
  width: 1.25rem;
  margin-right: 0.75rem;
}

.sidebar .nav-item .nav-link[aria-current='true'] .nav-image,
.sidebar .nav-item .nav-link[aria-current='page'] .nav-image {
  filter: invert(100%);
}

/* Lesson Sidebar */
.sidebar-lesson {
  min-height: 100vh;
}

.sidebar-left {
  width: 15rem;
  border-right: 1px solid var(--color-border);
  background: var(--color-white);
  position: relative;
  z-index: 1;
}

.sidebar-tab {
  width: 15rem;
  background: var(--color-white);
  border-right: 1px solid var(--color-border);
  box-shadow: 0 0 6px rgba(0,0,0,0.08);
  position: relative;
  z-index: 2;
  transition: left 0.2s;
}

/* Cards */
.ctc-image-card {
  border: .0625rem solid var(--color-border);
  border-radius: .375rem;
  background-color: var(--color-white);
  box-shadow: 0 2px 7px 0 rgba(20, 20, 43, 0.06);
  transition: box-shadow .3s ease-in-out;
}

.ctc-image-card:hover {
  box-shadow: 0 0 1.875rem 0 rgba(0,0,0,0.15);
}

.card a {
  color: var(--color-black);
  text-decoration: none;
}

.ctc-image-card-body {
  margin-bottom: 2.5rem;
  margin-top: 2.5rem;
  margin-left: 1.75rem;
  margin-right: 1.75rem;
}

.ctc-course-card-image {
  width: 100%;
  border-radius: .375rem;
}

.ctc-common-card {
  padding: 2.8rem 1.9rem;
  border: .0625rem solid var(--color-border);
  border-radius: .625rem;
  background-color: var(--color-white);
  transition: box-shadow .3s ease-in-out;
}

.ctc-common-card:hover {
  box-shadow: 0 0 1.875rem 0 rgba(0,0,0,0.15);
}

.ctc-common-card p {
  color: var(--color-grey-text);
}

/* Badges */
.badge-primary {
  color: var(--color-white);
  background-color: var(--color-black);
  border-radius: 1.875rem;
  padding: 0.5rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
}

.multi-line-text-truncate {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: var(--color-grey-text);
}

/* Info Section */
.info-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(250, 249, 246, 0.60) 0%, rgba(212, 212, 212, 0.60) 100%);
}

.info-section-body {
  padding: 5rem 6rem;
}

/* Content */
.content {
  padding: 3rem 8rem;
}

@media (max-width: 767.98px) {
  .content {
    padding: 2rem 4rem;
  }
}

.table th,
.table td {
  background-color: var(--color-grey-background);
}

.table-hover { 
  border-collapse: separate; 
  border-spacing: 0 .625rem; 
}

.table-hover td {
  border: solid 1px #DADADA;
  border-style: solid none;
  padding: 0.5rem 0;
}

.table-hover td:first-child {
  border-left-style: solid;
  border-top-left-radius: .625rem; 
  border-bottom-left-radius: .625rem;
}

.table-hover td:last-child {
  border-right-style: solid;
  border-bottom-right-radius: .625rem; 
  border-top-right-radius: .625rem; 
}

.table-hover th {
  border: none;
}

.table-hover tbody tr:hover td, .table-hover tbody tr:hover th {
  background-color: var(--color-grey-hover);
}

.table-hover td a {
  display: block;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}

.modal-open .modal-backdrop {
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 1;
}

/* Lessons */
.lesson {
  max-width: 47.5rem;
  margin: 0 auto 0 auto;
  padding: 2.5rem 0 2.5rem 0;
}

.lesson.video-lesson {
  max-width: 60rem;
}

.lesson.video-lesson video {
  width: 100%;
}

.lesson.markdown-lesson img {
  margin-top: 3.125rem;
  margin-bottom: 3.125rem;
  width: 100%;
}

.lesson.carousel-lesson.carousel-inner {
  overflow: visible;
}

.lesson.carousel-lesson .slide-body {
  min-height: 25rem;
  box-shadow: 0px 0px 32px 1px rgba(0, 0, 0, 0.08);
}

.lesson.carousel-lesson .slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
}

.lesson.carousel-lesson .slide-arrow.left-arrow {
  opacity: 1;
  left: -6rem;
}

.lesson.carousel-lesson .slide-arrow.right-arrow {
  opacity: 1;
  right: -6rem;
}

@media (max-width: 768px) {
  .lesson.carousel-lesson .slide-arrow {
    display: none;
  }
}

.lesson.carousel-lesson .arrow-size {
  height: 1.5rem;
  width: 1.5rem;
}

.lesson.carousel-lesson .slide-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 576px) {
  .lesson.carousel-lesson .slide-image {
    padding: 1.25rem;
  }
}

.lesson.carousel-lesson .carousel-indicators {
  position: static;
  display: flex;
  justify-content: center;
  padding-left: 0;
  list-style: none;
  margin-top: 1rem;
}

.lesson.carousel-lesson .carousel-indicators li {
  text-indent: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  color: var(--color-black);
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  margin: 0 0.5rem;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  border: 2px solid transparent;
}

.lesson.carousel-lesson .carousel-indicators li.active {
  border-color: var(--color-black);
  font-weight: bolder;
}

.carousel-control-next.carousel-control-next:focus, .carousel-control-prev.carousel-control-prev:focus {
  opacity: 1;
}

.carousel-control-next.carousel-control-next:hover, .carousel-control-prev.carousel-control-prev:hover {
  opacity: 0.8;
}

.carousel-control-next, .carousel-control-prev, .carousel-control-prev:focus, .carousel-control-next:focus {
  opacity: 1;
}

.lesson.quick-quiz-lesson.col {
    max-width: 43.75rem;
}

.lesson.accordion-lesson .accordion-body p {
  margin-top: 2.5rem;
}

.accordion-button, .accordion-button:not(.collapsed) {
  color: var(--color-white);
  background-color: var(--color-black);
}

.accordion-button:not(.collapsed) {
  background-color: var(--color-black-hover);
}

.accordion-button::after, .accordion-button.collapsed::after {
  filter: brightness(0) invert(1);
}

.lesson h3 {
  color: var(--color-black);
  font-size: 2rem;
  font-weight: 700;
  line-height: 2.5rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.lesson h5 {
  font-weight: 500;
  color: inherit;
}

.lesson p {
  text-align: left;
  color: var(--color-black);
  font-size: 1.3125rem;
  line-height: 2.25rem;
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
}

.lesson h3 + p {
  margin-top: .625rem;
}

.lesson ul {
  list-style-type: disc;
  margin: 1rem 0;
}

.lesson ul li,
.lesson ol li {
    font-size: 1.3125rem;
    line-height: 2rem;
    color: var(--color-black);
    margin-bottom: 1rem;
}

/* Quizzes */
.final-question-group,
.quiz-question-group {
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  min-height: 60px;
  border: 1px solid var(--color-black);
  border-radius: 10px;
}

.final-question-group:hover,
.quiz-question-group:hover {
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.08);
}

.final-question-group input,
.quiz-question-group input {
  width: 24px;
}

.final-question-group.checked,
.quiz-question-group.checked {
  border: 1px solid var(--color-blue);
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.08);
}

.quiz-question {
  min-height: 100vh;
  max-width: 760px;
  margin: 0 auto 0 auto;
  padding: 40px 0 40px 0;
}

.answer-modal {
  background-color: var(--color-white);
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* Animation */
@-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale(.9);
    transform: scale(.9);
  }
  70% {
    -webkit-transform: scale(1);
    transform: scale(1);
    box-shadow: 0 0 0 50px rgba(33, 33, 33, 0);
  }
  100% {
    -webkit-transform: scale(.9);
    transform: scale(.9);
    box-shadow: 0 0 0 0 rgba(33, 33, 33, 0);
  }
}

@keyframes pulse {
  0% {
    -webkit-transform: scale(.9);
    transform: scale(.9);
  }
  70% {
    -webkit-transform: scale(1);
    transform: scale(1);
    box-shadow: 0 0 0 50px rgba(33, 33, 33, 0);
  }
  100% {
    -webkit-transform: scale(.9);
    transform: scale(.9);
    box-shadow: 0 0 0 0 rgba(33, 33, 33, 0);
  }
}

/* Hotspot */
.hotspotImg {
  background-size: cover;
  background-position: center center;
  position: relative;
}

.hotspotImg .img-responsive {
  width: auto;
  height: auto;
  max-width: 100%; 
  max-height: 100%;
}

.hotspotImg .hot-spot {
  position: absolute;
  width: 25px;
  height: 25px;
  top: 5px;
  left: 5px;
  text-align: center;
  background-color: var(--color-black);
  color: var(--color-black);
  border-radius: 100%;
  cursor: pointer;
  transition: all .3s ease;
}

.hotspotImg .hot-spot .circle {
  display: block;
  position: absolute;
  top: 45%;
  left: 45%;
  width: 2em;
  height: 2em;
  margin: -1em auto auto -1em;
  -webkit-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
  border-radius: 50%;
  border: 10px solid var(--color-black);
  background: var(--color-white);
  box-shadow: 0 0 0 0 rgba(33, 33, 33, .5);
  opacity: 1;
  -webkit-animation: pulse 2.5s infinite;
  animation: pulse 2.5s infinite;
}

.hotspotImg .hot-spot:hover,
.hotspotImg .hot-spot .circle:hover {
  -webkit-animation: none;
  animation: none;
}

.hotspotImg .hot-spot .tooltip {
  background-color: var(--color-white);
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  color: var(--color-black);
  display: block;
  font-size: 14px;
  opacity: 1.0;
  left: 0px;
  position: absolute;
  text-align: left;
  top: 2rem;
  width: 20rem;
  max-height: 20rem;
  z-index: 999;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.08);
  overflow: auto;
  padding: 1rem;
  border-bottom: 1rem solid var(--color-white);
}

.hotspotImg .hot-spot .tooltip .img-row {
  text-align: center;
}

.hotspotImg .hot-spot .tooltip .text-row {
  padding: 15px;
}

.hotspotImg .hot-spot .tooltip h4 {
  margin-bottom: 10px;
  color: var(--color-black);
}

.hotspotImg .hot-spot .tooltip p {
  line-height: 1.5rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-black);
}

.hotspotImg .hot-spot .tooltip p:last-child {
  margin-bottom: 0;
}

/* Messages */
.error-message {
  color: var(--color-red);
}

.success-message {
  color: var(--color-green);
}

/* Spinner */
.lds-default {
  color: var(--color-blue);
}

.lds-default,
.lds-default div {
  box-sizing: border-box;
}

.lds-default {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-default div {
  position: absolute;
  width: 6.4px;
  height: 6.4px;
  background: currentColor;
  border-radius: 50%;
  animation: lds-default 1.2s linear infinite;
}

.lds-default div:nth-child(1) {
  animation-delay: 0s;
  top: 36.8px;
  left: 66.24px;
}

.lds-default div:nth-child(2) {
  animation-delay: -0.1s;
  top: 22.08px;
  left: 62.29579px;
}

.lds-default div:nth-child(3) {
  animation-delay: -0.2s;
  top: 11.30421px;
  left: 51.52px;
}

.lds-default div:nth-child(4) {
  animation-delay: -0.3s;
  top: 7.36px;
  left: 36.8px;
}

.lds-default div:nth-child(5) {
  animation-delay: -0.4s;
  top: 11.30421px;
  left: 22.08px;
}

.lds-default div:nth-child(6) {
  animation-delay: -0.5s;
  top: 22.08px;
  left: 11.30421px;
}

.lds-default div:nth-child(7) {
  animation-delay: -0.6s;
  top: 36.8px;
  left: 7.36px;
}

.lds-default div:nth-child(8) {
  animation-delay: -0.7s;
  top: 51.52px;
  left: 11.30421px;
}

.lds-default div:nth-child(9) {
  animation-delay: -0.8s;
  top: 62.29579px;
  left: 22.08px;
}

.lds-default div:nth-child(10) {
  animation-delay: -0.9s;
  top: 66.24px;
  left: 36.8px;
}

.lds-default div:nth-child(11) {
  animation-delay: -1s;
  top: 62.29579px;
  left: 51.52px;
}

.lds-default div:nth-child(12) {
  animation-delay: -1.1s;
  top: 51.52px;
  left: 62.29579px;
}

@keyframes lds-default {
  0%, 20%, 80%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
}

.code-input {
  width: 4rem;
  height: 4rem;
  text-align: center;
}

.circle {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.4rem;
}

/* Background colours */
.bg-grey {
  background-color: var(--color-grey-background);
}

.bg-light-grey {
  background-color: var(--color-grey-hover);
}

.bg-blue {
  background-color: var(--color-blue);
}

.bg-light-blue {
  background-color: var(--color-light-blue);
}

.bg-green {
  background-color: var(--color-green);
}

.bg-yellow {
  background-color: var(--color-yellow);
}

.border-grey {
  border: 1px solid var(--color-grey-text);
}

.border-end-md {
  border-right: none;
}

@media (min-width: 768px) {
  .border-end-md {
    border-right: 1px solid var(--color-border);
  }
}

.hidden {
  display: none;
}

/* Homepage */
.icon-small {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
}

.article img {
  max-width: 100%;
  height: auto;
  display: block;
}