/*
Theme Name: Meadowlarkviolin
Theme URI: 
Author: Upstack Media
Author URI: 
Description: A WordPress theme for Meadowlarkviolin
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meadowlarkviolin
Tags: 
*/
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&family=Open+Sans:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #222222;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Raleway', sans-serif;
  color: #2B664C;
}

/* Heading sizes */
h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

h2 {
  font-size: 21px;
  font-weight: 600;
}

h3 {
  font-size: 17px;
  font-weight: 500;
}

p {
  font-size: 15px;
  line-height: 1.6;
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 16px;
}
a {
  color: #2B664C;
}
input,
textarea {
  width: 100%;
  border: 1px solid #BDBDBD;
  border-radius: 6px;
  color: #222222;
  outline: none;
  transition: all 0.2s ease;
  border-radius: 10px;
  padding: 16px;
  font-size: 15px;
  font-family: Open Sans, sans-serif;
  line-height: 1.4;
}

input:focus,
textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px #2B664C;
}
label {
  font-size: 14px;
  color: #666;
  margin: 16px 0 8px 0;
  display: block;
}
.mv_label {
  font-size: 13px;
  font-weight: 500;
  color: #666666;
  font-family: 'Open Sans', sans-serif;
}
.wp-block-button__link.wp-element-button {
  padding: 10px 18px;
  border-radius: 8px;
  background: #e4ba16;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  width: max-content;
  color: rgb(0, 0, 0);
  text-decoration: none;
  white-space: nowrap;
}
.mv_logo img {
  max-width: 100%;
  height: auto;
}

.mv_f-14 {
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
}

.mv_grey {
  color: #666666;
}

.mv_green {
  color: #2B664C;
  font-family: 'Raleway', sans-serif;
}

.mv_mb-8 {
  margin-bottom: 8px;
}

.mv_mt-36 {
  margin-top: 36px;
}
.form-actions{
  margin-top: 18px;
}
.meadowlarkviolin-content{
	 margin: 36px 0;
	background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #bdbdbd;
}
.mv_btn_primary,
.mv_btn_green,
.mv_btn_yellow,
.mv_event_btn {
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  display: block;
  text-decoration: none;
  text-align: center;
}
.btn-add-note{
  padding: 8px 20px;
  border-radius: 8px;
  background: #e4ba16;
  color: #222222;
  font-size: 14px;
  transition: background 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: none;
}
.btn-cancel-note{
  padding: 8px 20px;
  border-radius: 8px;
  background: #e5e7eb;
  color: #222222;
  font-size: 14px;
  transition: background 0.2s;
  border: none;
}
.btn-add-note:hover {
  background: #d4aa10;
}
.mv_ul-bar {
  border: none;
  border-top: 2px solid #BDBDBD;
  padding-top: 20px;
}

.mv_layout {
  display: flex;
  min-height: 100vh;
  /* overflow: hidden; */
  background: #F7FBF9;
}

/* Sidebar */
.mv_sidebar {
  width: 260px;
  background: #fff;
  border-right: 1px solid #BDBDBD;
  padding: 20px;
  /* height: 100vh; */
  /* overflow-y: auto; */
  transition: transform 0.3s ease;
}

.mv_sidebar::-webkit-scrollbar {
  width: 4px;
}

.mv_sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.mv_sidebar::-webkit-scrollbar-thumb {
  background: #c7d8cf;
  border-radius: 10px;
}




.mv_logo {
  font-weight: bold;
  margin-bottom: 30px;
}

.mv_sidebar_section h4 {
  margin-bottom: 10px;
  color: #2B664C;
}

.mv_sidebar_section ul {
  list-style: none;
  margin-bottom: 20px;
}

.mv_sidebar_section li a {
  width: 100%;
  display: block;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
  position: relative;
  color: #222222;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mv_sidebar_section li a:hover {
  color: #2b664c;
  padding-right: 20px;
}

.mv_sidebar_section li a::after {
  content: "›";
  position: absolute;
  right: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 18px;
  color: #2b664c;
}

