.available-courses-ui {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 1rem;
    min-height: 560px;
}
.available-sidebar {
    background: #0d5ea6;
    color: #fff;
    border-radius: 12px;
    padding: 1rem;
}
.available-sidebar-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.available-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.available-course-item {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.75rem;
    cursor: pointer;
    background: transparent;
    color: #fff;
    text-align: left;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 0.65rem;
    align-items: center;
}
.available-course-item.active {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
}
.available-course-item small {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-top: 4px;
}
.available-course-thumb {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.available-course-thumb.placeholder {
    background: rgba(255, 255, 255, 0.2);
}
.available-main {
    min-width: 0;
}
.available-hero {
    min-height: 180px;
    border-radius: 12px;
    background: linear-gradient(120deg, #1b4b72 0%, #2a7db8 60%, #88bde6 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.available-hero-overlay {
    position: absolute;
    inset: 0;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: end;
}
.available-content {
    border-radius: 12px;
}

.course-player {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1rem;
}
.course-header-hero {
    min-height: 190px;
    border-radius: 12px;
    background: linear-gradient(120deg, #1b4b72 0%, #2a7db8 60%, #88bde6 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.course-header-overlay {
    position: relative;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-height: 190px;
}
.course-header-description {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.course-header-description * {
    max-width: 100%;
}
.course-player-sidebar {
    background: #0d5ea6;
    color: #fff;
    border-radius: 12px;
    padding: 1rem;
    align-self: start;
}
.course-section {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
    padding: 0.15rem 0.35rem 0.55rem;
}
.section-item {
    color: rgba(255, 255, 255, 0.94);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 0.1rem;
    padding: 0.35rem 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.section-item::-webkit-details-marker {
    display: none;
}
.section-item i {
    transition: transform 0.2s ease;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
}
.course-section[open] .section-item i {
    transform: rotate(180deg);
}
.course-section-content {
    padding-top: 0.15rem;
}
.chapter-item {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    padding: 0.65rem 0.75rem;
    text-align: left;
    cursor: pointer;
}
.chapter-item.active {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
}
.chapter-item small {
    color: rgba(255, 255, 255, 0.82);
    display: block;
    margin-top: 2px;
}
.quiz-item {
    border: 1px dashed rgba(255, 255, 255, 0.32);
    border-radius: 10px;
    padding: 0.6rem 0.7rem;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    text-align: left;
    cursor: pointer;
}
.quiz-item.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
}
.quiz-item small {
    color: rgba(255, 255, 255, 0.78);
    display: block;
    margin-top: 2px;
}
#chapterContent {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}
#chapterContent {
    line-height: 1.8;
}
#chapterContent .chapter-content-block {
    display: block;
}
#chapterContent .chapter-content-block + .chapter-content-block {
    margin-top: 2rem;
}
#chapterContent * {
    max-width: 100%;
}
#chapterContent img,
#chapterContent video,
#chapterContent canvas,
#chapterContent svg {
    max-width: 100%;
    height: auto;
}
#chapterContent iframe,
#chapterContent embed,
#chapterContent object {
    width: 100%;
    max-width: 100%;
}
#chapterContent table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    white-space: nowrap;
}
#chapterContent pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
}
#chapterContent code {
    white-space: pre-wrap;
    word-break: break-word;
}
.quiz-matching {
    margin-top: 0.75rem;
}
.quiz-matching {
    position: relative;
}
.quiz-matching-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.quiz-matching-lines path {
    stroke: #0d5ea6;
    stroke-width: 3;
    stroke-linecap: round;
    fill: none;
    opacity: 0.95;
}
.quiz-matching-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
    row-gap: 12px;
    align-items: stretch;
}
.quiz-matching-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.quiz-drag-drop-board {
    display: grid;
    gap: 14px;
}
.quiz-drag-drop-source,
.quiz-drag-drop-zone {
    border: 1px dashed #c1cfdf;
    border-radius: 10px;
    background: #f8fbff;
    padding: 0.75rem;
}
.quiz-drag-drop-title {
    font-weight: 700;
    color: #0f2f57;
    margin-bottom: 0.55rem;
}
.quiz-drag-drop-list {
    min-height: 58px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-content: flex-start;
}
.quiz-drag-drop-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}
.quiz-drag-card {
    border: 1px solid #9fb8d8;
    background: #fff;
    color: #0f2f57;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    cursor: grab;
    user-select: none;
    box-shadow: 0 1px 3px rgba(15, 47, 87, 0.1);
}
.quiz-drag-card.is-dragging {
    opacity: 0.6;
}
.quiz-drag-drop-list.is-over {
    border-radius: 8px;
    background: rgba(13, 94, 166, 0.08);
}
.quiz-matching-item {
    min-height: 66px;
    border: 1px solid #b6bec8;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    transition: all 0.18s ease;
    z-index: 2;
}
.quiz-matching-item-left {
    padding-right: 10px;
}
.quiz-matching-item-right {
    padding-left: 10px;
    user-select: none;
}
.quiz-matching-item-right.is-dragging {
    opacity: 0.6;
    cursor: grabbing;
}
.quiz-matching-text {
    flex: 1;
    padding: 0 12px;
}
.quiz-matching-handle {
    width: 30px;
    min-width: 30px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #79a9ce;
    color: #0b2b47;
}
.quiz-matching-item-left .quiz-matching-handle {
    border-right: 1px solid #6f9ec2;
}
.quiz-matching-item-right .quiz-matching-handle {
    border-left: 1px solid #6f9ec2;
}
.quiz-matching-notch {
    display: none;
}
.quiz-matching-item-left.is-joined,
.quiz-matching-item-right.is-joined {
    box-shadow: 0 0 0 2px rgba(13, 94, 166, 0.2);
}
.quiz-matching-item-left.is-joined {
    transform: translateX(18px);
}
.quiz-matching-item-right.is-joined {
    transform: translateX(-18px);
}
.quiz-matching-item-right {
    cursor: pointer;
    text-align: left;
}
.quiz-matching-item-right.is-selected {
    box-shadow: 0 0 0 2px rgba(13, 94, 166, 0.25);
    border-color: #0d5ea6;
}
.quiz-matching-item-left {
    gap: 0.5rem;
}
.quiz-matching-item-left.is-selected {
    box-shadow: 0 0 0 2px rgba(13, 94, 166, 0.25);
    border-color: #0d5ea6;
}
.quiz-matching-item-left.is-linked,
.quiz-matching-item-right.is-linked {
    border-color: #0d5ea6;
    background: #f8fbff;
}
.quiz-link-dot {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid #0d5ea6;
    background: #fff;
    flex: 0 0 16px;
    margin-right: 0.35rem;
}
.quiz-matching-item-right .quiz-link-dot {
    margin-left: 0.6rem;
    margin-right: 0.35rem;
}
.quiz-matching-item-right.is-selected .quiz-link-dot,
.quiz-matching-item-left.is-selected .quiz-link-dot {
    background: #0d5ea6;
}
.quiz-matching-item-right.is-linked .quiz-link-dot,
.quiz-matching-item-left.is-linked .quiz-link-dot {
    background: #0d5ea6;
}
.chapter-chart {
    border: 1px solid #d9dee4;
    border-radius: 10px;
    padding: 1rem;
    background: #fff;
}
.chapter-chart-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
}
.chapter-chart-svg {
    width: 100%;
    height: auto;
    display: block;
}
.chapter-chart-pie {
    position: relative;
    width: 100%;
}
.chapter-chart-svg-pie {
    width: 100%;
}
.chapter-chart-pie-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.chapter-chart-pie-label {
    position: absolute;
    transform: translate(-50%, -50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
    pointer-events: none;
}
.chapter-chart-pie-label-text {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.chapter-chart-legend {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}
.chapter-chart-legend li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #334155;
}
.chart-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.18);
}
.chart-info-pill {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #0f4d75;
    border: 1px solid #cbd5e1;
    cursor: help;
    pointer-events: auto;
}
.chapter-chart-info-panel {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.26);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 8;
}
.chapter-chart-info-card {
    width: min(420px, 100%);
    max-height: min(70vh, 560px);
    overflow: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
    padding: 1.1rem 1.1rem 0.95rem;
    position: relative;
}
.chapter-chart-info-close {
    position: absolute;
    top: 0.4rem;
    right: 0.55rem;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: #eef2f7;
    color: #0f172a;
    font-size: 1.35rem;
    line-height: 1;
}
.chapter-chart-info-title {
    margin: 0 2rem 0.8rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}
