.navbar-brand {
  position: absolute;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-img-top {
  height: 150px;
  object-fit: cover;
}
.card-body {
  flex: 1;
}

.card-modules {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8); /* Slightly transparent background */
  z-index: 10;
  border-bottom-left-radius: 5px;
}

.card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow effect on hover */
  transform: scale(1.02); /* Slightly enlarge the card */
  transition: transform 0.2s;
}

.card a {
  text-decoration: none;
  color: inherit;
}

.card-body a.btn {
  display: block;
  margin-top: 1rem;
}

.card a:hover {
  text-decoration: none;
  color: inherit;
}

.card.disabled {
  background-color: #f8f9fa;
  opacity: 0.6;
  filter: grayscale(100%);
  position: relative;
  pointer-events: none; /* Disable card interaction */
}
.card.disabled .lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: #dc3545; /* Lock icon color */
  z-index: 1;
}
.card.disabled img {
  filter: grayscale(100%);
}
.card.disabled .card-body {
  position: relative;
  z-index: 0;
}

/* Introduction Banner Styles */
.banner-intro {
  background-color: #adc178; /* Primary color */
}

/* Courses Banner Styles */
.banner-courses {
  background-color: white;
}

.banner-courses h1,
.banner-courses .card {
  color: black;
}

/* Modules */
.modules-container {
  height: calc(100vh - 56px); /* Full height minus navbar height */
  overflow-y: auto; /* Allow scrolling if content exceeds viewport */
}

.list-group-item {
  border: none;
  border-bottom: 1px solid #ddd; /* Only bottom border */
}

/* Flexbox for positioning the button */
.content-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.content {
  flex: 1;
}

.footer-button {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
}

.form-container {
  max-width: 800px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h4 {
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 24px;
  color: #202124;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #3c4043;
}

.form-check-input {
  margin-right: 10px;
}

.form-check-label {
  font-weight: 400;
  color: #3c4043;
}

.footer-button {
  margin-top: 20px;
}

.choice-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.next-button-container {
  display: flex;
  justify-content: flex-end;
  padding-right: 15px;
}

#completionMessage {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #a98467; /* Primary color for the website */
  color: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  z-index: 1000; /* Ensures it stays on top */
}

#completionMessage p {
  margin: 0;
  font-weight: bold;
}

#retakeMessage {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #b3514a;
  color: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  z-index: 2000; /* Increased to ensure visibility */
}

#retakeMessage p {
  margin: 0;
  font-weight: bold;
}
