/* learning_insights.css */
/* Modern layout with elegant carousels and centered toggle */

/* -------------------- Base Layout -------------------- */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, sans-serif;
  background-color: #f5f7fb;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.stock-page {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2px 20px;
  /*gap: 15px;*/
  gap: 0;
}

/* -------------------- Learning Menu Panel -------------------- */
.learning_menu_panel {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1px;
  padding-bottom: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
  transition: height 0.3s ease, padding 0.3s ease;
  overflow: hidden;
}

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

/* -------------------- First-Level Carousel -------------------- */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  /*justify-content: center;*/
  justify-content: space-between;
  
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 0.5rem;
  flex: 1;
  padding-right: 10px;
  justify-content: center; /* ← aligns cards to the start */
  align-items: center;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

/* First-Level Cards */
.first-level-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;       /* label left, image right */
  align-items: center;
  /*justify-content: center;*/
  width: 300px;
  height: 80px;
  margin: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.first-level-card:hover {
  /*transform: translateY(-2px);*/
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.first-level-card .first-level-label {
  flex: 0 0 60%;
  font-size: 20px;
  font-weight: 300;
  color: #333;
  text-align: left;
  font-family: 'Annie Use Your Telescope', serif;
}

.first-level-card img {
    flex: 0 0 30%;         /* slightly smaller than before */
    max-width: 90%;
    max-height: 60px;
    object-fit: contain;    /* ensures image stays inside bounds */
    margin-left: 5px;       /* optional: slight spacing from left if needed */
}


.first-level-carousel-wrapper {
    position: relative; /* for absolute positioning if needed */
    display: flex;
    align-items: center;
    justify-content: flex-start;  
    gap: 0.5rem;
}

#carouselLeft {
    flex: 0 0 auto; /* prevents arrows from wrapping */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 50px;
    display: none;
}
#carouselRight {
    flex: 0 0 auto; /* prevents arrows from wrapping */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 50px;
    display: none;
}

