
/* ====================================== */
/* GLOBAL VARIABLES & BASE SETTINGS       */
/* ====================================== */
:root {
    /* Color System */
     
	
	--primary-color: #4a3b7d;
    --secondary-color: #7462d4;
    --accent-color: #8f7ce0;
	
	
    --light-color: #f8f8f8;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --off-white: #f9f9f9;
    
    /* Hamburger Colors */
    --hamburger-orange: #FF9800;
    --hamburger-yellow: #FFC107;
    --hamburger-green: #8BC34A;
    
    /* Status Colors */
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index layers */
    --z-overlay: 998;
    --z-sidebar: 999;
    --z-navbar: 1000;
    --z-sticky: 1020;
    --z-modal: 1050;
}

/* ====================================== */
/* NAVBAR & HAMBURGER FIXES               */
/* ====================================== */

/* Navbar Container */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
   
background: linear-gradient(
    90deg,
    #e3ccd8 0%,
    #d0c4e4 50%,
    #c2c6ee 100%
);
	
    z-index: var(--z-navbar);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

@media (max-width: 576px) {
    .navbar {
        padding: 0 10px;
    }
    .navbar-brand,
    #hamburger-menu {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    .navbar-brand {
        margin: 0 6px 0 0 !important;
    }
    #hamburger-menu {
        margin-right: 8px;
    }
    /* Sidebar provides navigation on mobile, so hide the right nav links
       to give the search bar full breathing room */
    .navbar .nav-links {
        display: none !important;
    }
}

/* SIDEBAR HAMBURGER BUTTON (Bootstrap Icon) - ALWAYS VISIBLE */
#hamburger-menu {
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    
	
	background: var(--secondary-color) !important;
    border: 2px solid var(--secondary-color) !important;
 
 
 
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
    z-index: 1001;
    transition: all var(--transition-normal) !important;
}

/* Bootstrap icon inside sidebar hamburger button */
#hamburger-menu .bi-list {
    font-size: 1.5rem !important;
    color: white !important; /* White icon on orange background */
    transition: transform var(--transition-normal);
}

/* Hover effect for sidebar hamburger */


#hamburger-menu:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.1);
}

/* Active state - rotate icon for sidebar hamburger */
#hamburger-menu.active .bi-list {
    transform: rotate(90deg);
}

/* Active state - change background for sidebar hamburger */
#hamburger-menu.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}



/* Home Button (replaces logo/site name) */
.navbar-brand {
    width: 40px;
    height: 40px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    
	background: linear-gradient(135deg, #8f7ce0, #6854c7) !important;
    border: none !important;
	
	
    border-radius: var(--radius-sm);
    color: var(--white) !important;
    font-size: 1.25rem;
    margin: 0 12px 0 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.navbar-brand:hover,
.navbar-brand:focus {
	background: linear-gradient(135deg, #7462d4, #4a3b7d);
    
    transform: scale(1.08);
    color: var(--white) !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.navbar-brand i {
    font-size: 1.25rem;
    line-height: 1;
    color: var(--white);
}

/* CUSTOM NAVBAR TOGGLER (NOT Bootstrap's) */
.navbar-toggler-custom {
    width: 40px;
    height: 40px;
    display: none !important; /* Hidden by default */
    align-items: center;
    justify-content: center;
    background: var(--hamburger-yellow) !important; /* YELLOW COLOR */
    border: 2px solid var(--hamburger-yellow) !important;
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    margin-left: 10px;
    transition: all var(--transition-normal) !important;
    cursor: pointer;
}

/* Custom hamburger icon for navbar toggler */
.navbar-toggler-custom span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #000;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler-custom span::before,
.navbar-toggler-custom span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #000;
    left: 0;
    transition: all 0.3s ease;
}

.navbar-toggler-custom span::before {
    top: -6px;
}

.navbar-toggler-custom span::after {
    bottom: -6px;
}

/* Active state for custom navbar toggler */
.navbar-toggler-custom.active span {
    background-color: transparent;
}

.navbar-toggler-custom.active span::before {
    transform: rotate(45deg) translate(4px, 4px);
}

.navbar-toggler-custom.active span::after {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Hover effect for navbar toggler */
.navbar-toggler-custom:hover {
    background: #e0a800 !important; /* Darker yellow on hover */
    border-color: #e0a800 !important;
    transform: scale(1.1);
}

/* Show custom navbar toggler only on mobile */
@media (max-width: 991px) {
    .navbar-toggler-custom {
        display: flex !important; /* Show only on mobile */
    }
}

/* Search bar - sits inline on the left, right after the home button */
.navbar .container-fluid {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
}

.navbar .search-wrapper {
    position: relative;
    flex: 0 1 360px;
    width: 100%;
    max-width: 360px;
    min-width: 0;
    margin: 0 12px 0 0;
    z-index: 5;
}

.navbar .search-wrapper #search-input {
    width: 100%;
    border-radius: var(--radius-sm);
    border: none;
    padding: 6px 14px;
    font-size: 14px;
}

/* Push everything after the search bar (nav-links) to the right */
.navbar #navbarNav,
.navbar .navbar-collapse {
    margin-left: auto;
}

.search-wrapper {
    position: relative;
}

/* Tablet: shrink search a bit so nav-links still fit */
@media (max-width: 991px) {
    .navbar .search-wrapper {
        flex: 1 1 auto;
        max-width: 260px;
        margin: 0 8px 0 0;
    }
}

/* Phone: tighter still, no overlap with home/hamburger */
@media (max-width: 576px) {
    .navbar .container-fluid {
        gap: 0;
    }
    .navbar .search-wrapper {
        flex: 1 1 auto;
        max-width: none;
        margin: 0 6px 0 0;
    }
    .navbar .search-wrapper #search-input {
        padding: 5px 10px;
        font-size: 13px;
    }
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 400px;
    overflow-y: auto;
    z-index: calc(var(--z-navbar) + 10);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    display: none;
}

.search-results.active {
    display: block;
}

.search-results .search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background var(--transition-fast);
    text-decoration: none;
    color: var(--text-color);
}

.search-results .search-result-item:last-child {
    border-bottom: none;
}

.search-results .search-result-item:hover,
.search-results .search-result-item.highlighted {
    background: #f0f7ff;
}

.search-results .search-result-item .result-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.search-results .search-result-item .result-info {
    flex: 1;
    min-width: 0;
}

.search-results .search-result-item .result-title {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-results .search-result-item .result-title mark {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
}

.search-results .search-result-item .result-path {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-results .search-no-results {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.search-results .search-category {
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

/* Nav Links Container - FIX FOR VISIBILITY */
#navbarNav {
    background-color: transparent !important;
    display: flex !important; /* Always show on desktop */
}

/* Nav Links - FIXED FOR VISIBILITY */
.nav-links {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

/* Nav Links Styling */
.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: inline-block;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-links a.active {
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
}

/* ====================================== */
/* MOBILE MENU RESPONSIVE FIXES           */
/* ====================================== */

@media (max-width: 991px) {
    /* Stack hamburger and logo */
    .navbar > .container-fluid {
        flex-wrap: nowrap !important;
    }
    
    /* Make search full width on mobile */
    #search-input {
        max-width: 100%;
        margin: 10px 0;
        order: 3;
        width: 100%;
    }
    
    /* FIX: Mobile menu - using our own toggle system */
    #navbarNav {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background-color: var(--primary-color) !important;
        padding: 15px !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
        z-index: var(--z-navbar) !important;
        margin-top: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        display: none !important; /* Hidden by default on mobile */
        flex-direction: column !important;
    }
    
    /* Show menu when active */
    #navbarNav.mobile-active {
        display: flex !important;
    }
    
    /* Ensure nav links stack vertically on mobile */
    .nav-links {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .nav-links li {
        width: 100% !important;
    }
    
    .nav-links a {
        display: block !important;
        padding: 12px 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
        text-align: left !important;
    }
    
    /* Remove border from last item */
    .nav-links li:last-child a {
        border-bottom: none !important;
    }
    
    /* Add click handler to close menu when link is clicked */
    .nav-links a {
        cursor: pointer;
    }
}

/* Desktop menu - always visible */
@media (min-width: 992px) {
    /* FIX: Ensure nav links are visible on desktop */
    #navbarNav {
        display: flex !important;
        position: static !important;
        width: auto !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border-top: none !important;
        padding: 0 !important;
    }
    
    .nav-links {
        flex-direction: row;
        width: auto;
    }
    
    .nav-links a {
        display: inline-block;
        padding: 8px 15px;
        border-bottom: none;
        width: auto;
    }
}

/* ====================================== */
/* SIDEBAR & CONTENT LAYOUT               */
/* ====================================== */

/* Sidebar Container */
.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    width: 230px;
    height: calc(100vh - 56px);
    background-color: var(--light-color);
	
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: var(--z-sidebar);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    will-change: transform;
}

.sidebar.active {
    transform: translateX(0) !important;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.1);
}

/* Sidebar Title */
.sidebar h2 {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 15px;
    margin: 0;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    border-bottom: 2px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1;
}

/* ====================================== */
/* SIDEBAR MENU                           */
/* ====================================== */

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 48px;
}

.menu-item {
    border-bottom: 1px solid #e8e8e8;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: var(--dark-color);
    font-size: 14px;
    font-weight: 600;
    background-color: rgba(255,255,255,0.06);
    cursor: pointer;
    text-align: left;
    transition: background-color var(--transition-fast);
    border-left: 3px solid var(--secondary-color);
}

.menu-header:hover {
   
	background-color: rgba(255,255,255,0.12);
}