.mv_sidebar_section li a:hover::after {
  opacity: 1;
}

/* Main */
.mv_main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Navbar */
.mv_navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #FFFFFF;
  border-bottom: 3px solid #e4ba16;
  flex-shrink: 0;
}

.mv_nav_left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mv_menu_btn {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mv_nav_links {
  display: flex;
  gap: 10px;
}

.mv_nav_links span {
  cursor: pointer;
  white-space: nowrap;
}

.mv_mobile_overlay,
.mv_mobile_offcanvas {
  display: none;
}

.mv_mobile_overlay[hidden] {
  display: none !important;
}

.mv_nav_active {
  background: #fff8e2;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #BDBDBD;
}

.mv_nav_item {
  background: transparent;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.mv_nav_item:hover {
  background: #fff8e2;
  border: 1px solid #BDBDBD;
}

.mv_nav_right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mv_search {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #BDBDBD;
  min-width: 150px;
}



.mv_profile {
  background: #2B664C;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  position: relative;
}

.mv_profile_trigger {
  background: transparent;
  color: inherit;
  border: none;
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.mv_profile_dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1600;
}

.mv_profile.is-open .mv_profile_dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mv_profile_dropdown_link,
.mv_profile_dropdown_link a {
  display: block;
  color: #2b664c;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
  padding: 9px 10px;
  border-radius: 6px;
}

.mv_profile_dropdown_link:hover,
.mv_profile_dropdown_link a:hover {
  background: #fff8e2;
}

.mv_profile_logout_link a {
  color: #a33939;
}

/* Content */
.mv_content {
  padding: 20px;
  /* overflow-y: auto; */
  flex: 1;
}

.mv_greeting {
  margin-bottom: 20px;
  color: #2B664C;
}

.mv_mission_card {
  background: #E9F2EE;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
  border: 1px solid #BDBDBD;
}

/* Image promo: same block width/edge treatment as .mv_mission_card; no inner padding */
.mv_mission_card.mv_mission_card--banner {
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.mv_mission_card.mv_mission_card--banner .mv_mission_card__banner {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px; /* insets from container padding 0, matches inner feel of 12px card */
}

.mv_btn_primary {
  margin-top: 15px;
  padding: 10px 18px;
  border-radius: 8px;
  background: #e4ba16;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.mv_cards_row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.mv_card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #BDBDBD;
}

.mv_card_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.mv_card_title {
  font-size: 17px;
  font-weight: 500;
  color: #2B664C;
}

.mv_pin_icon {
  font-size: 16px;
  color: #777;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.mv_note {
  margin: 16px 0;
}

.mv_fav_list {
  list-style: none;
  margin: 10px 0;
}

.mv_fav_list li {
  margin-bottom: 8px;
}

.mv_link {
  font-size: 14px;
  color: #2B664C;
  text-decoration: underline;
  cursor: pointer;
}

/* Courses Section */
.mv_courses_section {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #BDBDBD;
  margin: 40px 0;
}

.mv_courses_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mv_courses_header h2 {
  color: #2B664C;
}

.mv_slider_controls {
  display: flex;
  gap: 10px;
}

.mv_slider_btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #c7d8cf;
  font-size: 22px;
  cursor: pointer;
}

.mv_slider_wrapper {
  overflow: hidden;
}

.mv_slider_track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.mv_course_card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #BDBDBD;
  flex: 0 0 calc(33.333% - 14px);
}

.mv_course_card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.mv_card_body {
  padding: 16px;
}
.mv_card_body h3 {
  font-size: 18px;
  margin-bottom: 4px;
  color: #2B664C;
}
.mv_card_body h3 a{
  color: #2B664C;
  text-decoration: none;
}

.mv_level {
  font-size: 14px;
  color: #777;
  margin-bottom: 12px;
}

.mv_progress {
  background: #E9F2EE;
  height: 8px;
  border-radius: 20px;
  overflow: hidden;
}

.mv_progress_fill {
  height: 100%;
  background: #2B664C;
}

.mv_progress_text {
  font-size: 13px;
  display: block;
  margin: 8px 0 12px;
  color: #777;
}

.mv_btn_green {
  background: #2B664C;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 12px;
  width: 100%;
  cursor: pointer;
  font-size: 14px;
}

.mv_btn_yellow {
  background: #e4ba16;
  border: none;
  padding: 10px;
  border-radius: 12px;
  width: 100%;
  cursor: pointer;
  font-size: 14px;
  color: #222222;
}

/* Events Section */
.mv_events {
  background: #2B664C;
  padding: 32px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.mv_events_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.mv_events_header h2 {
  color: #ffffff;
  font-size: 21px;
  margin: 0;
}

.mv_events_link {
  color: #e4ba16;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

.mv_events_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mv_event_card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.mv_event_tag {
  position: absolute;
  left: 50%;
  bottom: 40%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 12px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  color: #222222;
}

.mv_event_content {
  padding: 20px;
}

.mv_event_date {
  margin: 0 0 14px;
  font-size: 14px;
  color: #444;
}

.mv_event_btn, .btn-join{
  background: #e4ba16;
  border: none;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  color: #222222;
  text-decoration: none;  
}

.mv_sidebar_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mv_close_btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: none;
  padding: 5px;
  line-height: 1;
}


/* ===============================
   PROGRESS PATHWAYS (GRID)
   =============================== */

.mv_pathways_header {
  max-width: 900px;
  margin-bottom: 32px;
}

.mv_pathways_header h2 {
  margin-bottom: 12px;
}

.mv_pathways_header p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

/* 3-column grid */
.mv_pathways_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Responsive */
@media (max-width: 1024px) {
  .mv_pathways_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mv_pathways_grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   SEARCH RESULTS
   =============================== */

.search_results_header {
  margin-bottom: 28px;
}

.search_results_header .search_query {
  font-weight: 600;
  color: #2B664C;
}

.search_results_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.search_result_card {
  background: #fff;
  border: 1px solid #BDBDBD;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search_result_card:hover {
  border-color: #2B664C;
  box-shadow: 0 4px 12px rgba(43, 102, 76, 0.1);
}

.search_result_thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #E9F2EE;
}

.search_result_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search_result_body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.search_result_meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.search_result_type {
  background: #E9F2EE;
  color: #2B664C;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 500;
}

.search_result_title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.35;
}

.search_result_title a {
  color: #2B664C;
  text-decoration: none;
}

.search_result_title a:hover {
  text-decoration: underline;
}

.search_result_excerpt {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.search_result_excerpt p {
  margin: 0 0 0.5em;
}

.search_result_excerpt p:last-child {
  margin-bottom: 0;
}

.search_result_link {
  font-size: 14px;
  font-weight: 500;
  color: #2B664C;
  text-decoration: none;
}

.search_result_link:hover {
  text-decoration: underline;
}

.search_no_results {
  text-align: center;
  padding: 48px 24px;
  background: #F7FBF9;
  border-radius: 14px;
  border: 1px solid #BDBDBD;
}

.search_no_results_message {
  font-size: 17px;
  color: #444;
  margin: 0 0 24px;
}

.search_no_results .search-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}

.search_no_results .search-field {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #BDBDBD;
  border-radius: 8px;
  font-size: 15px;
}

.search_no_results .search-submit {
  padding: 10px 20px;
  background: #2B664C;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
}

.search_no_results .search-submit:hover {
  background: #234d3d;
}

/* Search results pagination */
.mv_content .pagination {
  margin-top: 32px;
}

.mv_content .pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mv_content .pagination .page-numbers {
  padding: 8px 14px;
  border: 1px solid #BDBDBD;
  border-radius: 8px;
  text-decoration: none;
  color: #2B664C;
  background: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.mv_content .pagination .page-numbers:hover,
.mv_content .pagination .page-numbers.current {
  background: #2B664C;
  color: #fff;
  border-color: #2B664C;
}

@media (max-width: 1024px) {
  .search_results_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .search_results_grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .search_result_body {
    padding: 16px;
  }

  .search_result_title {
    font-size: 17px;
  }
}

/* ===============================
   PINNED NOTES (GOALS STYLE)
   =============================== */

.mv_pinned_notes_section {
  margin: 40px 0;
}

.mv_section_title {
  font-size: 21px;
  font-weight: 600;
  color: #2B664C;
  margin-bottom: 24px;
}

/* Two-card layout */
.mv_pinned_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Card tweak */
.mv_pinned_card {
  padding: 28px;
  border-radius: 14px;
}

/* Header inside card */
.mv_pinned_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mv_pinned_header h3 {
  font-size: 17px;
  font-weight: 500;
  color: #2B664C;
}

/* Icons */
.mv_pinned_actions {
  display: flex;
  gap: 14px;
  font-size: 16px;
  cursor: pointer;
}

.mv_pinned_actions {
  display: flex;
  gap: 14px;
}

.mv_action_icon {
  cursor: pointer;
  color: #e4ba16;
  /* yellow like your design */
  display: flex;
  align-items: center;
  justify-content: center;
}

.download_item:hover {
  background-color: #f7fbf9;
  border-color: #2b664c;
}

.tab_content p.logged-in-as {
  display: none;
}

ol.children {
  border-bottom: 1px solid #dddddd;
  padding-bottom: 12px;
  margin-bottom: 36px;
}

ol.comment-list li {
  padding: 12px 0;
}
/* Meta text */
.mv_meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

/* Main content */
.mv_pinned_text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .mv_pinned_grid {
    grid-template-columns: 1fr;
  }
}


/* Favorites */
.favorites_wrapper {}

/* Title & description */
.favorites_title {
  font-size: 26px;

  margin-bottom: 10px;
}

.favorites_desc {
  color: #666;
  font-size: 15px;
  margin: 4px 0;
}

/* Card */
.favorite_card {
  background: #fff;
  border: 1px solid #BDBDBD;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  cursor: pointer;
}

.favorite_card:hover {
  border-color: #2B664C;
}

/* Header */
.favorite_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.favorite_header h3 {
  /* font-size: 18px; */
  /* margin: 0; */
}

/* Heart */
.heart_icon {
  font-size: 18px;
  cursor: pointer;
}

/* Meta */
.favorite_date {
  font-size: 14px;
  color: #666;
  margin: 6px 0;
}

.favorite_meta {
  font-size: 14px;
  color: #444;
}

.favorite_meta span {
  margin: 0 6px;
}

.woocommerce-notice {
	margin: 20px 0;
}
.woocommerce-order-details {
	margin-top: 30px;
}

/* NOTES */

.notes_wrapper {
  /* max-width: 1080px; */
  /* margin: auto; */
  /* padding: 24px; */
  /* background: #F7FBF9; */
}

/* Header */
.notes_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notes_header h2 {
  /* */
  font-size: 21px;
}

.add_note_btn {
  background: #e4ba16;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 400;
  cursor: pointer;
  color: #222222;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
  margin-left: auto;
}

.add_note_btn:hover {
  opacity: 0.9;
}

.add_note_btn span:first-child {
  font-size: 18px;
  font-weight: 500;
}

#add-note-button {
  margin-left: 0 !important;
}