/* Elegant circular arrow buttons */
.carousel-arrow {
  background: radial-gradient(circle at 30% 30%, #ffffff 40%, #e0e7ff);
  border: 1px solid #cfd8ef;
  color: #4169e1;
  font-size: 1.4rem;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.carousel-arrow:hover {
  transform: scale(1.15);
  background: radial-gradient(circle at 30% 30%, #e0e7ff, #cfd8ef);
}
.carousel-arrow.hidden {
  visibility: hidden;
}

/* -------------------- Second-Level Carousel -------------------- */

.second-level-carousel-wrapper {
  position: relative;        /* ensures arrows position relative to this wrapper */
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 1rem 0.25rem 1.25rem;
}

.second-level-menu {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  flex: 1; 
  padding: 6px 0;
  margin-left: 100px;
  margin-right: 100px;
  justify-content: flex-start;     /* horizontally center the cards */
  align-items: center;         /* vertically center if needed */

}


.second-level-menu::-webkit-scrollbar {
  display: none;
}

/* Second-Level Cards: image top, label bottom */
.second-level-card {
  flex: 0 0 auto;
  width: 260px;
  height: 180px;
  display: flex;
  flex-direction: column;   /* image on top, label bottom */
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-right: 10px;
}


.second-level-card img {
  width: 100%;
  height: 75%;
  object-fit: contain;   /* 👈 key change */
  background-color: #fff; /* optional: fills empty space */
  padding: 5px;
}

.second-level-card:hover {
  /*transform: translateY(-3px);*/
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: scale(1.08);
  border-width: 2px;
}

.second-level-card .card-content {
  display: flex;
  width: 100%;
  height: 100%;
}


/* Left: label (60%) */
.second-level-card .card-label {
  flex: 0 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  color: #333;
  background: #fff;
  line-height: 1.3;
  font-family: 'Annie Use Your Telescope', serif;
}

/* Right: thumbnail (40%) */
.second-level-card .card-thumbnail {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  padding: 4px;
}

.second-level-card .card-thumbnail img {
  width: 85%;
  height: auto;
  object-fit: contain;
}

/* Arrows for second-level carousel */
.second-level-carousel-wrapper .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 40%, #e0e7ff);
  color: #4169e1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 2;
  transition: all 0.25s ease;
  display: none;
}

.second-level-carousel-wrapper .carousel-arrow:hover {
  background: radial-gradient(circle at 30% 30%, #e0e7ff, #cfd8ef);
  transform: translateY(-50%) scale(1.1);
}
#secondLevelLeft {
  left: 0;
  margin-left: 50px;
}
#secondLevelRight {
  right: 0;
  margin-right: 50px;
}

/* -------------------- Learning Panel -------------------- */


/*
.drop_area {
  border: 2px dashed #ccc;
  margin-top: 10px;
  border-radius: 8px;
  padding: 4px;
  text-align: center;
  color: #777;
  background: #E9F2FF;       
  font-size: 15px;
  transition: all 0.25s ease;
}
*/



.drop_area:hover {
  border-color: #007bff;
  background-color: #f0f7ff;
  color: #333;
}
.panel_placeholder p {
  margin: 0;
}

/* -------------------- Footer -------------------- */
.learning_ftr {
  height: 40px;
  background: transparent;
}

/* -------------------- Collapsed Menu -------------------- */
.learning_menu_panel.collapsed {
  height: 0;
  padding: 0;
  overflow: hidden;
}

/* -------------------- Triangle Toggle -------------------- */

/*
.menuToggleTriangle {
  position: fixed;
  justify-content: center;
  align-items: center;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  color: black;
  background: #ffffff;
  border: 1px solid #cfd8ef;
  border-radius: 50%;
  padding: 0.35rem 0.6rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 2040;
  display: none; 
  animation: bounceTriangle 2s ease-in-out infinite;
}
  */

  /* #menuToggleTriangle {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;          
  color: #555;               
  background: rgba(255, 255, 255, 0.8);  
  border: 1px solid #ccc;    
  border-radius: 50%;
  padding: 0.2rem 0.4rem;    
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 2040;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  transition: background 0.3s, color 0.3s;
  opacity: 0.6;              
  display: none;
}

#menuToggleTriangle:hover {
  opacity: 1;                 
  background: #fff;           
  color: #000;                
} 
*/



/* Bouncing animation */
@keyframes bounceTriangle {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}


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

  .mobile-breadcrumb {
    position: sticky;
    top: 50px; /* adjust to your fixed header/logo height */
    z-index: 2000;
    background: white;
    border-bottom: 1px solid #e5e5e5;
  }

  #learningBreadcrumbContainer {
      position: sticky;
      margin-top: 10px !important;
      z-index: 30;
      background: white;
      border-bottom: 1px solid #e5e5e5;
      z-index: 2000;
      /*margin-bottom: 0 !important;
      padding-bottom: 0 !important;*/
      
  }



  .mobile-breadcrumb span {
      cursor: pointer;
  }

  .mobile-breadcrumb .current {
      font-weight: 600;
  }



  .mobile-breadcrumb span.current {
    cursor: default;
    color: #444;
    font-weight: 600;
  }

  #learningMenuPanel {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px;
    margin-top: 120px;   /* adjust if needed */
  }

  .mobile-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .mobile-card img {
    width: 100%;
    aspect-ratio: 195.2 / 140.2;
    object-fit: cover;
  }

  .mobile-card {
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: center;
  }

  /*
  .mobile-card img {
    width: 195.2px;
    height: 140.2px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
  }
  */


  .mobile-card span {
    display: block;
    font-weight: 600;
  }
  

  .carousel-arrow {
    display: none;
  }
  .learning_panel {
    /*padding: 15px;*/
    z-index: 10;
    display: none;
  }

  .panel_left_split {
    flex-direction: column;
  }

  /*
  .vertical_divider {
    display: none;
  }
  */

  .panel_content {
    flex-direction: column;
  }
  /*
  .panel_left, .panel_right {
    width: 100%;
    height: 200px;
  }
  */

  /* Hide carousels & arrows */
  .carousel-wrapper,
  .second-level-carousel-wrapper,
  .third-level-carousel-wrapper,
  .carousel-arrow {
    display: none !important;
  }

  /* Full-screen mobile menu */
  .learning_menu_panel {
    margin-top: 120px;   /* adjust if needed */
    position: fixed;
    inset: 0;
    background: #f7f7f7;
    z-index: 1000;
    overflow-y: auto;
    padding: 16px;
  }

  /* Grid for app-style buttons */

  .mobile-card:active {
    transform: scale(0.96);
  }


  /* Back button */
  .mobile-back {
    margin-bottom: 14px;
    font-size: 14px;
    color: #007aff;
    cursor: pointer;
  }


}

/* -------------------- Third-Level Carousel -------------------- */

.third-level-carousel-wrapper {
  display: none;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 1rem 0.25rem 1.25rem;
  position: relative;
}

