.study-mode-course-title-row{
  display:flex;
  align-items:center;
  gap:4px;
  margin-bottom: 6px;
}

.study-mode-exam-board-badge{
  display:inline-flex;
  align-items:center;
  font-size:12px;
  font-weight:600;
  line-height:1;
    background-color: #00000080;
    border-radius: 6px;
    padding: 2px 6px;
    color: #fff;
    transition: all 0.2s;
    font-family: 'Inter Tight';
}

#study-mode-wrapper button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#study-mode-wrapper {
    padding-top: 20px;
}

.tft-study-mode-trigger {
    padding: 6px 12px;
    border-radius: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    width: fit-content;
    cursor: pointer;
    transition: 200ms;
    font-family: 'Inter Tight';
    font-size: 16px;
    font-weight: 600;
    color: #005F38;
    line-height: 1em;
    background-color: #C4EFDA;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.tft-study-mode-trigger svg {
    width: 24px;
    height: 24px;
    fill: #005f38;
}

.tft-study-mode-trigger:hover {
    /*background-color: #fff;
    color: #191919;*/
    opacity: .6;
}

.tft-study-mode-trigger:hover svg {
    /*fill: #191919;*/
}

/* When study mode is active */
body.study-mode-active {
    overflow: hidden;
    background: white;
}

/* Ensure learning content wrapper fills the page */
body.study-mode-active .tft-topic-content.learning {
    display: flex !important;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 60px 20px;
}

/* Center the actual lesson content */
body.study-mode-active .ld-tab-content.ld-visible {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    box-sizing: border-box;
}

body.study-mode-active .learndash_next_prev_link {
    pointer-events: none !important;
    user-select: none !important;
}

html.study-mode-active {
    overflow: hidden;
    height: 100%;
}

.study-mode-inner {
    max-width: 800px;
    margin: auto;
    width: 100%;
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    overflow: auto;
}

.study-mode-section {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.study-mode-section.fade-in-left,
.study-mode-section.fade-in-right {
    opacity: 1;
    transform: translateX(0);
}

.study-mode-nav {
    width: 100%;
    display: flex;
    margin-top: 20px;
    border-top: 2px solid #e0e0e0;
    position: fixed;
    bottom: 0;
    background-color: #fff;
}

.study-mode-buttons {
    display: flex;
    margin: auto;
    padding: 30px;
    gap: 12px;
    width: 800px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.study-mode-buttons-right {
    gap: 8px;
    display: flex;
}

.study-btn {
    font-size: 16px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease;
    font-family: 'Inter Tight';
    line-height: 1em;
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    position: relative;
}

.exit-btn {
    background-color: #F6CDD5;
    color: #550D1B;
}

.exit-btn:hover {
    background-color: #F3A2B1;
}

.back-btn {
    background-color: #EDEDED;
    color: #323232;
}

.back-btn:hover {
    background-color: #E0E0E0;
}

.next-btn, .finish-btn {
    background-color: #C4EFDA;
    color: #058F38;
}

.next-btn:hover, .finish-btn:hover {
    background-color: #8FE5BA;
}

.study-btn svg {
    width: 16px;
    height: 16px;
}

.icon-left {
    margin-right: 6px;
    display: inline-flex;
}

.icon-right {
    margin-left: 6px;
    display: inline-flex;
}

.study-mode-progress {
    height: 8px;
    background: #ededed;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    background: #26d07c;
    transition: width 0.3s ease;
}

.study-mode-course-title {
    font-family: 'Inter Tight' !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #959595 !important;
    margin-bottom: 0;
    line-height: 1;
}

.study-mode-lesson-title {
    font-family: 'Rethink Sans' !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #191919 !important;
    letter-spacing: -0.2px;
    margin-bottom: 20px !important;
}

.study-mode-section h6 {
    margin: 0 0 0.5rem 0 !important;
    border-bottom: none !important;
    line-height: 1em !important;
    padding: 0 0 1rem 0 !important;
}

.study-mode-static {
    max-width: 800px;
    margin: auto;
    width: 100%;
    background: white;
    padding: 40px 30px 30px 30px;
}

.study-mode-inner.fade-in-right.study-mode-finish-page {
    height: calc(100vh - 2px - 60px - 16px - 20px);
    padding-top: 40px;
}

.study-mode-finish-page .study-mode-course-title-row, .study-mode-finish-page .study-mode-lesson-title {
    text-align: center !important;
    justify-content: center;
}

.study-mode-finish-page .study-mode-buttons {
    max-width: 600px;
    flex-wrap: unset;
    gap: 30px;
}
.study-mode-finish-page .study-mode-buttons-left, .study-mode-finish-page .study-mode-buttons-right {
    width: 100%;
}
.study-mode-finish-page .back-btn, .study-mode-finish-page .finish-btn {
    width: 100%;
    justify-content: center;
}

.lesson-complete-heading {
    margin-top: 50px;
    font-family: 'Inter Tight' !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1em !important;
    margin-bottom: 0 !important;
    text-align: center;
}

.study-statistics-row {
    background-color: #ededed;
    border-radius: 16px;
    padding: 10px 16px;
    align-items: center;
    font-size: 16px;
    color: #191919;
}

.ss-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter Tight';
}

.study-statistics {
    margin: auto;
    display: flex;
    gap: 10px;
    flex-direction: column;
    max-width: 600px;
    padding: 20px 30px;
}

.ss-time {
    background-color: #c4efda;
}

.ss-flashcards {
    background-color: #D9F1FB;
}
.ss-tips {
    background-color: #FAF1BB;
}
.ss-footnotes {
    background-color: #E6EACC;
}
.ss-examples {
    background-color: #F7DBD0;
}
.ss-casestudies {
    background-color: #DCE0E3;
}
.ss-analogies {
    background-color: #DAD4EE;
}
.ss-commonmistakes {
    background-color: #F6CDD5;
}

.ss-summary {
    cursor: pointer;
    transition: all 200ms ease;
}

.ss-summary:hover {
    background-color: #f9f9f9;
}

.study-summary-content {
    margin-top: 30px;
}

.study-summary-content.study-summary-content.study-summary-content p {
    margin-bottom: 0 !important;
}

.study-summary-content > p > b {
    font-family: 'Inter Tight';
    margin-top: 10px;
}

.study-mode-active .glossary-tooltip-content {
    left: 50%;
    bottom: 50%;
    margin: 0 0 20px -150px;
}

.study-mode-active .jetpack-videopress-player {
    display: none;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.study-btn.shake {
    animation: shake 0.4s ease;
}

.next-tooltip {
    position: absolute;
    background-color: #191919;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    width: 170px;
    z-index: 99999;
    transform: translate(-30%,-100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.next-tooltip.show {
    opacity: 1;
    pointer-events: auto;
}

.study-btn.disabled {
    background-color: #ddd !important;
    color: #999 !important;
    cursor: not-allowed;
}

.study-btn.disabled .next-tooltip {
    pointer-events: none;
}
