
/* --- Exam Notice Callout --- */
.exam-callout{
    display:flex; gap:12px; align-items:flex-start;
    background:#f7fafff3; border:1px solid #D9E6FF; border:1px solid #999;
    padding:12px 14px; border-radius:10px; position:relative; margin:10px 0 14px 0;
}
.exam-callout-left{flex:0 0 auto; display:flex; align-items:center;}
.exam-badge{width:34px; height:34px; border-radius:8px; background:#E8F0FF;
    display:flex; align-items:center; justify-content:center; font-size:14px;}
.exam-callout-body{flex:1 1 auto;}
.exam-callout-title{font-size:12px; margin:0 0 6px 0; line-height:1.2;}
.exam-callout-text{margin:0 0 6px 0; font-size:12px;}
.exam-callout-list{margin:0; padding-left:18px; font-size:12px;}
.exam-callout-close{
    position:absolute; top:8px; right:10px; border:none; background:transparent;
    font-size:10px; line-height:1; cursor:pointer; opacity:.55;
}
.exam-callout-close:hover{opacity:1}
  

@media (max-width: 768px) {
    .exam-callout{break-inside:avoid; }
    /* .exam-badge{background:#fff; border:1px solid #999;} */
    .exam-callout-list{font-size:10px;}
}
main.formula-container {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 0.5vw;
}
main.formula-wrapper {
    font-size: 18px;
    line-height: 1.6;
}

main.formula-sheet {
    background-color: white;
    display: flex;
    align-items: flex-start;
    padding: 2.5vw 1vw;
    margin: 1vw;
    border: 2px solid #ddd;
    border-radius: 12px;
    width: 100%;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    color: black;
    transition: background-color 0.3s, color 0.3s;
    flex-direction: column;
}
.formula-sheet h3 {
    margin-bottom: 1.5vw;
}

.formula-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}
.formula-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 0 1vw 1vw;
    background-color: white;
    border: 2px solid #ddd;
    color: black;
}
.formula-item.all-formula {
   border-radius: 8px;
   margin-bottom: 2vw;
}

.formula-item-title {
    font-weight: bold;
    font-size: 1.25em;
    margin-bottom: 1vw;
    
}
.formula-item-title.subtitle {
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
    color: #333;
}

.formula-item-content {
    border: none;
    margin-left:0.6em;
    margin-bottom: 1em;
}
.important-formula {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
    border-left: 4px solid #4CAF50;
    padding: 7px 15px;
    margin: 10px auto;
    width: 92%;
    text-align: center;
    font-size: 1.1em;
    font-family: 'Georgia', serif;
    border-radius: 5px;
}
.important-formula .left-container{
    display: flex;
    flex-direction: column;
    flex: 1;

}
.important-formula .left-container p {
    text-align: left;
    margin: 0;
}
.important-formula .latex {
    text-align: center;
    width: 86%;
}
.important-formula .nav-cta {
    font-size: 0.7em;
}
.important-sentence-container {  
    padding: 7px 0.9em 7px 0.3em;
    margin: 10px auto;
}
.important-sentence {
    background-color: #f8f8f8;
    border: 2px solid #b8b8b8;
    padding: 7px 15px;
    margin: 0;
    width: 92%;
    text-align: center;
    font-weight: bold;
    font-size: 0.9em;
    font-family: 'Georgia', serif;
}


@media (max-width: 768px) {
    .formula-section {
        flex-direction: column;
    }

    .formula-item {
    font-size: 4vw;
    }
    .formula-item-content {
        display: block;
    }

    .formula-item-content svg {
        margin: 0 auto;
    }
    .formula-item {
        min-height: 0; 
    }
    .important-formula {
        width: 86%;
    }
}
.review-btn{
    margin-right:10px;
}

.svg-text-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
}
@media (max-width: 768px) {
    .svg-text-container {
        flex-direction: column;
    }
}




.tier-toggle {
    border: 1px solid var(--secondary-color);
    border-radius: 20px;
    overflow: hidden;
    display: inline-flex;
    font-size: 1em;
    max-width: 100%; 
    min-width: 135px;
    white-space: nowrap;
}
  
.tier-button {
    flex: 1 1 0;
    background-color: #eee;
    color: var(--secondary-color);
    border: none;
    margin:0;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 0;
    
}
.tier-button.active {
    background-color: var(--secondary-color);
    color: white;
}
@media (max-width: 768px) {
    .tier-button {
        font-size: 0.7em;
        padding: 0.55em 0.3em;
    }  
}


#stickySubtitle-background {
    position: sticky;
    top: 43px;
    z-index: 19;
    height: auto;
    padding-top: 10px;
}


.sticky-subtitle {
    position: sticky;
    top: 50px; 
    background: white;
    margin: 0 7px;
    padding: 6px 12px;
    font-weight: bold;
    font-size: 1.1em;
    display: none;
    z-index: 20;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border: 2px solid #ddd;
    border-bottom: none; 
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.06);

}

@media (max-width: 768px) {
    .sticky-subtitle-background {
        top: 48px;
        padding-top: 5px;
    }
    .sticky-subtitle {
        font-size: 1.1em;
        padding: 7px 10px;
        top: 49px;
    }
}
.side-menu {
    position: fixed;
    top: 0;
    left: -270px;
    width: 220px;
    height: 100%;
    background-color: var(--background-color);
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 9806  ;
    padding: 5px 10px 20px 10px;
}
.side-menu.active {
    left: 0;
}
.side-menu-content {

    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    margin-bottom:14px;
}
.side-menu-item {
    cursor: pointer;
    padding: 10px;
    background: #ffffff;
    border-radius: 4px;
}
.side-menu-item:hover {
    background: #e0e0ff;
}
.side-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 7vh;
}
.side-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9550;
}
.side-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.swipe-hint {
    position: fixed;
    top: 60%;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    z-index: 10010;
    opacity: 0;
    transition: opacity 1s ease;
        pointer-events: none;
}
.swipe-hint.fade-in {
    opacity: 1;
}
.swipe-hint.fade-out {
    opacity: 0;
}
@media (min-width: 768px) {
    .swipe-hint {
        display: none;
    }
}





.info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9998;
}
.info-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
  
.info-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(150%, -50%);
    width: 94%;
    max-width:1150px;
    height: 90%;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    border: 1px solid #ddd;
    border-radius: 16px;
    transition: right  0.3s ease, transform 0.3s ease;
    z-index: 9855;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}
.info-popup.active {
    transform: translate(-50%, -50%); 
    pointer-events: auto;
}

.info-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6em;
    border-radius: 16px 16px 0 0 ;
    border-bottom: 1px solid #ddd;
    background: #f0f0f0;
}
.info-popup-content {
    padding: 0.6em;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1;
}
.close-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color:black;
}
  




.formula-question-container {
    display: none; 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84%;
    max-width: 500px;
    min-height:15vh;
    max-height:90vh;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 10010;

    padding: 1em;
    pointer-events: auto;
}
.formula-question-container.active {
    display: block;
    animation: popupFadeIn 0.25s ease-out;
}
.formula-question-container .question-card {

    padding:0 12px; 
    height:100%;

}
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