.menu-header.active {
    background: linear-gradient(135deg, #8f7ce0 0%, #6854c7 100%);
    color: #ffffff;
    font-weight: 600;
    border-left: 4px solid #4a3b7d;
    box-shadow: 0 4px 12px rgba(116, 98, 212, 0.25);
}



.menu-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.menu-header.active .menu-icon {
    transform: rotate(90deg);
}

.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.submenu.active {
    max-height: 1000px;
    overflow: visible;
}

.submenu-item {
    border-bottom: 1px solid #f0f0f0;
}

.submenu-item a {
    display: block;
    padding: 8px 15px 8px 25px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 13px;
    transition: all var(--transition-fast);
    text-align: left;
    position: relative;
    line-height: 1.4;
    border-left: 2px solid transparent;
}

.submenu-item a:hover {
    background-color: #f9f9f9;
	
    color: var(--primary-color);
    border-left-color: var(--secondary-color);
}






.submenu-item a.active {
    background: linear-gradient(135deg, #a797e8 0%, #8f7ce0 100%) !important; /* One shade lighter than the parent gradient */
    color: #ffffff !important;
    font-weight: 600;
    border-left: 4px solid #4a3b7d !important; /* Matches the parent's border exactly */
    box-shadow: 0 2px 8px rgba(116, 98, 212, 0.15); /* A slightly softer shadow than the parent */
}



.submenu-item a.active::before {
    content: "›";
    position: absolute;
    left: 12px;
    font-weight: bold;
}

/* ====================================== */
/* CONTENT LAYOUT                         */
/* ====================================== */

.content {
    margin-top: 56px;
    transition: margin-left var(--transition-slow), width var(--transition-slow);
    min-height: calc(100vh - 56px);
    background-color: var(--white);
    position: relative;
    z-index: 1;
}

/* Page Title + Prev/Next bar */
.content > .header {
    background: linear-gradient(to right, #f8fbff, #ffffff);
    border-bottom: 2px solid var(--secondary-color) !important;
    padding: 14px 24px !important;
    gap: 12px;
}

.content > .header h4#content-title,
.content > .header h4 {
    font-weight: 600 !important;
    color: var(--primary-color);
    font-size: 1.05rem !important;
    line-height: 1.35;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.content > .header .button-group {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.content > .header .btn-success {
    
	background: linear-gradient(135deg, #8f7ce0, #6854c7);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
    transition: all var(--transition-fast);
}



.content > .header .btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #7462d4, #4a3b7d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(116, 98, 212, 0.35);
}

.content > .header .btn-success:disabled {
    background: #e6e4f0;
    color: #a6a2bc;
    opacity: 0.8;
    box-shadow: none;
    cursor: not-allowed;
}


@media (max-width: 576px) {
    .content > .header {
        padding: 10px 14px !important;
    }
    .content > .header h4 {
        font-size: 0.95rem !important;
    }
    .content > .header .btn-success {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
}

/* Desktop: Sidebar pushes content */
@media (min-width: 769px) {
    .sidebar.active ~ .content {
        margin-left: 230px;
        width: calc(100% - 230px);
    }
}

/* Mobile: Sidebar is overlay */
@media (max-width: 768px) {
    .sidebar {
        width: 280px !important;
        box-shadow: 3px 0 15px rgba(0, 0, 0, 0.2);
        z-index: var(--z-sidebar);
    }
    
    .sidebar.active ~ .content {
        margin-left: 0;
        width: 100% !important;
    }
}

/* ====================================== */
/* OVERLAY                                */
/* ====================================== */

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-overlay);
    opacity: 0;
    transition: opacity var(--transition-normal);
    backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
    .overlay.active {
        display: block;
        opacity: 1;
    }
}

@media (min-width: 769px) {
    .overlay {
        display: none !important;
        opacity: 0 !important;
    }
}




/* ====================================== */
/* STICKY TABS                            */
/* ====================================== */

.sticky-tabs-container {
    position: sticky;
    top: 56px;
    background: linear-gradient(to bottom, #ffffff, #fafafa);
    z-index: var(--z-sticky);
    padding: 15px 0;
    margin: 0;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid #eee;
    backdrop-filter: blur(10px);
}

/* ====================================== */
/* TAB BUTTONS (Professional Purple Theme)*/
/* ====================================== */

.mytab-btn {
    padding: 8px 20px;
    background: #ffffff;             /* Replaced dull gray with a crisp white background */
    border: 1px solid #e2dbf5;       /* Softer border tinted slightly with lavender */
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-normal);
    color: #615e75;                  /* Muted corporate slate-purple text */
    margin: 0 5px;
    min-width: 100px;
    text-align: center;
}

.mytab-btn:hover {
    background: #f4f1fa;             /* Pale lavender hover matching submenu style */
    border-color: #c4b7ec;           /* Darkens slightly on hover */
    color: #4a3b7d;                  /* Changes text to deep brand purple */
    transform: translateY(-1px);
}

.mytab-btn.active {
    background: linear-gradient(135deg, #8f7ce0 0%, #6854c7 100%); /* Matches active menu header perfectly */
    border-color: #6854c7;
    color: white;
    box-shadow: 0 4px 12px rgba(104, 84, 199, 0.25);               /* Soft purple shadow instead of green */
}









/* ====================================== */
/* QUIZ STYLING                           */
/* ====================================== */

/* Quiz Card Container */
.quiz-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}
.quiz-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.45;
}

/* Premium Sticky Score Tracker */
.quiz-score-display {
    position: sticky;
    top: 110px;
    z-index: 1019;
    background: linear-gradient(135deg, #8f7ce0, #6854c7) !important; /* Unified brand identity */
    color: #fff !important;
    padding: 12px 22px !important;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    box-shadow: 0 4px 12px rgba(104, 84, 199, 0.25) !important;
    display: inline-flex;
    align-items: center;
    border-left: 4px solid #4a3b7d;
}

.quiz-score-display .quiz-score-correct {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 4px;
}

/* Option List Container */
.quiz-options {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

/* Default State for Options */
.quiz-options li {
    padding: 14px 18px;
    margin: 10px 0;
    background: #ffffff;               /* Crisp white background for main text content */
    border: 1px solid #e2dbf5;         /* Soft lavender tinted border line */
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: #444154;
    font-size: 14.5px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

/* Interactive Hover State */
.quiz-options li:hover {
    background: #f4f1fa;               /* Light brand tint on hover */
    border-color: #c4b7ec;
    color: #4a3b7d;                    /* Accent text color shifting */
    transform: translateX(2px);        /* Subtle rightward shift instead of vertical float */
}

/* Modern Accessible Correct State */
.quiz-options li.correct {
    background: #e6f4ea !important;    /* Soft pastel green (easy on eyes) */
    color: #137333 !important;         /* High-contrast accessible deep green text */
    border: 1px solid #a3cfbb !important;
    border-left: 5px solid #198754 !important; /* Distinct accent highlight line */
    font-weight: 600;
    transform: none;
}

/* Modern Accessible Wrong State */
.quiz-options li.wrong {
    background: #fce8e6 !important;    /* Soft pastel red */
    color: #c5221f !important;         /* High-contrast deep red text */
    border: 1px solid #f5c2c7 !important;
    border-left: 5px solid #dc3545 !important; /* Distinct error accent line */
    font-weight: 600;
    transform: none;
}

/* Premium Brand Explanation Box */
.answer {
    display: none;
    padding: 18px;
    margin: 20px 0;
    background: #fdfbff;               /* Bright neutral tone */
    border: 1px solid #d3cbf7;         /* Purple layout border accent */
    border-left: 4px solid #7462d4;    /* Explicit callout marker */
    border-radius: var(--radius-sm);
    color: #4a3b7d;                    /* Deep readable purple text */
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(116, 98, 212, 0.06);
}

.answer.visible {
    display: block;
    animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Interactive Entrance Keyframe */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-6px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}










/* ====================================== */
/* THEORY CONTENT                         */
/* ====================================== */

.theory-text {
    background: #fdfbff;
    border-radius: var(--radius-md);
    line-height: 1.8;
    color: #333043;
    padding: 25px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(116, 98, 212, 0.05);
    margin: 20px 0;
}



/* ====================================== */
/* CONTENT CARDS                          */
/* ====================================== */

.content-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px 0;
}

/* ====================================== */
/* LOADING & STATES                      */
/* ====================================== */

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    padding: 30px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: var(--radius-md);
    color: #721c24;
    text-align: center;
}

/* ====================================== */
/* NAVIGATION BUTTONS                    */
/* ====================================== */

.nav-buttons {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    margin: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-buttons button {
    padding: 10px 25px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition-normal);
    min-width: 120px;
}

.nav-buttons button:hover:not(:disabled) {
    background: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-buttons button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ====================================== */
/* RESPONSIVE ADJUSTMENTS                */
/* ====================================== */

@media (max-width: 768px) {
    .sidebar {
        width: 85% !important;
        max-width: 300px;
    }
    
    .sticky-tabs-container {
        top: 56px;
        padding: 10px 0;
    }
    
    .mytab-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .content-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (min-width: 1200px) {
    .content {
        padding: 0 40px;
    }
    
    .content-cards {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

/* ====================================== */
/* UTILITY CLASSES                       */
/* ====================================== */

.highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

.code-block {
    background: #282c34;
    color: #abb2bf;
    padding: 15px;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    margin: 15px 0;
}

body:not(.dark-theme) .accordion-body .card {
    border-color: #dbe4ee !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
    overflow: hidden;
}

body:not(.dark-theme) .accordion-body .card-header.bg-primary {
    background: #2563eb !important;
    border-bottom-color: #1d4ed8 !important;
}

body:not(.dark-theme) .accordion-body .card-header.bg-success,
body:not(.dark-theme) .accordion-body .card-header.bg-info {
    background: #15803d !important;
    border-bottom-color: #166534 !important;
}

body:not(.dark-theme) .accordion-body pre {
    background: #f8fafc !important;
    border-color: #dbe4ee !important;
    border-radius: 6px !important;
    padding: 0.95rem 1rem !important;
}

body:not(.dark-theme) .accordion-body .output-box {
    background: #111827 !important;
    color: #f8fafc !important;
    border-color: #111827 !important;
    border-radius: 6px !important;
}

/* Keep copyable light code boxes readable when the page is in night mode. */
body.dark-theme pre.bg-light,
body.dark-theme pre.bg-white,
body.dark-theme .accordion-body pre.bg-light,
body.dark-theme .accordion-body pre.bg-white {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

body.dark-theme pre.bg-light code,
body.dark-theme pre.bg-white code,
body.dark-theme .accordion-body pre.bg-light code,
body.dark-theme .accordion-body pre.bg-white code {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

/* Bootstrap text utilities need explicit dark-mode colors inside tutorial content. */
body.dark-theme .main-text .text-dark,
body.dark-theme .main-text h1.text-dark,
body.dark-theme .main-text h2.text-dark,
body.dark-theme .main-text h3.text-dark,
body.dark-theme .main-text h4.text-dark,
body.dark-theme .main-text h5.text-dark,
body.dark-theme .main-text h6.text-dark {
    color: #f8fafc !important;
}

body.dark-theme .main-text .text-muted,
body.dark-theme .main-text .lead.text-muted {
    color: #cbd5e1 !important;
}

.note {
    background: #e8f4fd;
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin: 15px 0;
    border-radius: var(--radius-sm);
}

.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
    border-radius: var(--radius-sm);
}

/* ====================================== */
/* HIDE SCHEMA DATA                      */
/* ====================================== */

script[type="application/ld+json"],
script[type="application/json"] {
    display: none !important;
}

/* Print styles */
@media print {
    .sidebar, .sticky-tabs-container, .nav-buttons {
        display: none !important;
    }
    
    .content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/*new css  */

/* ====================================== */
/* LONG Q&A SPECIFIC STYLES               */
/* ====================================== */

/* Q&A Body Container */
.qa-body {
    flex: 1;
    padding: 15px 25px;
    font-size: 1.15rem;               /* Balanced down from 1.25rem for cleaner text hierarchy */
    line-height: 1.75;                /* Elevated line spacing for excellent reading endurance */
    background-color: #ffffff;
    color: #333043;                   /* Off-black slate for optimal contrast without eye strain */
}

.qa-body h5 {
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    font-size: 1.4rem;
    color: #4a3b7d;                   /* Primary dark brand purple */
    border-bottom: 2px solid #eae7f5; /* Subtle purple-tinted separator line */
    padding-bottom: 0.6rem;
}

.qa-body h6 {
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: #6854c7;                   /* Accent brand purple */
}

.qa-body p {
    margin-bottom: 1.5rem;
    text-align: justify !important;
    hyphens: auto;
    text-justify: inter-word;
}

.qa-body .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #564f73;                   /* Muted purple-gray slate text */
    line-height: 1.8;
}

/* Quick Navigation Box Styling */
.quick-nav {
    background: linear-gradient(135deg, #fdfbff 0%, #f4f1fa 100%); /* Faint brand glow */
    padding: 22px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    border: 1px solid #e2dbf5;
    box-shadow: 0 4px 10px rgba(116, 98, 212, 0.04);
}

.quick-nav .btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.quick-nav .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(116, 98, 212, 0.15);
}

/* Accordion Module Enhancements */
.accordion-item {
    border: 1px solid #e2dbf5;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    margin-bottom: 18px;
    background: #ffffff;
    transition: all var(--transition-normal);
}

.accordion-item:hover {
    box-shadow: 0 6px 16px rgba(116, 98, 212, 0.08);
    border-color: #c4b7ec;
}

.accordion-button {
    padding: 20px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a3b7d;
    background-color: #ffffff;
    transition: all var(--transition-normal);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #8f7ce0 0%, #6854c7 100%) !important; /* Perfect sidebar header match */
    color: white !important;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(116, 98, 212, 0.2) !important; /* Soft purple focus ring */
    border-color: #8f7ce0;
}

/* Dynamic SVG color shifts for arrow asset toggles */
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234a3b7d'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    transition: transform var(--transition-normal);
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* Q&A Full Structural Content Box */
.qa-content-box {
    border: 1px solid #e2dbf5;
    border-radius: var(--radius-md);
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.qa-header {
    background: linear-gradient(135deg, #8f7ce0 0%, #6854c7 100%) !important; /* Unified banner theme */
    color: white !important;
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 4px solid #4a3b7d;
}

/* Nested Document Cards within Solutions */
.qa-body .card {
    border: 1px solid #eae7f5;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all var(--transition-normal);
    background: #ffffff;
}

.qa-body .card:hover {
    box-shadow: 0 6px 14px rgba(116, 98, 212, 0.08);
    border-color: #c4b7ec;
    transform: translateY(-2px);
}

.qa-body .card-header {
    background-color: #fcfbfe;
    color: #4a3b7d;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 16px 20px;
    border-bottom: 1px solid #eae7f5;
}

.qa-body .card-body {
    padding: 22px;
}

/* Precision In-line Text Emphasis Inline Mark */
.qa-body strong {
    color: #4a3b7d;                   /* Consistent branding emphasis token */
    font-weight: 700;
}

/* Semantic Academic Lists Formatting */
.qa-body ul,
.qa-body ol {
    padding-left: 2rem;
    margin-bottom: 1.75rem;
}

.qa-body li {
    margin-bottom: 0.65rem;
    text-align: left;
    color: #444154;
}

/* Animation for Content Appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);  /* Softer, more controlled slide profile */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qa-content-box {
    animation: fadeInUp 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Clean Responsive Adaptations */
@media (max-width: 768px) {
    .qa-body {
        padding: 20px !important;
        font-size: 1.05rem;
        line-height: 1.7;
    }
    
    .qa-header {
        padding: 16px 20px;
        font-size: 1.05rem;
    }
    
    .accordion-button {
        padding: 16px 20px;
        font-size: 1.05rem;
    }
    
    .quick-nav {
        padding: 16px;
    }
    
    .quick-nav .btn {
        padding: 8px 14px;
        font-size: 13px;
        margin-bottom: 6px;
    }
}

/* System Print Optimization Overrides */
@media print {
    .qa-content-box {
        border: 1px solid #333 !important;
        page-break-inside: avoid;
        box-shadow: none !important;
    }
    
    .qa-header {
        background: #e6e6e6 !important;
        color: #000000 !important;
        border-bottom: 2px solid #000 !important;
        -webkit-print-color-adjust: exact;
    }
    
    .accordion-button {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #333 !important;
    }
    
    .quick-nav, .accordion-button::after {
        display: none !important;
    }
}

/* Structural Layout Integrity Helpers */
.tab-hidden {
    display: none !important;
}

.tab-visible {
    display: block !important;
}

/* Sidebar Responsive Viewport Offsets */
.sidebar-active {
    margin-left: 230px !important;
    width: calc(100% - 230px) !important;
}

.sidebar-inactive {
    margin-left: 0 !important;
    width: 100% !important;
}


/*new css */

/* Responsive Quiz Adjustments for Mobile Viewports */
@media (max-width: 768px) {
    .quiz-box {
        padding: 16px !important;
        margin-bottom: 16px !important;
    }
    .quiz-box h3 {
        font-size: 1.05rem !important; /* Shrunk title from 28px/1.25rem to ~17px/1.05rem */
        margin-bottom: 12px !important;
    }
    .quiz-options {
        margin: 12px 0 !important;
    }
    .quiz-options li {
        padding: 10px 14px !important; /* Shrunk option padding from 14px 18px to fit screen */
        margin: 8px 0 !important;
        font-size: 13.5px !important; /* Shrunk options font size slightly */
    }
    .quiz-score-display {
        top: 60px !important; /* Prevent overlap with collapsed mobile navbar */
        padding: 8px 16px !important;
        font-size: 0.95rem !important;
    }
}

/* TTS Speech Synthesis Visual Highlighting Styles */
::highlight(spoken-word) {
    background-color: rgba(255, 193, 7, 0.35) !important;
    color: inherit !important;
}

.spoken-word-fallback {
    background-color: rgba(255, 193, 7, 0.45) !important;
    color: inherit !important;
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.speaking-element-active {
    background-color: rgba(116, 98, 212, 0.06) !important;
    border-left: 3px solid var(--secondary-color) !important;
    transition: background-color 0.25s ease, border-left 0.25s ease, padding-left 0.25s ease;
    padding-left: 8px !important;
}

/* C cheat sheet quick revision page */
.c-cheatsheet-page {
    --sheet-ink: #111827;
    --sheet-muted: #64748b;
    --sheet-blue: #2563eb;
    --sheet-red: #ef4444;
    --sheet-green: #059669;
    --sheet-violet: #7c3aed;
    --sheet-card: #ffffff;
    --sheet-line: #dbe4f0;
    color: var(--sheet-ink);
}

.c-cheatsheet-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: clamp(22px, 4vw, 42px);
    background:
        radial-gradient(circle at 8% 15%, rgba(37, 99, 235, 0.18), transparent 30%),
        radial-gradient(circle at 92% 18%, rgba(239, 68, 68, 0.16), transparent 28%),
        linear-gradient(135deg, #f8fbff 0%, #eef5ff 52%, #fff7ed 100%);
    border: 1px solid #d8e5f6;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.c-cheatsheet-title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: 0;
    font-weight: 900;
    margin-bottom: 12px;
}

.c-cheatsheet-title .vignaan { color: var(--sheet-blue); }
.c-cheatsheet-title .kosh { color: var(--sheet-red); }

.c-cheatsheet-subtitle {
    max-width: 760px;
    color: #334155;
    font-size: clamp(1rem, 2vw, 1.18rem);
    margin-bottom: 20px;
}

.sheet-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sheet-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #d9e4f3;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.86rem;
    white-space: nowrap;
}

.sheet-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 16px;
    font-weight: 900;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.sheet-section-title i {
    color: var(--sheet-blue);
}

.sheet-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.sheet-card {
    grid-column: span 6;
    background: var(--sheet-card);
    border: 1px solid var(--sheet-line);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    min-width: 0;
}

.sheet-card.wide { grid-column: span 12; }
.sheet-card.third { grid-column: span 4; }

.sheet-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #111827;
    color: #ffffff;
    font-weight: 900;
}

.sheet-card-head.blue { background: var(--sheet-blue); }
.sheet-card-head.green { background: var(--sheet-green); }
.sheet-card-head.violet { background: var(--sheet-violet); }
.sheet-card-head.red { background: var(--sheet-red); }
.sheet-card-head.amber { background: #b45309; }

.sheet-card-body {
    padding: 16px;
}

.sheet-code {
    margin: 0;
    padding: 15px;
    border-radius: 12px;
    background: #0f172a;
    color: #e5edf8;
    border: 1px solid #1e293b;
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden;
}

.sheet-code code {
    color: inherit;
    white-space: pre-wrap;
}

.sheet-note {
    border-left: 4px solid var(--sheet-blue);
    background: #eff6ff;
    color: #1e3a8a;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
}

.sheet-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sheet-list li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 9px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e5edf7;
}

.sheet-list i {
    color: var(--sheet-green);
    margin-top: 2px;
}

.sheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.sheet-table th,
.sheet-table td {
    border: 1px solid #e2e8f0;
    padding: 10px;
    vertical-align: top;
}

.sheet-table th {
    background: #f1f5f9;
    color: #0f172a;
}

.sheet-table code {
    color: #be123c;
    background: #fff1f2;
    padding: 2px 5px;
    border-radius: 6px;
    white-space: normal;
}

.sheet-mini {
    color: var(--sheet-muted);
    font-size: 0.9rem;
}

.revision-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.revision-stat {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 12px;
    min-width: 0;
}

.revision-stat strong {
    display: block;
    font-size: 1.15rem;
    color: #0f172a;
}

.revision-stat span {
    color: #475569;
    font-size: 0.84rem;
    font-weight: 700;
}

@media (max-width: 991px) {
    .sheet-card,
    .sheet-card.third {
        grid-column: span 12;
    }
    .revision-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .c-cheatsheet-page {
        padding-left: 2px;
        padding-right: 2px;
    }
    .c-cheatsheet-hero {
        border-radius: 16px;
    }
    .sheet-chip {
        white-space: normal;
    }
    .revision-strip {
        grid-template-columns: 1fr;
    }
    .sheet-card-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .sheet-table {
        font-size: 0.84rem;
    }
    .sheet-table th,
    .sheet-table td {
        padding: 8px;
    }
}

/* Python modules theory infographic page */
.module-notebook {
    --module-ink: #111827;
    --module-blue: #1d4ed8;
    --module-red: #dc2626;
    --module-green: #15803d;
    --module-yellow: #fef3c7;
    --module-purple: #7c3aed;
    color: var(--module-ink);
    max-width: 1220px;
    margin: 0 auto;
    min-width: 0;
}

.module-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 22px;
    align-items: center;
    padding: clamp(22px, 4vw, 36px);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(30, 64, 175, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(30, 64, 175, 0.06) 1px, transparent 1px),
        #fffef8;
    background-size: 28px 28px;
    border: 2px solid #dbeafe;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.module-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--module-blue);
    border: 1px solid #bfdbfe;
    font-weight: 800;
    margin-bottom: 14px;
}

.module-hero h2 {
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    line-height: 1;
    letter-spacing: 0;
    font-weight: 900;
    color: var(--module-blue);
    margin: 0 0 14px;
}

.module-hero p {
    max-width: 760px;
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: #334155;
    margin: 0;
}

.module-sticky-note {
    transform: rotate(4deg);
    display: grid;
    gap: 8px;
    padding: 18px;
    min-height: 150px;
    background: #fef9c3;
    border: 2px solid #ca8a04;
    box-shadow: 0 12px 20px rgba(120, 53, 15, 0.12);
    color: #422006;
    font-weight: 800;
}

.module-sticky-note strong {
    color: var(--module-red);
    font-size: 1.15rem;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.module-card {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    border: 2px solid #d7e2f1;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    min-width: 0;
}

.module-card.small-card {
    grid-column: span 4;
}

.module-card.wide-card {
    grid-column: span 8;
}

.module-card h3,
.module-keypoints h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--module-red);
    font-size: 1.16rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
    margin: 0;
}

.module-card h3 span,
.module-keypoints h3 span {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fee2e2;
    color: var(--module-red);
    border: 2px solid #fecaca;
    flex: 0 0 auto;
}

.module-card p {
    margin: 0;
    color: #334155;
    font-weight: 650;
}

.module-code {
    margin: 0;
    padding: 13px;
    border-radius: 10px;
    background: #f8fbff;
    color: #0f172a;
    border: 2px solid #cfe1f8;
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden;
}

.module-code code {
    color: inherit;
    white-space: pre-wrap;
}

.module-output {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    color: #14532d;
    font-weight: 800;
}

.module-output strong {
    color: var(--module-green);
    text-decoration: underline;
}

.module-output.error {
    background: #fff1f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.module-tip {
    padding: 10px 12px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #facc15;
    color: #713f12;
    font-weight: 750;
}

.module-check-list {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    color: #0f172a;
    font-weight: 800;
}

.module-check-list li::before {
    content: "";
    color: var(--module-green);
    font-weight: 900;
    margin-right: 8px;
}

.module-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.module-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.module-table th,
.module-table td {
    border: 2px solid #ddd6fe;
    padding: 10px;
    vertical-align: top;
}

.module-table th {
    background: #f5f3ff;
    color: #4c1d95;
}

.module-table code {
    color: #4c1d95;
    background: #f5f3ff;
    border-radius: 6px;
    padding: 2px 5px;
}

.module-keypoints {
    margin: 22px 0 8px;
    padding: 18px;
    border-radius: 16px;
    background: #f0fdf4;
    border: 2px solid #86efac;
}

.module-key-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.module-key-grid ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 18px;
}

.module-key-grid li {
    color: #14532d;
    font-weight: 750;
}

@media (max-width: 991px) {
    .module-hero {
        grid-template-columns: 1fr;
    }
    .module-sticky-note {
        transform: none;
        min-height: auto;
    }
    .module-card,
    .module-card.small-card,
    .module-card.wide-card {
        grid-column: span 12;
    }
    .module-key-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .module-card {
        padding: 13px;
        border-radius: 13px;
    }
    .module-table {
        min-width: 0;
        font-size: 0.84rem;
    }
    .module-table th,
    .module-table td {
        padding: 8px;
    }
}

/* C cheat sheet white board infographic page */
.c-cheat-board-page {
    background: #ffffff;
}

.c-cheat-board {
    --c-board-blue: #173ecf;
    --c-board-red: #e11d1d;
    --c-board-green: #138a36;
    --c-board-yellow: #fff4bf;
    --c-board-ink: #111827;
    --c-board-line: #dbe3f0;
    max-width: 1220px;
    color: var(--c-board-ink);
    min-width: 0;
}

.c-board-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: center;
    padding: clamp(22px, 4vw, 38px);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(23, 62, 207, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(23, 62, 207, 0.05) 1px, transparent 1px),
        #fffefb;
    background-size: 28px 28px;
    border: 2px solid #d8e4ff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.c-board-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--c-board-blue);
    border: 1px solid #bfdbfe;
    font-weight: 900;
    margin-bottom: 14px;
}

.c-board-hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: 1;
    letter-spacing: 0;
    font-weight: 900;
    color: var(--c-board-blue);
    margin: 0 0 14px;
}

.c-board-hero h1 span {
    color: var(--c-board-red);
}

.c-board-hero p {
    color: #334155;
    font-size: clamp(1rem, 2vw, 1.16rem);
    max-width: 790px;
    margin: 0;
    font-weight: 400;
}

.c-board-note {
    display: grid;
    gap: 8px;
    transform: rotate(3deg);
    padding: 18px;
    background: var(--c-board-yellow);
    border: 2px solid #d99a00;
    border-radius: 8px;
    box-shadow: 0 12px 20px rgba(120, 53, 15, 0.12);
}

.c-board-note strong {
    color: var(--c-board-red);
    font-size: 1.15rem;
    font-weight: 500;
}

.c-board-note span {
    color: #422006;
    font-weight: 400;
}

.c-board-path {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-top: 16px;
    padding: 13px;
    background: #ffffff;
    border: 2px solid #dbeafe;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}

.c-board-path strong {
    color: var(--c-board-red);
    font-weight: 500;
}

.c-board-path span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--c-board-blue);
    border: 1px solid #bfdbfe;
    font-size: 0.82rem;
    font-weight: 400;
}

.c-board-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.c-board-card {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    background: #ffffff;
    border: 2px solid var(--c-board-line);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.c-board-card.wide {
    grid-column: span 12;
}

.c-board-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--c-board-red);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.c-board-card h2 span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #fee2e2;
    border: 2px solid #fecaca;
    color: var(--c-board-red);
}

.c-board-code {
    margin: 0;
    padding: 13px;
    border-radius: 10px;
    background: #f8fbff;
    color: #172dc4;
    border: 2px solid #cfe1f8;
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden;
}

.c-cheat-board .code-container {
    max-width: 100%;
}

.c-cheat-board .code-container .c-board-code,
.c-cheat-board pre.c-board-code {
    display: block;
    white-space: pre-wrap !important;
    overflow-wrap: normal;
    word-break: normal;
}

.c-cheat-board .code-container .c-board-code code,
.c-board-code code {
    color: inherit;
    display: block;
    white-space: pre-wrap !important;
    overflow-wrap: normal;
    word-break: normal;
}

.c-board-tip,
.c-board-output {
    padding: 10px 12px;
    border-radius: 11px;
    font-weight: 400;
}

.c-board-tip {
    background: #fffbeb;
    border: 1px solid #facc15;
    color: #713f12;
}

.c-board-output {
    display: grid;
    gap: 4px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    color: #14532d;
}

.c-board-output strong {
    color: var(--c-board-green);
    text-decoration: underline;
    font-weight: 500;
}

.c-board-checks {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #0f172a;
    font-weight: 400;
}

.c-board-checks li::before {
    content: "";
    color: var(--c-board-green);
    font-weight: 900;
    margin-right: 8px;
}

.c-board-checks.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.c-board-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.c-board-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    font-weight: 400;
}

.c-board-table th,
.c-board-table td {
    border: 2px solid #dbeafe;
    padding: 9px;
    vertical-align: top;
}

.c-board-table th {
    background: #eff6ff;
    color: var(--c-board-blue);
    font-weight: 500;
}

.c-board-table code,
.c-board-card code {
    color: #be123c;
    background: #fff1f2;
    border-radius: 6px;
    padding: 2px 5px;
    white-space: normal;
}

.c-board-code code {
    color: inherit;
    background: transparent;
    padding: 0;
}

.c-board-key-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.c-board-two-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.c-board-mini-title {
    margin: 0 0 10px;
    color: var(--c-board-blue);
    font-size: 1rem;
    font-weight: 500;
}

.c-board-qa {
    display: grid;
    gap: 9px;
}

.c-board-qa p {
    margin: 0;
    padding: 9px 10px;
    border-radius: 10px;
    background: #f8fbff;
    border: 1px solid #cfe1f8;
    color: #0f172a;
    font-weight: 400;
}

.c-board-footer-card {
    align-items: center;
    text-align: center;
    background: #fffbea;
    border-color: #facc15;
}

.c-board-footer-card p {
    margin: 0;
    color: #173ecf;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 500;
}

@media (max-width: 991px) {
    .c-board-hero {
        grid-template-columns: 1fr;
    }
    .c-board-note {
        transform: none;
    }
    .c-board-card {
        grid-column: span 12;
    }
    .c-board-key-grid {
        grid-template-columns: 1fr;
    }
    .c-board-two-block {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .c-board-card {
        grid-column: span 12;
        padding: 13px;
        border-radius: 13px;
    }
    .c-board-checks.compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .c-cheat-board {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .c-board-table {
        font-size: 0.84rem;
    }
    .c-board-table th,
    .c-board-table td {
        padding: 8px;
    }
}


/* SEO feature summary inserted on tutorial pages */
.seo-feature-summary {
    background: linear-gradient(135deg, #eef7ff, #f8fbff) !important;
    color: #17466f;
    border-radius: 8px !important;
    padding: 0.7rem 0.9rem !important;
    font-size: 0.92rem;
    line-height: 1.55;
}
.seo-feature-text {
    color: #17466f;
}
body.dark-theme .seo-feature-summary {
    background: linear-gradient(135deg, #142238, #101827) !important;
    color: #dbeafe;
}
body.dark-theme .seo-feature-text {
    color: #dbeafe;
}

/* Python strings theory: wrap teaching content instead of creating horizontal bars. */
.strings-theory-page,
.strings-theory-page .main-text,
.strings-theory-page .row,
.strings-theory-page .row > *,
.strings-theory-page .card,
.strings-theory-page .card-body,
.strings-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python lists theory: keep examples and tables readable on narrow screens. */
.lists-theory-page,
.lists-theory-page .main-text,
.lists-theory-page .row,
.lists-theory-page .row > *,
.lists-theory-page .card,
.lists-theory-page .card-body,
.lists-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python tuples theory: wrap code and tables within the mobile viewport. */
.tuples-theory-page,
.tuples-theory-page .main-text,
.tuples-theory-page .row,
.tuples-theory-page .row > *,
.tuples-theory-page .card,
.tuples-theory-page .card-body,
.tuples-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python sets theory: keep set literals and operation tables mobile friendly. */
.sets-theory-page,
.sets-theory-page .main-text,
.sets-theory-page .row,
.sets-theory-page .row > *,
.sets-theory-page .card,
.sets-theory-page .card-body,
.sets-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python dictionary theory: wrap long key-value examples on small screens. */
.dict-theory-page,
.dict-theory-page .main-text,
.dict-theory-page .row,
.dict-theory-page .row > *,
.dict-theory-page .card,
.dict-theory-page .card-body,
.dict-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python bytes theory: contain binary examples and comparison tables. */
.bytes-theory-page,
.bytes-theory-page .main-text,
.bytes-theory-page .row,
.bytes-theory-page .row > *,
.bytes-theory-page .card,
.bytes-theory-page .card-body,
.bytes-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python functions theory: wrap signatures, examples, and parameter tables. */
.functions-theory-page,
.functions-theory-page .main-text,
.functions-theory-page .mytab,
.functions-theory-page .row,
.functions-theory-page .row > *,
.functions-theory-page .card,
.functions-theory-page .card-body,
.functions-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python recursion theory: contain call trees, traces, and recursive examples. */
.recursion-theory-page,
.recursion-theory-page .main-text,
.recursion-theory-page .row,
.recursion-theory-page .row > *,
.recursion-theory-page .card,
.recursion-theory-page .card-body,
.recursion-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python special functions theory: wrap functional signatures and examples. */
.special-theory-page,
.special-theory-page .main-text,
.special-theory-page .mytab,
.special-theory-page .row,
.special-theory-page .row > *,
.special-theory-page .card,
.special-theory-page .card-body,
.special-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python modules theory: contain imports, module examples, and tables. */
.modules-theory-page,
.modules-theory-page .main-text,
.modules-theory-page .mytab,
.modules-theory-page .row,
.modules-theory-page .row > *,
.modules-theory-page .card,
.modules-theory-page .card-body,
.modules-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python built-in functions theory: contain examples, badges, and tables. */
.builtin-theory-page,
.builtin-theory-page .main-text,
.builtin-theory-page .row,
.builtin-theory-page .row > *,
.builtin-theory-page .card,
.builtin-theory-page .card-body,
.builtin-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python packages theory: contain package trees, commands, and tables. */
.packages-theory-page,
.packages-theory-page .main-text,
.packages-theory-page .row,
.packages-theory-page .row > *,
.packages-theory-page .card,
.packages-theory-page .card-body,
.packages-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python exceptions theory: contain tracebacks, hierarchies, and tables. */
.exceptions-theory-page,
.exceptions-theory-page .main-text,
.exceptions-theory-page .row,
.exceptions-theory-page .row > *,
.exceptions-theory-page .card,
.exceptions-theory-page .card-body,
.exceptions-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python file theory: contain paths, file examples, outputs, and tables. */
.file-theory-page,
.file-theory-page .main-text,
.file-theory-page .mytab,
.file-theory-page .row,
.file-theory-page .row > *,
.file-theory-page .card,
.file-theory-page .card-body,
.file-theory-page .alert,
.file-theory-page .output-box {
    min-width: 0;
    max-width: 100%;
}

/* Python class theory: contain OOP examples, diagrams, and tables. */
.class-theory-page,
.class-theory-page .main-text,
.class-theory-page .row,
.class-theory-page .row > *,
.class-theory-page .card,
.class-theory-page .card-body,
.class-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python OOP variables theory: contain scope examples and comparison tables. */
.oop-variables-theory-page,
.oop-variables-theory-page .main-text,
.oop-variables-theory-page .mytab,
.oop-variables-theory-page .theory-text,
.oop-variables-theory-page .row,
.oop-variables-theory-page .row > *,
.oop-variables-theory-page .card,
.oop-variables-theory-page .card-body,
.oop-variables-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python methods theory: contain decorators, method examples, and tables. */
.methods-theory-page,
.methods-theory-page .main-text,
.methods-theory-page .mytab,
.methods-theory-page .theory-text,
.methods-theory-page .row,
.methods-theory-page .row > *,
.methods-theory-page .card,
.methods-theory-page .card-body,
.methods-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python objects theory: contain relationship examples and comparison tables. */
.objects-theory-page,
.objects-theory-page .main-text,
.objects-theory-page .mytab,
.objects-theory-page .theory-text,
.objects-theory-page .row,
.objects-theory-page .row > *,
.objects-theory-page .card,
.objects-theory-page .card-body,
.objects-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python access modifiers theory: contain mangling examples and tables. */
.accessmodifiers-theory-page,
.accessmodifiers-theory-page .main-text,
.accessmodifiers-theory-page .mytab,
.accessmodifiers-theory-page .theory-text,
.accessmodifiers-theory-page .row,
.accessmodifiers-theory-page .row > *,
.accessmodifiers-theory-page .card,
.accessmodifiers-theory-page .card-body,
.accessmodifiers-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python constructors theory: contain __new__/__init__ examples and tables. */
.constructors-theory-page,
.constructors-theory-page .main-text,
.constructors-theory-page .mytab,
.constructors-theory-page .theory-text,
.constructors-theory-page .row,
.constructors-theory-page .row > *,
.constructors-theory-page .card,
.constructors-theory-page .card-body,
.constructors-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python inheritance theory: contain hierarchies, MRO examples, and tables. */
.inheritance-theory-page,
.inheritance-theory-page .main-text,
.inheritance-theory-page .mytab,
.inheritance-theory-page .theory-text,
.inheritance-theory-page .row,
.inheritance-theory-page .row > *,
.inheritance-theory-page .card,
.inheritance-theory-page .card-body,
.inheritance-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python polymorphism theory: contain duck typing, operators, and tables. */
.polymorphism-theory-page,
.polymorphism-theory-page .main-text,
.polymorphism-theory-page .mytab,
.polymorphism-theory-page .theory-text,
.polymorphism-theory-page .row,
.polymorphism-theory-page .row > *,
.polymorphism-theory-page .card,
.polymorphism-theory-page .card-body,
.polymorphism-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python abstraction theory: contain ABC examples, decorators, and tables. */
.abstraction-theory-page,
.abstraction-theory-page .main-text,
.abstraction-theory-page .mytab,
.abstraction-theory-page .theory-text,
.abstraction-theory-page .row,
.abstraction-theory-page .row > *,
.abstraction-theory-page .card,
.abstraction-theory-page .card-body,
.abstraction-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python encapsulation theory: contain private attributes, properties, and tables. */
.encapsulation-theory-page,
.encapsulation-theory-page .main-text,
.encapsulation-theory-page .mytab,
.encapsulation-theory-page .theory-text,
.encapsulation-theory-page .row,
.encapsulation-theory-page .row > *,
.encapsulation-theory-page .card,
.encapsulation-theory-page .card-body,
.encapsulation-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python nested classes theory: contain inner-class examples and tables. */
.nestedclass-theory-page,
.nestedclass-theory-page .main-text,
.nestedclass-theory-page .mytab,
.nestedclass-theory-page .theory-text,
.nestedclass-theory-page .row,
.nestedclass-theory-page .row > *,
.nestedclass-theory-page .card,
.nestedclass-theory-page .card-body,
.nestedclass-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python advanced theory: contain decorators, generators, accordions, and tables. */
.advanced-theory-page,
.advanced-theory-page .main-text,
.advanced-theory-page .mytab,
.advanced-theory-page .row,
.advanced-theory-page .row > *,
.advanced-theory-page .card,
.advanced-theory-page .card-body,
.advanced-theory-page .alert,
.advanced-theory-page .accordion,
.advanced-theory-page .accordion-item,
.advanced-theory-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

/* Advanced Python concepts theory: contain examples and comparison tables. */
.advancedpython-theory-page,
.advancedpython-theory-page .main-text,
.advancedpython-theory-page .mytab,
.advancedpython-theory-page .theory-text,
.advancedpython-theory-page .row,
.advancedpython-theory-page .row > *,
.advancedpython-theory-page .card,
.advancedpython-theory-page .card-body,
.advancedpython-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python collections theory: contain container examples and comparison tables. */
.collection-theory-page,
.collection-theory-page .main-text,
.collection-theory-page .mytab,
.collection-theory-page .theory-text,
.collection-theory-page .row,
.collection-theory-page .row > *,
.collection-theory-page .card,
.collection-theory-page .card-body,
.collection-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python regex theory: contain patterns, groups, substitutions, and tables. */
.regularexpressions-theory-page,
.regularexpressions-theory-page .main-text,
.regularexpressions-theory-page .mytab,
.regularexpressions-theory-page .theory-text,
.regularexpressions-theory-page .row,
.regularexpressions-theory-page .row > *,
.regularexpressions-theory-page .card,
.regularexpressions-theory-page .card-body,
.regularexpressions-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

/* Python multithreading theory: contain concurrency examples and tables. */
.multithreading-theory-page,
.multithreading-theory-page .main-text,
.multithreading-theory-page .mytab,
.multithreading-theory-page .theory-text,
.multithreading-theory-page .row,
.multithreading-theory-page .row > *,
.multithreading-theory-page .card,
.multithreading-theory-page .card-body,
.multithreading-theory-page .alert {
    min-width: 0;
    max-width: 100%;
}

.multithreading-theory-page pre,
.multithreading-theory-page pre[class*="language-"],
.multithreading-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.multithreading-theory-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.multithreading-theory-page :not(pre) > code,
.multithreading-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.multithreading-theory-page .main-text > .d-flex,
.multithreading-theory-page .card-body > .d-flex {
    flex-wrap: wrap;
}

.multithreading-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.multithreading-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.multithreading-theory-page th,
.multithreading-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .multithreading-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .multithreading-theory-page h2 {
        font-size: 1.35rem;
    }

    .multithreading-theory-page h3 {
        font-size: 1.2rem;
    }

    .multithreading-theory-page h5 {
        font-size: 1rem;
    }

    .multithreading-theory-page .lead {
        font-size: 1rem;
    }

    .multithreading-theory-page .theory-text,
    .multithreading-theory-page .card-body {
        padding: 0.85rem !important;
    }

    .multithreading-theory-page .alert {
        align-items: flex-start !important;
    }

    .multithreading-theory-page pre,
    .multithreading-theory-page pre[class*="language-"] {
        padding-right: 0.75rem !important;
    }

    .multithreading-theory-page th,
    .multithreading-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.76rem;
    }
}

.regularexpressions-theory-page pre,
.regularexpressions-theory-page pre[class*="language-"],
.regularexpressions-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.regularexpressions-theory-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.regularexpressions-theory-page :not(pre) > code,
.regularexpressions-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.regularexpressions-theory-page .main-text > .d-flex,
.regularexpressions-theory-page .card-body > .d-flex {
    flex-wrap: wrap;
}

.regularexpressions-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.regularexpressions-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.regularexpressions-theory-page th,
.regularexpressions-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .regularexpressions-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .regularexpressions-theory-page h2 {
        font-size: 1.35rem;
    }

    .regularexpressions-theory-page h3 {
        font-size: 1.2rem;
    }

    .regularexpressions-theory-page h5 {
        font-size: 1rem;
    }

    .regularexpressions-theory-page .lead {
        font-size: 1rem;
    }

    .regularexpressions-theory-page .theory-text,
    .regularexpressions-theory-page .card-body {
        padding: 0.85rem !important;
    }

    .regularexpressions-theory-page .alert {
        align-items: flex-start !important;
    }

    .regularexpressions-theory-page pre,
    .regularexpressions-theory-page pre[class*="language-"] {
        padding-right: 0.75rem !important;
    }

    .regularexpressions-theory-page th,
    .regularexpressions-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.76rem;
    }
}

.collection-theory-page pre,
.collection-theory-page pre[class*="language-"],
.collection-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.collection-theory-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.collection-theory-page :not(pre) > code,
.collection-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.collection-theory-page .main-text > .d-flex,
.collection-theory-page .card-body > .d-flex {
    flex-wrap: wrap;
}

.collection-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.collection-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.collection-theory-page th,
.collection-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .collection-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .collection-theory-page h2 {
        font-size: 1.35rem;
    }

    .collection-theory-page h3 {
        font-size: 1.2rem;
    }

    .collection-theory-page h5 {
        font-size: 1rem;
    }

    .collection-theory-page .lead {
        font-size: 1rem;
    }

    .collection-theory-page .theory-text,
    .collection-theory-page .card-body {
        padding: 0.85rem !important;
    }

    .collection-theory-page .alert {
        align-items: flex-start !important;
    }

    .collection-theory-page pre,
    .collection-theory-page pre[class*="language-"] {
        padding-right: 0.75rem !important;
    }

    .collection-theory-page th,
    .collection-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.76rem;
    }
}

.advancedpython-theory-page pre,
.advancedpython-theory-page pre[class*="language-"],
.advancedpython-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.advancedpython-theory-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.advancedpython-theory-page :not(pre) > code,
.advancedpython-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.advancedpython-theory-page .main-text > .d-flex,
.advancedpython-theory-page .card-body > .d-flex {
    flex-wrap: wrap;
}

.advancedpython-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.advancedpython-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.advancedpython-theory-page th,
.advancedpython-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .advancedpython-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .advancedpython-theory-page h2 {
        font-size: 1.35rem;
    }

    .advancedpython-theory-page h3 {
        font-size: 1.2rem;
    }

    .advancedpython-theory-page h5 {
        font-size: 1rem;
    }

    .advancedpython-theory-page .lead {
        font-size: 1rem;
    }

    .advancedpython-theory-page .theory-text,
    .advancedpython-theory-page .card-body {
        padding: 0.85rem !important;
    }

    .advancedpython-theory-page .alert {
        align-items: flex-start !important;
    }

    .advancedpython-theory-page pre,
    .advancedpython-theory-page pre[class*="language-"] {
        padding-right: 0.75rem !important;
    }

    .advancedpython-theory-page th,
    .advancedpython-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.76rem;
    }
}

