 body {
     background-color: #F5F5F5;
     overflow-x: hidden;
 }

 .top-nav {
     background-color: #FFFDF6;
 }



 .header-logo img {
     width: 100px;
 }

 section.course_cat_strip {
     background: #000;
     padding: 20px 0;
 }

 .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: #007bff;
     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 {
            padding: 1.5rem;
            height: 100%;
        }

        .course-title {
            color: #495057;
            font-weight: 600;
            border-bottom: 2px solid #007bff;
            padding-bottom: 0.5rem;
        }

        .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: #007bff;
        }

        .section-item.active {
            border-color: #007bff;
            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;
        }

        .page-link:hover {
            background-color: #e9ecef;
            color: #495057;
            text-decoration: none;
        }

        .page-item.active .page-link {
            background-color: #007bff;
            color: #fff;
        }

        .page-number {
            margin-right: 0.5rem;
            font-weight: 600;
            min-width: 1.5rem;
        }

        .page-title {
            flex: 1;
        }

        .main-content {
            padding: 0;
        }

        .content-wrapper {
            background-color: #fff;
            min-height: 80vh;
        }

        .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: #fff;
            color: #495057;
            transition: all 0.2s ease;
        }

        .sub_category .btn:hover {
            border-color: #007bff;
            color: #007bff;
        }

        .sub_category .btn.active {
            background-color: #007bff;
            border-color: #007bff;
            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;
            }
        }