/* Lesson page styling */


.lesson-hero {
  position: relative;
  width: 100%;
  background-color: #FFF;
  padding:60px;
  overflow: hidden;
  margin-top: 0; /* Remove top margin to allow overlay */
}





/* Make header overlay the video */
.mainheader {
  background: transparent !important;
  z-index: 1100;
}

/* Custom Plyr controls styling to match the image */
.plyr {
  height: 100vh;
  position: relative;
  z-index: 5; /* Lower than overlay */
}

#lesson-player {
  z-index: 5;
  position: relative;
}

.plyr__video-wrapper {
  z-index: 5;
  position: relative;
}

.plyr__controls {
  z-index: 1050 !important;
  position: relative;
}

.plyr__control--overlaid {
  z-index: 1050;
}

.plyr--video {
  height: 100%;
}

video
{
  object-fit: cover;
}

.plyr__control--overlaid {
  background: rgba(255, 255, 255, 0.8);
}

.plyr--full-ui.plyr--video .plyr__control--overlaid {
  display: flex;
}

/* Customize the control bar */
.plyr__controls {
  padding: 15px 15px !important;
  width:95%;
  position:absolute;
  height:100%;
  top:0;
  bottom:auto;
  margin:0 auto 25px auto;
  background: transparent !important;
}

/* Video title */
.video-title {
  position: absolute;
  bottom: 150px;
  pointer-events: none;
  padding-left:60px;
  color: white;
  font-size: 28px;
  font-weight: 500;
  z-index: 1000;
  font-family: var(--font-inter, sans-serif);
  transition: opacity 0.2s ease;
}

.video-subtitle {
  position: absolute;
  bottom: 190px;
  pointer-events: none;
  padding-left:60px;
  color: white;
  z-index: 1000;
  transition: opacity 0.2s ease;
}

@media (max-width: 768px)
{
.lesson-hero .video-subtitle
{
  margin: 0 auto;
  padding-left:0;
  width: 100%;
  text-align: center;
}
}

/* Custom time display */
.plyr__time {
  font-weight: normal;
  color: rgba(255, 255, 255, 0.8);
  padding: 0;
  display: inline-block !important;
}

.plyr__time--current {
  margin: 0;
  padding: 0 !important;
  display: inline-block !important;
  position: absolute;
  bottom: 20px;
  left: 2.5%;
}

.plyr__time--duration {
  margin: 0;
  padding: 0 !important;
  display: inline-block !important;
  position: absolute;
  bottom: 20px;
  right: 2.5%;
}

/* Space between controls */
.plyr__controls .plyr__control {
  margin-right: 5px;
}

/* Make progress bar thicker */
.plyr--full-ui input[type=range] {
  height: 6px;
}

/* Customize progress bar color */
.plyr--full-ui input[type=range]::-webkit-slider-runnable-track {
  background-color: rgba(255, 255, 255, 0.25);
}

.plyr--full-ui input[type=range]::-moz-range-track {
  background-color: rgba(255, 255, 255, 0.25);
}

.plyr--full-ui input[type=range]::-ms-track {
  background-color: rgba(255, 255, 255, 0.25);
}

.plyr--full-ui input[type=range]::-webkit-slider-thumb {
  background: #fff;
}

.plyr--full-ui input[type=range]::-moz-range-thumb {
  background: #fff;
}

.plyr--full-ui input[type=range]::-ms-thumb {
  background: #fff;
}

/* Played progress color */
.plyr__progress input[type=range]::-webkit-slider-runnable-track {
  background-image: linear-gradient(to right, white var(--value, 0%), transparent var(--value, 0%));
}

.plyr__progress input[type=range]::-moz-range-track {
  background-image: linear-gradient(to right, white var(--value, 0%), transparent var(--value, 0%));
}

.plyr__progress input[type=range]::-ms-track {
  background-image: linear-gradient(to right, white var(--value, 0%), transparent var(--value, 0%));
}

