#page .bb-course-title a {
  font-weight: 500;
  font-style: normal;
  font-size: 24px;
  color: black;
}

.learndash .wpProQuiz_content .wpProQuiz_reviewLegend .learndash-quiz-review-legend-item-review,
.learndash .wpProQuiz_reviewButtons input[name="review"] {
  display: none !important;
}

.learndash-wrapper .ld-expand-button.ld-button-alternate:hover span.ld-icon-arrow-down,
.learndash-wrapper .ld-item-list-item-preview:hover span.ld-icon-arrow-down {
  color: #1c5cb2 !important;
}

.bb-course-items .bb-cover-list-item {
  overflow: visible;
}

.sticky-header .site-content,
body.buddypress.sticky-header .site-content,
.bb-buddypanel.sticky-header .site-content,
.single-sfwd-quiz.bb-buddypanel.sticky-header .site-content,
.single-sfwd-lessons.bb-buddypanel.sticky-header .site-content,
.single-sfwd-topic.bb-buddypanel.sticky-header .site-content {

  padding-top: 120px !important;
}

#learndash-content .bb-grid {
  display: flex;
  margin-left: -10px;
  margin-right: -10px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  /* flex-direction: column; */
}

#learndash-content .bb-grid .lms-topic-sidebar-wrapper {
  flex: 1;
}

#learndash-content #learndash-page-content {
  flex: 3;
}


.lms-topic-sidebar-wrapper .lms-topic-sidebar-data {
  padding: 15px 0;
  font-size: 15px;
  position: static !important;
  left: 0;
  -webkit-transition: left 0.2s ease, right 0.2s ease;
  transition: left 0.2s ease, right 0.2s ease;
  width: auto;
  height: auto;
  max-height: -webkit-calc(100% - 80px);
  max-height: calc(100% - 80px);
  overflow: auto;
  /* z-index: 111; */
}

.lms-topic-sidebar-wrapper {
  max-width: unset;
  min-height: unset;
}

.lms-lessons-dropdown .select-wrap {
  margin-right: 12px;
  height: 40px;
  display: flex;
  align-items: center;
  width: 200px;
  background: #f5f5f5;
}

#select2-lessonDropdown-container {
  background: #f5f5f5;
}

.bb-lesson-dropdown {
  width: 100%;
  padding: 8px;
  height: 55px;
  text-wrap: pretty;
  font-size: 14px;
  border-style: outset;
  margin-top: 25px;
}

.lms-lesson-content {
  margin-top: 20px;
  display: flex;
}

.lms-lessions-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 15px;
}

.lms-lessons-dropdown {
  width: 20%;
}

.bb-type-list {
  display: flex;
  flex: 95%;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin-left: 22px !important;
  flex-direction: column;
}

.lms-lesson-header {
  display: flex;

  justify-content: center;
}

.bb-type-list .lms-topic-item:last-child .backbar {
  display: none;
}

.select2-container {
  width: fit-content !important;
}

.bb-lms-topic-circle,
.bb-lms-quiz-circle {
  width: 50px;
  height: 50px;
  background-color: white;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  border: 4px solid;
  border-color: #D6D6D9;
  cursor: pointer;
}

.bb-lms-topic-circle:hover,
.bb-lms-quiz-circle:hover {
  background-color: #00a79d;
  color: white;
}

.dropdown-trigger {

  margin-top: 10px;
}

.lms-topic-sidebar-data {
  overflow: unset !important;
}

#learndash-page-content .ld-breadcrumbs {
  display: none !important;
}