.advanced-theory-page pre,
.advanced-theory-page pre[class*="language-"],
.advanced-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.advanced-theory-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.advanced-theory-page :not(pre) > code,
.advanced-theory-page .badge,
.advanced-theory-page .accordion-button {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.advanced-theory-page .main-text > .d-flex,
.advanced-theory-page .card-body > .d-flex {
    flex-wrap: wrap;
}

.advanced-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.advanced-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.advanced-theory-page th,
.advanced-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .advanced-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .advanced-theory-page h2 {
        font-size: 1.35rem;
    }

    .advanced-theory-page h3 {
        font-size: 1.2rem;
    }

    .advanced-theory-page h5 {
        font-size: 1rem;
    }

    .advanced-theory-page .lead {
        font-size: 1rem;
    }

    .advanced-theory-page .card-body,
    .advanced-theory-page .accordion-body {
        padding: 0.85rem !important;
    }

    .advanced-theory-page .alert {
        align-items: flex-start !important;
    }

    .advanced-theory-page pre,
    .advanced-theory-page pre[class*="language-"] {
        padding-right: 0.75rem !important;
    }

    .advanced-theory-page th,
    .advanced-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.76rem;
    }
}

.nestedclass-theory-page pre,
.nestedclass-theory-page pre[class*="language-"],
.nestedclass-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.nestedclass-theory-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.nestedclass-theory-page :not(pre) > code,
.nestedclass-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.nestedclass-theory-page .main-text > .d-flex,
.nestedclass-theory-page .card-body > .d-flex {
    flex-wrap: wrap;
}