/* Fullscreen button positioning */
.plyr__control[data-plyr="fullscreen"] {
  margin-right: 0;
  position:absolute;
  bottom:70px;
  right:2.5%;
}

.plyr__progress__container {
  bottom: 50px;
  position: absolute;
  width: 95%;
  left: 2.5%;
}

/* Progress bar markers */
.plyr__progress__marker {
  -webkit-appearance: none;
  background-color: #fff;
  border: 0;
  height: 4px;
  margin-top: 0px;
  position: absolute;
  top: 50%;
  width: 3px;
  z-index: 3;
}

/* Time separator styling */
.plyr__time-divider {
  display: none !important;
}

/* Responsive styles */
@media (max-width: 768px) {
  .lesson-hero {
    height: auto;
    padding:0;
    margin-top: 20px;
    margin-bottom:40px;
  }

  .home .lesson-hero
  {
    margin-top: 0px;
    padding:0;

  }

  .plyr__video-wrapper {
    height: auto;
  }
  .plyr--video {
    height: auto;
  }

  .plyr
  {
    height: auto;
  }
  
  .video-title {
    font-size: 18px;
    bottom: 100px;
    width:90%;
    padding-left:15px;
    margin:0 auto;
    display:none;
  }
  .plyr__controls {
    width:95%;
    margin-bottom:0px;
  }
}

@media (max-width: 576px) {
  .plyr__time--current,
  .plyr__time--duration {
    display: inline-block !important;
  }
  
  .video-title {
    font-size: 16px;
    bottom: 60px;
  }
} 