/* Search */
.search_box{
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #BDBDBD;
  padding: 12px 14px;
  border-radius: 10px;
}

.search_box input,.search_box input:focus,.search_box input:active {
  border: none;
  outline: none;
  width: 100%;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

/* Cards */
.note-card {
  background: #fff;
  border: 1px solid #BDBDBD;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.transition-shadow {
  transition: box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-shadow:hover {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 8px;
}

.note-header h3,
.note-header h4 {
  font-size: 18px;
  margin: 0;
}

.note-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.note-edit-btn,
.note-delete-btn,
.note-pin-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.note-edit-btn:hover,
.note-delete-btn:hover,
.note-pin-btn:hover {
  opacity: 1;
}

.note-pin-btn.pinned svg {
  fill: #e4ba16;
}

.note-header .link {
  text-decoration: underline;
}

.note-date {
  color: #666;
  font-size: 14px;
  margin: 6px 0;
}

.note-content-wrapper {
  margin-bottom: 8px;
}

.note-content {
  font-size: 15px;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  word-wrap: break-word;
  line-height: 1.5;
}

.note-content.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Ensure pinned and regular note text also get truncation when used with note-content */
.note-content.mv_pinned_text,
.note-content.note_text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.note-content.mv_pinned_text.expanded,
.note-content.note_text.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.notes-form-container {
  border: 1px solid #BDBDBD;
  background-color: #F7FBF9;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.read-more-link,
.read-less-link {
  color: #2b664c;
  text-decoration: underline;
  font-size: 14px;
  cursor: pointer;
  margin-top: 4px;
  display: inline-block;
}

.note-title {
  color: #2b664c;
  margin-bottom: 8px;
}

/* Actions */
.mv_pinned_actions {
  display: flex;
  gap: 12px;
}

.mv_action_icon {
  cursor: pointer;
  color: #e4ba16;
}

.mv_action_icon:hover {
  color: #2B664C;
}

/* Read More */
.read_more {
  color: #2B664C;
  font-weight: 400;
  text-decoration: underline;
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
}
/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */

/* Tablet: 769px - 1024px */
@media (max-width: 1024px) {
  .mv_course_card {
    flex: 0 0 calc(50% - 10px);
  }

  .mv_nav_links span {
    font-size: 14px;
    padding: 10px;
  }
}

/* Mobile: 481px - 768px */
@media (max-width: 768px) {

  /* Sidebar mobile behavior */
  .mv_sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 1000;
    transform: translateX(-100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .mv_sidebar.mv_sidebar_open {
    transform: translateX(0);
  }

  .mv_close_btn {
    display: block;
  }

  /* Navbar adjustments */
  .mv_menu_btn {
    display: block;
  }

  .mv_nav_links {
    display: none;
  }

  .mv_mobile_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1400;
    display: block;
  }

  .mv_mobile_offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: min(85vw, 320px);
    height: 100vh;
    background: #ffffff;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 1500;
    padding: 16px;
    display: block;
    overflow-y: auto;
  }

  .mv_mobile_offcanvas.is-open {
    transform: translateX(0);    
    box-shadow: 6px 0 20px rgba(0, 0, 0, 0.18);
  }

  .mv_mobile_offcanvas_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    color: #2b664c;
  }

  .mv_mobile_close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #2b664c;
    padding: 0;
  }

  .mv_mobile_nav_links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mv_mobile_nav_links span {
    display: block;
    white-space: normal;
  }

  .mv_navbar {
    padding: 12px 15px;
  }
	.search_no_results .mv_search {
		 min-width: 100%;
    max-width: 100%;
	}
  .mv_search {
    min-width: 100px;
    max-width: 180px;
  }

  /* Content adjustments */
  .mv_content {
    padding: 15px;
  }

  .mv_greeting {
    font-size: 24px;
  }

  .mv_mission_card {
    padding: 20px;
  }

  /* Cards single column */
  .mv_cards_row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Courses section */
  .mv_courses_section {
    margin: 30px 0;
  }

  .mv_course_card {
    flex: 0 0 100%;
  }

  .mv_courses_header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .mv_courses_header h2 {
    font-size: 22px;
  }

  .mv_slider_controls {
    align-self: flex-end;
  }

  /* Events section */
  .mv_events {
    padding: 24px 20px;
  }

  .mv_events_header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .mv_events_header h2 {
    font-size: 22px;
  }

  .mv_events_grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mv_event_image {
    height: 250px;
  }

  .mv_event_tag {
    font-size: 16px;
    padding: 12px 16px;
  }
}