.nestedclass-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.nestedclass-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.nestedclass-theory-page th,
.nestedclass-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .nestedclass-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .nestedclass-theory-page h2 {
        font-size: 1.35rem;
    }

    .nestedclass-theory-page h3 {
        font-size: 1.2rem;
    }

    .nestedclass-theory-page h5 {
        font-size: 1rem;
    }

    .nestedclass-theory-page .lead {
        font-size: 1rem;
    }

    .nestedclass-theory-page .theory-text,
    .nestedclass-theory-page .card-body {
        padding: 0.85rem !important;
    }

    .nestedclass-theory-page .alert {
        align-items: flex-start !important;
    }

    .nestedclass-theory-page pre,
    .nestedclass-theory-page pre[class*="language-"] {
        padding-right: 0.75rem !important;
    }

    .nestedclass-theory-page th,
    .nestedclass-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.76rem;
    }
}

.encapsulation-theory-page pre,
.encapsulation-theory-page pre[class*="language-"],
.encapsulation-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.encapsulation-theory-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.encapsulation-theory-page :not(pre) > code,
.encapsulation-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.encapsulation-theory-page .main-text > .d-flex,
.encapsulation-theory-page .card-body > .d-flex {
    flex-wrap: wrap;
}

.encapsulation-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.encapsulation-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.encapsulation-theory-page th,
.encapsulation-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .encapsulation-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .encapsulation-theory-page h2 {
        font-size: 1.35rem;
    }

    .encapsulation-theory-page h3 {
        font-size: 1.2rem;
    }

    .encapsulation-theory-page h5 {
        font-size: 1rem;
    }

    .encapsulation-theory-page .lead {
        font-size: 1rem;
    }

    .encapsulation-theory-page .theory-text,
    .encapsulation-theory-page .card-body {
        padding: 0.85rem !important;
    }

    .encapsulation-theory-page .alert {
        align-items: flex-start !important;
    }

    .encapsulation-theory-page pre,
    .encapsulation-theory-page pre[class*="language-"] {
        padding-right: 0.75rem !important;
    }

    .encapsulation-theory-page th,
    .encapsulation-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.76rem;
    }
}

.abstraction-theory-page pre,
.abstraction-theory-page pre[class*="language-"],
.abstraction-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.abstraction-theory-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.abstraction-theory-page :not(pre) > code,
.abstraction-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.abstraction-theory-page .main-text > .d-flex,
.abstraction-theory-page .card-body > .d-flex {
    flex-wrap: wrap;
}

.abstraction-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.abstraction-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.abstraction-theory-page th,
.abstraction-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .abstraction-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .abstraction-theory-page h2 {
        font-size: 1.35rem;
    }

    .abstraction-theory-page h3 {
        font-size: 1.2rem;
    }

    .abstraction-theory-page h5 {
        font-size: 1rem;
    }

    .abstraction-theory-page .lead {
        font-size: 1rem;
    }

    .abstraction-theory-page .theory-text,
    .abstraction-theory-page .card-body {
        padding: 0.85rem !important;
    }

    .abstraction-theory-page .alert {
        align-items: flex-start !important;
    }

    .abstraction-theory-page pre,
    .abstraction-theory-page pre[class*="language-"] {
        padding-right: 0.75rem !important;
    }

    .abstraction-theory-page th,
    .abstraction-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.76rem;
    }
}

.polymorphism-theory-page pre,
.polymorphism-theory-page pre[class*="language-"],
.polymorphism-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.polymorphism-theory-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.polymorphism-theory-page :not(pre) > code,
.polymorphism-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.polymorphism-theory-page .main-text > .d-flex,
.polymorphism-theory-page .card-body > .d-flex {
    flex-wrap: wrap;
}

.polymorphism-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.polymorphism-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.polymorphism-theory-page th,
.polymorphism-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .polymorphism-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .polymorphism-theory-page h2 {
        font-size: 1.35rem;
    }

    .polymorphism-theory-page h3 {
        font-size: 1.2rem;
    }

    .polymorphism-theory-page h5 {
        font-size: 1rem;
    }

    .polymorphism-theory-page .lead {
        font-size: 1rem;
    }

    .polymorphism-theory-page .theory-text,
    .polymorphism-theory-page .card-body {
        padding: 0.85rem !important;
    }

    .polymorphism-theory-page .alert {
        align-items: flex-start !important;
    }

    .polymorphism-theory-page pre,
    .polymorphism-theory-page pre[class*="language-"] {
        padding-right: 0.75rem !important;
    }

    .polymorphism-theory-page th,
    .polymorphism-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.76rem;
    }
}

.inheritance-theory-page pre,
.inheritance-theory-page pre[class*="language-"],
.inheritance-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.inheritance-theory-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.inheritance-theory-page :not(pre) > code,
.inheritance-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.inheritance-theory-page .main-text > .d-flex,
.inheritance-theory-page .card-body > .d-flex {
    flex-wrap: wrap;
}

.inheritance-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.inheritance-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.inheritance-theory-page th,
.inheritance-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .inheritance-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .inheritance-theory-page h2 {
        font-size: 1.35rem;
    }

    .inheritance-theory-page h3 {
        font-size: 1.2rem;
    }

    .inheritance-theory-page h5 {
        font-size: 1rem;
    }

    .inheritance-theory-page .lead {
        font-size: 1rem;
    }

    .inheritance-theory-page .theory-text,
    .inheritance-theory-page .card-body {
        padding: 0.85rem !important;
    }

    .inheritance-theory-page .alert {
        align-items: flex-start !important;
    }

    .inheritance-theory-page pre,
    .inheritance-theory-page pre[class*="language-"] {
        padding-right: 0.75rem !important;
    }

    .inheritance-theory-page th,
    .inheritance-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.76rem;
    }
}

.constructors-theory-page pre,
.constructors-theory-page pre[class*="language-"],
.constructors-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.constructors-theory-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.constructors-theory-page :not(pre) > code,
.constructors-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.constructors-theory-page .main-text > .d-flex,
.constructors-theory-page .card-body > .d-flex {
    flex-wrap: wrap;
}

.constructors-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.constructors-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.constructors-theory-page th,
.constructors-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .constructors-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .constructors-theory-page h2 {
        font-size: 1.35rem;
    }

    .constructors-theory-page h3 {
        font-size: 1.2rem;
    }

    .constructors-theory-page h5 {
        font-size: 1rem;
    }

    .constructors-theory-page .lead {
        font-size: 1rem;
    }

    .constructors-theory-page .theory-text,
    .constructors-theory-page .card-body {
        padding: 0.85rem !important;
    }

    .constructors-theory-page .alert {
        align-items: flex-start !important;
    }

    .constructors-theory-page pre,
    .constructors-theory-page pre[class*="language-"] {
        padding-right: 0.75rem !important;
    }

    .constructors-theory-page th,
    .constructors-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.76rem;
    }
}

.accessmodifiers-theory-page pre,
.accessmodifiers-theory-page pre[class*="language-"],
.accessmodifiers-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.accessmodifiers-theory-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.accessmodifiers-theory-page :not(pre) > code,
.accessmodifiers-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.accessmodifiers-theory-page .main-text > .d-flex,
.accessmodifiers-theory-page .card-body > .d-flex {
    flex-wrap: wrap;
}

.accessmodifiers-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.accessmodifiers-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.accessmodifiers-theory-page th,
.accessmodifiers-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .accessmodifiers-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .accessmodifiers-theory-page h2 {
        font-size: 1.35rem;
    }

    .accessmodifiers-theory-page h3 {
        font-size: 1.2rem;
    }

    .accessmodifiers-theory-page h5 {
        font-size: 1rem;
    }

    .accessmodifiers-theory-page .lead {
        font-size: 1rem;
    }

    .accessmodifiers-theory-page .theory-text,
    .accessmodifiers-theory-page .card-body {
        padding: 0.85rem !important;
    }

    .accessmodifiers-theory-page .alert {
        align-items: flex-start !important;
    }

    .accessmodifiers-theory-page pre,
    .accessmodifiers-theory-page pre[class*="language-"] {
        padding-right: 0.75rem !important;
    }

    .accessmodifiers-theory-page th,
    .accessmodifiers-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.76rem;
    }
}

.objects-theory-page pre,
.objects-theory-page pre[class*="language-"],
.objects-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.objects-theory-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.objects-theory-page :not(pre) > code,
.objects-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.objects-theory-page .main-text > .d-flex,
.objects-theory-page .card-body > .d-flex {
    flex-wrap: wrap;
}

.objects-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.objects-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.objects-theory-page th,
.objects-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .objects-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .objects-theory-page h2 {
        font-size: 1.35rem;
    }

    .objects-theory-page h3 {
        font-size: 1.2rem;
    }

    .objects-theory-page h5 {
        font-size: 1rem;
    }

    .objects-theory-page .lead {
        font-size: 1rem;
    }

    .objects-theory-page .theory-text,
    .objects-theory-page .card-body {
        padding: 0.85rem !important;
    }

    .objects-theory-page .alert {
        align-items: flex-start !important;
    }

    .objects-theory-page pre,
    .objects-theory-page pre[class*="language-"] {
        padding-right: 0.75rem !important;
    }

    .objects-theory-page th,
    .objects-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.76rem;
    }
}

.methods-theory-page pre,
.methods-theory-page pre[class*="language-"],
.methods-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.methods-theory-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.methods-theory-page :not(pre) > code,
.methods-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.methods-theory-page .main-text > .d-flex,
.methods-theory-page .card-body > .d-flex {
    flex-wrap: wrap;
}

.methods-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.methods-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.methods-theory-page th,
.methods-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .methods-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .methods-theory-page h2 {
        font-size: 1.35rem;
    }

    .methods-theory-page h3 {
        font-size: 1.2rem;
    }

    .methods-theory-page h5 {
        font-size: 1rem;
    }

    .methods-theory-page .lead {
        font-size: 1rem;
    }

    .methods-theory-page .theory-text,
    .methods-theory-page .card-body {
        padding: 0.85rem !important;
    }

    .methods-theory-page .alert {
        align-items: flex-start !important;
    }

    .methods-theory-page pre,
    .methods-theory-page pre[class*="language-"] {
        padding-right: 0.75rem !important;
    }

    .methods-theory-page th,
    .methods-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.76rem;
    }
}

.oop-variables-theory-page pre,
.oop-variables-theory-page pre[class*="language-"],
.oop-variables-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.oop-variables-theory-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.oop-variables-theory-page :not(pre) > code,
.oop-variables-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.oop-variables-theory-page .main-text > .d-flex,
.oop-variables-theory-page .card-body > .d-flex {
    flex-wrap: wrap;
}

.oop-variables-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.oop-variables-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.oop-variables-theory-page th,
.oop-variables-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .oop-variables-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .oop-variables-theory-page h2 {
        font-size: 1.35rem;
    }

    .oop-variables-theory-page h3 {
        font-size: 1.2rem;
    }

    .oop-variables-theory-page h5 {
        font-size: 1rem;
    }

    .oop-variables-theory-page .lead {
        font-size: 1rem;
    }

    .oop-variables-theory-page .theory-text,
    .oop-variables-theory-page .card-body {
        padding: 0.85rem !important;
    }

    .oop-variables-theory-page .alert {
        align-items: flex-start !important;
    }

    .oop-variables-theory-page pre,
    .oop-variables-theory-page pre[class*="language-"] {
        padding-right: 0.75rem !important;
    }

    .oop-variables-theory-page th,
    .oop-variables-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.76rem;
    }
}

.class-theory-page pre,
.class-theory-page pre[class*="language-"],
.class-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.class-theory-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.class-theory-page :not(pre) > code,
.class-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.class-theory-page .main-text > .d-flex,
.class-theory-page .card-body > .d-flex {
    flex-wrap: wrap;
}

.class-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.class-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.class-theory-page th,
.class-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .class-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .class-theory-page h2 {
        font-size: 1.35rem;
    }

    .class-theory-page h3 {
        font-size: 1.2rem;
    }

    .class-theory-page h5 {
        font-size: 1rem;
    }

    .class-theory-page .lead {
        font-size: 1rem;
    }

    .class-theory-page .card-body {
        padding: 0.85rem;
    }

    .class-theory-page .alert {
        align-items: flex-start !important;
    }

    .class-theory-page pre,
    .class-theory-page pre[class*="language-"] {
        padding-right: 0.75rem !important;
    }

    .class-theory-page th,
    .class-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.76rem;
    }
}

.file-theory-page pre,
.file-theory-page pre[class*="language-"],
.file-theory-page pre code,
.file-theory-page .output-box {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.file-theory-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.file-theory-page :not(pre) > code,
.file-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.file-theory-page .main-text > .d-flex,
.file-theory-page .card-body > .d-flex {
    flex-wrap: wrap;
}

.file-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.file-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.file-theory-page th,
.file-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .file-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .file-theory-page h2 {
        font-size: 1.35rem;
    }

    .file-theory-page h3 {
        font-size: 1.2rem;
    }

    .file-theory-page h5 {
        font-size: 1rem;
    }

    .file-theory-page .lead {
        font-size: 1rem;
    }

    .file-theory-page .card-body {
        padding: 0.85rem;
    }

    .file-theory-page .alert {
        align-items: flex-start !important;
    }

    .file-theory-page pre,
    .file-theory-page pre[class*="language-"] {
        padding-right: 0.75rem !important;
    }

    .file-theory-page th,
    .file-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.76rem;
    }
}

.exceptions-theory-page pre,
.exceptions-theory-page pre[class*="language-"],
.exceptions-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.exceptions-theory-page :not(pre) > code,
.exceptions-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.exceptions-theory-page .main-text > .d-flex {
    flex-wrap: wrap;
}

.exceptions-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.exceptions-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.exceptions-theory-page th,
.exceptions-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .exceptions-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .exceptions-theory-page h2 {
        font-size: 1.35rem;
    }

    .exceptions-theory-page h3 {
        font-size: 1.2rem;
    }

    .exceptions-theory-page h5 {
        font-size: 1rem;
    }

    .exceptions-theory-page .card-body {
        padding: 0.85rem;
    }

    .exceptions-theory-page .alert {
        align-items: flex-start !important;
    }

    .exceptions-theory-page .card-body > .d-flex.align-items-center {
        flex-wrap: wrap;
        row-gap: 0.75rem;
    }

    .exceptions-theory-page .card-body > .d-flex.align-items-center > * {
        min-width: 0;
        max-width: 100%;
    }

    .exceptions-theory-page th,
    .exceptions-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.78rem;
    }
}

.packages-theory-page pre,
.packages-theory-page pre[class*="language-"],
.packages-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.packages-theory-page :not(pre) > code,
.packages-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.packages-theory-page .main-text > .d-flex {
    flex-wrap: wrap;
}

.packages-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.packages-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.packages-theory-page th,
.packages-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .packages-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .packages-theory-page h2 {
        font-size: 1.35rem;
    }

    .packages-theory-page h3 {
        font-size: 1.2rem;
    }

    .packages-theory-page .card-body {
        padding: 0.85rem;
    }

    .packages-theory-page .alert {
        align-items: flex-start !important;
    }

    .packages-theory-page th,
    .packages-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.8rem;
    }
}

.builtin-theory-page pre,
.builtin-theory-page pre[class*="language-"],
.builtin-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.builtin-theory-page :not(pre) > code,
.builtin-theory-page .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.builtin-theory-page .main-text > .d-flex {
    flex-wrap: wrap;
}

.builtin-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.builtin-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.builtin-theory-page th,
.builtin-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .builtin-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .builtin-theory-page h2 {
        font-size: 1.35rem;
    }

    .builtin-theory-page h3 {
        font-size: 1.2rem;
    }

    .builtin-theory-page .card-body {
        padding: 0.85rem;
    }

    .builtin-theory-page .alert {
        align-items: flex-start !important;
    }

    .builtin-theory-page th,
    .builtin-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.8rem;
    }
}

.modules-theory-page pre,
.modules-theory-page pre[class*="language-"],
.modules-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.modules-theory-page :not(pre) > code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.modules-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.modules-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.modules-theory-page th,
.modules-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .modules-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .modules-theory-page h2 {
        font-size: 1.35rem;
    }

    .modules-theory-page h3 {
        font-size: 1.2rem;
    }

    .modules-theory-page .lead {
        font-size: 1rem;
    }

    .modules-theory-page .card-body {
        padding: 0.85rem;
    }

    .modules-theory-page .alert {
        align-items: flex-start !important;
    }

    .modules-theory-page th,
    .modules-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.8rem;
    }
}