/* Volume control in top right corner */
.plyr__volume {
  position: absolute !important;
  top: 20px !important;
  right: 0px !important;
  background: #333 !important;
  border-radius: 8px !important;
  padding: 8px 15px !important;
  z-index: 1100 !important;
  pointer-events: auto !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.plyr__volume input[data-plyr="volume"] {
  display: block !important;
  width: 100px;
  height: 8px;
  margin: 0;
  transform: none;
  position: relative;
  top: 0;
  right: 0;
}

/* Responsive styles for volume control */
@media (max-width: 768px) {
  .plyr__volume {
    top: 10px !important;
    right: 10px !important;
    padding: 6px 10px !important;
  }
  
  .plyr__volume input[data-plyr="volume"] {
    width: 70px;
  }
}

/* Topic Resources Section */
.topic-resources {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 30px;
  font-family: var(--font-inter, sans-serif);
}

.resources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.resource-card {
  position: relative;
  width: 33%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.resource-image {
  position: relative;
  width: 100%;
  height: 540px;
  overflow: hidden;
}

.resource-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.resource-card:hover .resource-image img {
  transform: scale(1.05);
}

.resource-label {
  position: absolute;
  font-weight: bold;
  top: 20px;
  left: 20px;
  color: #FFF;
  font-size: 18px;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: var(--font-inter, sans-serif);
}

.add-resource-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: black;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.add-resource-btn:hover {
  background-color: #f8f9fa;
  transform: scale(1.1);
}

.add-resource-btn svg {
  width: 24px;
  height: 24px;
  color: #FFF;
  transition: color 0.3s ease;
}

.add-resource-btn:hover svg {
  color: #000;
}

/* Responsive adjustments for Topic Resources */
@media (max-width: 768px) {
  .topic-resources {
    padding: 40px 15px;
  }
  
  .section-title {
    font-size: 32px;
    margin-bottom: 20px;
  }
  
  .resources-grid {
    justify-content: center;
  }
  
  .resource-card {
    width: 100%;
    max-width: 360px;
  }
  
  .resource-image {
    height: 400px;
  }
}

/* Resource Overlay Styling */
.resource-overlay {
  display: block;
  padding: 0;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.overlay-content {
  min-height: 100vh;
  margin: 0;
  position: relative;
  border-radius: 24px;
  margin:60px;
}

.lesson-tabs-container {
  background-color: #f9f9f9;
  padding: 15px 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.lesson-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0;
  border-bottom: none;
}



.teacher-notes-slider-container .slick-prev
{
  background:#FFF000;
  width:100px;
  height:100px;
  border-radius:50%;
  
}

.lesson-bar a {
  position: relative;
  margin: 0 15px;
  padding: 10px 5px;
  transition: all 0.3s ease;
}

.lesson-bar a.active-tab,
.lesson-bar a.fw-bold {
  color: #000 !important;
}

.lesson-bar a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #000;
  transition: width 0.3s ease;
}

.lesson-bar a.active-tab:after,
.lesson-bar a.fw-bold:after {
  width: 100%;
}

.resource-overlay .close-overlay {
  position: absolute;
  top: 80px;
  right: 20px;
  background: #000;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-overlay .close-overlay svg {
  stroke: white;
  width: 24px;
  height: 24px;
}

.resource-overlay .close-overlay:hover {
  opacity: 0.9;
}

.teacher-notes h3 {
  margin-bottom: 15px;
  color: #333;
  font-weight: 600;
  font-size: 18px;
}

.teacher-notes blockquote {
  border-left: 4px solid #e9e9e9;
}

.teacher-notes blockquote p {
  font-style: italic;
  line-height: 1.6;
  font-size: 16px;
}

.teacher-notes blockquote footer {
  font-size: 14px;
  color: #6c757d;
}

.subsystem-images img {
  width: 100%;
  object-fit: cover;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .resource-overlay {
    padding: 0;
  }
  
  .overlay-content {
    min-height: calc(100vh - 60px);
    margin-top: 60px;
  }
}

/* Overview section styling */
.overview-container {
  background-color: #FFF;
  min-height: 100vh;
  position: relative;
}

.overview-nav {
  background-color: #F9FAFB;
  padding: 16px 0;
  text-align: center;
  border-bottom: 1px solid #E5E7EB;
}

.overview-nav-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.overview-tabs {
  display: inline-block;
}

.overview-tab {
  font-size: 16px;
  color: #111827;
  text-decoration: none;
  padding: 8px 12px;
  margin: 0 16px;
  font-family: var(--font-inter, sans-serif);
  position: relative;
}

.overview-tab.active {
  color: #111827;
  font-weight: 500;
}

.overview-tab.active::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #111827;
}

.close-button {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 100;
  background: #000;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.close-button svg,
.close-button span {
  font-size: 18px;
  color: #fff;
}

.overview-header {
  padding: 60px 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.overview-header .course-title {
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 12px;
  font-family: var(--font-inter, sans-serif);
}

.overview-header .section-heading {
  font-size: 48px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  font-family: var(--font-inter, sans-serif);
  line-height: 1.1;
}

.overview-content {
  padding: 0 60px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.overview-image {
  width: 100%;
  height: auto;
  margin-top: 32px;
  border-radius: 0;
  overflow: hidden;
}

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

@media (max-width: 768px) {
  .overview-header {
    padding: 32px 16px;
  }
  
  .overview-content {
    padding: 0 16px 32px;
  }
  
  .overview-header .section-heading {
    font-size: 32px;
  }
  
  .overview-tabs {
    gap: 16px;
  }

  .close-button {
    right: 16px;
    top: 16px;
    width: 32px;
    height: 32px;
  }
}

.overlay-content h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-top: 10px;
  font-weight: 700;
}

.overlay-content small {
  font-size: 16px;
  color: #666;
  display: block;
}

.overlay-content img {
  border-radius: 0;
  max-width: 100%;
}

.overlay-content .lead {
  font-size: 18px;
  line-height: 1.6;
}

.teacher-notes h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.teacher-notes blockquote {
  border-left: 4px solid #e9e9e9;
  background-color: #f8f9fa;
}

@media (max-width: 767px) {
  .overlay-content h1 {
    font-size: 32px;
  }
  
  .lesson-tabs-container {
    padding: 10px 0;
  }
  
  .lesson-bar {
    gap: 25px;
  }
}

/* Subsystem Container Styling */
.subsystem-container {
  border-radius: 16px !important;
  overflow: hidden;
  transition: all 0.3s ease;
  padding:75px 50px;
  font-weight: 500;
  font-size: 20px;
}

.subsystem-container img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.subsystem-container h2 {
  color: #333;
  margin-top: 0.5rem;
}

.subsystem-container p {
  color: #555;
  line-height: 1.6;
}

.subsystem-container .teacher-notes blockquote {
  background-color: #fff;
  border-left: 4px solid #ddd;
}

@media (max-width: 767px) {
  .subsystem-container .row {
    flex-direction: column-reverse;
  }
  
  .subsystem-container img {
    margin-top: 1.5rem;
  }
}

/* Teacher's Notes Slider Styles */
.teacher-notes-slider-container {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  overflow: hidden;
  background-color: #F7F7F7;
  border-radius: 16px;
  padding: 0;
  position: relative;
  padding:75px 0px 75px 50px;
}

.teacher-notes-slider .slick-track {
  display: flex;
  align-items: stretch;
}

.teacher-notes-slider .slick-slide {
  height: auto;
}

.teacher-notes-slider .slick-slide > div {
  /*height: 100%;*/
}

.teacher-notes-slider .slide {
  outline: none;
  height: 100%;
}

.teacher-notes-slider .row {
  margin: 0;
}

.teacher-notes-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.teacher-notes-slider h2 {
  font-size: 34px;
  font-weight: 600;
  color: #000;
  margin-bottom: 1.5rem;
}

.teacher-quote {
  max-width: 580px;
}

.teacher-quote p {
  font-weight: 400;
  color: #666;
  line-height: 1.6;
}

.teacher-quote p:last-child {
  font-weight: 600;
  color: #000;
  margin-top: 1rem;
}


.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  z-index: 10;
  height:auto;
}

.slider-nav button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: all 0.2s ease;
  margin: 0 5px;
  color: #fff !important;
}

.slider-prev {
  background-color: #000 !important;
}

.slider-next {
  background-color: #000 !important;

}

.slider-prev svg, 
.slider-next svg {
  width: 20px;
  height: 20px;
}

.slider-next svg {
  stroke: white;
}

@media (max-width: 767px) {
  .teacher-notes-slider .row {
    flex-direction: column-reverse;
  }
  
  .teacher-notes-slider img {
    height: 250px !important;
  }
  
  .teacher-notes-slider h2 {
    font-size: 1.75rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  
  .teacher-notes-content {
    padding: 1.5rem !important;
  }
  
  .teacher-quote {
    max-width: 100%;
  }
}

/* Mobile styles for the lesson tabs */
@media (max-width: 767px) {
  /* Styling for the section title area on mobile */
  .lesson-tabs-container {
    padding: 0;
    margin-bottom: 15px;
  }
  
  .lesson-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    margin: 0 0 20px 0;
  }
  
  .lesson-bar a {
    display: inline-block;
    padding: 15px 0;
    margin: 0;
    background-color: #E7E7E7;
    color: #000;
    text-align: center;
    width: 49%;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
  }
  
  .lesson-bar a.active,
  .lesson-bar a:hover {
    background-color: #353535;
    color: #FFF;
  }
  
  /* Energy Practitioner heading styling */
  .overlay-content small {
    font-size: 12px;
    line-height: 8px;
    letter-spacing: 0px;
    color: #666;
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
    padding: 28px 0 6px 0;
  }
  
  /* Main title styling */
  .overlay-content h1 {
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
  }
  
  /* Teacher name styling */
  .teacher-name {
    font-size: 12px;
    line-height: 17px;
    letter-spacing: 0px;
    color: #666;
    margin-bottom: 0;
    padding-bottom: 28px;
    display: block;
  }
  
  /* Overall content container spacing */
  .overlay-content {
    padding: 20px 15px;
    background-color: #FFF !important;
  }
  
  /* Hide some elements on mobile if needed */
  .resource-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background-color: #FFF;
    overflow-y: auto;
  }
  
  .resource-overlay .close-overlay {
    top: 15px;
    right: 15px;
  }
  
  /* Adjust padding for container */
  .py-4 {
    padding-top: 0 !important;
  }
  
  /* Remove extra margins */
  .mx-auto {
    padding: 0;
  }
  
  /* Mobile tabs specific styles */
  .mobile-tabs a {
    padding: 15px 0;
    border-radius: 10px;
  }
  
  .mobile-tabs a.active {
    background-color: #353535;
    color: #FFF;
  }
  
  .mobile-tabs a:not(.active) {
    background-color: #E7E7E7;
    color: #000;
  }
  
  /* Mobile header text styles */
  .mobile-header small {
    font-size: 12px;
    line-height: 8px;
    letter-spacing: 0px;
    padding: 28px 0 6px 0;
  }
  
  .mobile-header h1 {
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
  }
  
  .mobile-header .author {
    font-size: 12px;
    line-height: 17px;
    letter-spacing: 0px;
    padding-bottom: 28px;
  }
}