/* Small Mobile: 320px - 480px */
@media (max-width: 480px) {
  .mv_navbar {
    padding: 10px;
  }

  .mv_search {
    font-size: 12px;
    padding: 5px 8px;
  }

  .mv_profile {
    font-size: 14px;
  }

  .mv_content {
    padding: 12px;
  }

  .mv_greeting {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .mv_mission_card {
    padding: 15px;
  }

  .mv_mission_card h2 {
    font-size: 18px;
  }

  .mv_btn_primary {
    padding: 8px 14px;
    font-size: 13px;
  }

  .mv_card {
    padding: 15px;
  }

  .mv_card_title {
    font-size: 16px;
  }

  .mv_courses_section {
    margin: 20px 0;
  }

  .mv_courses_header h2 {
    font-size: 20px;
  }

  .mv_slider_btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .mv_card_body h3 {
    font-size: 16px;
  }

  .mv_events {
    padding: 20px 15px;
  }

  .mv_events_header h2 {
    font-size: 20px;
  }

  .mv_event_image {
    height: 200px;
  }

  .mv_event_tag {
    font-size: 14px;
    padding: 10px 12px;
  }

  .mv_event_content {
    padding: 15px;
  }
}

/* Overlay for mobile sidebar */
@media (max-width: 768px) {
  .mv_sidebar.mv_sidebar_open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
}


/* Layout */
.lesson_layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.lesson_sidebar {
  width: 440px;
  background: #fff;
  border-right: 1px solid #bdbdbd;
  height: 100vh;
  overflow-y: auto;
  padding: 24px;
  position: fixed;
  left: 0;
  top: 0;
}

.lesson_sidebar::-webkit-scrollbar {
  width: 4px;
}

.lesson_sidebar::-webkit-scrollbar-thumb {
  background: #c7d8cf;
  border-radius: 10px;
}

/* Sidebar close button */
.sidebar_close_btn {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  font-size: 20px;
  cursor: pointer;
  color: #2b664c;
  align-items: center;
  justify-content: center;
}

/* Show close button only on mobile */
@media (max-width: 768px) {
  .sidebar_close_btn {
    display: flex;
  }
}

.back_link {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  color: #666;
  text-decoration: none;
  font-size: 12px;
  margin-bottom: 24px;
  cursor: pointer;
}

.back_link:hover {
  color: #2b664c;
}



.course_info h3 {
  font-size: 18px;
  color: #2b664c;
  margin-bottom: 16px;
  border-top: 2px solid #BDBDBD;
  margin-top: 14px;
  padding-top: 18px;
  /* border-bottom: 2px solid #bdbdbd; */
}

.progress_bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress_fill {
  height: 100%;
  background: #e4ba16;
  transition: width 0.3s ease;
}

.progress_text {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
  display: block;
  border-bottom: 2px solid #bdbdbd;
  padding-bottom: 14px;
}

.search_box {
  position: relative;
  margin-bottom: 24px;
}

.search_box input {
  /* width: 100%; */
  /* padding: 12px 40px 12px 14px; */
  /* border: 1px solid #bdbdbd; */
  /* border-radius: 8px; */
  /* font-size: 14px; */
  /* outline: none; */
}
.search_icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.toggle_section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #bdbdbd;
  margin-bottom: 24px;
}