.bb-lms-topic-tooltip,
.bb-lms-quiz-tooltip {
  visibility: hidden;
  min-width: 300px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.ld-breadcrumbs-segments span:after {
  content: "\e827";
  font-family: bb-icons;
  font-size: 12px;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin-left: 0;
  margin-right: 0;
  position: relative;
  top: 0;
}

.ld-breadcrumbs-segments span:nth-child(1) a {
  font-size: 20px;
  color: black;
  /* Original size */
}

.ld-breadcrumbs-segments span:nth-child(2) a {
  font-size: 18px;
  color: black;
  /* Slightly smaller */
}

.ld-breadcrumbs-segments span:nth-child(3) a {
  font-size: 16px;
  color: black;
  /* Even smaller */
}


.bb-lms-topic-circle:hover .bb-lms-topic-tooltip,
.bb-lms-quiz-circle:hover .bb-lms-quiz-tooltip {
  visibility: visible;
  opacity: 1;
}

.current .bb-lms-topic-circle {
  background-color: #00a79d;
  color: white;
}

/* .wpProQuiz_reviewButtons p ,  wpProQuiz_quiz blockly_quiz br{
display:none;
}
.wpProQuiz_questionListItem br , .wpProQuiz_questionListItem p , wpProQuiz_listItem br, wpProQuiz_listItem p {
display:none !important;
} */
#lessonsContent {
  width: unset !important;
  margin-right: 80px;
}

.toggle-sidebar {
  display: none !important;
}


.wpProQuiz_quiz.blockly_quiz {

  position: relative !important;
}

.backbar {
  height: 17px;
  background-color: #D6D6D9;
  position: relative;
  z-index: -1;
  top: -44px;
}

.lms-topic-sidebar-wrapper .bb-lms-title-wrap {
  padding: 12px 30px 12px 0px !important;
  line-height: 1.5;
  border-radius: 0;
  background: unset !important;
}

.lms-topic-sidebar-data .ld-breadcrumbs-segments {

  text-align: center;
}

.lms-topic-sidebar-data .lms-course-quizzes-list {

  display: none;
}

.bb-lesson-dropdown select {
  white-space: normal;
  word-wrap: break-word;
  padding: 5px;
}

.prev-button {

  border-radius: 15px 0px 0px 15px;
}

.next-button {

  border-radius: 0px 15px 15px 0px;
}




.prev-button,
.next-button {
  font-size: 0;
  background-color: var(--bb-alternate-text-color);
  color: #fff !important;
  margin: 10px;

  padding: 7px 30px 8px 20px;
}

.toggle-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.switch-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.switch-text {
  font-weight: bold;
  transition: color 0.3s;
}

