 body {
     background: linear-gradient(135deg, #fdf2f8 0%, #eff6ff 100%);
     overflow-x: hidden;
 }

 .top-nav {
     background-color: #FFFDF6;
 }



 .header-logo img {
     width: 100px;
 }

 section.course_cat_strip {
     background: #ffffff;
     padding: 1rem 2rem;
     border-bottom: 2px solid #e5e7eb;
 }

 .course_cat_strip {
     background-color: #f8f9fa;
     padding: 20px 0;
 }

 .form-select {
     text-transform: capitalize;
 }

 .sub_category_wrapper {
     overflow-x: auto;
     white-space: nowrap;
     padding: 0 80px;
     position: relative;
     scrollbar-width: none;
     /* Firefox */
     -ms-overflow-style: none;
     /* IE/Edge */
 }

 .sub_category_wrapper::-webkit-scrollbar {
     display: none;
     /* Chrome, Safari */
 }

 .sub_category {
     display: flex;
     flex-wrap: nowrap;
     min-width: max-content;
     gap: 10px;
 }

 .sub_category .btn {
     white-space: nowrap;
     background-color: #1e3a8a;
     color: white;
     border-radius: 20px;
     text-transform: uppercase;
     border: none;
     padding: 8px 16px;
     font-size: 14px;
 }

 .sub_category .btn:hover {
     background-color: #0056b3;
 }

 .scroll-btn {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     background-color: rgba(0, 0, 0, 0.7);
     color: #fff;
     border: none;
     padding: 10px 15px;
     font-size: 20px;
     cursor: pointer;
     z-index: 100;

     width: 45px;
     height: 45px;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.3s ease;
 }

 .scroll-btn:hover {
     background-color: rgba(0, 0, 0, 0.9);
     transform: translateY(-50%) scale(1.1);
 }

 .scroll-left {
     left: 10px;
 }

 .scroll-right {
     right: 10px;
 }

 section.course_index ol {
     list-style-position: inside;
 }

 section.course_index ol li {
     padding-left: 10px;
 }

 .index_sidebar {
     background-color: #A7C1A8;
     padding: 20px 0;

 }

 @media (max-width: 767px) {
     .scroll-btn {
         padding: 8px 12px;
         font-size: 16px;
         width: 40px;
         height: 40px;
     }

     .sub_category_wrapper {
         padding: 0 60px;
     }
 }

 /* Course Index Styles */
 .course_index {
     min-height: 80vh;
     background-color: #f8f9fa;
 }

 .index_sidebar {
     background-color: #fff;
     /* border-right: 1px solid #dee2e6; */
     min-height: 80vh;
     padding: 0;
 }

 .sidebar-content {

     height: 100%;
     background: #fff;
     border-radius: 12px;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
     padding: 1.5rem;
     height: fit-content;
     position: sticky;
     top: 120px;
     margin: 30px;
 }


 .course-title {
     color: #495057;
     font-weight: 600;
     border-bottom: 2px solid #1e3a8a;
     padding-bottom: 0.5rem;
     font-size: 18px;
 }

 .section-item {
     border: 1px solid #e9ecef;
     border-radius: 8px;
     padding: 1rem;
     background-color: #fff;
     transition: all 0.3s ease;
     cursor: pointer;
 }

 .section-item:hover {
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
     border-color: #1e3a8a;
 }

 .section-item.active {
     border-color: #1e3a8a;
     background-color: #f8f9ff;
 }

 .section-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
 }

 .section-title {
     color: #495057;
     font-weight: 600;
     margin: 0;
     font-size: 0.95rem;
 }

 .section-icon {
     margin-right: 0.5rem;
 }

 .page-count {
     font-size: 0.75rem;
     color: #6c757d;
     font-weight: 400;
 }

 .section-pages {
     margin-top: 0.75rem;
     display: none;
 }

 .section-pages.show {
     display: block;
 }

 .pages-list {
     list-style: none;
     padding: 0;
     margin: 0;
 }

 .page-item {
     margin-bottom: 0.5rem;
 }

 .page-link {
     display: flex;
     align-items: center;
     padding: 0.5rem;
     text-decoration: none;
     color: #6c757d;
     border-radius: 4px;
     transition: all 0.2s ease;
     font-size: 0.85rem;
     border-left-color: #1e3a8a;
     border-left: 3px solid transparent;
     border-radius: 6px;

 }

 .page-link:hover {
     background: #fdf2f8;
     color: #495057;
     text-decoration: none;

 }

 .page-item.active .page-link {
     background: linear-gradient(135deg, #1e3a8a 0%, #ff6b9d 100%);
     color: #fff;

     border-radius: 10px;
 }

 .page-item.active .page-title {
     color: #fff;
 }

 .page-number {
     margin-right: 0.5rem;
     font-weight: 600;
     min-width: 1.5rem;
 }

 .page-title {
     flex: 1;
 }

 .main-content {
     padding: 0;
     background-color: #fff;
 }

 .content-wrapper {
     min-height: 80vh;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
     margin: 30px;
     border-radius: 10px;
 }

 .course-main-title {
     color: #212529;
     font-weight: 700;
     margin-bottom: 1rem;
 }

 .section-main-title {
     color: #495057;
     font-weight: 600;
     border-bottom: 1px solid #dee2e6;
     padding-bottom: 0.5rem;
 }

 .section-meta {
     font-size: 0.9rem;
 }

 .page-title {
     color: #495057;
     font-weight: 600;
 }

 .lesson-navigation {
     border-top: 1px solid #dee2e6;
     padding-top: 1.5rem;
 }

 .welcome-content {
     color: #6c757d;
 }

 .welcome-icon {
     font-size: 4rem;
 }

 .empty-state {
     padding: 2rem 1rem;
 }

 .empty-icon {
     font-size: 3rem;
     opacity: 0.5;
 }

 /* Sub category styling */
 .sub_category_wrapper {
     overflow-x: auto;
     position: relative;
 }

 .sub_category {
     display: flex;
     gap: 0.5rem;
     padding: 0.5rem 0;
     white-space: nowrap;
 }

 .sub_category .btn {
     white-space: nowrap;
     border: 1px solid #dee2e6;
     background-color: #eff6ff;
     color: #1e3a8a;
     transition: all 0.2s ease;
 }

 .sub_category .btn:hover {
     border-color: #1e3a8a;
     color: #fff;
 }

 .sub_category .btn.active {
     background-color: #1e3a8a;
     border-color: #1e3a8a;
     color: #fff;
 }

 .scroll-btn {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     border: none;

     border-radius: 50%;
     width: 2rem;
     height: 2rem;
     display: flex;
     align-items: center;
     justify-content: center;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
     cursor: pointer;
     z-index: 10;
 }



 @media (max-width: 768px) {
     .index_sidebar {
         min-height: auto;
     }

     .sidebar-content {
         padding: 1rem;
     }

     .content-wrapper {
         padding: 1rem !important;
     }
 }


 /* new theme  */
 .navbar {
     background: #ffffff;
     padding: 1rem 2rem;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
     ;
     position: sticky;
     top: 0;
     z-index: 100;
 }

 .user-actions {
     display: flex;
     gap: 1rem;
     align-items: center;
 }

 .premium-badge {
     background: linear-gradient(135deg, #1e3a8a 0%, #ff6b9d 100%);
     ;
     color: white;
     padding: 0.5rem 1rem;
     border-radius: 25px;
     font-size: 0.9rem;
     font-weight: 600;
 }

 select.form-select {
     background: linear-gradient(135deg, #1e3a8a 0%, #ff6b9d 100%);
     color: #fff;
     border: none;
     padding: 0.75rem 1.5rem;
     border-radius: 8px;
     cursor: pointer;
     font-weight: 600;
     display: flex;
     align-items: center;
     gap: 0.5rem;
     transition: all 0.3s ease;
 }

 select.form-select option {
     color: #000;

 }