.toggle_label {
  display: flex;
  gap: 8px;
  font-size: 15px;
  color: #222;
}

.toggle_switch {
  position: relative;
  width: 48px;
  height: 24px;
  background: #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle_switch.active {
  background: #2b664c;
}

.toggle_switch::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle_switch.active::after {
  transform: translateX(24px);
}

/* Stage sections */
.stage_item {
  margin-bottom: 16px;
  border-bottom: 2px solid #bdbdbd;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.stage_item.open {
  background: #F7FBF9;
}



.stage_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.stage_header:hover {
  background: #f5f5f5;
}

.stage_left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stage_icon {
  width: 24px;
  height: 24px;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.stage_icon.completed {
  background: #e4ba16;
  border-color: #e4ba16;
  color: white;
}

.stage_title {
  font-size: 15px;
  color: #222;
  font-weight: 500;
}

.stage_arrow {
  font-size: 18px;
  color: #666;
  transition: transform 0.3s;
}

.stage_item.open .stage_arrow {
  transform: rotate(90deg);
}

.stage_collapse {
  display: flex;
  align-items: center;
  gap: 8px;
}

.collapse_btn {
  width: 24px;
  height: 24px;
  border: 1px solid #bdbdbd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
}

/* Nested lessons */
.stage_content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fafafa;
}