.third-level-menu {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  flex: 1;
  padding: 10px 0;
  margin-left: 100px;
  margin-right: 100px;
  justify-content: flex-start;     /* horizontally center the cards */
  align-items: center;         /* vertically center if needed */

}
.third-level-menu::-webkit-scrollbar {
  display: none;
}

.third-level-card {
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  height: 200px;
  border: 1px solid #bbb;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  background-color: #fff;
  box-sizing: border-box;
  /*box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
  padding: 10px;
  display: flex;
  flex-direction: column;
}

/* Container inside card for scrolling text */
.text-scroller {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}


.text-scroll-overlay p {
  font-size: 18px;
  text-align: center;
  color: #222;
  width: 90%;
}

.scroll-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /*animation-timing-function: linear;*/
}

.scroll-content p {
  font-size: 18px;
  margin: 5px 0;
  text-align: center;
  width: 90%;
  color: #222;
}

.text-scroller ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.text-scroller li {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
  padding: 0 5px;
}

.third-level-card img {
  width: 100%;
  height: 30%;
  object-fit: cover;
  display: block;
  /*transition: opacity 2s ease;*/ /* slow fade */
}
.third-level-card .card-label {
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  font-size: 20px;
  font-family: 'Annie Use Your Telescope', serif;
  color: #333;
  text-align: center;
  margin-top: 10px;
}

.third-level-card:hover {
  transform: scale(1.08);
  border-color: #6B5D57;
  border-width: 2px;
}

/* Third-level arrows */
.third-level-carousel-wrapper .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 40%, #e0e7ff);
  color: #4169e1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 2;
  transition: all 0.25s ease;
}
.third-level-carousel-wrapper .carousel-arrow:hover {
  transform: translateY(-50%) scale(1.1);
}
#thirdLevelLeft {
  left: 0;
  margin-left: 50px;
}
#thirdLevelRight {
  right: 0;
  margin-right: 50px;
}

/*
.learning_panel_split {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 25px;
}
*/

/* Each skill level section */
/*
.panel_half {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
*/

/* Headings */
/*
.panel_heading {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  padding: 8px 15px;
  border-left: 4px solid #007bff;
  background: #f0f7ff;
  border-radius: 6px;
}
*/

/* Themed color variations */
/*
.panel_heading.beginner {
  border-left-color: #4caf50;
  background: #eafaf1;
}
.panel_heading.intermediate {
  border-left-color: #2196f3;
  background: #eaf2fb;
}
.panel_heading.advanced {
  border-left-color: #ff9800;
  background: #fff4e5;
}
.panel_heading.expert {
  border-left-color: #9c27b0;
  background: #f6e6fb;
}
*/

/* Panel content: 60/40 split */
.panel_content {
  display: flex;
  max-height: 240px;
  gap: 10px;
  flex: 1;
}

/* Left: Questions (60%) */
.panel_left {
  flex: 0 0 60%;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Change from center to flex-start */
}

/* Right: Video placeholder (40%) */
/*
.panel_right {
  flex: 0 0 40%;
  max-height: 240px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
*/

/*
.panel_left {
  position: relative;              
  overflow: hidden;               
}
*/

/* question list */
/*
.question_list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px; 
}
*/
/*
.question_list li {
  margin: 10px 0;
  padding: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  transition: all 0.2s ease;
}
  */


/* Depth + highlight when hovered */
/*
.question_list li:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 10px rgba(0,0,0,0.08),
    0 2px 5px rgba(0,0,0,0.03);
  background: linear-gradient(to bottom right, #f9fbff, #eef3ff);
  color: #007bff;
}
*/


.video_placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 240px;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #555;
  border-radius: 8px;
}

iframe {
  width: 100%;
  height: 100%;
  /*max-height: 240px;*/
  border: none;           
  display: block;         
  position: absolute;     
  top: 0;
  left: 0;
  box-sizing: border-box; 
}


.video_placeholder img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  display: block;
}

/* Add a subtle dark layer over the image */
.video_placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0); /* darkens the image */
  transition: background 0.3s;
}

.video_placeholder:hover::before {
  background: rgba(0, 0, 0, 0.3); /* slightly darker on hover */
}

/* Circular play icon */
.play_button {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
  margin-left: 70px;
}

.play_button::before {
  content: '';
  border-left: 20px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
}

.video_placeholder:hover .play_button {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.8);
}


/*---- new -----*/
/* === Split inside the LEFT panel === */
/*
.panel_left_split {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
*/


/* Each sub-section */
/*
.panel_left_section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
*/

/* Divider line between the two sections */
/*
.vertical_divider {
  width: 1px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 5%, rgba(0,0,0,0.03) 95%);
  align-self: stretch;
}
*/