/* Mobile slider navigation styling */
.mobile-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
}

.mobile-nav button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: all 0.2s ease;
  margin: 0 8px;
  padding: 0;
  box-shadow: none;
  color: #fff !important;
  background-color: #000 !important;
}


.mobile-slider-prev svg, 
.mobile-slider-next svg {
  width: 20px;
  height: 20px;
}

.mobile-slider-next svg {
  stroke: white;
}

/* Fix for mobile slider height */
.mobile-notes-slider .slick-list,
.mobile-notes-slider .slick-track {
  height: auto !important;
  overflow: hidden;
}

.mobile-notes-slider .slide {
  height: auto !important;
  padding-bottom: 20px;
}

.mobile-notes-slider .slick-slide {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-notes-slider .slick-active {
  visibility: visible;
  opacity: 1;
}

.mobile-notes-slider img {
  margin: 0 auto;
  max-width: 100%;
  display: block;
}

.mobile-image-section img {
  width: 100%;
  height: auto;
  border-radius: 0;
  margin-top: 0;
}

.mobile-teachers-notes {
  background-color: #FFFFFF;
  padding: 24px 16px;
  margin: 25px 0 0 0;
  border-radius: 0;
  box-shadow: none;
}

.mobile-teachers-notes h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: left;
  color: #000;
}