.stage_item.open .stage_content {
  max-height: 2500px;
}

.lesson_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 14px 52px;
  border-top: 1px solid #bdbdbd;
  cursor: pointer;
  transition: background 0.2s;
}

.lesson_item.nested_parent {
  background: #F7FBF9;
  /* border: none !important; */
}

.lesson_item.nested_child {
  padding-left: 92px;
  background: #F7FBF9;
  border: none;
}

.lesson_item.active {
  background: #f0f0f0;
}

.lesson_item.active.nested_parent {
  background: #f0f0f0;
}

.lesson_item.active.nested_child {
  background: #f0f0f0;
}

.lesson_item:hover {
  background: #f0f0f0;
}

.nested_content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nested_content.open {
  max-height: 1000px;
}

.lesson_time {
  font-size: 13px;
  color: #666;
}

.lesson_left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.lesson_icon {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.lesson_icon.completed {
  background: #e4ba16;
  border-color: #e4ba16;
  color: white;
}

.lesson_name {
  font-size: 14px;
  color: #222;
}

.lesson_progress {
  font-size: 13px;
  color: #666;
  margin-right: 8px;
}

.lesson_arrow {
  font-size: 16px;
  color: #666;
  transition: transform 0.3s;
  display: inline-block;
}

/* Main Content */
.lesson_main {
  margin-left: 440px;
  flex: 1;
  padding: 32px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.breadcrumb span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lesson_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.lesson_header h1 {
  font-size: 32px;
  color: #2b664c;
}

.header_actions {
  display: flex;
  gap: 12px;
}

.icon_btn {
  width: 48px;
  height: 48px;
  border: 1px solid #bdbdbd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s;
}

.icon_btn:hover {
  border-color: #2b664c;
  color: #2b664c;
}

.icon_btn.active {
  color: #e4ba16;
  border-color: #e4ba16;
}

.complete_btn {
  padding: 12px 24px;
  background: #e0e0e0;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.complete_btn:hover {
  background: #d0d0d0;
}

/* Video Player */
.video_container {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.video_container video {
  width: 100%;
  display: block;
  height: 420px;
}

.video_overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.video_overlay:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.play_icon {
  width: 0;
  height: 0;
  border-left: 24px solid #2b664c;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}

.video_controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.control_btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.time_display {
  color: white;
  font-size: 14px;
}

.video_progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.video_progress_fill {
  height: 100%;
  background: #e4ba16;
  width: 35%;
}

.settings_btn,
.fullscreen_btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  margin-left: auto;
}

/* Tabs */
.tabs_container {
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.tab_item {
  padding: 12px 0;
  font-size: 15px;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab_item:hover {
  color: #2b664c;
}

.tab_item.active {
  color: #2b664c;
  border-bottom-color: #2b664c;
}

.add_note_btn {
  margin-left: auto;
  padding: 10px 20px;
  background: #e4ba16;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.add_note_btn:hover {
  opacity: 0.9;
}

/* Tab Content */
.tab_content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #bdbdbd;
}

.tab_content h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.tab_content p {
  font-size: 15px;
  /* line-height: 1.8; */
  /* color: #444; */
}

/* Mobile styles */
@media (max-width: 1024px) {
  .lesson_sidebar {
    width: 360px;
  }

  .lesson_main {
    margin-left: 360px;
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .lesson_layout {
    flex-direction: column;
  }

  .lesson_sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #bdbdbd;
  }

  .lesson_main {
    margin-left: 0;
    padding: 20px;
    overflow-y: auto;
    height: 100vh;
  }

  .lesson_header h1 {
    font-size: 24px;
    width: 100;
  }

  .header_actions {
    flex-wrap: wrap;
  }

  .icon_btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .complete_btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .tabs_container {
    overflow-x: auto;
    gap: 20px;
  }

  .add_note_btn {
    margin-left: 0;
    margin-top: 12px;
  }
}

@media (max-width: 480px) {
  .lesson_sidebar {
    padding: 16px;
  }

  .lesson_main {
    padding: 16px;
    overflow-y: auto;
    height: 100vh;
  }

  .lesson_header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header_actions {
    width: 100%;
    justify-content: center;
  }

  .breadcrumb {
    font-size: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tab_content {
    padding: 16px;
  }
}

/* Mobile sidebar button */
.mobile_menu_btn {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #2b664c;
}

/* Overlay */
.sidebar_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

/* MOBILE SIDEBAR BEHAVIOR */
@media (max-width: 768px) {
  .mobile_menu_btn {
    display: block;
  }

  .lesson_sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 85%;
    max-width: 360px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .lesson_sidebar.active {
    transform: translateX(0);
  }

  .sidebar_overlay.active {
    display: block;
  }

  .lesson_main {
    margin-left: 0;
  }

  .lesson_header {
    /* flex-direction: row; */
    align-items: center;
    gap: 12px;
  }
}

.download_list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid #d6d6d6;
  border-radius: 12px;
  background: #ffffff;
}

.download_left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.download_icon_box {
  width: 40px;
  height: 40px;
  background: #e9f1ed;
  color: #2b664c;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 18px;
}

.download_title {
  font-weight: 500;
  margin-bottom: 4px;
  color: #222222;
  font-size: 15px;
}

.download_meta {
  font-size: 13px;
  color: #666;
}

.download_action {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #2b664c;
  cursor: pointer;
  text-decoration: none;
}

.timestamps_tab ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timestamps_tab ul li {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 600px) {
  .download_item {
    padding: 14px;
  }

  .download_title {
    font-size: 14px;
  }
}

/* Comments / Q&A Section */
.comments-area {
  width: 100%;
}

.comments-area ul,
.comments-area ol {
  list-style: none;
}

.comment-respond {
  margin-bottom: 0;
}

/* Comment Form */
.comment-form-comment {
  margin-bottom: 16px;
}

.comment-form-comment label {
  display: none;
}

.comment-form-comment textarea {
  width: 100%;
  min-height: 140px;
  padding: 16px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.comment-form-comment textarea:focus {
  border-color: #2b664c;
}

.form-submit {
  margin-top: 16px;
}

.form-submit button {
  padding: 12px 22px;
  background: #e4ba16;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #222222;
  transition: opacity 0.2s;
}

.form-submit button:hover {
  opacity: 0.9;
}

/* Comments Divider */
.comments-divider {
  margin: 32px 0;
  border-top: 1px solid #dddddd;
}

/* Comment List */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list li {
  margin: 0;
  padding: 0;
}

.comment-wrapper {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 0;
}

.comment-reply-wrapper {
  margin-left: 60px;
/*   margin-top: 24px; */
}

/* Comment Avatar */
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8ecea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #2b664c;
  flex-shrink: 0;
  font-size: 14px;
}

.comment-avatar-admin {
  background: #f0e6c8;
  color: #9b7b0c;
}

/* Comment Content */
.comment-content {
  flex: 1;
}

.comment-author {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 15px;
  color: #222;
}

.comment-date {
  font-weight: 400;
  color: #777;
  font-size: 13px;
}

.comment-text {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-top: 0;
}

.comment-text p {
  margin: 0;
}

/* Mobile */
@media (max-width: 600px) {
  .comment-reply-wrapper {
    margin-left: 0;
  }

  .comment-wrapper {
    gap: 12px;
  }

  .comment-avatar {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
}