.switch {
  width: 80px;
  height: 30px;
  background: linear-gradient(45deg, #ccc, #ddd);
  border-radius: 30px;
  position: relative;
  margin: 0 10px;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.switch:before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background-color: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s, background-color 0.3s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* input[type="checkbox"] {
  display: none;
} */

input[type="checkbox"]:checked+.switch-label .switch {
  background: #00a79d;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

input[type="checkbox"]:checked+.switch-label .switch:before {
  transform: translateX(30px);
  background-color: #f0f0f0;
}

input[type="checkbox"]:checked+.switch-label .left-text {
  color: #888;
}

input[type="checkbox"]:not(:checked)+.switch-label .right-text {
  color: #888;
  margin-left: 10px;
}

/* Current */

.wpProQuiz_content .wpProQuiz_reviewDiv .wpProQuiz_reviewQuestion ol li.wpProQuiz_reviewQuestionTarget {
  border-color: #1c5cb2;
}

.wpProQuiz_content .wpProQuiz_reviewDiv .wpProQuiz_reviewLegend .learndash-quiz-review-legend-item-current .wpProQuiz_reviewQuestion_Target,
.learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewDiv li.wpProQuiz_reviewQuestionTarget {
  outline: 0;
  border-radius: 100%;
  box-shadow: none;
  background-color: #1c5cb2 !important;
}

.bb-grid {
  display: flex;
}

.bb-learndash-content-wrap {
  display: flex;
  margin: auto;
  width: 100%;
  padding: 0;
}

.bb-ld-tabs {
  flex: 1;
  max-width: 60%;
}

.bb-completed-item {
  text-decoration: none !important;
}

.learndash-wrapper .learndash-complete .ld-item-list-item-preview .ld-item-title>span:first-child {
  text-decoration: none;
}

.learndash-wrapper .ld-table-list .ld-table-list-items div.ld-table-list-item a.ld-table-list-item-preview.learndash-complete .ld-topic-title {
  text-decoration: none !important;
}

div.bb-lms-header h1 {
  font-weight: 600;
}

.bb-course-preview-wrap img {
  object-fit: inherit;
}

.lms-topic-sidebar-wrapper {
	box-shadow: none !important;
}

.lms-topic-sidebar-wrapper .ld-item-list-section-heading .ld-lesson-section-heading {
 font: Nunito !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	color: #1c5cb2 !important;
}

.ld-lesson-section-heading .elementor-kit-2432 {
	font-family: Nunito !important;
}


/* Ensure all lesson containers fit inside the parent */
.bb-lessons-list,
.lms-lesson-item,
.lms-topic-sidebar-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Fix Flexbox Wrapping */
.bb-lessons-list {
    display: flex;
    flex-wrap: wrap !important;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 100% !important;
    width: 100% !important;
}

/* Fix `.lms-lesson-item` to allow section heading to wrap */
.lms-lesson-item {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Adjust sidebar wrapper */
.lms-topic-sidebar-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ✅ FINAL FIX: Ensure Section Heading Wraps Correctly */
.lms-lesson-list-section-heading {
    display: block !important; /* Ensures proper block behavior */
    max-width: 100% !important; /* Prevents exceeding parent width */
    width: auto !important; /* Allows dynamic sizing */
    min-width: 0 !important; /* Prevents forced width */
    white-space: wrap !important; /* Enables text wrapping */
    word-break: break-word !important; /* Ensures long words break */
    overflow-wrap: anywhere !important; /* Ensures cross-browser support */
    text-overflow: clip !important; /* Prevents text from being cut off */
    box-sizing: border-box !important; /* Prevents padding from increasing width */
    padding: 5px !important;
    margin: 0 !important;
    overflow: visible !important; /* ✅ Ensures text wraps properly */
}

/* ✅ Fix Heading Inside Section Heading */
.lms-lesson-list-section-heading h3 {
    display: block !important;
    max-width: 100% !important;
    width: auto !important;
    min-width: 0 !important;
    white-space: wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.lms-topic-sidebar-wrapper .ld-item-list-section-heading .ld-lesson-section-heading {
		white-space: normal !important;
}





/* Lesson title styling */
.bb-lesson-title {
    font-family: 'Nunito', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #2e9e9e !important;
    line-height: 1.2;  /* Keeps title properly aligned */
    
    word-wrap: break-word !important; /* Ensures long words break */
    overflow-wrap: break-word !important; /* Alternative for wider support */
    white-space: normal !important; /* Ensures wrapping instead of one-line */
    max-width: 100% !important; /* Ensures it doesn't overflow its container */
}


/* Hover effect for lesson title */
.bb-lesson-title:hover {
    font-weight: 700 !important;
    color: #1c5cb2 !important;
}


/* 
* Customize
*/


/* Ensure lesson topics (titles) are properly indented */
.bb-lms-title.bb-completed-item,
.bb-lms-title.bb-not-completed-item {
    font-family: 'Nunito', sans-serif !important;  /* Use consistent font */
    font-size: 18px !important;  /* Adjust font size */
    font-weight: 500 !important;  /* Regular font weight */
    color: #1c5cb2 !important;  /* Text color */
    line-height: 1.2 !important;  /* Improved spacing */
    word-wrap: break-word !important;  /* Ensure text wraps correctly */
    display: flex;
    align-items: center;  /* Keep text and icon aligned */
    gap: 6px; /* Space between icon and text */
}

/* Indent the lesson topics */
.lms-topic-item {
    display: flex;
    align-items: center;
    padding: 4px 0; /* Add slight spacing between topics */
    padding-left: 45px; /* Indent both the icon and text */
}

/* Indent the icon alongside the topic name */
.bb-lms-ico.bb-lms-ico-topic {
    margin-right: 8px; /* Space between icon and title */
    display: flex;
    align-items: center;
}

/* Style for the topic icon */
.bb-icon-l.bb-icon-text {
    font-size: 16px; /* Adjust icon size */
    color: #1c5cb2; /* Match text color */
}

/* Hover effect for topic titles */
.bb-lms-title.bb-completed-item:hover,
.bb-lms-title.bb-not-completed-item:hover {
    font-weight: 700 !important;  /* Make bold on hover */
    color: #2e9e9e !important;  /* Hover color */
}


/* Remove the progress circle for lessons */
.i-progress-completed {
    display: none !important;  /* Hide the completed progress circle */
}

/* Remove the progress circle for topics/steps */
.i-progress {
    display: none !important;  /* Hide all progress circles */
}



#learndash-page-content {
    padding: 10px !important; /* Reduce padding around the content */
}

.learndash-content-body {
    padding: 5px !important;
}

.learndash-wrapper {
    padding: 5px 10px !important; /* Adjust top-bottom and left-right padding */
}

#learndash-course-header,
.bb-lms-header {
    padding: 5px 0 !important; /* Reduce extra padding in the header */
}

.learndash_content_wrap {
    padding: 5px !important;
}

.ld-table-list-items {
    padding: 100px 0 !important;
}

.ld-table-list-item {
    padding: 5px !important;
}

.lms-header-title h1 {
    margin: 5px 0 !important;
    padding: 5px 0 !important;
}

/* Make LearnDash content full width */
#learndash-page-content {
    width: 100vw !important;  /* Span full viewport width */
    max-width: 100% !important;  /* Ensure no width restrictions */
    margin: 0 !important;  /* Remove any margin */
    padding: 0 !important;  /* Remove padding */
}

/* Ensure inner containers also take full width */
.learndash-content-body, .learndash-wrapper, .learndash_content_wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0 !important;
}

/* Make the ld-tabs section full width */
.ld-tabs {
    width: 100% !important;  /* Ensure full width */
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure the content inside the tabs stretches fully */
.ld-tabs-content, .ld-tab-content {
    width: 90% !important;
    max-width: 90% !important;
    margin: 0 auto;
    padding: 20 !important;
		align-content: center !important;
}

/* Set height of the instructor section */
.lms-header-instructor {
    height: 25px !important;
    overflow: hidden; /* Prevents content from overflowing */
    display: flex;
    align-items: center; /* Centers content vertically */
    justify-content: center; /* Centers content horizontally (if needed) */
    padding: 0 !important; /* Remove padding */
    margin: 0 !important; /* Remove margin */
}

/* Ensure child elements don’t override height */
.bb-about-instructor, .bb-content-wrap {
    height: 100% !important;
    display: flex;
    align-items: center; /* Aligns content inside properly */
}

.ld-progress {
		display: none !important
}

.learndash-wrapper .ld-lesson-topic-list {
    display: none !important;
}


.ld-status {
    display: none !important;
}

#bb-course-list-grid-filters {
    display: none !important;
}

/* Grammar Button */
.grammar-button .wp-block-button__link {
    background-color: #2e9e9e !important; /* Teal */
    color: white !important;
}

/* Script Button */
.script-button .wp-block-button__link {
    background-color: #1c5cb2 !important; /* Blue */
    color: white !important;
}

/* Vocab Button */
.vocab-button .wp-block-button__link {
    background-color: #4d586d !important; /* Dark Gray */
    color: white !important;
}

/* Images Button */
.images-button .wp-block-button__link {
    background-color: #ff0000 !important; /* Red */
    color: white !important;
}

/* Other Button */
.other-button .wp-block-button__link {
    background-color: #000000 !important; /* Black */
    color: white !important;
}

body.bb-buddypanel.bb-sfwd-aside:not(.buddypanel-open) .buddypanel .bb-toggle-panel {
  visibility: visible;
  opacity: 1;
}

body.bb-buddypanel:not(.buddypanel-open).bb-sfwd-aside .buddypanel {
  width: inherit;
}