.mobile-teachers-notes .quote {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #333;
  font-weight: normal;
}

.mobile-teachers-notes .author {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  margin-bottom: 24px;
}

.mobile-image-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 0;
  min-height: 250px; /* Minimum height to prevent layout shifts */
}

.mobile-image-slide {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: all 0.5s ease;
  transform: translateX(100px);
  pointer-events: none;
  visibility: hidden;
}

.mobile-image-slide.active {
  opacity: 1;
  position: relative;
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
  z-index: 5;
}

.mobile-image-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* Slide transition direction */
.mobile-image-slide.slide-left {
  transform: translateX(-100px);
  opacity: 0;
  z-index: 1;
}

.mobile-image-slide.slide-right {
  transform: translateX(100px);
  opacity: 0;
  z-index: 1;
}

/* Mobile view specific styles */
@media (max-width: 767px) {
  /* Mobile layout styles */
  .resource-overlay .overlay-content {
    max-width: 100%;
    padding: 15px;
    background-color: #FFF !important;
  }
  
  .mobile-header small {
    font-size: 12px;
    line-height: 8px;
    letter-spacing: 0px;
    color: #666;
    display: block;
    padding: 28px 0 6px 0;
  }
  
  .mobile-header h1 {
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
  }
  
  .mobile-header .author {
    font-size: 12px;
    line-height: 17px;
    letter-spacing: 0px;
    color: #666;
    padding-bottom: 28px;
  }
  
  /* Tab navigation */
  .mobile-tabs {
    display: flex;
    margin-bottom: 20px;
  }
  
  .mobile-tabs a {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    text-decoration: none;
    border-radius: 10px;
    margin: 0 5px;
    font-weight: 500;
  }
  
  .mobile-tabs a.active {
    background-color: #353535;
    color: white;
  }
  
  .mobile-tabs a:not(.active) {
    background-color: #E7E7E7;
    color: #000;
  }
  
  /* Content images */
  .mobile-content img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
  }
  
  /* Text content */
  .mobile-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  
  /* Teachers notes section */
  .mobile-teachers-notes {
    margin-top: 25px;
    margin-bottom: 15px;
  }
  
  .mobile-teachers-notes h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
  }
  
  .mobile-teachers-notes .quote {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  
  .mobile-teachers-notes .author {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
  }
  
  /* Navigation controls */
  .mobile-nav {
    display: flex;
    justify-content: center;
    margin: 15px 0;
  }
  
  .mobile-image-section {
    margin-top: 20px;
  }
  
  /* Hide desktop content on mobile */
  .teacher-notes-slider-container .row,
  .subsystem-container .row {
    display: none;
  }
  
  .mobile-view {
    display: block !important;
    padding: 0 20px;
  }
}