.special-theory-page pre,
.special-theory-page pre[class*="language-"],
.special-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.special-theory-page :not(pre) > code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.special-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.special-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.special-theory-page th,
.special-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .special-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .special-theory-page h2 {
        font-size: 1.35rem;
    }

    .special-theory-page h3 {
        font-size: 1.2rem;
    }

    .special-theory-page .lead {
        font-size: 1rem;
    }

    .special-theory-page .card-body {
        padding: 0.85rem;
    }

    .special-theory-page .alert {
        align-items: flex-start !important;
    }

    .special-theory-page th,
    .special-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.8rem;
    }
}

.recursion-theory-page pre,
.recursion-theory-page pre[class*="language-"],
.recursion-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.recursion-theory-page :not(pre) > code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.recursion-theory-page .table-responsive {
    width: auto;
    max-width: 100%;
    overflow-x: visible;
}

.recursion-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.recursion-theory-page th,
.recursion-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .recursion-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .recursion-theory-page h2 {
        font-size: 1.35rem;
    }

    .recursion-theory-page h3 {
        font-size: 1.2rem;
    }

    .recursion-theory-page .lead {
        font-size: 1rem;
    }

    .recursion-theory-page .card-body {
        padding: 0.85rem;
    }

    .recursion-theory-page .alert {
        align-items: flex-start !important;
    }

    .recursion-theory-page th,
    .recursion-theory-page td {
        padding: 0.45rem 0.3rem;
        font-size: 0.8rem;
    }
}

.functions-theory-page pre,
.functions-theory-page pre[class*="language-"],
.functions-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.functions-theory-page :not(pre) > code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.functions-theory-page .table-responsive {
    max-width: 100%;
    overflow-x: visible;
}

.functions-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.functions-theory-page th,
.functions-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .functions-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .functions-theory-page h2 {
        font-size: 1.35rem;
    }

    .functions-theory-page .lead {
        font-size: 1rem;
    }

    .functions-theory-page .card-body {
        padding: 0.85rem;
    }

    .functions-theory-page .alert {
        align-items: flex-start !important;
    }

    .functions-theory-page th,
    .functions-theory-page td {
        padding: 0.45rem 0.35rem;
        font-size: 0.82rem;
    }
}

.bytes-theory-page pre,
.bytes-theory-page pre[class*="language-"],
.bytes-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.bytes-theory-page :not(pre) > code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.bytes-theory-page .table-responsive {
    max-width: 100%;
    overflow-x: visible;
}

.bytes-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.bytes-theory-page th,
.bytes-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .bytes-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .bytes-theory-page h2 {
        font-size: 1.35rem;
    }

    .bytes-theory-page .card-body {
        padding: 0.85rem;
    }

    .bytes-theory-page .alert {
        align-items: flex-start !important;
    }

    .bytes-theory-page th,
    .bytes-theory-page td {
        padding: 0.45rem 0.35rem;
        font-size: 0.84rem;
    }
}

.dict-theory-page pre,
.dict-theory-page pre[class*="language-"],
.dict-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.dict-theory-page :not(pre) > code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dict-theory-page .table-responsive {
    max-width: 100%;
    overflow-x: visible;
}

.dict-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.dict-theory-page th,
.dict-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .dict-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .dict-theory-page h2 {
        font-size: 1.35rem;
    }

    .dict-theory-page .card-body {
        padding: 0.85rem;
    }

    .dict-theory-page .alert {
        align-items: flex-start !important;
    }

    .dict-theory-page th,
    .dict-theory-page td {
        padding: 0.45rem 0.35rem;
        font-size: 0.84rem;
    }
}

.sets-theory-page pre,
.sets-theory-page pre[class*="language-"],
.sets-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.sets-theory-page :not(pre) > code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sets-theory-page .table-responsive {
    max-width: 100%;
    overflow-x: visible;
}

.sets-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.sets-theory-page th,
.sets-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .sets-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .sets-theory-page h2 {
        font-size: 1.35rem;
    }

    .sets-theory-page .card-body {
        padding: 0.85rem;
    }

    .sets-theory-page .alert {
        align-items: flex-start !important;
    }

    .sets-theory-page th,
    .sets-theory-page td {
        padding: 0.45rem 0.35rem;
        font-size: 0.84rem;
    }
}

.tuples-theory-page pre,
.tuples-theory-page pre[class*="language-"],
.tuples-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.tuples-theory-page :not(pre) > code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tuples-theory-page .table-responsive {
    max-width: 100%;
    overflow-x: visible;
}

.tuples-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.tuples-theory-page th,
.tuples-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .tuples-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .tuples-theory-page h2 {
        font-size: 1.35rem;
    }

    .tuples-theory-page .card-body {
        padding: 0.85rem;
    }

    .tuples-theory-page .alert {
        align-items: flex-start !important;
    }

    .tuples-theory-page th,
    .tuples-theory-page td {
        padding: 0.45rem 0.35rem;
        font-size: 0.84rem;
    }
}

.lists-theory-page pre,
.lists-theory-page pre[class*="language-"],
.lists-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.lists-theory-page :not(pre) > code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lists-theory-page .table-responsive {
    max-width: 100%;
    overflow-x: visible;
}

.lists-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.lists-theory-page th,
.lists-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .lists-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .lists-theory-page h2 {
        font-size: 1.35rem;
    }

    .lists-theory-page .card-body {
        padding: 0.85rem;
    }

    .lists-theory-page .alert {
        align-items: flex-start !important;
    }

    .lists-theory-page th,
    .lists-theory-page td {
        padding: 0.45rem 0.35rem;
        font-size: 0.84rem;
    }
}

.strings-theory-page pre,
.strings-theory-page pre[class*="language-"],
.strings-theory-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.strings-theory-page :not(pre) > code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.strings-theory-page .table-responsive {
    max-width: 100%;
    overflow-x: visible;
}

.strings-theory-page table {
    width: 100%;
    table-layout: fixed;
}

.strings-theory-page th,
.strings-theory-page td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .strings-theory-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .strings-theory-page h2 {
        font-size: 1.35rem;
    }

    .strings-theory-page .card-body {
        padding: 0.85rem;
    }

    .strings-theory-page .alert {
        align-items: flex-start !important;
    }

    .strings-theory-page th,
    .strings-theory-page td {
        padding: 0.45rem 0.35rem;
        font-size: 0.84rem;
    }
}

/* Python string programs: keep code, explanations, and outputs inside the viewport. */
.strings-program-page,
.strings-program-page .main-text,
.strings-program-page .row,
.strings-program-page .row > *,
.strings-program-page .card,
.strings-program-page .card-body,
.strings-program-page .accordion,
.strings-program-page .accordion-item,
.strings-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

/* Python list programs: keep program cards and dry-run content within the viewport. */
.lists-program-page,
.lists-program-page .main-text,
.lists-program-page .row,
.lists-program-page .row > *,
.lists-program-page .card,
.lists-program-page .card-body,
.lists-program-page .accordion,
.lists-program-page .accordion-item,
.lists-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

