.listing_page_content {
    display: flex;
}

.listing_page_content .breadcrumb_section {
    transition: .3s all ease-in-out;
    /* padding-left: 2rem; */
    /* border-top: 1px solid var(--Neutral-Stroke, #E9EBEC); */
}

.sidebar_parent {
    border: 1px solid var(--Neutral-Stroke, #E9EBEC);
    height: calc(100vh - 4rem);
    position: relative;
    top: 4rem;
    left: 0;
}

.listing_page_right {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    scroll-behavior: smooth;
}


.sidebar_content {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.side_bar_menu {
    width: 7.5rem;
    height: calc(100vh - 4.1rem);

    border-right: 1px solid var(--Neutral-Stroke, #E9EBEC);
}

.side_bar_menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    gap: 1.5rem;
    padding-right: 1rem;
    padding-top: 1rem;
}
.disabled {
    opacity: 0.3;
    filter: grayscale(70%);
    color: #9CA3AF;
    cursor: not-allowed;
}

.side_bar_menu_item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex-direction: column;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    color: var(--Neutral-Black, #1A1A1A);
    text-align: center;
    font-family: Inter;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.125rem;
    letter-spacing: -0.00875rem;
    transition: all 0.3s ease;
}


/* Fade out past papers tab when questions are empty */
.side_bar_menu_item.fade-out-past-papers {
    opacity: 0.7;
    color: #9CA3AF;
    cursor: not-allowed;
    pointer-events: none;
}

.side_bar_menu_item.fade-out-past-papers:hover {
    background: none;
    transform: none;
}

.side_bar_menu_item_active {
    border-radius: 0rem 0.5rem 0.5rem 0rem;
    background: var(--Button-Gradient, linear-gradient(0deg, #F9C935 0%, #FFDA57 100%));
}


.side_bar_menu_content {
     transition: width 0.3s ease;
    }
    .sidebar_content_past_papers{
        width: 360px;
    padding: 1rem;

}
.side_bar_menu_content.collapsed {
    width: 0;
    padding: 0;
    overflow: hidden;
    transition: width 0.3s ease;
}



.toggle_sidebar_icon.rotated img {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}


.year_list_heading {
    color: var(--Neutral-Black, #1A1A1A);

    /* Heading H8- 16px/SemiBold */
    font-family: Inter;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.25rem;
    /* 125% */
    letter-spacing: -0.01rem;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 2.38rem;
    margin-bottom: 1rem;
    position: relative;
    left: -.5rem;
}

.year_list_tab {
    color: var(--Neutral-Dark-Grey, #4F4F4F);

    /* Heading H8- 16px/Medium */
    font-family: Inter;
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.25rem;
    /* 125% */
    letter-spacing: -0.01rem;
    padding: 1rem;
    cursor: pointer;
    border-left: 2px solid #E9EBEC;
}


.year_list_tab_active {
    background: #FFF0C2;
    border-left: 2px solid #FFB81C;
}


.year_list_tab_list {
    width: 100%;
    height: 77vh;
    overflow: auto;
}

.flexible_container {
    width: 71vw;
}





.toggle_sidebar_icon{
    position: absolute;
    right: -1rem;
    top: .5rem;
    padding: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #E9EBEC;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    transition: transform 0.3s ease;
}

.toggle_sidebar_icon:hover {
    background-color: #f8f9fa;
    transform: scale(1.05);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--Neutral-Stroke, #E9EBEC);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}

.mobile-bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--Neutral-Dark-Grey, #4F4F4F);
    font-family: Inter;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    min-width: 0;
    flex: 1;
}

.mobile-bottom-nav-item:hover {
    background: rgba(249, 201, 53, 0.1);
}

.mobile-bottom-nav-item.active {
    background: var(--Button-Gradient, linear-gradient(0deg, #F9C935 0%, #FFDA57 100%));
    color: var(--Neutral-Black, #1A1A1A);
    font-weight: 600;
}

.mobile-bottom-nav-item img {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.mobile-bottom-nav-item span {
    font-size: 0.625rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Mobile Floating Button */
.mobile-sidebar-toggle {
    position: fixed;
    bottom: 6rem;
    right: 1.25rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--Button-Gradient, linear-gradient(0deg, #F9C935 0%, #FFDA57 100%));
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    display: none;
}

.mobile-sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.mobile-sidebar-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--Neutral-Black, #1A1A1A);
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
    visibility: hidden;
}

.mobile-sidebar.active {
    right: 0;
    visibility: visible;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--Neutral-Stroke, #E9EBEC);
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-sidebar-title {
    font-family: Inter;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--Neutral-Black, #1A1A1A);
}

.mobile-sidebar-close {
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.mobile-sidebar-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.mobile-sidebar-close svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--Neutral-Black, #1A1A1A);
}

.mobile-sidebar-content {
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.mobile-sidebar-content .sidebar_section {
    width: 100%;
    box-sizing: border-box;
}

.mobile-sidebar-content .left-section__content {
    width: 100%;
    padding: 0;
}

.mobile-side-bar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.mobile-side-bar-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--Neutral-Black, #1A1A1A);
    font-family: Inter;
    font-size: 1rem;
    font-weight: 500;
}

.mobile-side-bar-menu-item:hover {
    background: rgba(249, 201, 53, 0.1);
    color: var(--Neutral-Black, #1A1A1A) !important;
}

/* Fade out past papers tab when questions are empty - Mobile */
.mobile-side-bar-menu-item.fade-out-past-papers {
    opacity: 0.7;
    color: #9CA3AF;
    cursor: not-allowed;
    pointer-events: none;
}

.mobile-side-bar-menu-item.fade-out-past-papers:hover {
    background: none;
    transform: none;
}

.mobile-side-bar-menu-item.mobile-side-bar-menu-item-active {
    background: var(--Button-Gradient, linear-gradient(0deg, #F9C935 0%, #FFDA57 100%));
    font-weight: 600;
}

.mobile-side-bar-menu-item img {
    width: 1.5rem;
    height: 1.5rem;
}

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

    .mobile-side-bar-menu{
        display: none;
    }
    
    .sidebar_parent {
        display: none !important;
    }
    
    .mobile-bottom-nav {
        display: block !important;
    }
    
    .mobile-sidebar-toggle {
        display: flex !important;
    }
    
    .mobile-sidebar-overlay,
    .mobile-sidebar {
        display: block !important;
    }
    
    .listing_page_content {
        flex-direction: column;
        padding-bottom: 5rem; /* Space for bottom nav */
    }
    
    .listing_page_content .breadcrumb_section {
        left: 0;
        padding-left: 1rem;
        padding-bottom: 1rem;
        width: 100%;
        position: absolute;
        /* top:7rem; */
    }
    
    .flexible_container {
        width: 100% !important;
        padding: 0rem;
        margin: 0;
        margin-top: 5rem;
        padding-bottom: 5rem; /* Space for bottom nav */
    }
    
    /* Sub-topic-container accordion 100% width in mobile */
    .mobile-sidebar-content .sub-topic-container.accordion,
    .mobile-sidebar-content .sub-topic-container,
    .mobile-sidebar .sub-topic-container.accordion,
    .mobile-sidebar .sub-topic-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .mobile-sidebar-content .accordion-item,
    .mobile-sidebar .accordion-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .mobile-sidebar-content .accordion-button,
    .mobile-sidebar .accordion-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-right: 1rem !important;
    }
    
    .mobile-sidebar-content .topic-list-container,
    .mobile-sidebar .topic-list-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Hide PDF and Share buttons on mobile */
    .explore-more-btn,
    .share-btn,
    .pdf-download-btn,
    .download-pdf-btn {
        display: none !important;
    }
    
    /* Hide mobile content sections - content will be in sidebar */
    .mobile-content-section {
        display: none !important;
    }
    
    /* Prevent body scroll when mobile sidebar is open */
    body.mobile-sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .side_bar_menu {
        width: 6rem;
    }
    
    .side_bar_menu_content {
        width: 280px;
    }
    
    .side_bar_menu_item {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
    
    .flexible_container {
        width: 65vw;
    }



}

@media screen and (width <= 768px) {
    .mobile-sidebar-content {
        padding: 0 !important;
    }

    .accordion-button:not(.collapsed){
        background-color: transparent !important;
    }
}

/* Year scrolling with 200px offset from top */
html {
    scroll-behavior: smooth;
}

/* Add scroll margin to year sections to account for fixed header/offset */
.year-wise-listing {
    scroll-margin-top: 70px;
}

/* Alternative approach using scroll-padding on the container */
.listing_page_right {
    scroll-padding-top: 70px;
}

/* Year tab anchor link styling */
.year_list_tab {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
    width: 100% !important;
    cursor: pointer !important;
}

.year_list_tab:hover {
    text-decoration: none !important;
    color: var(--Neutral-Black, #1A1A1A) !important;
    background: rgba(249, 201, 53, 0.1) !important;
}

.year_list_tab:focus {
    outline: none !important;
    text-decoration: none !important;
    color: inherit !important;
}