/* Tab content visibility */
.tab-content {
  display: block;
}

.tab-content[style*="display: none"] {
  display: none !important;
}

/* Ensure overview content is visible by default */
#overview-content, 
#mobile-overview-content {
  display: block;
}

#textbook-content,
#mobile-textbook-content {
  display: none;
}

/* PDF Embed Styling */
.pdf-container {
  padding: 0;
  max-width: 100%;
  margin: 0;
}

.textbook-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 40px 0;
}

.textbook-header h1 {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 10px;
}

.textbook-header .lead {
  font-size: 18px;
  color: #666;
}

.pdf-embed-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #ffffff;
  border-radius: 0;
  box-shadow: none;
}

.pdf-viewer {
  background-color: #ffffff;
  padding: 0;
}

.pdf-page-container {
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  position: relative;
  max-width: 100%;
}

.pdf-page-container:last-child {
  margin-bottom: 0;
}

.pdf-page-container canvas {
  max-width: 100%;
  height: auto !important;
  display: block;
  box-shadow: none;
}

.mobile-pdf-container {
  padding: 0;
}

.pdf-instructions {
  text-align: center;
  color: #666;
  padding: 10px 0;
}

@media (max-width: 768px) {
  .pdf-container {
    padding: 0;
  }
  
  .textbook-header {
    padding: 20px 15px;
  }
  
  .textbook-header h1 {
    font-size: 32px;
  }
  
  .pdf-embed-container {
    padding: 0;
  }
  
  .pdf-page-container {
    margin: 0 auto;
  }
  
  .pdf-page-container canvas {
    width: 100% !important;
  }
}

.pdf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  text-align: center;
  color: #666;
}

.pdf-loading .spinner-border {
  width: 3rem;
  height: 3rem;
  color: #333;
}

.pdf-loading p {
  margin-top: 1rem;
  font-size: 16px;
}

/* iOS specific video fixes */
@supports (-webkit-touch-callout: none) {
  #lesson-player {
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
    max-height: 100vh !important;
    position: relative !important;
  }
  
  .plyr--video {
    width: 100% !important;
    height: auto !important;
  }
  
  .plyr__video-wrapper {
    width: 100% !important;
    height: auto !important;
  }
  
  /* Ensure video is visible on iOS and displays full width */
  .lesson-hero {
    height: auto !important;
    min-height: 50vh !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  @media (max-width: 768px)
  {
    .lesson-hero
    {
      min-height: 0vh !important;
      margin-bottom:20px;
    }
  }
  
  /* Fix for iOS play button positioning */
  .plyr__control--overlaid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
  }
  
  /* Overlay for iOS tapping */
  #ios-video-tap {
    background-color: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #ios-video-tap:after {
    content: "Tap to play";
    color: white;
    font-size: 20px;
    padding: 10px 20px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 5px;
  }
}

/* Position the central controls container */
.plyr__central-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  padding: 10px 20px;
  z-index: 1060;
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* Hide central controls when not hovering over the player */
.plyr:not(.plyr--stopped):not(:hover) .plyr__central-controls {
  opacity: 0;
  pointer-events: none;
}

