html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px!important;
}

div {
  scroll-margin-top:  150px!important;
}

.mind-map-container{
    max-width:1280px!important;
    margin:0px!important;
    border: 5px solid white;
    border-radius: 30px;
    -webkit-box-shadow: 5px 10px 10px 5px rgba(0,0,0,0.2);
    box-shadow: 5px 10px 15px 5px rgba(0,0,0,0.2);
}

.quiz-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    max-width: 920px;
    margin: 20px auto;
}
#answer-options {
    display: flex;
    flex-wrap: wrap;
    width: 100%; 
}
.answer-item {
    display: block;
    background: #fff;
    padding: 10px;
    margin: 1%;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    width: 48%;
}
.answer-item:hover { 
    background: #f0f0f0; 
}
#explanation-text {
    font-weight: 400;
    font-size: 18px;
}
.quiz-navigation {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}
.nav-btn {
    padding: 10px 20px;
    cursor: pointer;
}
.nav-btn:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
}
.correct {
    color: rgba(3, 237, 69, 0.765)!important;
    font-size: 20px;
}
.correct-answer {
    background: rgba(3, 237, 69, 0.765)!important;
}
.wrong {
    color: rgba(232, 60, 60, 0.765)!important;
    font-size: 20px;
}
.wrong-answer {
    background: rgba(232, 60, 60, 0.765)!important;
}


/* Widget CSS 
.sqp-accordion-menu {
    border: 1px solid #ddd;
    border-radius: 4px;
}
.sqp-chapter-trigger {
    width: 100%;
    text-align: left;
    background: #f7f7f7;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sqp-chapter-item.open .sqp-chapter-trigger .arrow {
    transform: rotate(180deg); 
}
.sqp-lessons-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sqp-lessons-list li {
    border-bottom: 1px solid #eee;
}
.sqp-lessons-list li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
}
*/
/* Highlight current lesson the user is looking at */
/*
.sqp-lessons-list li.current-active-lesson {
    background-color: #e9f5ff; 
    border-left: 4px solid #0073aa;
}
.sqp-lessons-list li.current-active-lesson a {
    font-weight: bold;
    color: #0073aa;
}
*/ 

/* Sidebar ToC Container Styles */
.sqp-toc-container {
    background-color: #fafdff;
    border: 1px solid #e1f0fa;
    border-radius: 6px;
    padding: 20px;
    position: fixed;
    top: 20%;
    max-width: 25%;
    overflow-y: auto;
    max-height: 80vh;
}

.sqp-toc-heading {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 0px!important;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1f0fa;
    color: #333;
    text-align: left;
}

.sqp-secret-header {
    display: none!important;
}
.sqp-toc-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Base list item rules */
.sqp-toc-item a {
    display: inline-block;
    color: #444;
    text-decoration: none;
    /*padding: 6px 0;*/
    transition: color 0.2s ease;
    line-height: 1!important;
    font-size: 0.85em!important;
}

.sqp-toc-item a:hover {
    color: #0073aa;
    text-align: left;
}

/* Distinction for Main vs Sub sections */
.sqp-toc-main {
    font-weight: bold;
    border-top: 1px solid #f0f0f0;
    margin-top: 5px;
    text-align: left;
}
.sqp-toc-main:first-child {
    border-top: none;
    margin-top: 0;
    text-align: left;
}

.sqp-toc-sub {
    font-weight: normal;
    padding-left: 15px; /* Indents items like 1.1, 1.2 */
    font-size: 14px;
    border-left: 2px solid #e1f0fa;
    margin-left: 5px;
    text-align: left;
}

.lesson-section {
    background-color: rgb(248 129 0 / 80%);
    padding: 0.25em 0.5em;
    color: white!important;
    border: 1px solid;
    border-radius: 20px;
    margin-left:0px!important;
    max-width: fit-content;
}

.lesson-subsection {
    background-color: unset;
    padding: 0.25em 2em;
    border: 1px solid rgba(255,255,255,0);
    border-radius: 20px;
    font-size: 1.2em!important;
    margin-left:0px!important;
    max-width: fit-content;
}

.lesson-paragraph {
    font-weight:400!important;
    max-width: 1200px!important;
    margin-left:0px!important;
}

.no-margin{
    max-width: 1200px!important;
    margin-left:0px!important;
}
.margin-small{
    margin: 20px 120px;
}
.t-a-l{
    text-align:left
}

/* 1. Ensure the summary is a relative container and hide the native flaky markers */
[data-kubio] details summary {
    position: relative;
    padding-left: 24px; /* Makes room for your new custom arrow */
    cursor: pointer;
    list-style: none; /* Hides native arrow in modern Firefox/Chrome */
}

/* Hides native arrow in legacy Safari */
[data-kubio] details summary::-webkit-details-marker {
    display: none;
}

/* 2. Create your own custom arrow icon using CSS borders */
[data-kubio] details summary::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    
    /* Creates a neat CSS triangle pointing right */
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid #333333; /* Change color to match your text */
    
    transition: transform 0.2s ease; /* Makes it rotate smoothly */
}

/* 3. Rotate the arrow 90 degrees downward when the accordion opens */
[data-kubio] details[open] summary::before {
    transform: translateY(-50%) rotate(90deg);
}