.chapter-chart-info-content {
    color: #1e293b;
    line-height: 1.55;
}
.chapter-chart-info-content p:last-child {
    margin-bottom: 0;
}
.chapter-chart-bars {
    width: 100%;
    display: grid;
    gap: 0.55rem;
}
.chapter-chart-svg-bars {
    background: #fff;
    border-radius: 8px;
}
.chapter-chart-lines {
    width: 100%;
}
.chapter-chart-svg-lines {
    background: #fff;
    border-radius: 8px;
}
.chart-info-svg-btn {
    cursor: pointer;
}
.chapter-cards-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.chapter-card-item {
    position: relative;
    min-height: 255px;
    perspective: 1000px;
}
.chapter-card-flip-btn {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    border: 0;
    background: transparent;
    color: #3f3f46;
    font-size: 1.1rem;
    line-height: 1;
    z-index: 3;
    cursor: pointer;
    transition: color 0.2s ease;
}
.chapter-card-body {
    position: relative;
    height: 100%;
    min-height: 255px;
    padding: 1.2rem 1.15rem;
    transform-style: preserve-3d;
    transition: transform 0.45s ease;
    border: 1px solid #d9dee4;
    background: #fff;
    cursor: pointer;
}
.chapter-card-item:hover .chapter-card-flip-btn,
.chapter-carousel-card:hover .chapter-card-flip-btn {
    color: #0d6efd;
}
.chapter-card-body.is-single-face {
    cursor: default;
}
.chapter-card-face {
    position: absolute;
    inset: 1.2rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.chapter-card-face-front {
    transform: rotateY(0deg);
}
.chapter-card-face-back {
    transform: rotateY(180deg);
    background: #f3f4f6;
}
.chapter-card-body.is-flipped {
    transform: rotateY(180deg);
}
.chapter-card-body.is-single-face {
    transform: none !important;
}
.chapter-card-body.is-single-face .chapter-card-face-front {
    transform: none;
}
.chapter-card-body.is-single-face .chapter-card-face-back {
    display: none;
}
.chapter-card-info {
    color: #334155;
    line-height: 1.55;
    width: 100%;
    max-height: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.chapter-card-info p {
    margin: 0 0 0.45rem;
    width: 100%;
    text-align: center;
}
.chapter-card-info p:last-child {
    margin-bottom: 0;
}
.chapter-card-info * {
    max-width: 100% !important;
}
.chapter-card-info img,
.chapter-card-info video,
.chapter-card-info canvas,
.chapter-card-info svg,
.chapter-card-info iframe {
    width: min(150px, 100%) !important;
    max-width: 100% !important;
    max-height: 130px !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.55rem !important;
}
.chapter-card-info figure,
.chapter-card-info .media,
.chapter-card-info .image {
    width: 100% !important;
    margin: 0 auto 0.55rem !important;
    text-align: center;
}
.chapter-carousel-cards {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 1rem;
    border: 1px solid #d9dee4;
    background: #f8fafc;
    border-radius: 2px;
}
.chapter-carousel-stage {
    width: 100%;
}
.chapter-carousel-track {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.chapter-carousel-card {
    width: 100%;
    min-height: 460px;
    perspective: 1000px;
}
.chapter-carousel-card:not(.is-active) {
    display: none;
}
.chapter-carousel-card .chapter-card-body {
    min-height: 460px;
    border: 0;
    background: #f8fafc;
    padding: 0.4rem;
}
.chapter-carousel-card .chapter-card-face {
    inset: 0.4rem;
}
.chapter-carousel-card .chapter-card-info img,
.chapter-carousel-card .chapter-card-info video,
.chapter-carousel-card .chapter-card-info canvas,
.chapter-carousel-card .chapter-card-info svg,
.chapter-carousel-card .chapter-card-info iframe {
    width: min(360px, 100%) !important;
    max-height: 360px !important;
}
.chapter-carousel-footer {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}
.chapter-carousel-nav {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    background: #005fb8;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(2, 54, 116, 0.25);
}
.chapter-carousel-nav:hover {
    background: #03509a;
    color: #fff;
}
.chapter-carousel-status {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
}
.chapter-carousel-counter {
    color: #0f172a;
    font-style: italic;
    font-weight: 600;
}
.chapter-carousel-progress {
    width: 140px;
    height: 2px;
    background: #cfd8e3;
    border-radius: 999px;
    overflow: hidden;
}
.chapter-carousel-progress > span {
    display: block;
    height: 100%;
    width: 0;
    background: #005fb8;
    transition: width 0.2s ease;
}
.chapter-toc-carousel {
    max-width: 820px;
    margin: 0 auto;
    border-radius: 12px;
    background: transparent;
    border: 0;
    padding: 1rem 1.5rem;
}
.chapter-toc-carousel .chapter-carousel-stage {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 1rem;
}
.chapter-toc-carousel .chapter-carousel-track {
    overflow: visible;
}
.chapter-toc-slide {
    min-height: 0;
}
.chapter-toc-card {
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    border: 0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-radius: 2px;
    padding: 2rem 2.25rem;
}
.chapter-toc-step-badge {
    margin: 0 auto 0.9rem;
    width: fit-content;
    padding: 0.45rem 0.9rem;
    border-radius: 0.5rem;
    background: #0d6efd;
    color: #fff;
    font-weight: 700;
    font-size: 1.08rem;
}
.chapter-toc-nav {
    width: 50px;
    height: 50px;
    /* background: #000;  */
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.chapter-toc-nav:hover {
    background: #111827;
}
.chapter-toc-footer {
    grid-template-columns: 1fr;
}
.chapter-toc-status {
    gap: 0.6rem;
}
.chapter-toc-counter {
    font-style: normal;
    font-weight: 600;
    color: #111827;
}
.chapter-toc-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #111827;
}
.chapter-toc-dot,
.chapter-toc-check {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    background: #fff;
}
.chapter-toc-dot.is-active {
    background: #f8fafc;
    box-shadow: inset 0 0 0 2px #111827;
}
.chapter-toc-check {
    border-color: transparent;
    background: transparent;
}
.chapter-toc-progress {
    width: 220px;
}
.chapter-accordion {
    display: grid;
    gap: 0.75rem;
}
.chapter-accordion-item {
    border: 1px solid #d9dee4;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.chapter-accordion-summary {
    list-style: none;
    cursor: pointer;
    padding: 0.8rem 1rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}
.chapter-accordion-summary::-webkit-details-marker {
    display: none;
}
.chapter-accordion-summary i {
    transition: transform 0.2s ease;
    color: #64748b;
}
.chapter-accordion-item[open] .chapter-accordion-summary i {
    transform: rotate(180deg);
}
.chapter-accordion-content {
    border-top: 1px solid #e2e8f0;
    padding: 0.85rem 1rem 1rem;
    color: #334155;
}
.chapter-accordion-content * {
    max-width: 100%;
}
.chapter-accordion-content p:last-child {
    margin-bottom: 0;
}
.chapter-x-columns-item {
    color: #334155;
}
.chapter-x-columns-item * {
    max-width: 100%;
}
.chapter-x-columns-item p:last-child {
    margin-bottom: 0;
}
.chapter-video-wrap {
    width: 100%;
}
.chapter-video-player {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    background: #000;
    display: block;
}
.chapter-image-tooltip-block {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.chapter-image-tooltip-media-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.chapter-image-tooltip-btn {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f4d75;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
    z-index: 2;
}
.chapter-image-tooltip-btn.is-active {
    background: #0f4d75 !important;
    color: #ffffff !important;
    border-color: #0f4d75 !important;
}
.image-tooltip-popover {
    --bs-popover-max-width: min(680px, 92vw);
}
.image-tooltip-popover .popover-body {
    max-height: min(52vh, 420px);
    overflow-y: auto;
}
.image-tooltip-popover .popover-header {
    background: #0f4d75 !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.image-tooltip-popover .popover-header button {
    color: #ffffff !important;
}
.image-tooltip-popover .popover-header span {
    color: #ffffff !important;
}
.chapter-image-tooltip-panel {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.26);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 5;
}
.chapter-image-tooltip-card {
    width: min(440px, 100%);
    max-height: min(72vh, 560px);
    overflow: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
    padding: 1.1rem 1.1rem 0.95rem;
    position: relative;
    text-align: left;
}
.chapter-image-tooltip-close {
    position: absolute;
    top: 0.4rem;
    right: 0.55rem;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: #eef2f7;
    color: #0f172a;
    font-size: 1.35rem;
    line-height: 1;
}
.chapter-image-tooltip-title {
    margin: 0 2rem 0.8rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}
.chapter-image-tooltip-content {
    color: #1e293b;
    line-height: 1.55;
}
.chapter-image-tooltip-content p:last-child {
    margin-bottom: 0;
}
#chapterContent .chapter-image-tooltip-block {
    max-width: min(760px, 100%);
    margin-left: auto;
    margin-right: auto;
}
#chapterContent .chapter-image-tooltip-media-wrap {
    width: 100%;
}
#chapterContent .chapter-image-tooltip-media-wrap > img {
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 992px) {
    .available-courses-ui {
        grid-template-columns: 1fr;
    }
    .course-player {
        grid-template-columns: 1fr;
    }
    .quiz-matching-grid {
        grid-template-columns: 1fr;
    }
    .chapter-carousel-cards {
        padding: 0.8rem 0.75rem 0.75rem;
    }
    .chapter-carousel-card,
    .chapter-carousel-card .chapter-card-body {
        min-height: 320px;
    }
    .chapter-carousel-card .chapter-card-info img,
    .chapter-carousel-card .chapter-card-info video,
    .chapter-carousel-card .chapter-card-info canvas,
    .chapter-carousel-card .chapter-card-info svg,
    .chapter-carousel-card .chapter-card-info iframe {
        width: min(240px, 100%) !important;
        max-height: 240px !important;
    }
    .chapter-toc-carousel {
        padding: 0.7rem;
    }
    .chapter-toc-carousel .chapter-carousel-stage {
        grid-template-columns: 1fr;
        row-gap: 0.6rem;
    }
    .chapter-toc-card {
        padding: 1.25rem 1rem;
    }
    .chapter-toc-nav {
        width: 42px;
        height: 42px;
    }
    .chapter-toc-carousel .chapter-toc-nav-prev {
        justify-self: start;
    }
    .chapter-toc-carousel .chapter-toc-nav-next {
        justify-self: end;
        margin-top: -2.65rem;
    }
    .chapter-toc-progress {
        width: 180px;
    }
}

@media (min-width: 1200px) {
    .chapter-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
