
/* Mobile TOC Dropdown */


.mobile-toc-toggle {
  background: #f8f9fa;
      border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    text-align: left;
    position: relative;
    padding: 0.75rem 1rem;
}

.mobile-toc-toggle:hover {
    background: #e9ecef;
}

.toggle-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.mobile-toc-toggle.active .toggle-icon {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-toc-content {
    background: #f8f9fa;
    padding: 1rem;
}

.mobile-toc-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}


.mobile-toc-content a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #495057;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.mobile-toc-content a:hover {
    background: #f8f9fa;
    color: #FF4F00
}

/* Hide desktop sidebar on mobile */
@media (max-width: 767.98px) {
    #secondary {
        display: none;
    }
}

/* Hide mobile TOC on desktop */
@media (min-width: 768px) {
    .mobile-toc-wrapper {
        display: none !important;
    }
}

/* table-of-contents.css */

.sticky-sidebar {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

@media (max-width: 767.98px) {
    .sticky-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

.toc-widget {
   
    border-radius: 0.375rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc-widget .widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
    padding-bottom: 0.5rem;
}

.toc-nav ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc-nav ul ul {
    padding-left: 0;
    margin-top: 0.25rem;
}

.toc-nav li {
    margin-bottom: 1rem;
}

.toc-nav a {
    display: block;
    padding: 0rem;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.toc-nav a:hover,
.toc-nav a.active {
   color: #ff4f00;
    text-decoration: none;
}

.custom-banner-widget {

    border-radius: 0.375rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.custom-banner-widget .widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Responsive layout adjustments */
@media (min-width: 992px) {
    #primary {
        max-width: 65%;
        flex: 0 0 65%;
    }
    
    #secondary {
        max-width: 35%;
        flex: 0 0 35%;
    }
}

/* Custom banner styles */
.custom-banner {
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.375rem;
    text-align: center;
}

.custom-banner h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.custom-banner p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.custom-banner .btn {
    background: white;
    color: #FF4F00;
    border: none;
    font-weight: 600;
}

.custom-banner .btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* Navigation links styling */
.nav-previous, .nav-next {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.nav-previous:hover, .nav-next:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* Ensure proper spacing */
.content-area {
    padding-right: 1rem;
}

#secondary {
    padding-left: 1rem;
}

@media (max-width: 991.98px) {
    .content-area,
    #secondary {
        padding-left: 0;
        padding-right: 0;
    }
}