/* Style the control buttons */
.plyr__central-controls .plyr__control {
  opacity: 1;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* Style the play button larger than rewind/forward */
.plyr__central-controls .plyr__control[data-plyr="play"] {
  transform: scale(1.5);
  margin: 0 20px;
  color: white;
}

/* Style the rewind and fast-forward buttons as circular icons with 10 in the middle */
.plyr__central-controls .plyr__control[data-plyr="rewind"],
.plyr__central-controls .plyr__control[data-plyr="fast-forward"] {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  opacity:.8;
}

.plyr__central-controls .plyr__control[data-plyr="rewind"] {
  background-image: url('../images/icon/rewind.svg');
}

.plyr__central-controls .plyr__control[data-plyr="fast-forward"] {
  background-image: url('../images/icon/ff.svg');
}


/* Hide the original SVG icons */
.plyr__central-controls .plyr__control[data-plyr="rewind"] svg,
.plyr__central-controls .plyr__control[data-plyr="fast-forward"] svg {
  display: none;
}




/* Hover effects for the central controls */
.plyr__central-controls .plyr__control:hover {
}


/* Style the rewind and fast-forward buttons */

/* Make the central controls responsive */
@media (max-width: 768px) {
  .plyr__central-controls {
    padding: 8px 15px;
  }
  
  .plyr__central-controls .plyr__control[data-plyr="play"] {
    margin: 0 15px;
    transform: scale(1.2);
  }
  
  .plyr__central-controls .plyr__control[data-plyr="play"]:hover {
    transform: scale(1.3);
  }

  
  .plyr__central-controls .plyr__control[data-plyr="rewind"],
  .plyr__central-controls .plyr__control[data-plyr="fast-forward"] {
    width: 30px;
    height: 30px;
  }
  
  .plyr__central-controls .plyr__control[data-plyr="rewind"]::after,
  .plyr__central-controls .plyr__control[data-plyr="fast-forward"]::after {
    font-size: 12px;
  }
}

/* Ensure the central controls don't get affected by global hover styles */
.plyr__central-controls .plyr__control:hover {

  color: white !important;
  transform: none;
  box-shadow: none !important;
}

.plyr__central-controls .plyr__control[data-plyr="play"]:hover {
  background: transparent !important;
  color: white !important;
  transform: scale(1.1);
  box-shadow: none !important;
}

.plyr__central-controls .plyr__control[data-plyr="rewind"]:hover,
.plyr__central-controls .plyr__control[data-plyr="fast-forward"]:hover {
  transform: scale(1.1);
  opacity: 1;
  box-shadow: none !important;
}

.plyr__central-controls .plyr__control[data-plyr="rewind"]:hover
{
  background: url('../images/icon/rewind.svg') no-repeat center center;
}

.plyr__central-controls .plyr__control[data-plyr="fast-forward"]:hover
{
  background: url('../images/icon/ff.svg') no-repeat center center;
}

/* Force lesson player to respect container width */
body.home .lesson-hero #lesson-player,
body.home .lesson-hero .plyr,
body.home .lesson-hero .plyr__video-wrapper,
body.home .lesson-hero video {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
}

/* Additional Resources - uses lesson section structure */
.resource-content {
    margin-top: 40px;
}

.resource-group {
    margin-bottom: 40px;
}

.resource-group h3 {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.5px;
    color: #000000;
    margin-bottom: 16px;
}

.resource-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-group li {
    margin-bottom: 12px;
}

.resource-group a {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #2563eb;
    text-decoration: none;
    word-break: break-word;
    overflow-wrap: break-word;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.2s ease;
}

.resource-group a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Mobile: Smaller fonts for resource groups */
@media (max-width: 768px) {
    .resource-group h3 {
        font-size: 18px;
        line-height: 24px;
    }
    
    .resource-group a {
        font-size: 14px;
        line-height: 20px;
    }
}