.lists-program-page pre,
.lists-program-page pre code,
.lists-program-page .explanation-pre {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.lists-program-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.lists-program-page :not(pre) > code,
.lists-program-page .output-box,
.lists-program-page .accordion-button {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lists-program-page .accordion-button .badge {
    flex: 0 0 auto;
}

.lists-program-page > .main-text > .d-flex,
.lists-program-page .card-body > .d-flex {
    flex-wrap: wrap;
}

@media (max-width: 575.98px) {
    .lists-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .lists-program-page h2 {
        font-size: 1.25rem;
    }

    .lists-program-page .accordion-button {
        align-items: flex-start;
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    .lists-program-page .accordion-body,
    .lists-program-page .card-body {
        padding: 0.8rem;
    }

    .lists-program-page pre {
        padding-right: 0.75rem !important;
    }

.lists-program-page .output-box {
        font-size: 0.9rem;
    }
}

.tuples-program-page,
.tuples-program-page .main-text,
.tuples-program-page .row,
.tuples-program-page .row > *,
.tuples-program-page .card,
.tuples-program-page .card-body,
.tuples-program-page .accordion,
.tuples-program-page .accordion-item,
.tuples-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

.tuples-program-page pre,
.tuples-program-page pre code,
.tuples-program-page .explanation-pre {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.tuples-program-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.tuples-program-page :not(pre) > code,
.tuples-program-page .output-box,
.tuples-program-page .accordion-button {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tuples-program-page .accordion-button .badge {
    flex: 0 0 auto;
}

.tuples-program-page > .main-text > .d-flex,
.tuples-program-page .card-body > .d-flex {
    flex-wrap: wrap;
}

@media (max-width: 575.98px) {
    .tuples-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .tuples-program-page h2 {
        font-size: 1.25rem;
    }

    .tuples-program-page .accordion-button {
        align-items: flex-start;
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    .tuples-program-page .accordion-body,
    .tuples-program-page .card-body {
        padding: 0.8rem;
    }

    .tuples-program-page pre {
        padding-right: 0.75rem !important;
    }

.tuples-program-page .output-box {
        font-size: 0.9rem;
    }
}

.sets-program-page,
.sets-program-page .main-text,
.sets-program-page .container-fluid,
.sets-program-page .row,
.sets-program-page .row > *,
.sets-program-page .card,
.sets-program-page .card-body,
.sets-program-page .accordion,
.sets-program-page .accordion-item,
.sets-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

.sets-program-page pre,
.sets-program-page pre code,
.sets-program-page .explanation-pre {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.sets-program-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sets-program-page :not(pre) > code,
.sets-program-page .output-box,
.sets-program-page .accordion-button {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sets-program-page .accordion-button .badge {
    flex: 0 0 auto;
}

.sets-program-page > .main-text > .d-flex,
.sets-program-page .card-body > .d-flex {
    flex-wrap: wrap;
}

@media (max-width: 575.98px) {
    .sets-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .sets-program-page h2 {
        font-size: 1.25rem;
    }

    .sets-program-page .accordion-button {
        align-items: flex-start;
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    .sets-program-page .accordion-body,
    .sets-program-page .card-body {
        padding: 0.8rem;
    }

    .sets-program-page pre {
        padding-right: 0.75rem !important;
    }

.sets-program-page .output-box {
        font-size: 0.9rem;
    }
}

.dict-program-page,
.dict-program-page .main-text,
.dict-program-page .container-fluid,
.dict-program-page .row,
.dict-program-page .row > *,
.dict-program-page .card,
.dict-program-page .card-body,
.dict-program-page .accordion,
.dict-program-page .accordion-item,
.dict-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

.dict-program-page pre,
.dict-program-page pre code,
.dict-program-page .explanation-pre {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.dict-program-page pre code {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.dict-program-page :not(pre) > code,
.dict-program-page .output-box,
.dict-program-page .accordion-button {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dict-program-page .accordion-button .badge {
    flex: 0 0 auto;
}

/* Python bytes programs: wrap code and explanations instead of creating horizontal bars. */
.bytes-program-page,
.bytes-program-page .main-text,
.bytes-program-page .container-fluid,
.bytes-program-page .row,
.bytes-program-page .row > *,
.bytes-program-page .card,
.bytes-program-page .card-body,
.bytes-program-page .accordion,
.bytes-program-page .accordion-item,
.bytes-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

.bytes-program-page pre,
.bytes-program-page pre code,
.bytes-program-page .explanation-pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden !important;
}

.bytes-program-page pre code {
    display: block;
    width: 100%;
}

.bytes-program-page :not(pre) > code,
.bytes-program-page .output-box,
.bytes-program-page .accordion-button {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.bytes-program-page .accordion-button .badge {
    flex: 0 0 auto;
}

/* Python function programs: keep code, explanations, and controls inside the viewport. */
.functions-program-page,
.functions-program-page .main-text,
.functions-program-page .container-fluid,
.functions-program-page .row,
.functions-program-page .row > *,
.functions-program-page .card,
.functions-program-page .card-body,
.functions-program-page .accordion,
.functions-program-page .accordion-item,
.functions-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

.functions-program-page pre,
.functions-program-page pre code,
.functions-program-page .explanation-pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden !important;
}

.functions-program-page pre code {
    display: block;
    width: 100%;
}

.functions-program-page :not(pre) > code,
.functions-program-page .output-box,
.functions-program-page .accordion-button,
.functions-program-page h3,
.functions-program-page p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.functions-program-page .accordion-button .badge,
.functions-program-page .badge-program {
    flex: 0 0 auto;
}

@media (max-width: 575.98px) {
    .functions-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .functions-program-page > .main-text > .d-flex {
        align-items: flex-start !important;
        flex-wrap: wrap;
    }

    .functions-program-page h3 {
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .functions-program-page .accordion-button {
        padding: 0.75rem;
        font-size: 0.92rem;
        align-items: flex-start;
    }

    .functions-program-page .accordion-body,
    .functions-program-page .card-body {
        padding: 0.75rem;
    }

    .functions-program-page pre {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .functions-program-page .output-box {
        font-size: 0.84rem;
    }
}

/* Python recursion programs: wrap teaching content without horizontal scrolling. */
.recursion-program-page,
.recursion-program-page .main-text,
.recursion-program-page .container-fluid,
.recursion-program-page .row,
.recursion-program-page .row > *,
.recursion-program-page .card,
.recursion-program-page .card-body,
.recursion-program-page .accordion,
.recursion-program-page .accordion-item,
.recursion-program-page .accordion-body,
.recursion-program-page .recursion-call-stack {
    min-width: 0;
    max-width: 100%;
}

/* Python special-function programs: keep functional examples inside the viewport. */
.special-program-page,
.special-program-page .main-text,
.special-program-page .container-fluid,
.special-program-page .row,
.special-program-page .row > *,
.special-program-page .card,
.special-program-page .card-body,
.special-program-page .accordion,
.special-program-page .accordion-item,
.special-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

.special-program-page pre,
.special-program-page pre code,
.special-program-page .explanation-pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden !important;
}

.special-program-page pre code {
    display: block;
    width: 100%;
}

.special-program-page :not(pre) > code,
.special-program-page .output-box,
.special-program-page .accordion-button,
.special-program-page h3,
.special-program-page p,
.special-program-page li {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.special-program-page .accordion-button .badge {
    flex: 0 0 auto;
}

@media (max-width: 575.98px) {
    .special-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .special-program-page > .main-text > .d-flex {
        align-items: flex-start !important;
        flex-wrap: wrap;
    }

    .special-program-page h3 {
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .special-program-page .accordion-button {
        padding: 0.75rem;
        font-size: 0.92rem;
        align-items: flex-start;
    }

    .special-program-page .accordion-body,
    .special-program-page .card-body {
        padding: 0.75rem;
    }

    .special-program-page pre {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .special-program-page .output-box {
        font-size: 0.84rem;
    }
}

/* Python module programs: wrap multi-file examples, explanations, and tables. */
.modules-program-page,
.modules-program-page .main-text,
.modules-program-page .container-fluid,
.modules-program-page .row,
.modules-program-page .row > *,
.modules-program-page .card,
.modules-program-page .card-body,
.modules-program-page .accordion,
.modules-program-page .accordion-item,
.modules-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

.modules-program-page pre,
.modules-program-page pre code,
.modules-program-page .explanation-pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden !important;
}

.modules-program-page pre code {
    display: block;
    width: 100%;
}

.modules-program-page :not(pre) > code,
.modules-program-page .output-box,
.modules-program-page .accordion-button,
.modules-program-page h3,
.modules-program-page p,
.modules-program-page li,
.modules-program-page th,
.modules-program-page td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.modules-program-page .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
}

.modules-program-page table {
    width: 100%;
    table-layout: fixed;
}

.modules-program-page .accordion-button .badge {
    flex: 0 0 auto;
}

/* Python built-in module programs: keep code, explanations, and tables inside the viewport. */
.builtin-program-page,
.builtin-program-page .main-text,
.builtin-program-page .container-fluid,
.builtin-program-page .row,
.builtin-program-page .row > *,
.builtin-program-page .card,
.builtin-program-page .card-body,
.builtin-program-page .accordion,
.builtin-program-page .accordion-item,
.builtin-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

.builtin-program-page pre,
.builtin-program-page pre code,
.builtin-program-page .explanation-pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden !important;
}

.builtin-program-page pre code {
    display: block;
    width: 100%;
}

.builtin-program-page :not(pre) > code,
.builtin-program-page .output-box,
.builtin-program-page .accordion-button,
.builtin-program-page h3,
.builtin-program-page p,
.builtin-program-page li,
.builtin-program-page th,
.builtin-program-page td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.builtin-program-page .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
}

.builtin-program-page table {
    width: 100%;
    table-layout: fixed;
}

.builtin-program-page .accordion-button .badge {
    flex: 0 0 auto;
}

/* Python package programs: contain multi-file examples and long package paths. */
.packages-program-page,
.packages-program-page .main-text,
.packages-program-page .container-fluid,
.packages-program-page .row,
.packages-program-page .row > *,
.packages-program-page .card,
.packages-program-page .card-body,
.packages-program-page .accordion,
.packages-program-page .accordion-item,
.packages-program-page .accordion-body,
.packages-program-page .folder-structure {
    min-width: 0;
    max-width: 100%;
}

.packages-program-page pre,
.packages-program-page pre code,
.packages-program-page .explanation-pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden !important;
}

.packages-program-page pre code {
    display: block;
    width: 100%;
}

.packages-program-page :not(pre) > code,
.packages-program-page .folder-structure,
.packages-program-page .output-box,
.packages-program-page .accordion-button,
.packages-program-page h3,
.packages-program-page p,
.packages-program-page li,
.packages-program-page th,
.packages-program-page td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.packages-program-page .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
}

.packages-program-page table {
    width: 100%;
    table-layout: fixed;
}

.packages-program-page .accordion-button .badge {
    flex: 0 0 auto;
}

/* Python class programs: contain object state, method calls, and explanations. */
.class-program-page,
.class-program-page .main-text,
.class-program-page .container-fluid,
.class-program-page .row,
.class-program-page .row > *,
.class-program-page .card,
.class-program-page .card-body,
.class-program-page .accordion,
.class-program-page .accordion-item,
.class-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

.class-program-page pre,
.class-program-page pre code,
.class-program-page .explanation-pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden !important;
}

.class-program-page pre code {
    display: block;
    width: 100%;
}

.class-program-page :not(pre) > code,
.class-program-page .output-box,
.class-program-page .accordion-button,
.class-program-page h3,
.class-program-page p,
.class-program-page li,
.class-program-page th,
.class-program-page td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.class-program-page .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
}

.class-program-page table {
    width: 100%;
    table-layout: fixed;
}

.class-program-page .accordion-button .badge {
    flex: 0 0 auto;
}

/* Python OOP-variable programs: keep object examples readable without horizontal scrolling. */
.oop-variables-program-page,
.oop-variables-program-page .main-text,
.oop-variables-program-page .container-fluid,
.oop-variables-program-page .row,
.oop-variables-program-page .row > *,
.oop-variables-program-page .card,
.oop-variables-program-page .card-body,
.oop-variables-program-page .accordion,
.oop-variables-program-page .accordion-item,
.oop-variables-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

.oop-variables-program-page pre,
.oop-variables-program-page pre code,
.oop-variables-program-page .explanation-pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden !important;
}

.oop-variables-program-page pre code {
    display: block;
    width: 100%;
}

.oop-variables-program-page :not(pre) > code,
.oop-variables-program-page .output-box,
.oop-variables-program-page .accordion-button,
.oop-variables-program-page h3,
.oop-variables-program-page p,
.oop-variables-program-page li,
.oop-variables-program-page th,
.oop-variables-program-page td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.oop-variables-program-page .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
}

.oop-variables-program-page table {
    width: 100%;
    table-layout: fixed;
}

.oop-variables-program-page .accordion-button .badge {
    flex: 0 0 auto;
}

/* Python method programs: wrap long calls and explanations on small screens. */
.methods-program-page,
.methods-program-page .main-text,
.methods-program-page .container-fluid,
.methods-program-page .row,
.methods-program-page .row > *,
.methods-program-page .card,
.methods-program-page .card-body,
.methods-program-page .accordion,
.methods-program-page .accordion-item,
.methods-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

.methods-program-page pre,
.methods-program-page pre code,
.methods-program-page .explanation-pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden !important;
}

.methods-program-page pre code {
    display: block;
    width: 100%;
}

.methods-program-page :not(pre) > code,
.methods-program-page .output-box,
.methods-program-page .accordion-button,
.methods-program-page h3,
.methods-program-page p,
.methods-program-page li,
.methods-program-page th,
.methods-program-page td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.methods-program-page .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
}

.methods-program-page table {
    width: 100%;
    table-layout: fixed;
}

.methods-program-page .accordion-button .badge {
    flex: 0 0 auto;
    color: #fff !important;
    background-color: var(--bs-primary) !important;
}

.methods-program-page .accordion-body .row > .col-lg-6:first-child .card-header {
    color: #fff !important;
    background-color: var(--bs-primary) !important;
}

.methods-program-page .accordion-body .row > .col-lg-6:last-child .card-header {
    color: #fff !important;
    background-color: var(--bs-success) !important;
}

/* Python object-relationship programs: match the standard program card palette. */
.objects-program-page,
.objects-program-page .main-text,
.objects-program-page .container-fluid,
.objects-program-page .row,
.objects-program-page .row > *,
.objects-program-page .card,
.objects-program-page .card-body,
.objects-program-page .accordion,
.objects-program-page .accordion-item,
.objects-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

.objects-program-page pre,
.objects-program-page pre code,
.objects-program-page .explanation-pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden !important;
}

.objects-program-page pre code {
    display: block;
    width: 100%;
}

.objects-program-page :not(pre) > code,
.objects-program-page .output-box,
.objects-program-page .accordion-button,
.objects-program-page h3,
.objects-program-page p,
.objects-program-page li,
.objects-program-page th,
.objects-program-page td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.objects-program-page .accordion-button .badge {
    flex: 0 0 auto;
    color: #fff !important;
    background-color: var(--bs-primary) !important;
}

.objects-program-page .accordion-body .row > .col-lg-6:first-child .card-header {
    color: #fff !important;
    background-color: var(--bs-primary) !important;
}

.objects-program-page .accordion-body .row > .col-lg-6:last-child .card-header {
    color: #fff !important;
    background-color: var(--bs-success) !important;
}

/* Python access-modifier programs: use the standard program layout and palette. */
.accessmodifiers-program-page,
.accessmodifiers-program-page .main-text,
.accessmodifiers-program-page .container-fluid,
.accessmodifiers-program-page .row,
.accessmodifiers-program-page .row > *,
.accessmodifiers-program-page .card,
.accessmodifiers-program-page .card-body,
.accessmodifiers-program-page .accordion,
.accessmodifiers-program-page .accordion-item,
.accessmodifiers-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

.accessmodifiers-program-page pre,
.accessmodifiers-program-page pre code,
.accessmodifiers-program-page .explanation-pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden !important;
}

.accessmodifiers-program-page pre code {
    display: block;
    width: 100%;
}

.accessmodifiers-program-page :not(pre) > code,
.accessmodifiers-program-page .output-box,
.accessmodifiers-program-page .accordion-button,
.accessmodifiers-program-page h3,
.accessmodifiers-program-page p,
.accessmodifiers-program-page li {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.accessmodifiers-program-page .accordion-button .badge {
    flex: 0 0 auto;
    color: #fff !important;
    background-color: var(--bs-primary) !important;
}

.accessmodifiers-program-page .accordion-body .row > .col-lg-6:first-child .card-header {
    color: #fff !important;
    background-color: var(--bs-primary) !important;
}

.accessmodifiers-program-page .accordion-body .row > .col-lg-6:last-child .card-header {
    color: #fff !important;
    background-color: var(--bs-success) !important;
}

/* Python constructor programs: use the standard program layout and palette. */
.constructors-program-page,
.constructors-program-page .main-text,
.constructors-program-page .container-fluid,
.constructors-program-page .row,
.constructors-program-page .row > *,
.constructors-program-page .card,
.constructors-program-page .card-body,
.constructors-program-page .accordion,
.constructors-program-page .accordion-item,
.constructors-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

.constructors-program-page pre,
.constructors-program-page pre code,
.constructors-program-page .explanation-pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden !important;
}

.constructors-program-page pre code {
    display: block;
    width: 100%;
}

.constructors-program-page :not(pre) > code,
.constructors-program-page .output-box,
.constructors-program-page .accordion-button,
.constructors-program-page h3,
.constructors-program-page p,
.constructors-program-page li {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.constructors-program-page .accordion-button .badge {
    flex: 0 0 auto;
    color: #fff !important;
    background-color: var(--bs-primary) !important;
}

.constructors-program-page .accordion-body .row > .col-lg-6:first-child .card-header {
    color: #fff !important;
    background-color: var(--bs-primary) !important;
}

.constructors-program-page .accordion-body .row > .col-lg-6:last-child .card-header {
    color: #fff !important;
    background-color: var(--bs-success) !important;
}

/* Python inheritance programs: use the standard program layout and palette. */
.inheritance-program-page,
.inheritance-program-page .main-text,
.inheritance-program-page .container-fluid,
.inheritance-program-page .row,
.inheritance-program-page .row > *,
.inheritance-program-page .card,
.inheritance-program-page .card-body,
.inheritance-program-page .accordion,
.inheritance-program-page .accordion-item,
.inheritance-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

.inheritance-program-page pre,
.inheritance-program-page pre code,
.inheritance-program-page .explanation-pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden !important;
}

.inheritance-program-page pre code {
    display: block;
    width: 100%;
}

.inheritance-program-page :not(pre) > code,
.inheritance-program-page .output-box,
.inheritance-program-page .accordion-button,
.inheritance-program-page h3,
.inheritance-program-page p,
.inheritance-program-page li {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.inheritance-program-page .accordion-button .badge {
    flex: 0 0 auto;
    color: #fff !important;
    background-color: var(--bs-primary) !important;
}

.inheritance-program-page .accordion-body .row > .col-lg-6:first-child .card-header {
    color: #fff !important;
    background-color: var(--bs-primary) !important;
}

.inheritance-program-page .accordion-body .row > .col-lg-6:last-child .card-header {
    color: #fff !important;
    background-color: var(--bs-success) !important;
}

/* Reusable standard layout for Python program pages. */
.python-standard-program-page,
.python-standard-program-page .main-text,
.python-standard-program-page .container-fluid,
.python-standard-program-page .row,
.python-standard-program-page .row > *,
.python-standard-program-page .card,
.python-standard-program-page .card-body,
.python-standard-program-page .accordion,
.python-standard-program-page .accordion-item,
.python-standard-program-page .accordion-body {
    min-width: 0;
    max-width: 100%;
}

.python-standard-program-page pre,
.python-standard-program-page pre code,
.python-standard-program-page .explanation-pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden !important;
}

.python-standard-program-page pre code {
    display: block;
    width: 100%;
}

.python-standard-program-page :not(pre) > code,
.python-standard-program-page .output-box,
.python-standard-program-page .accordion-button,
.python-standard-program-page h3,
.python-standard-program-page p,
.python-standard-program-page li {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.python-standard-program-page .accordion-button .badge {
    flex: 0 0 auto;
    color: #fff !important;
    background-color: var(--bs-primary) !important;
}

.python-standard-program-page .accordion-body .row > .col-lg-6:first-child .card-header {
    color: #fff !important;
    background-color: var(--bs-primary) !important;
}

.python-standard-program-page .accordion-body .row > .col-lg-6:last-child .card-header {
    color: #fff !important;
    background-color: var(--bs-success) !important;
}

@media (max-width: 575.98px) {
    .python-standard-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .python-standard-program-page .accordion-body,
    .python-standard-program-page .card-body {
        padding: 0.75rem;
    }

    .python-standard-program-page pre {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .python-standard-program-page .output-box {
        font-size: 0.82rem;
    }
}

@media (max-width: 575.98px) {
    .inheritance-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .inheritance-program-page .accordion-body,
    .inheritance-program-page .card-body {
        padding: 0.75rem;
    }

    .inheritance-program-page pre {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .inheritance-program-page .output-box {
        font-size: 0.82rem;
    }
}

@media (max-width: 575.98px) {
    .constructors-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .constructors-program-page .accordion-body,
    .constructors-program-page .card-body {
        padding: 0.75rem;
    }

    .constructors-program-page pre {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .constructors-program-page .output-box {
        font-size: 0.82rem;
    }
}

@media (max-width: 575.98px) {
    .accessmodifiers-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .accessmodifiers-program-page .accordion-body,
    .accessmodifiers-program-page .card-body {
        padding: 0.75rem;
    }

    .accessmodifiers-program-page pre {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .accessmodifiers-program-page .output-box {
        font-size: 0.82rem;
    }
}

@media (max-width: 575.98px) {
    .objects-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .objects-program-page .accordion-body,
    .objects-program-page .card-body {
        padding: 0.75rem;
    }

    .objects-program-page pre {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .objects-program-page .output-box {
        font-size: 0.82rem;
    }
}

@media (max-width: 575.98px) {
    .methods-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .methods-program-page .accordion-body,
    .methods-program-page .card-body {
        padding: 0.75rem;
    }

    .methods-program-page pre {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .methods-program-page .output-box,
    .methods-program-page table {
        font-size: 0.82rem;
    }

    .methods-program-page .dryrun-heading-row {
        flex-wrap: wrap !important;
    }

    .methods-program-page .dryrun-heading-title {
        flex-basis: 100% !important;
    }
}

@media (max-width: 575.98px) {
    .oop-variables-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .oop-variables-program-page .accordion-body,
    .oop-variables-program-page .card-body {
        padding: 0.75rem;
    }

    .oop-variables-program-page pre {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .oop-variables-program-page .output-box,
    .oop-variables-program-page table {
        font-size: 0.82rem;
    }

    .oop-variables-program-page .dryrun-heading-row {
        flex-wrap: wrap !important;
    }

    .oop-variables-program-page .dryrun-heading-title {
        flex-basis: 100% !important;
    }
}

@media (max-width: 575.98px) {
    .class-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .class-program-page .accordion-body,
    .class-program-page .card-body {
        padding: 0.75rem;
    }

    .class-program-page pre {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .class-program-page .output-box,
    .class-program-page table {
        font-size: 0.82rem;
    }

    .class-program-page .dryrun-heading-row {
        flex-wrap: wrap !important;
    }

    .class-program-page .dryrun-heading-title {
        flex-basis: 100% !important;
    }
}

@media (max-width: 575.98px) {
    .packages-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .packages-program-page .accordion-body,
    .packages-program-page .card-body {
        padding: 0.75rem;
    }

    .packages-program-page pre {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .packages-program-page .output-box,
    .packages-program-page table,
    .packages-program-page .folder-structure {
        font-size: 0.82rem;
    }

    .packages-program-page .dryrun-heading-row {
        flex-wrap: wrap !important;
    }

    .packages-program-page .dryrun-heading-title {
        flex-basis: 100% !important;
    }
}

@media (max-width: 575.98px) {
    .builtin-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .builtin-program-page .accordion-body,
    .builtin-program-page .card-body {
        padding: 0.75rem;
    }

    .builtin-program-page pre {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .builtin-program-page .output-box,
    .builtin-program-page table {
        font-size: 0.82rem;
    }

    .builtin-program-page .dryrun-heading-row {
        flex-wrap: wrap !important;
    }

    .builtin-program-page .dryrun-heading-title {
        flex-basis: 100% !important;
    }
}

@media (max-width: 575.98px) {
    .modules-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .modules-program-page > .main-text > .d-flex {
        align-items: flex-start !important;
        flex-wrap: wrap;
    }

    .modules-program-page h3 {
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .modules-program-page .accordion-button {
        align-items: flex-start;
        font-size: 0.92rem;
    }

    .modules-program-page .accordion-button,
    .modules-program-page .accordion-body,
    .modules-program-page .card-body {
        padding: 0.75rem;
    }

    .modules-program-page pre {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .modules-program-page .output-box,
    .modules-program-page th,
    .modules-program-page td {
        font-size: 0.84rem;
    }
}

.recursion-program-page pre,
.recursion-program-page pre code,
.recursion-program-page .explanation-pre,
.recursion-program-page .recursion-call-stack {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden !important;
}

.recursion-program-page pre code {
    display: block;
    width: 100%;
}

.recursion-program-page :not(pre) > code,
.recursion-program-page .output-box,
.recursion-program-page .accordion-button,
.recursion-program-page h3,
.recursion-program-page p,
.recursion-program-page li {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.recursion-program-page .accordion-button .badge {
    flex: 0 0 auto;
}

@media (max-width: 575.98px) {
    .recursion-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .recursion-program-page > .main-text > .d-flex {
        align-items: flex-start !important;
        flex-wrap: wrap;
    }

    .recursion-program-page h3 {
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .recursion-program-page .accordion-button {
        padding: 0.75rem;
        font-size: 0.92rem;
        align-items: flex-start;
    }

    .recursion-program-page .accordion-body,
    .recursion-program-page .card-body {
        padding: 0.75rem;
    }

    .recursion-program-page pre,
    .recursion-program-page .recursion-call-stack {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .recursion-program-page .output-box {
        font-size: 0.84rem;
    }
}

@media (max-width: 575.98px) {
    .bytes-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .bytes-program-page .accordion-button {
        padding: 0.75rem;
        font-size: 0.92rem;
        align-items: flex-start;
    }

    .bytes-program-page .accordion-body,
    .bytes-program-page .card-body {
        padding: 0.75rem;
    }

    .bytes-program-page pre {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .bytes-program-page .output-box {
        font-size: 0.84rem;
    }
}

.dict-program-page > .main-text > .d-flex,
.dict-program-page .card-body > .d-flex {
    flex-wrap: wrap;
}

@media (max-width: 575.98px) {
    .dict-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .dict-program-page h2 {
        font-size: 1.25rem;
    }

    .dict-program-page .accordion-button {
        align-items: flex-start;
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    .dict-program-page .accordion-body,
    .dict-program-page .card-body {
        padding: 0.8rem;
    }

    .dict-program-page pre {
        padding-right: 0.75rem !important;
    }

    .dict-program-page .output-box {
        font-size: 0.9rem;
    }
}

.strings-program-page pre,
.strings-program-page pre code,
.strings-program-page .explanation-pre {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden !important;
}

.strings-program-page :not(pre) > code,
.strings-program-page .output-box,
.strings-program-page .accordion-button {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.strings-program-page .accordion-button .badge {
    flex: 0 0 auto;
}

.strings-program-page > .main-text > .d-flex {
    flex-wrap: wrap;
}

@media (max-width: 575.98px) {
    .strings-program-page .display-5 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .strings-program-page h3 {
        font-size: 1.2rem;
    }

    .strings-program-page .accordion-body,
    .strings-program-page .card-body {
        padding: 0.8rem;
    }

    .strings-program-page .accordion-button {
        padding: 0.85rem 0.75rem;
    }
}

/* Basic, Derived, Variables, Constants, Operators, Input-Output & If C Page Mobile Optimization & Horizontal Bar Removal */
.basicdatatypes-theory-page,
.deriveddatatypes-theory-page,
.variables-theory-page,
.constants-theory-page,
.short-qna-page,
.basicdatatypes-short-qna-page,
.deriveddatatypes-short-qna-page,
.variables-short-qna-page,
.constants-short-qna-page,
.operators-short-qna-page,
.input-output-theory-page,
.input-output-short-qna-page,
.program-page,
.input-output-program-page,
.if-theory-page,
.if-short-qna-page,
.if-program-page,
.switch-theory-page,
.switch-short-qna-page,
.switch-program-page,
.for-theory-page,
.for-short-qna-page,
.for-program-page,
.while-theory-page,
.while-short-qna-page,
.while-program-page,
.nested-theory-page,
.nested-short-qna-page,
.nested-program-page,
.control-theory-page,
.control-short-qna-page,
.control-program-page,
.patterns-theory-page,
.patterns-short-qna-page,
, .preprocessor-theory-page, .preprocessor-short-qna-page, .preprocessor-long-qna-page, .preprocessor-quiz-page, .preprocessor-interview-page, .preprocessor-page , .error-theory-page, .error-short-qna-page, .error-long-qna-page, .error-quiz-page, .error-interview-page, .error-page .patterns-program-page {
    max-width: 100%;
}

.basicdatatypes-theory-page pre,
.basicdatatypes-theory-page pre code,
.deriveddatatypes-theory-page pre,
.deriveddatatypes-theory-page pre code,
.variables-theory-page pre,
.variables-theory-page pre code,
.constants-theory-page pre,
.constants-theory-page pre code,
.short-qna-page pre,
.short-qna-page pre code,
.basicdatatypes-short-qna-page pre,
.basicdatatypes-short-qna-page pre code,
.deriveddatatypes-short-qna-page pre,
.deriveddatatypes-short-qna-page pre code,
.variables-short-qna-page pre,
.variables-short-qna-page pre code,
.constants-short-qna-page pre,
.constants-short-qna-page pre code,
.operators-short-qna-page pre,
.operators-short-qna-page pre code,
.input-output-theory-page pre,
.input-output-theory-page pre code,
.input-output-short-qna-page pre,
.input-output-short-qna-page pre code,
.program-page pre,
.program-page pre code,
.input-output-program-page pre,
.input-output-program-page pre code,
.if-theory-page pre,
.if-theory-page pre code,
.if-short-qna-page pre,
.if-short-qna-page pre code,
.if-program-page pre,
.if-program-page pre code,
.switch-theory-page pre,
.switch-theory-page pre code,
.switch-short-qna-page pre,
.switch-short-qna-page pre code,
.switch-program-page pre,
.switch-program-page pre code,
.for-theory-page pre,
.for-theory-page pre code,
.for-short-qna-page pre,
.for-short-qna-page pre code,
.for-program-page pre,
.for-program-page pre code,
.while-theory-page pre,
.while-theory-page pre code,
.while-short-qna-page pre,
.while-short-qna-page pre code,
.while-program-page pre,
.while-program-page pre code,
.nested-theory-page pre,
.nested-theory-page pre code,
.nested-short-qna-page pre,
.nested-short-qna-page pre code,
.nested-program-page pre,
.nested-program-page pre code,
.control-theory-page pre,
.control-theory-page pre code,
.control-short-qna-page pre,
.control-short-qna-page pre code,
.control-program-page pre,
.control-program-page pre code,
.patterns-theory-page pre,
.patterns-theory-page pre code,
.patterns-short-qna-page pre,
.patterns-short-qna-page pre code,
, .preprocessor-theory-page pre, .preprocessor-theory-page pre code, .preprocessor-short-qna-page pre, .preprocessor-short-qna-page pre code, .preprocessor-long-qna-page pre, .preprocessor-long-qna-page pre code, .preprocessor-quiz-page pre, .preprocessor-quiz-page pre code, .preprocessor-interview-page pre, .preprocessor-interview-page pre code, .preprocessor-page pre, .preprocessor-page pre code , .error-theory-page pre, .error-theory-page pre code, .error-short-qna-page pre, .error-short-qna-page pre code, .error-long-qna-page pre, .error-long-qna-page pre code, .error-quiz-page pre, .error-quiz-page pre code, .error-interview-page pre, .error-interview-page pre code, .error-page pre, .error-page pre code .patterns-program-page pre,
.patterns-program-page pre code {
    max-width: 100%;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.basicdatatypes-theory-page pre,
.basicdatatypes-theory-page .table-responsive,
.deriveddatatypes-theory-page pre,
.deriveddatatypes-theory-page .table-responsive,
.variables-theory-page pre,
.variables-theory-page .table-responsive,
.constants-theory-page pre,
.constants-theory-page .table-responsive,
.short-qna-page pre,
.short-qna-page .table-responsive,
.basicdatatypes-short-qna-page pre,
.basicdatatypes-short-qna-page .table-responsive,
.deriveddatatypes-short-qna-page pre,
.deriveddatatypes-short-qna-page .table-responsive,
.variables-short-qna-page pre,
.variables-short-qna-page .table-responsive,
.constants-short-qna-page pre,
.constants-short-qna-page .table-responsive,
.operators-short-qna-page pre,
.operators-short-qna-page .table-responsive,
.input-output-theory-page pre,
.input-output-theory-page .table-responsive,
.input-output-short-qna-page pre,
.input-output-short-qna-page .table-responsive,
.program-page pre,
.program-page .table-responsive,
.input-output-program-page pre,
.input-output-program-page .table-responsive,
.if-theory-page pre,
.if-theory-page .table-responsive,
.if-short-qna-page pre,
.if-short-qna-page .table-responsive,
.if-program-page pre,
.if-program-page .table-responsive,
.switch-theory-page pre,
.switch-theory-page .table-responsive,
.switch-short-qna-page pre,
.switch-short-qna-page .table-responsive,
.switch-program-page pre,
.switch-program-page .table-responsive,
.for-theory-page pre,
.for-theory-page .table-responsive,
.for-short-qna-page pre,
.for-short-qna-page .table-responsive,
.for-program-page pre,
.for-program-page .table-responsive,
.while-theory-page pre,
.while-theory-page .table-responsive,
.while-short-qna-page pre,
.while-short-qna-page .table-responsive,
.while-program-page pre,
.while-program-page .table-responsive,
.nested-theory-page pre,
.nested-theory-page .table-responsive,
.nested-short-qna-page pre,
.nested-short-qna-page .table-responsive,
.nested-program-page pre,
.nested-program-page .table-responsive,
.control-theory-page pre,
.control-theory-page .table-responsive,
.control-short-qna-page pre,
.control-short-qna-page .table-responsive,
.control-program-page pre,
.control-program-page .table-responsive,
.patterns-theory-page pre,
.patterns-theory-page .table-responsive,
.patterns-short-qna-page pre,
.patterns-short-qna-page .table-responsive,
, .preprocessor-theory-page pre, .preprocessor-theory-page .table-responsive, .preprocessor-short-qna-page pre, .preprocessor-short-qna-page .table-responsive, .preprocessor-long-qna-page pre, .preprocessor-long-qna-page .table-responsive, .preprocessor-quiz-page pre, .preprocessor-quiz-page .table-responsive, .preprocessor-interview-page pre, .preprocessor-interview-page .table-responsive, .preprocessor-page pre, .preprocessor-page .table-responsive , .error-theory-page pre, .error-theory-page .table-responsive, .error-short-qna-page pre, .error-short-qna-page .table-responsive, .error-long-qna-page pre, .error-long-qna-page .table-responsive, .error-quiz-page pre, .error-quiz-page .table-responsive, .error-interview-page pre, .error-interview-page .table-responsive, .error-page pre, .error-page .table-responsive .patterns-program-page pre,
.patterns-program-page .table-responsive {
    
}

.basicdatatypes-theory-page table,
.deriveddatatypes-theory-page table,
.variables-theory-page table,
.constants-theory-page table,
.short-qna-page table,
.basicdatatypes-short-qna-page table,
.deriveddatatypes-short-qna-page table,
.variables-theory-page table,
.constants-short-qna-page table,
.operators-short-qna-page table,
.input-output-theory-page table,
.input-output-short-qna-page table,
.program-page table,
.input-output-program-page table,
.if-theory-page table,
.if-short-qna-page table,
.if-program-page table,
.switch-theory-page table,
.switch-short-qna-page table,
.switch-program-page table,
.for-theory-page table,
.for-short-qna-page table,
.for-program-page table,
.while-theory-page table,
.while-short-qna-page table,
.while-program-page table,
.nested-theory-page table,
.nested-short-qna-page table,
.nested-program-page table,
.control-theory-page table,
.control-short-qna-page table,
.control-program-page table,
.patterns-theory-page table,
.patterns-short-qna-page table,
, .preprocessor-theory-page table, .preprocessor-short-qna-page table, .preprocessor-long-qna-page table, .preprocessor-quiz-page table, .preprocessor-interview-page table, .preprocessor-page table , .error-theory-page table, .error-short-qna-page table, .error-long-qna-page table, .error-quiz-page table, .error-interview-page table, .error-page table .patterns-program-page table {
    width: 100%;
}

.basicdatatypes-theory-page th,
.basicdatatypes-theory-page td,
.basicdatatypes-theory-page :not(pre) > code,
.deriveddatatypes-theory-page th,
.deriveddatatypes-theory-page td,
.deriveddatatypes-theory-page :not(pre) > code,
.variables-theory-page th,
.variables-theory-page td,
.variables-theory-page :not(pre) > code,
.constants-theory-page th,
.constants-theory-page td,
.constants-theory-page :not(pre) > code,
.short-qna-page th,
.short-qna-page td,
.short-qna-page :not(pre) > code,
.basicdatatypes-short-qna-page th,
.basicdatatypes-short-qna-page td,
.basicdatatypes-short-qna-page :not(pre) > code,
.deriveddatatypes-short-qna-page th,
.deriveddatatypes-short-qna-page td,
.deriveddatatypes-short-qna-page :not(pre) > code,
.variables-short-qna-page th,
.variables-short-qna-page td,
.variables-short-qna-page :not(pre) > code,
.constants-short-qna-page th,
.constants-short-qna-page td,
.constants-short-qna-page :not(pre) > code,
.operators-short-qna-page th,
.operators-short-qna-page td,
.operators-short-qna-page :not(pre) > code,
.input-output-theory-page th,
.input-output-theory-page td,
.input-output-theory-page :not(pre) > code,
.input-output-short-qna-page th,
.input-output-short-qna-page td,
.input-output-short-qna-page :not(pre) > code,
.program-page th,
.program-page td,
.program-page :not(pre) > code,
.input-output-program-page th,
.input-output-program-page td,
.input-output-program-page :not(pre) > code,
.if-theory-page th,
.if-theory-page td,
.if-theory-page :not(pre) > code,
.if-short-qna-page th,
.if-short-qna-page td,
.if-short-qna-page :not(pre) > code,
.if-program-page th,
.if-program-page td,
.if-program-page :not(pre) > code,
.switch-theory-page th,
.switch-theory-page td,
.switch-theory-page :not(pre) > code,
.switch-short-qna-page th,
.switch-short-qna-page td,
.switch-short-qna-page :not(pre) > code,
.switch-program-page th,
.switch-program-page td,
.switch-program-page :not(pre) > code,
.for-theory-page th,
.for-theory-page td,
.for-theory-page :not(pre) > code,
.for-short-qna-page th,
.for-short-qna-page td,
.for-short-qna-page :not(pre) > code,
.for-program-page th,
.for-program-page td,
.for-program-page :not(pre) > code,
.while-theory-page th,
.while-theory-page td,
.while-theory-page :not(pre) > code,
.while-short-qna-page th,
.while-short-qna-page td,
.while-short-qna-page :not(pre) > code,
.while-program-page th,
.while-program-page td,
.while-program-page :not(pre) > code,
.nested-theory-page th,
.nested-theory-page td,
.nested-theory-page :not(pre) > code,
.nested-short-qna-page th,
.nested-short-qna-page td,
.nested-short-qna-page :not(pre) > code,
.nested-program-page th,
.nested-program-page td,
.nested-program-page :not(pre) > code,
.control-theory-page th,
.control-theory-page td,
.control-theory-page :not(pre) > code,
.control-short-qna-page th,
.control-short-qna-page td,
.control-short-qna-page :not(pre) > code,
.control-program-page th,
.control-program-page td,
.control-program-page :not(pre) > code,
.patterns-theory-page th,
.patterns-theory-page td,
.patterns-theory-page :not(pre) > code,
.patterns-short-qna-page th,
.patterns-short-qna-page td,
.patterns-short-qna-page :not(pre) > code,
, .preprocessor-theory-page th, .preprocessor-theory-page td, .preprocessor-theory-page :not(pre) > code, .preprocessor-short-qna-page th, .preprocessor-short-qna-page td, .preprocessor-short-qna-page :not(pre) > code, .preprocessor-long-qna-page th, .preprocessor-long-qna-page td, .preprocessor-long-qna-page :not(pre) > code, .preprocessor-quiz-page th, .preprocessor-quiz-page td, .preprocessor-quiz-page :not(pre) > code, .preprocessor-interview-page th, .preprocessor-interview-page td, .preprocessor-interview-page :not(pre) > code, .preprocessor-page th, .preprocessor-page td, .preprocessor-page :not(pre) > code , .error-theory-page th, .error-theory-page td, .error-theory-page :not(pre) > code, .error-short-qna-page th, .error-short-qna-page td, .error-short-qna-page :not(pre) > code, .error-long-qna-page th, .error-long-qna-page td, .error-long-qna-page :not(pre) > code, .error-quiz-page th, .error-quiz-page td, .error-quiz-page :not(pre) > code, .error-interview-page th, .error-interview-page td, .error-interview-page :not(pre) > code, .error-page th, .error-page td, .error-page :not(pre) > code .patterns-program-page th,
.patterns-program-page td,
.patterns-program-page :not(pre) > code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.basicdatatypes-theory-page .sticky-tabs-container,
.theory-page .sticky-tabs-container,
.deriveddatatypes-theory-page .sticky-tabs-container,
.variables-theory-page .sticky-tabs-container,
.constants-theory-page .sticky-tabs-container,
.short-qna-page .sticky-tabs-container,
.basicdatatypes-short-qna-page .sticky-tabs-container,
.deriveddatatypes-short-qna-page .sticky-tabs-container,
.variables-short-qna-page .sticky-tabs-container,
.constants-short-qna-page .sticky-tabs-container,
.operators-short-qna-page .sticky-tabs-container,
.input-output-theory-page .sticky-tabs-container,
.input-output-short-qna-page .sticky-tabs-container,
.program-page .sticky-tabs-container,
.input-output-program-page .sticky-tabs-container,
.if-theory-page .sticky-tabs-container,
.if-short-qna-page .sticky-tabs-container,
.if-program-page .sticky-tabs-container,
.switch-theory-page .sticky-tabs-container,
.switch-short-qna-page .sticky-tabs-container,
.switch-program-page .sticky-tabs-container,
.for-theory-page .sticky-tabs-container,
.for-short-qna-page .sticky-tabs-container,
.for-program-page .sticky-tabs-container,
.while-theory-page .sticky-tabs-container,
.while-short-qna-page .sticky-tabs-container,
.while-program-page .sticky-tabs-container,
.nested-theory-page .sticky-tabs-container,
.nested-short-qna-page .sticky-tabs-container,
.nested-program-page .sticky-tabs-container,
.control-theory-page .sticky-tabs-container,
.control-short-qna-page .sticky-tabs-container,
.control-program-page .sticky-tabs-container,
.patterns-theory-page .sticky-tabs-container,
.patterns-short-qna-page .sticky-tabs-container,
, .preprocessor-theory-page .sticky-tabs-container, .preprocessor-short-qna-page .sticky-tabs-container, .preprocessor-long-qna-page .sticky-tabs-container, .preprocessor-quiz-page .sticky-tabs-container, .preprocessor-interview-page .sticky-tabs-container, .preprocessor-page .sticky-tabs-container , .error-theory-page .sticky-tabs-container, .error-short-qna-page .sticky-tabs-container, .error-long-qna-page .sticky-tabs-container, .error-quiz-page .sticky-tabs-container, .error-interview-page .sticky-tabs-container, .error-page .sticky-tabs-container .patterns-program-page .sticky-tabs-container {
    border-bottom: none !important;
}

.basicdatatypes-theory-page .border-bottom,
.theory-page .border-bottom,
.deriveddatatypes-theory-page .border-bottom,
.variables-theory-page .border-bottom,
.constants-theory-page .border-bottom,
.short-qna-page .border-bottom,
.basicdatatypes-short-qna-page .border-bottom,
.deriveddatatypes-short-qna-page .border-bottom,
.variables-short-qna-page .border-bottom,
.constants-short-qna-page .border-bottom,
.operators-short-qna-page .border-bottom,
.input-output-theory-page .border-bottom,
.input-output-short-qna-page .border-bottom,
.program-page .border-bottom,
.input-output-program-page .border-bottom,
.if-theory-page .border-bottom,
.if-short-qna-page .border-bottom,
.if-program-page .border-bottom,
.switch-theory-page .border-bottom,
.switch-short-qna-page .border-bottom,
.switch-program-page .border-bottom,
.for-theory-page .border-bottom,
.for-short-qna-page .border-bottom,
.for-program-page .border-bottom,
.while-theory-page .border-bottom,
.while-short-qna-page .border-bottom,
.while-program-page .border-bottom,
.nested-theory-page .border-bottom,
.nested-short-qna-page .border-bottom,
.nested-program-page .border-bottom,
.control-theory-page .border-bottom,
.control-short-qna-page .border-bottom,
.control-program-page .border-bottom,
.patterns-theory-page .border-bottom,
.patterns-short-qna-page .border-bottom,
, .preprocessor-theory-page .border-bottom, .preprocessor-short-qna-page .border-bottom, .preprocessor-long-qna-page .border-bottom, .preprocessor-quiz-page .border-bottom, .preprocessor-interview-page .border-bottom, .preprocessor-page .border-bottom , .error-theory-page .border-bottom, .error-short-qna-page .border-bottom, .error-long-qna-page .border-bottom, .error-quiz-page .border-bottom, .error-interview-page .border-bottom, .error-page .border-bottom .patterns-program-page .border-bottom {
    border-bottom: none !important;
}

@media (max-width: 767.98px) {
    .basicdatatypes-theory-page pre,
    .deriveddatatypes-theory-page pre,
    .variables-theory-page pre,
    .constants-theory-page pre,
    .short-qna-page pre,
    .basicdatatypes-short-qna-page pre,
    .deriveddatatypes-short-qna-page pre,
    .variables-theory-page pre,
    .constants-short-qna-page pre,
    .operators-short-qna-page pre,
    .input-output-theory-page pre,
    .input-output-short-qna-page pre,
    .program-page pre,
    .input-output-program-page pre,
    .if-theory-page pre,
    .if-short-qna-page pre,
    .if-program-page pre,
    .switch-theory-page pre,
    .switch-short-qna-page pre,
    .switch-program-page pre,
    .for-theory-page pre,
    .for-short-qna-page pre,
    .for-program-page pre,
    .while-theory-page pre,
    .while-short-qna-page pre,
    .while-program-page pre,
    .nested-theory-page pre,
    .nested-short-qna-page pre,
    .nested-program-page pre,
    .control-theory-page pre,
    .control-short-qna-page pre,
    .control-program-page pre,
    .patterns-theory-page pre,
    .patterns-short-qna-page pre,
    , .preprocessor-theory-page pre, .preprocessor-short-qna-page pre, .preprocessor-long-qna-page pre, .preprocessor-quiz-page pre, .preprocessor-interview-page pre, .preprocessor-page pre , .error-theory-page pre, .error-short-qna-page pre, .error-long-qna-page pre, .error-quiz-page pre, .error-interview-page pre, .error-page pre .patterns-program-page pre {
        font-size: 0.84rem;
        padding: 0.75rem !important;
    }
    .basicdatatypes-theory-page table,
    .deriveddatatypes-theory-page table,
    .variables-theory-page table,
    .constants-theory-page table,
    .short-qna-page table,
    .basicdatatypes-short-qna-page table,
    .deriveddatatypes-short-qna-page table,
    .variables-short-qna-page table,
    .constants-short-qna-page table,
    .operators-short-qna-page table,
    .input-output-theory-page table,
    .input-output-short-qna-page table,
    .program-page table,
    .input-output-program-page table,
    .if-theory-page table,
    .if-short-qna-page table,
    .if-program-page table,
    .switch-theory-page table,
    .switch-short-qna-page table,
    .switch-program-page table,
    .for-theory-page table,
    .for-short-qna-page table,
    .for-program-page table,
    .while-theory-page table,
    .while-short-qna-page table,
    .while-program-page table,
    .nested-theory-page table,
    .nested-short-qna-page table,
    .nested-program-page table,
    .control-theory-page table,
    .control-short-qna-page table,
    .control-program-page table,
    .patterns-theory-page table,
    .patterns-short-qna-page table,
    , .preprocessor-theory-page table, .preprocessor-short-qna-page table, .preprocessor-long-qna-page table, .preprocessor-quiz-page table, .preprocessor-interview-page table, .preprocessor-page table , .error-theory-page table, .error-short-qna-page table, .error-long-qna-page table, .error-quiz-page table, .error-interview-page table, .error-page table .patterns-program-page table {
        font-size: 0.85rem;
    }
    .basicdatatypes-theory-page th,
    .basicdatatypes-theory-page td,
    .deriveddatatypes-theory-page th,
    .deriveddatatypes-theory-page td,
    .variables-theory-page th,
    .variables-theory-page td,
    .constants-theory-page th,
    .constants-theory-page td,
    .short-qna-page th,
    .short-qna-page td,
    .basicdatatypes-short-qna-page th,
    .basicdatatypes-short-qna-page td,
    .deriveddatatypes-short-qna-page th,
    .deriveddatatypes-short-qna-page td,
    .variables-short-qna-page th,
    .variables-short-qna-page td,
    .constants-short-qna-page th,
    .constants-short-qna-page td,
    .operators-short-qna-page th,
    .operators-short-qna-page td,
    .input-output-theory-page th,
    .input-output-theory-page td,
    .input-output-short-qna-page th,
    .input-output-short-qna-page td,
    .program-page th,
    .program-page td,
    .input-output-program-page th,
    .input-output-program-page td,
    .if-theory-page th,
    .if-theory-page td,
    .if-short-qna-page th,
    .if-short-qna-page td,
    .if-program-page th,
    .if-program-page td,
    .switch-theory-page th,
    .switch-theory-page td,
    .switch-short-qna-page th,
    .switch-short-qna-page td,
    .switch-program-page th,
    .switch-program-page td,
    .for-theory-page th,
    .for-theory-page td,
    .for-short-qna-page th,
    .for-short-qna-page td,
    .for-program-page th,
    .for-program-page td,
    .while-theory-page th,
    .while-theory-page td,
    .while-short-qna-page th,
    .while-short-qna-page td,
    .while-program-page th,
    .while-program-page td,
    .nested-theory-page th,
    .nested-theory-page td,
    .nested-short-qna-page th,
    .nested-short-qna-page td,
    .nested-program-page th,
    .nested-program-page td,
    .control-theory-page th,
    .control-theory-page td,
    .control-short-qna-page th,
    .control-short-qna-page td,
    .control-program-page th,
    .control-program-page td,
    .patterns-theory-page th,
    .patterns-theory-page td,
    .patterns-short-qna-page th,
    .patterns-short-qna-page td,
    , .preprocessor-theory-page th, .preprocessor-theory-page td, .preprocessor-short-qna-page th, .preprocessor-short-qna-page td, .preprocessor-long-qna-page th, .preprocessor-long-qna-page td, .preprocessor-quiz-page th, .preprocessor-quiz-page td, .preprocessor-interview-page th, .preprocessor-interview-page td, .preprocessor-page th, .preprocessor-page td , .error-theory-page th, .error-theory-page td, .error-short-qna-page th, .error-short-qna-page td, .error-long-qna-page th, .error-long-qna-page td, .error-quiz-page th, .error-quiz-page td, .error-interview-page th, .error-interview-page td, .error-page th, .error-page td .patterns-program-page th,
    .patterns-program-page td {
        padding: 0.4rem 0.5rem;
    }
    .basicdatatypes-theory-page .sticky-tabs-container .mytab-btn,
    .deriveddatatypes-theory-page .sticky-tabs-container .mytab-btn,
    .variables-theory-page .sticky-tabs-container .mytab-btn,
    .constants-theory-page .sticky-tabs-container .mytab-btn,
    .short-qna-page .sticky-tabs-container .mytab-btn,
    .basicdatatypes-short-qna-page .sticky-tabs-container .mytab-btn,
    .deriveddatatypes-short-qna-page .sticky-tabs-container .mytab-btn,
    .variables-short-qna-page .sticky-tabs-container .mytab-btn,
    .constants-short-qna-page .sticky-tabs-container .mytab-btn,
    .operators-short-qna-page .sticky-tabs-container .mytab-btn,
    .input-output-theory-page .sticky-tabs-container .mytab-btn,
    .input-output-short-qna-page .sticky-tabs-container .mytab-btn,
    .program-page .sticky-tabs-container .mytab-btn,
    .input-output-program-page .sticky-tabs-container .mytab-btn,
    .if-theory-page .sticky-tabs-container .mytab-btn,
    .if-short-qna-page .sticky-tabs-container .mytab-btn,
    .if-program-page .sticky-tabs-container .mytab-btn,
    .switch-theory-page .sticky-tabs-container .mytab-btn,
    .switch-short-qna-page .sticky-tabs-container .mytab-btn,
    .switch-program-page .sticky-tabs-container .mytab-btn,
    .for-theory-page .sticky-tabs-container .mytab-btn,
    .for-short-qna-page .sticky-tabs-container .mytab-btn,
    .for-program-page .sticky-tabs-container .mytab-btn,
    .while-theory-page .sticky-tabs-container .mytab-btn,
    .while-short-qna-page .sticky-tabs-container .mytab-btn,
    .while-program-page .sticky-tabs-container .mytab-btn,
    .nested-theory-page .sticky-tabs-container .mytab-btn,
    .nested-short-qna-page .sticky-tabs-container .mytab-btn,
    .nested-program-page .sticky-tabs-container .mytab-btn,
    .control-theory-page .sticky-tabs-container .mytab-btn,
    .control-short-qna-page .sticky-tabs-container .mytab-btn,
    .control-program-page .sticky-tabs-container .mytab-btn,
    .patterns-theory-page .sticky-tabs-container .mytab-btn,
    .patterns-short-qna-page .sticky-tabs-container .mytab-btn,
    , .preprocessor-theory-page .sticky-tabs-container .mytab-btn, .preprocessor-short-qna-page .sticky-tabs-container .mytab-btn, .preprocessor-long-qna-page .sticky-tabs-container .mytab-btn, .preprocessor-quiz-page .sticky-tabs-container .mytab-btn, .preprocessor-interview-page .sticky-tabs-container .mytab-btn, .preprocessor-page .sticky-tabs-container .mytab-btn , .error-theory-page .sticky-tabs-container .mytab-btn, .error-short-qna-page .sticky-tabs-container .mytab-btn, .error-long-qna-page .sticky-tabs-container .mytab-btn, .error-quiz-page .sticky-tabs-container .mytab-btn, .error-interview-page .sticky-tabs-container .mytab-btn, .error-page .sticky-tabs-container .mytab-btn .patterns-program-page .sticky-tabs-container .mytab-btn {
        font-size: 0.85rem;
        padding: 0.35rem 0.6rem;
        flex: 1 1 auto;
        text-align: center;
    }
}


/* ======================================================== */
.preprocessor-page,
.preprocessor-theory-page,
.preprocessor-short-qna-page,
.preprocessor-long-qna-page,
.preprocessor-quiz-page,
.preprocessor-interview-page {
    min-width: 0 !important;
    max-width: 100% !important;
    
}

.preprocessor-page pre,
.preprocessor-page pre code,
.preprocessor-theory-page pre,
.preprocessor-theory-page pre code,
.preprocessor-short-qna-page pre,
.preprocessor-short-qna-page pre code,
.preprocessor-long-qna-page pre,
.preprocessor-long-qna-page pre code,
.preprocessor-quiz-page pre,
.preprocessor-quiz-page pre code,
.preprocessor-interview-page pre,
.preprocessor-interview-page pre code {
    max-width: 100% !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.preprocessor-page pre,
.preprocessor-theory-page pre,
.preprocessor-short-qna-page pre,
.preprocessor-long-qna-page pre,
.preprocessor-quiz-page pre,
.preprocessor-interview-page pre,
.preprocessor-page .table-responsive,
.preprocessor-theory-page .table-responsive,
.preprocessor-short-qna-page .table-responsive,
.preprocessor-long-qna-page .table-responsive,
.preprocessor-quiz-page .table-responsive,
.preprocessor-interview-page .table-responsive {
    
}

.preprocessor-page table,
.preprocessor-theory-page table,
.preprocessor-short-qna-page table,
.preprocessor-long-qna-page table,
.preprocessor-quiz-page table,
.preprocessor-interview-page table {
    width: 100% !important;
    table-layout: fixed !important;
}

.preprocessor-page th,
.preprocessor-page td,
.preprocessor-page :not(pre) > code,
.preprocessor-theory-page th,
.preprocessor-theory-page td,
.preprocessor-theory-page :not(pre) > code,
.preprocessor-short-qna-page th,
.preprocessor-short-qna-page td,
.preprocessor-short-qna-page :not(pre) > code,
.preprocessor-long-qna-page th,
.preprocessor-long-qna-page td,
.preprocessor-long-qna-page :not(pre) > code,
.preprocessor-quiz-page th,
.preprocessor-quiz-page td,
.preprocessor-quiz-page :not(pre) > code,
.preprocessor-interview-page th,
.preprocessor-interview-page td,
.preprocessor-interview-page :not(pre) > code {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.preprocessor-page .sticky-tabs-container,
.preprocessor-theory-page .sticky-tabs-container,
.preprocessor-short-qna-page .sticky-tabs-container,
.preprocessor-long-qna-page .sticky-tabs-container,
.preprocessor-quiz-page .sticky-tabs-container,
.preprocessor-interview-page .sticky-tabs-container {
    border-bottom: none !important;
    box-shadow: none !important;
}

.preprocessor-page .border-bottom,
.preprocessor-theory-page .border-bottom,
.preprocessor-short-qna-page .border-bottom,
.preprocessor-long-qna-page .border-bottom,
.preprocessor-quiz-page .border-bottom,
.preprocessor-interview-page .border-bottom {
    border-bottom: none !important;
}

@media (max-width: 767.98px) {
    .preprocessor-page pre,
    .preprocessor-theory-page pre,
    .preprocessor-short-qna-page pre,
    .preprocessor-long-qna-page pre,
    .preprocessor-quiz-page pre,
    .preprocessor-interview-page pre {
        font-size: 0.84rem !important;
        padding: 0.75rem !important;
    }

    .preprocessor-page table,
    .preprocessor-theory-page table,
    .preprocessor-short-qna-page table,
    .preprocessor-long-qna-page table,
    .preprocessor-quiz-page table,
    .preprocessor-interview-page table {
        font-size: 0.85rem !important;
    }

    .preprocessor-page th,
    .preprocessor-page td,
    .preprocessor-theory-page th,
    .preprocessor-theory-page td,
    .preprocessor-short-qna-page th,
    .preprocessor-short-qna-page td,
    .preprocessor-long-qna-page th,
    .preprocessor-long-qna-page td,
    .preprocessor-quiz-page th,
    .preprocessor-quiz-page td,
    .preprocessor-interview-page th,
    .preprocessor-interview-page td {
        padding: 0.4rem 0.5rem !important;
    }

    .preprocessor-page .sticky-tabs-container .mytab-btn,
    .preprocessor-theory-page .sticky-tabs-container .mytab-btn,
    .preprocessor-short-qna-page .sticky-tabs-container .mytab-btn,
    .preprocessor-long-qna-page .sticky-tabs-container .mytab-btn,
    .preprocessor-quiz-page .sticky-tabs-container .mytab-btn,
    .preprocessor-interview-page .sticky-tabs-container .mytab-btn {
        font-size: 0.85rem !important;
        padding: 0.35rem 0.6rem !important;
        flex: 1 1 auto !important;
        text-align: center !important;
    }
}



/* ======================================================== */
.error-page,
.error-theory-page,
.error-short-qna-page,
.error-long-qna-page,
.error-quiz-page,
.error-interview-page {
    min-width: 0 !important;
    max-width: 100% !important;
    
}

.error-page pre,
.error-page pre code,
.error-theory-page pre,
.error-theory-page pre code,
.error-short-qna-page pre,
.error-short-qna-page pre code,
.error-long-qna-page pre,
.error-long-qna-page pre code,
.error-quiz-page pre,
.error-quiz-page pre code,
.error-interview-page pre,
.error-interview-page pre code {
    max-width: 100% !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.error-page pre,
.error-theory-page pre,
.error-short-qna-page pre,
.error-long-qna-page pre,
.error-quiz-page pre,
.error-interview-page pre,
.error-page .table-responsive,
.error-theory-page .table-responsive,
.error-short-qna-page .table-responsive,
.error-long-qna-page .table-responsive,
.error-quiz-page .table-responsive,
.error-interview-page .table-responsive {
    
}

.error-page table,
.error-theory-page table,
.error-short-qna-page table,
.error-long-qna-page table,
.error-quiz-page table,
.error-interview-page table {
    width: 100% !important;
    table-layout: fixed !important;
}

.error-page th,
.error-page td,
.error-page :not(pre) > code,
.error-theory-page th,
.error-theory-page td,
.error-theory-page :not(pre) > code,
.error-short-qna-page th,
.error-short-qna-page td,
.error-short-qna-page :not(pre) > code,
.error-long-qna-page th,
.error-long-qna-page td,
.error-long-qna-page :not(pre) > code,
.error-quiz-page th,
.error-quiz-page td,
.error-quiz-page :not(pre) > code,
.error-interview-page th,
.error-interview-page td,
.error-interview-page :not(pre) > code {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.error-page .sticky-tabs-container,
.error-theory-page .sticky-tabs-container,
.error-short-qna-page .sticky-tabs-container,
.error-long-qna-page .sticky-tabs-container,
.error-quiz-page .sticky-tabs-container,
.error-interview-page .sticky-tabs-container {
    border-bottom: none !important;
    box-shadow: none !important;
}

.error-page .border-bottom,
.error-theory-page .border-bottom,
.error-short-qna-page .border-bottom,
.error-long-qna-page .border-bottom,
.error-quiz-page .border-bottom,
.error-interview-page .border-bottom {
    border-bottom: none !important;
}

@media (max-width: 767.98px) {
    .error-page pre,
    .error-theory-page pre,
    .error-short-qna-page pre,
    .error-long-qna-page pre,
    .error-quiz-page pre,
    .error-interview-page pre {
        font-size: 0.84rem !important;
        padding: 0.75rem !important;
    }

    .error-page table,
    .error-theory-page table,
    .error-short-qna-page table,
    .error-long-qna-page table,
    .error-quiz-page table,
    .error-interview-page table {
        font-size: 0.85rem !important;
    }

    .error-page th,
    .error-page td,
    .error-theory-page th,
    .error-theory-page td,
    .error-short-qna-page th,
    .error-short-qna-page td,
    .error-long-qna-page th,
    .error-long-qna-page td,
    .error-quiz-page th,
    .error-quiz-page td,
    .error-interview-page th,
    .error-interview-page td {
        padding: 0.4rem 0.5rem !important;
    }

    .error-page .sticky-tabs-container .mytab-btn,
    .error-theory-page .sticky-tabs-container .mytab-btn,
    .error-short-qna-page .sticky-tabs-container .mytab-btn,
    .error-long-qna-page .sticky-tabs-container .mytab-btn,
    .error-quiz-page .sticky-tabs-container .mytab-btn,
    .error-interview-page .sticky-tabs-container .mytab-btn {
        font-size: 0.85rem !important;
        padding: 0.35rem 0.6rem !important;
        flex: 1 1 auto !important;
        text-align: center !important;
    }
}



/* Guarantee Sticky Tabs functionality on all C tutorial pages */
.sticky-tabs-container {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 56px !important;
    z-index: 1020 !important;
    background: linear-gradient(180deg, #eef6ff 0%, #f8fbff 100%) !important;
    background-color: #eef6ff !important;
    border: 1px solid #dbeafe !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
}

body.dark-theme .sticky-tabs-container {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
    background-color: #111827 !important;
    border-color: #243244 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
}

/* If-theory flowcharts: keep decision diagrams inside the mobile viewport so sticky tabs keep working. */
.if-theory-page .main-text {
    overflow: visible !important;
}

.if-theory-page .flowchart-container {
    max-width: 100% !important;
    overflow-x: clip !important;
}

.if-theory-page .flowchart-container .d-flex {
    min-width: 0 !important;
}

@media (max-width: 767.98px) {
    .if-theory-page .sticky-tabs-container {
        z-index: 1080 !important;
    }

    .if-theory-page .flowchart-container {
        width: 100% !important;
    }

    .if-theory-page .flowchart-box {
        width: min(100%, 260px) !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0.65rem !important;
        font-size: 0.86rem !important;
        line-height: 1.25 !important;
    }

    .if-theory-page .flowchart-container .d-flex.justify-content-around,
    .if-theory-page .flowchart-container .d-flex:not(.flex-column) {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.65rem !important;
        width: 100% !important;
    }

    .if-theory-page .flowchart-container .text-center {
        width: 100% !important;
        max-width: 280px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .if-theory-page .flowchart-arrow {
        font-size: 1.1rem !important;
        line-height: 1 !important;
        margin: 0.2rem 0 !important;
    }
}

/* Compact Q&A audio control. Keep this near the end so page-level accordion styles cannot enlarge it. */
.short-qna-page .btn-play-qa,
.long-qna-page .btn-play-qa,
.interview-qna-page .btn-play-qa,
.accordion-header .btn-play-qa,
.faq-item .btn-play-qa {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    min-width: 46px !important;
    width: auto !important;
    min-height: 22px !important;
    height: 22px !important;
    padding: 2px 6px !important;
    border: 1px solid #0d6efd !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #0d6efd !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.short-qna-page .btn-play-qa i,
.long-qna-page .btn-play-qa i,
.interview-qna-page .btn-play-qa i,
.accordion-header .btn-play-qa i,
.faq-item .btn-play-qa i {
    font-size: 0.68rem !important;
    line-height: 1 !important;
}
.short-qna-page .btn-play-qa span,
.long-qna-page .btn-play-qa span,
.interview-qna-page .btn-play-qa span,
.accordion-header .btn-play-qa span,
.faq-item .btn-play-qa span {
    font-size: 10px !important;
    line-height: 1 !important;
}

/* Final dark-mode guard for Bootstrap light code blocks used inside theory pages. */
body.dark-theme pre.bg-light,
body.dark-theme pre.bg-white,
body.dark-theme .accordion-body pre.bg-light,
body.dark-theme .accordion-body pre.bg-white,
body.dark-theme .theory-page pre.bg-light,
body.dark-theme .theory-page pre.bg-white {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

body.dark-theme pre.bg-light code,
body.dark-theme pre.bg-white code,
body.dark-theme .accordion-body pre.bg-light code,
body.dark-theme .accordion-body pre.bg-white code,
body.dark-theme .theory-page pre.bg-light code,
body.dark-theme .theory-page pre.bg-white code {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