/* Section headings */
/*
.sub_heading {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 4px;
  margin-bottom: 6px;
  text-align: center;
  font-family: 'Annie Use Your Telescope', serif;
  background: linear-gradient(to right, #f8faff, transparent);
}
*/

/* Optional hover animation */
/*
.panel_left_section .question_list li:hover {
  transform: translateX(4px);
  color: #007bff;
  transition: all 0.2s ease;
}
*/


/* Limit height and make Short-Term & Long-Term scrollable */
/*
.panel_left_section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 210px; 
  max-height: 240px; 
  overflow-y: auto;
  scrollbar-width: thin; 
  scrollbar-color: rgba(0,0,0,0.3) rgba(0,0,0,0.05);
}
*/

/* For Chrome/Edge */
/*
.panel_left_section::-webkit-scrollbar {
  width: 6px;
}
.panel_left_section::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.25);
  border-radius: 3px;
}
.panel_left_section::-webkit-scrollbar-track {
  background-color: rgba(0,0,0,0.05);
}
*/

/* --- Fix missing "Short-Term Videos" title in Beginner panel --- */

/* Ensure headings inside panel sections are always visible */
/*
.panel_left_section {
  position: relative;
  max-height: none;        
  overflow: visible;      
}
*/

/* Instead, limit scrolling only to the list area (not the heading) */
/*
.panel_left_section .question_list {
  max-height: 160px;       
  overflow-y: auto;
  scrollbar-width: thin;
}
*/

/*
.panel_left_section .question_list::-webkit-scrollbar {
  width: 6px;
}
.panel_left_section .question_list::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.25);
  border-radius: 3px;
}
.panel_left_section .question_list::-webkit-scrollbar-track {
  background-color: rgba(0,0,0,0.05);
}

.question_list {
  max-height: 200px;
  overflow-y: auto;
  position: relative;
}
*/

/*
.question_list::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none; 
}
*/

/*
.question_list li {
  min-height: 50px;
  position: relative;
  background: linear-gradient(to bottom right, #ffffff, #f8faff);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 16px;
  text-align: left;
  font-weight: 500;
  color: #2c3e50;
  box-shadow: 
    0 1px 2px rgba(0,0,0,0.06),
    0 3px 6px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
  animation: fadeInUp 0.4s ease both;
}
*/

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/*
.question_list li:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0; 
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.2) 0%,     
    rgba(0, 0, 0, 0.08) 50%,   
    rgba(0, 0, 0, 0.02) 100%   
  );
  opacity: 0.95; 
}
*/

/* A faint glow layer that appears under hover */
/*
.question_list li::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(circle at top left, rgba(0,123,255,0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.question_list li:hover::before {
  opacity: 1;
}
*/

/* Optional subtle divider gradient between cards */
/*
.question_list li:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));
}
*/

/*
.video-modal {
  display: none; 
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 1000;

  
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-content {
  width: 90vw;
  max-width: 950px;
  height: 600px;
  background-color: #000;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
}

.video-modal-top {
  height: 40px; 
  background: #111;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  box-sizing: border-box;
}

.video-modal-top button {
  background: #ff5555;
  border: none;
  color: white;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.video-modal-bottom {
  height: 95%;
  position: relative;
}
*/

/* ===== Video Modal Overlay ===== */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

/* ===== Modal Card ===== */
.video-modal-content {
  width: 90vw;
  max-width: 960px;
  height: 540px;
  background: #0f0f0f;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  animation: scaleIn 0.25s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ===== Header ===== */
.video-modal-header {
  height: 52px;
  background: linear-gradient(to right, #111, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.video-title {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.9;
}

/* ===== Header Actions ===== */
.video-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Subscribe Button */
.subscribe-btn {
  background: #ff0000;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.subscribe-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255,0,0,0.35);
}

/* Close Button */
.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.close-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}

/* ===== Video Body ===== */
.video-modal-body {
  flex: 1;
  position: relative;
  background: black;
}

#videoContainer iframe {
  width: 100%;
  height: 100%;
  border: none;
}


.drop_area {
  align-self: stretch;  /* make it stretch horizontally */
  margin-top: 0;        /* remove any vertical margin if needed */
  position: static;     /* reset any positioning */
  padding: 20px;
}
.learning_panel {
  /*margin-top: 40px;*/
  flex: 1;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow-y: auto;
  min-height: 75px;
  z-index: 10;
}
.desktop-back {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
}

.desktop-back:hover {
    text-decoration: underline;
}

#beginnerPanelContainer {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}