@charset "UTF-8";

body {
    color: var(--lecture-ink);
    background: #fffdf8;
    font-family: "DM Sans", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.page {
    background:
        radial-gradient(circle at 8% 12%, rgba(248, 183, 53, .18), transparent 26%),
        linear-gradient(180deg, #fffdf8 0%, #f7fbf6 100%);
}
/*.container { padding-bottom: 30px; }*/

.title,
.breadcrumbs-custom-title,
h2,
h3,
h4 {
    letter-spacing: 0;
}

.title::after,
.breadcrumbs-custom-title::after {
    content: "";
    display: block;
    width: 82px;
    height: 5px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lecture-accent), var(--lecture-alert), var(--lecture-primary), var(--lecture-secondary));
}

.bg-secondary,
.breadcrumbs-custom.bg-secondary {
    background:
        linear-gradient(135deg, rgba(31, 47, 56, .88), rgba(35, 116, 171, .88)),
        url("../images/bg-pattern-boxed.jpg") center/cover;
}

.breadcrumbs-custom-path li,
.breadcrumbs-custom-path a {
    color: rgba(255, 255, 255, .86);
}

.breadcrumbs-custom .breadcrumbs-custom-title {
    color: #fff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .24);
}

.breadcrumbs-custom .breadcrumbs-custom-title::after {
    background: linear-gradient(90deg, #fff, var(--lecture-accent), var(--lecture-primary));
}

.section-custom .img-wrap img,
.img-wrap img {
    border-radius: 8px;
    /*box-shadow: var(--lecture-shadow);*/
}

.story-visual img,
.auth-visual img,
.register-visual img,
.section-cutout img,
.table-mascot {
    filter: drop-shadow(0 18px 26px rgba(31, 47, 56, .18));
}

.story-visual img {
    max-height: 360px;
    object-fit: contain;
    box-shadow: none;
}

.divider {
    width: min(7rem, 28vw);
    height: .25rem;
    margin: 0 auto;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--lecture-accent), var(--lecture-primary), transparent);
}

.exercise_box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-left: 0;
    margin-right: 0;
}

.competition-notice {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1128px;
    margin: 18px auto 30px;
    overflow: hidden;
    color: #594016;
    text-align: left;
    border: 1px solid #e9c66d;
    border-radius: 8px;
    background: #fff9e9;
    box-shadow: 0 8px 22px rgba(90, 66, 21, .09);
}

.competition-notice-status {
    align-self: stretch;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 13px 18px;
    color: #fff;
    font-weight: 800;
    background: #d6922d;
}

.competition-notice-status i {
    margin-right: 7px;
}

.competition-notice-content {
    flex: 1 1 auto;
    padding: 12px 18px;
    font-size: 17px;
    line-height: 1.65;
}

.competition-notice-active {
    color: #175b47;
    border-color: #78baa5;
    background: #eef9f5;
}

.competition-notice-active .competition-notice-status {
    background: #258166;
}

.competition-notice-ended,
.competition-notice-empty {
    color: #596360;
    border-color: #cfd7d4;
    background: #f5f7f6;
}

.competition-notice-ended .competition-notice-status,
.competition-notice-empty .competition-notice-status {
    background: #788481;
}

.exercise_box > [class*="col-"] {
    float: none;
    flex: 1 1 280px;
    max-width: 360px;
    padding-left: 0;
    padding-right: 0;
}

.voucher-box-block {
    position: relative;
    min-height: 285px;
    overflow: hidden;
    padding: 36px 28px;
    border-radius: 8px;
    box-shadow: var(--lecture-shadow);
    isolation: isolate;
    transition: transform .25s ease, box-shadow .25s ease;
    margin-bottom: 30px;
}

.voucher-box-block::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .18) 0 18%, transparent 18% 34%, rgba(255, 255, 255, .14) 34% 48%, transparent 48%),
        radial-gradient(circle at 82% 16%, rgba(255, 255, 255, .34), transparent 24%);
}

.voucher-box-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(42, 57, 64, .2);
}

.voucher-title {
    font-size: 30px;
    font-weight: 800;
    color: #FFF;
}

.voucher-text {
    min-height: 54px;
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.6;
    color: #F5F5F5;
    text-shadow: 0 1px 2px rgba(0,0,0,.7);
}

.button,
.button:focus {
    border-radius: 8px;
    letter-spacing: 0;
    box-shadow: 0 10px 24px rgba(31, 47, 56, .14);
}

.button-quiz,
.button-news,
.member-change-button-b {
    background: var(--lecture-secondary);
    border-color: var(--lecture-secondary);
}

.button-activity {
    background: var(--lecture-alert);
    border-color: var(--lecture-alert);
}

.member-change-button-r,
.member-change-button-r:focus {
    color: #fff;
    background: var(--lecture-alert);
    border-color: var(--lecture-alert);
}

.member-change-button-r:hover,
.member-change-button-r:active,
.member-change-button-r.active {
    color: #fff;
    background: var(--lecture-alert-dark);
    border-color: var(--lecture-alert-dark);
}

.member-change-button-b,
.member-change-button-b:focus {
    color: #fff;
    background: var(--lecture-primary);
    border-color: var(--lecture-primary);
}

.member-change-button-b:hover,
.member-change-button-b:active,
.member-change-button-b.active {
    color: #fff;
    background: #146248;
    border-color: #146248;
}

.button:hover,
.button:active {
    transform: translateY(-2px);
}

.voucher-box-block .button {
    border-color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 24px rgba(31, 47, 56, .18);
}

.voucher-box-block .button:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .38);
}

.button-card-practice {
    color: #c8463f;
}

.button-card-practice:hover {
    background: #c8463f;
}

.button-card-ranking {
    color: #146248;
}

.button-card-ranking:hover {
    background: #146248;
    color: #FFF;
}

.button-card-competition {
    color: #6c421e;
}

.button-card-competition:hover {
    background: #f8b735;
    color: #3f2a10;
}

.button-card-pause {
    color: #6C6C6C;
}

.button-card-pause:hover {
    background: #f8f8f8;
    color: #5A5A5A !important;
}

.box-info-modern {
    height: 100%;
    padding: 24px 20px 28px;
    text-align: center;
    border: 1px solid var(--lecture-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(42, 57, 64, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.box-info-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--lecture-shadow);
}

.box-info-modern-title {
    text-align: center;
}

.box-info-modern-title a {
    color: var(--lecture-ink);
}

.table-custom-responsive {
    overflow: hidden;
    border: 1px solid var(--lecture-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(42, 57, 64, .09);
}

.table-custom {
    margin-bottom: 0;
}

.table-custom thead th {
    color: #fff;
    background: linear-gradient(90deg, var(--lecture-secondary), var(--lecture-primary));
    border-color: transparent;
    font-size: 18px;
}

.table-custom tbody tr {
    transition: background .2s ease, transform .2s ease;
}

.table-custom tbody tr:nth-child(even) {
    background: #fff8e9;
}

.table-custom tbody tr:hover {
    background: #ecf8ef;
}

.text-link,
.text-link-page {
    color: var(--lecture-secondary);
    font-weight: 700;
}

.text-link:hover,
.text-link-page:hover {
    color: var(--lecture-alert);
}

.season-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    text-align: left;
}

.section-cutout {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    min-height: 72px;
    margin: -28px 8px -38px;
    pointer-events: none;
}

.section-cutout img {
    width: min(300px, 46vw);
    height: auto;
}

.season-card {
    overflow: hidden;
    border: 1px solid var(--lecture-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--lecture-shadow);
}

.season-card-header {
    padding: 22px 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--lecture-earth), var(--lecture-alert));
}

.season-card:nth-child(even) .season-card-header {
    background: linear-gradient(135deg, var(--lecture-secondary), var(--lecture-primary));
}

.season-card-header h3 {
    margin: 0;
    color: #fff;
    font-size: 24px;
}

.episode-list {
    margin: 0;
    padding: 12px;
    list-style: none;
}

.episode-list li + li {
    margin-top: 10px;
}

.episode-list a {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    color: var(--lecture-ink);
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fffaf0;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.episode-list a:hover {
    color: var(--lecture-ink);
    border-color: rgba(42, 157, 120, .35);
    background: #eef9ef;
    transform: translateX(4px);
}

.episode-number {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #fff;
    font-weight: 800;
    line-height: 34px;
    text-align: center;
    border-radius: 50%;
    background: var(--lecture-alert);
}

.lecture-title {
    display: inline;
    font-weight: 800;
}

.lecture-topic {
    display: inline;
    margin-top: 0;
    margin-left: .65rem;
    color: var(--lecture-muted);
    font-size: 15px;
}

.lecture-topic::before {
    content: "｜";
    color: rgba(42, 157, 120, .42);
    margin-right: .65rem;
}

.quiz-page,
.competition-page {
    background: linear-gradient(180deg, #fffdf8, #eef8f3);
}

.competition-page {
    background: linear-gradient(180deg, #fff7ed, #eef6fb);
}

.quiz-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 26px;
    padding: 12px 22px;
    color: var(--lecture-ink);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(42, 57, 64, .1);
}

.practice-lecture-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .25rem 0;
    margin-bottom: 1rem; /*.65*/
    padding: 1rem 1.25rem;
    color: var(--lecture-ink);
    text-align: left;
    border: 1px solid rgba(42, 157, 120, .16);
    border-radius: 8px;
    background: #fffaf0;
}

.practice-lecture-heading .lecture-title {
    font-size: 1.25rem;
}

.practice-lecture-heading .lecture-topic {
    font-size: 1rem;
}

.quiz-session-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.quiz-session-content {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    min-width: 0;
    gap: .3rem 0;
}

.quiz-session-date {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    flex: 0 0 auto;
    color: var(--lecture-muted);
    font-size: .92rem;
    font-weight: 700;
    white-space: nowrap;
}

.quiz-session-date i {
    color: var(--lecture-primary);
}

.competition-session-heading {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    color: var(--lecture-ink);
    border: 1px solid rgba(49, 115, 165, .16);
    border-radius: 8px;
    background: #fffaf0;
}

.competition-session-heading .quiz-session-content {
	align-items: baseline;
}

.competition-session-heading .quiz-session-date {
	margin-left: .65rem;
}

.competition-session-heading .quiz-session-date::before {
	content: "｜";
	margin-right: .2rem;
	color: rgba(49, 115, 165, .42);
}

.competition-session-title {
    color: var(--lecture-ink);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.45;
}

.competition-timer-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 205px;
    padding: .7rem .9rem;
    border: 1px solid rgba(214, 69, 65, .2);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(83, 51, 46, .08);
}

.competition-timer-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--lecture-muted);
    font-size: .86rem;
    font-weight: 700;
    white-space: nowrap;
}

.competition-timer-label i,
#competitionTimer {
    color: #D64541;
}

#competitionTimer {
    min-width: 4.5rem;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .05em;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
    .quiz-session-heading {
        align-items: stretch;
        flex-direction: column;
        gap: .75rem;
    }

    .practice-lecture-heading .quiz-session-date {
        align-self: flex-start;
    }

    .competition-timer-box {
        width: 100%;
        min-width: 0;
    }
}

.radio-question-text.question {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 28px;
    padding: 26px;
    color: var(--lecture-ink);
    border: 1px solid var(--lecture-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--lecture-shadow);
}

.radio-question-text.question.is-incomplete {
    border-color: rgba(214, 69, 65, .72);
    box-shadow: 0 0 0 3px rgba(214, 69, 65, .1), var(--lecture-shadow);
}

.radio-question-text.question p {
    margin: 18px 0 20px;
    color: var(--lecture-ink);
    font-size: 21px;
    line-height: 1.65;
}

.question hr {
    display: none;
}

.progress-linear {
    padding: 16px 18px;
    border-radius: 8px;
    background: #fff8e9;
}

.progress-linear-header {
    align-items: flex-start;
    transform: none;
    margin: 0;
}

.progress-linear-header h4 {
    margin: 0;
    color: var(--lecture-secondary);
    font-size: 22px;
    font-weight: 800;
}

.progress-linear-counter {
    color: var(--lecture-alert);
}

.progress-linear-counter::before {
    content: "本題正確率 ";
    color: var(--lecture-muted);
    font-size: 14px;
    font-weight: 600;
}

.progress-linear-body {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #eadfca;
}

.progress-linear-bar {
    border-radius: inherit;
    background: linear-gradient(90deg, var(--lecture-accent), var(--lecture-primary));
}

.radio-Answer-text {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quiz-page .question,
.quiz-page form [type="submit"] {
    scroll-margin-top: 110px;
}

.radio-Answer-text li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid #e9ddc8;
    border-radius: 8px;
    background: #fffdf8;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.radio-Answer-text li:hover {
    border-color: rgba(42, 157, 120, .48);
    background: #f1fbf1;
    transform: translateY(-1px);
}

.radio-Answer-text li:has(input:checked),
.radio-Answer-text li.is-selected {
    border-color: var(--lecture-primary);
    background: #e7f7e9;
    box-shadow: 0 10px 24px rgba(42, 157, 120, .16);
}

.radio-Answer-text input[type="radio"] {
    margin-top: 6px;
    accent-color: var(--lecture-primary);
}

.radio-Answer-text label {
    flex: 1;
    margin: 0;
    color: var(--lecture-ink);
    line-height: 1.65;
    cursor: pointer;
}

.radio-Answer-text .Answer-X-text {
    color: #8a9297;
}

.radio-Answer-text li:not(:has(input)) label:not(.Answer-X-text):not(.Answer-XX-text),
.Answer-O-text {
    display: block;
    padding: 10px 12px;
    color: #146248;
    border-radius: 8px;
    background: #e7f7e9;
    font-weight: 800;
}

.Answer-XX-text {
    display: block;
    padding: 10px 12px;
    color: #a23b36;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    border-radius: 8px;
    background: #fff0ed;
    font-weight: 800;
}

.radio-Answer-text li:has(.Answer-XX-text) {
    border-color: rgba(230, 95, 85, .38);
    background: #fff7f4;
}

.radio-Answer-text li:has(.Answer-O-text),
.radio-Answer-text li:not(:has(input)):has(label:not(.Answer-X-text):not(.Answer-XX-text)) {
    border-color: rgba(42, 157, 120, .38);
    background: #f3fbf1;
}

.auth-section {
    background: linear-gradient(135deg, #fffaf0 0%, #eef8f3 100%);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    gap: 34px;
    align-items: stretch;
}

.auth-visual {
    min-height: 420px;
    overflow: hidden;
    border-radius: 8px;
    background: radial-gradient(circle at 52% 42%, rgba(255, 255, 255, .85), rgba(255, 250, 240, .18) 62%, transparent 63%);
}

.auth-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.register-section {
    overflow: hidden;
}

.register-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 960px;
    margin: 0 auto;
}

.register-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-bottom: -42px;
    pointer-events: none;
}

.register-visual img {
    width: min(390px, 72vw);
    height: auto;
}

.register-card {
    position: relative;
    z-index: 1;
    padding-top: 64px;
}

.register-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.register-form .form-wrap {
    margin-bottom: 0;
}

.register-form .form-wrap + .form-wrap {
    margin-top: 0;
}

.register-form .button,
.register-form .text-decoration-lines {
    grid-column: 1 / -1;
}

.auth-card {
    padding: 34px;
    text-align: left;
    border: 1px solid var(--lecture-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--lecture-shadow);
}

.auth-card h3 {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--lecture-ink);
}

.auth-card .form-wrap {
    margin-bottom: 18px;
}

.auth-card .form-label {
    position: static;
    display: block;
    margin-bottom: 8px;
    padding: 0;
    color: var(--lecture-ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    opacity: 1 !important;
    pointer-events: auto;
    transform: none;
}

.auth-card .form-input {
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid #dfd2bd;
    border-radius: 8px;
    background: #fffdf8;
}

.auth-card .form-input:focus {
    border-color: var(--lecture-primary);
    box-shadow: 0 0 0 4px rgba(42, 157, 120, .14);
}

.auth-card .form-static-value {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 0;
    font-size: 18px;
}

.auth-card .button-block {
    width: 100%;
}

.auth-card span.error {
    display: block;
    margin-top: 6px;
    color: #c0392b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.auth-card .form-input.error {
    border-color: #c0392b;
    background-color: #fff7f6;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .1);
}

.auth-card [type="submit"].is-submitting {
    cursor: wait;
    opacity: .72;
}

.member-form-growl {
    position: fixed;
    top: 82px;
    right: 20px;
    z-index: 12000;
    display: none;
    max-width: min(420px, calc(100vw - 40px));
    padding: 13px 20px 13px 48px;
    border-radius: 8px;
    color: #fff;
    background-color: rgba(51, 51, 51, .94);
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.member-form-growl.is-success {
    background-image: url('../icon_success.png');
}

.member-form-growl.is-error {
    background-image: url('../icon_error.png');
}

.radio-text {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
    font-size: 16px;
}

.radio-text input {
    position: absolute;
    opacity: 0;
}

.radio-text label {
    padding: 10px 16px;
    border: 1px solid #dfd2bd;
    border-radius: 999px;
    background: #fffdf8;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.radio-text label:hover {
    color: #fff;
    border-color: var(--lecture-alert);
    background: var(--lecture-alert);
}

.radio-text input:checked + label,
.auth-card .radio-text input:checked + label,
.form-group-panel .radio-text input:checked + label {
    color: #fff;
    border-color: var(--lecture-primary);
    background: var(--lecture-primary);
    box-shadow: 0 .45rem 1rem rgba(42, 157, 120, .22);
}

.member-profile {
    max-width: 860px;
    margin: 0 auto;
}

.member-profile .table-custom-responsive {
    text-align: left;
}

.table-stage {
    position: relative;
    margin-top: 16px;
}

.table-stage .table-custom-responsive {
    position: relative;
    z-index: 1;
}

.table-mascot {
    position: absolute;
    z-index: 2;
    right: 18px;
    top: -112px;
    width: min(260px, 34vw);
    height: auto;
    pointer-events: none;
}

.table-stage-profile .table-mascot {
    top: -130px;
    width: min(230px, 32vw);
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 34px;
}

.table-pagination {
    margin-top: 34px;
    text-align: center;
}

/* Customize::navPagination() output */
.table-pagination > .page {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    min-height: 0;
    margin-bottom: 1.1rem;
    overflow: visible;
    opacity: 1;
    background: none;
}

.table-pagination > .page > a,
.table-pagination > .page > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: .45rem .75rem;
    color: var(--lecture-secondary);
    border: 1px solid rgba(35, 116, 171, .2);
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 .3rem .8rem rgba(31, 47, 56, .08);
}

.table-pagination > .page > a:hover,
.table-pagination > .page > span.active {
    color: #fff;
    border-color: var(--lecture-primary);
    background: linear-gradient(135deg, var(--lecture-secondary), var(--lecture-primary));
}

.pagination-custom > li > a,
.pagination-custom > li > span {
    border-radius: 8px;
}

.pagination-custom {
    margin-bottom: 18px;
}

.answer-note {
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    color: var(--lecture-ink);
    text-align: left;
    border-left: .3rem solid var(--lecture-accent);
    border-radius: .5rem;
    background: #fff8e9;
}

@media (max-width: 991px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 260px;
    }

    .table-mascot {
        position: relative;
        right: auto;
        top: auto;
        display: block;
        width: min(260px, 70vw);
        margin: -20px auto 12px;
    }
}

@media (max-width: 768px) {
    .exercise_box {
        flex-direction: column;
        align-items: stretch;
    }

    .exercise_box > [class*="col-"] {
        max-width: none;
    }

    .radio-question-text.question {
        padding: 20px;
    }

    .radio-question-text.question p {
        font-size: 18px;
    }

    .register-form {
        grid-template-columns: 1fr;
    }

    .register-card {
        padding: 56px 22px 28px;
    }
}

/* Layout polish pass -------------------------------------------------- */
html {
    font-size: 16px;
}

body {
    font-size: 1rem;
    line-height: 1.75;
}

h1,
.h1 {
    font-size: clamp(2.25rem, 4vw, 3.75rem);
}

h2,
.title,
.breadcrumbs-custom-title {
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    line-height: 1.18;
}

h3 {
    font-size: clamp(1.45rem, 2.1vw, 2rem);
    line-height: 1.28;
}

h4 {
    font-size: clamp(1.15rem, 1.6vw, 1.5rem);
    line-height: 1.35;
}

.subtitle-2,
.introduction_text,
.table-custom,
.form-input,
.form-label {
    font-size: 1.2rem;
}

.introduction_text a { color: var(--lecture-secondary); }
.introduction_text a:hover { color: var(--lecture-alert); }

.section,
.section-md {
    padding-top: clamp(1rem, 1vw, 1rem);
    padding-bottom: clamp(1rem, 1vw, 1rem);
}

.section-lg {
    padding-top: clamp(3.5rem, 7vw, 6rem);
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.breadcrumbs-custom {
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.title::after,
.breadcrumbs-custom-title::after,
.auth-card h3::after,
.register-card h3::after {
    height: .3125rem;
    width: 5.125rem;
}

.auth-card h3::after,
.register-card h3::after {
    content: "";
    display: block;
    margin-top: .875rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lecture-accent), var(--lecture-alert), var(--lecture-primary), var(--lecture-secondary));
}

.auth-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(135deg, #fffaf0 0%, #eef8f3 100%);
}

.auth-hero {
    min-height: clamp(34rem, 72vh, 44rem);
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: rgba(31, 47, 56, .38);
}

.auth-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(18, 32, 37, .7), rgba(18, 32, 37, .2) 58%, rgba(18, 32, 37, .48)),
        radial-gradient(circle at 78% 20%, rgba(248, 183, 53, .28), transparent 28%);
}

.auth-bg-login {
    background-image: none;
}

.auth-bg-forgot {
    background-image: none;
}

.auth-bg-password {
    background-image: none;
}

.auth-bg-register,
.auth-bg-profile {
    background: linear-gradient(135deg, rgba(255, 250, 240, .72), rgba(238, 248, 243, .64));
}

.auth-hero-shell {
    display: flex;
    justify-content: flex-end;
}

.auth-hero .auth-card {
    width: min(100%, 28rem);
    padding: 2rem;
    border-color: rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .22);
    backdrop-filter: blur(14px);
}

.auth-hero .auth-card h3 {
    margin-bottom: 1.15rem;
}

.auth-hero .auth-card form {
    margin-top: 0;
}

.auth-hero .auth-card .form-wrap {
    margin-bottom: .9rem;
}

.auth-hero .auth-card .form-wrap + .form-wrap {
    margin-top: 0;
}

.auth-hero .auth-card .form-input {
    min-height: 3rem;
}

.auth-hero .auth-card .button {
    margin-top: .65rem;
    margin-bottom: 0;
    padding-top: .85rem;
    padding-bottom: .85rem;
}

.auth-hero .text-decoration-lines {
    margin-top: 1rem;
}

.auth-card {
    border-radius: .75rem;
}

.auth-card .form-input {
    font-size: 1rem;
}

.auth-card .button {
    margin-top: 1rem;
}

.register-panel {
    max-width: 64rem;
}

.register-card {
    overflow: visible;
    padding: clamp(3.75rem, 7vw, 5rem) clamp(1.5rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
}

.register-visual {
    justify-content: flex-end;
    margin: 0 1.25rem -5.75rem 0;
}

.register-visual img {
    width: min(20rem, 44vw);
}

.register-form {
    align-items: start;
}

.register-form .text-decoration-lines {
    margin-top: 0;
}

.form-wrap {
    position: relative;
}

.auth-card .form-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2rem;
    width: .25rem;
    height: 2.625rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--lecture-accent), var(--lecture-primary));
}

.auth-card .form-input {
    padding-left: 1.25rem;
}

.table-custom-responsive {
    border-radius: .75rem;
}

.table-custom thead th {
    font-size: 1rem;
}

.table-custom td,
.table-custom th {
    padding: .95rem 1rem;
}

.table-actions {
    margin-top: 2.25rem;
}

.table-pagination {
    margin-top: 2.25rem;
}

.section-cutout {
    margin-top: -2.5rem;
    margin-bottom: -3.75rem;
}

.section-cutout img {
    width: min(18rem, 42vw);
}

.table-mascot {
    top: -7rem;
    width: min(16rem, 32vw);
}

.box-info-modern-figure img {
    max-height: 9rem;
    object-fit: contain;
}

@media (max-width: 991px) {
    .auth-hero {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .auth-hero-shell {
        justify-content: center;
    }

    .auth-hero .auth-card {
        width: min(100%, 34rem);
    }

    .register-visual {
        justify-content: center;
        margin-right: 0;
    }

    .register-visual img {
        width: min(18rem, 68vw);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section,
    .section-md,
    .section-lg {
        padding-top: 2.75rem;
        padding-bottom: 2.75rem;
    }

    .breadcrumbs-custom {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }

    .auth-hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .auth-hero .auth-card,
    .register-card {
        border-radius: .75rem;
    }

    .register-visual {
        margin-bottom: -4.5rem;
    }

    .table-custom td,
    .table-custom th {
        padding: .85rem .8rem;
    }

    .table-actions,
    .table-pagination {
        margin-top: 1.75rem;
    }

    .section-cutout {
        justify-content: center;
        margin-top: -1.5rem;
        margin-bottom: -2.25rem;
    }
}

@media (max-width: 575px) {
    .auth-card {
        padding: 1.5rem;
    }

    .auth-card .form-wrap::before {
        top: 1.9rem;
        height: 2.5rem;
    }

    .register-card {
        padding-top: 4.75rem;
    }

    .voucher-title {
        font-size: 1.55rem;
    }

    .voucher-text {
        font-size: 1rem;
    }
}

/* Compact header/banner correction ---------------------------------- */
.page-header,
header.section,
.rd-navbar-wrap,
.rd-navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.rd-navbar-classic.rd-navbar-static .rd-navbar-main {
    min-height: 5.25rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
}

.rd-navbar-classic.rd-navbar-static .rd-navbar-brand img,
.rd-navbar-brand img {
    max-height: 3.25rem;
    width: auto;
}

.brand {
    gap: .75rem;
    font-size: 1.35rem;
    line-height: 1.2;
}

.rd-navbar-static .rd-nav-link {
    padding-top: .65rem;
    padding-bottom: .65rem;
    color: #fff;
    font-size: 1.05rem;
}

.rd-navbar-static .rd-nav-link:hover,
.rd-navbar-static .rd-nav-item.active .rd-nav-link {
    color: var(--lecture-accent);
}

.rd-navbar-fixed .rd-navbar-panel {
    height: 4.25rem;
    background: #1f2f38;
}

.rd-navbar-fixed .rd-navbar-brand img {
    max-height: 2.75rem;
}

.rd-navbar-fixed .brand {
    color: #fff;
    font-size: 1.05rem;
}

.rd-navbar-fixed .rd-navbar-nav-wrap {
    background: #fffaf0;
    box-shadow: 0 1rem 2.5rem rgba(31, 47, 56, .16);
}

.rd-navbar-fixed .rd-nav-link {
    color: var(--lecture-ink);
    border-left: .25rem solid transparent;
}

.rd-navbar-fixed .rd-nav-item:hover .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.focus .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.active .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.opened .rd-nav-link {
    color: #146248;
    background: #e7f7e9;
    border-left-color: var(--lecture-primary);
}

.rd-navbar-fixed .rd-nav-item span {
    color: rgba(31, 47, 56, .35) !important;
}

.bg-secondary,
.breadcrumbs-custom.bg-secondary {
    background: linear-gradient(135deg, rgba(42, 132, 122, .9), rgba(245, 171, 58, .58));
    background-size: 100%;
}

.breadcrumbs-custom {
    padding-top: clamp(1.75rem, 3vw, 3rem);
    padding-bottom: clamp(1.75rem, 3vw, 3rem);
}

.breadcrumbs-custom-title::after {
    margin-top: .75rem;
}

.auth-hero {
    min-height: clamp(20rem, 40vh, 28rem);
}

.auth-hero.section-md {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.auth-hero::before {
    background: rgba(31, 47, 56, .2);
}

.auth-hero::after {
    background:
        linear-gradient(90deg, rgba(31, 47, 56, .5), rgba(42, 157, 120, .12) 58%, rgba(141, 90, 43, .3)),
        radial-gradient(circle at 78% 20%, rgba(248, 183, 53, .32), transparent 28%);
}

.auth-card .form-wrap::before {
    display: none;
}

.auth-card .form-input {
    padding-left: 1rem;
}

.register-card {
    padding-top: clamp(2.75rem, 5vw, 3.5rem);
}

.register-visual {
    margin-bottom: -4.25rem;
}

.register-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
}

.form-group-panel {
    padding: 1.25rem;
    border: 1px solid rgba(230, 220, 201, .9);
    border-radius: .75rem;
    background: rgba(255, 250, 240, .66);
}

.form-group-panel h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--lecture-secondary);
    font-weight: 800;
}

.form-group-panel h4::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: .25rem;
    margin-top: .5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lecture-accent), var(--lecture-primary));
}

.form-group-panel .form-wrap:last-child {
    margin-bottom: 0;
}

.register-form > .button,
.register-form > .text-decoration-lines {
    grid-column: 1 / -1;
}

.table-mascot {
    top: auto;
    bottom: calc(100% - .125rem);
    width: min(15rem, 30vw);
}

.table-stage-profile .table-mascot {
    top: auto;
    bottom: calc(100% - .125rem);
    width: min(13.5rem, 30vw);
}

@media (max-width: 991px) {
    .rd-navbar-fixed .rd-navbar-nav-wrap {
        top: 4.25rem;
    }

    .breadcrumbs-custom {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }

    .auth-hero {
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .table-mascot,
    .table-stage-profile .table-mascot {
        position: relative;
        right: auto;
        bottom: auto;
        display: block;
        width: min(13rem, 52vw);
        margin: -1.75rem auto -1.95rem;
    }
}

@media (max-width: 768px) {
    .breadcrumbs-custom {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .auth-hero {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }

    .register-form {
        grid-template-columns: 1fr;
    }

    .form-group-panel {
        padding: 1rem;
    }
}

@media (max-width: 575px) {
    .rd-navbar-fixed .brand {
        font-size: .95rem;
    }

    .rd-navbar-fixed .rd-navbar-brand img {
        max-height: 2.35rem;
    }

    .breadcrumbs-custom-title::after {
        margin-top: .625rem;
    }

    .auth-hero {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* Final polish overrides --------------------------------------------- */
.rd-navbar-static .rd-nav-link {
    border-radius: 3px;
    padding: 10px 15px;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rd-navbar-static .rd-nav-link:hover,
.rd-navbar-static .rd-nav-item.active .rd-nav-link {
    color: #fff;
    background: rgba(249, 78, 41, .7);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 .45rem 1rem rgba(0, 0, 0, .12);
}

.rd-navbar-fixed .rd-nav-item:hover .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.focus .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.active .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.opened .rd-nav-link {
    color: #146248;
    background: linear-gradient(90deg, #e7f7e9, #fff6df);
    border-left-color: var(--lecture-primary);
}

.breadcrumbs-custom .breadcrumbs-custom-title::after,
.breadcrumbs-custom-title::after {
    background: linear-gradient(90deg, rgba(35, 116, 171, .92), rgba(230, 95, 85, .96));
    box-shadow: 0 .35rem 1rem rgba(31, 47, 56, .18);
}

.section-heading {
    margin-bottom: 1rem;
}

.section-heading h3 {
    margin-bottom: .55rem;
}

.section-heading .divider {
    margin-bottom: .75rem;
}

.section-heading + .container .table-stage {
    margin-top: 0;
}

.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
}

.captcha-row img {
    width: 7.5rem;
    max-width: 34vw;
    height: 3rem;
    object-fit: contain;
    /*
    padding: .35rem .5rem;
    border: 1px solid #dfd2bd;
    border-radius: .5rem;
    */
    background: #fffdf8;
}

/* 驗證訊息固定在整列下方，避免插入後把驗證碼圖片擠到下一列。 */
.captcha-row > span.error {
    order: 1;
    grid-column: 1 / -1;
    margin-top: -.35rem;
}

.score-section {
    background:
        radial-gradient(circle at 14% 18%, rgba(248, 183, 53, .16), transparent 30%),
        linear-gradient(180deg, #fffdf8, #eef8f3);
}

.score-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 28rem);
    gap: 2rem;
    align-items: center;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px solid var(--lecture-line);
    border-radius: .875rem;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--lecture-shadow);
}

.score-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(248, 183, 53, .16), transparent 35%, rgba(42, 157, 120, .13));
    pointer-events: none;
}

.score-content {
    position: relative;
    z-index: 1;
}

.score-kicker {
    display: inline-flex;
    margin-bottom: .75rem;
    padding: .35rem .8rem;
    color: #146248;
    font-weight: 800;
    border-radius: 999px;
    background: #e7f7e9;
}

.score-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.score-content h3::after {
    content: "";
    display: block;
    width: 4.5rem;
    height: .25rem;
    margin-top: .75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lecture-accent), var(--lecture-primary));
}

.score-content p {
    max-width: 42rem;
    margin-bottom: .75rem;
    font-size: 1.08rem;
    line-height: 1.75;
}

.score-content strong {
    color: #146248;
}

.score-result {
    display: inline-flex;
    align-items: baseline;
    gap: .45rem;
    margin: .25rem 0 1rem;
    color: var(--lecture-alert);
}

.score-result strong {
    color: inherit;
    font-size: clamp(4rem, 9vw, 6.5rem);
    line-height: .9;
}

.score-result span {
    font-size: 1.5rem;
    font-weight: 800;
}

.score-mascot {
    position: relative;
    z-index: 1;
    justify-self: end;
    width: min(26rem, 38vw);
    filter: drop-shadow(0 1.25rem 1.5rem rgba(31, 47, 56, .18));
}

.score-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .875rem;
    margin-top: 1.5rem;
}

@media (max-width: 991px) {
    .score-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .score-content h3::after {
        margin-left: auto;
        margin-right: auto;
    }

    .score-mascot {
        order: -1;
        justify-self: center;
        width: min(20rem, 72vw);
        margin-bottom: -1.5rem;
    }

    .score-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .captcha-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .captcha-row img {
        width: 7rem;
        max-width: 30vw;
    }
}

/* Final navigation and mobile table refinement ---------------------- */
.rd-navbar-nav span {
    display: none !important;
}

.rd-navbar-static .rd-navbar-nav {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.rd-navbar-static .rd-nav-item + .rd-nav-item {
    margin-left: 0 !important;
}

.rd-navbar-static .rd-nav-link {
    position: relative;
    min-width: auto;
    padding: .48rem .78rem !important;
    color: rgba(255, 255, 255, .94);
    font-size: .98rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rd-navbar-static .rd-nav-link:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(42, 157, 120, .76), rgba(248, 183, 53, .56));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .28),
        0 .5rem 1rem rgba(19, 75, 61, .18);
}
.rd-navbar-static .rd-nav-item.focus .rd-nav-link,
.rd-navbar-static .rd-nav-item.active .rd-nav-link,
.rd-navbar-static .rd-nav-item.opened .rd-nav-link {
    color: #fff;
    background: linear-gradient(135deg, #ff8a3d 0%, #ff5e57 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.25),
        0 .5rem 1rem rgba(255,94,87,.35);
}

.rd-navbar-static .rd-navbar-brand {
    margin-right: 1rem;
}

.rd-navbar-fixed .rd-navbar-nav-wrap {
    background: #fffaf0;
}

.rd-navbar-fixed .rd-navbar-nav {
    padding: .65rem 0 1rem;
}

.rd-navbar-fixed .rd-nav-item {
    margin: .18rem .75rem !important;
}

.rd-navbar-fixed .rd-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: .75rem 1rem !important;
    color: #174d3c;
    font-weight: 800;
    text-align: center;
    border-left: 0 !important;
    border-radius: .85rem;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(42, 157, 120, .1);
}

.rd-navbar-fixed .rd-nav-item:hover .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.focus .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.active .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.opened .rd-nav-link {
    color: #174d3c;
    background: linear-gradient(135deg, #e8f7e9, #fff2cf);
    box-shadow: inset 0 0 0 1px rgba(42, 157, 120, .25), 0 .35rem .8rem rgba(31, 47, 56, .08);
}

.table-mobile-cards td[data-label]::before,
.table-mobile-keyvalue td[data-label]::before {
    display: none;
}

@media (max-width: 991px) {
    .rd-navbar-fixed .rd-navbar-panel {
        min-height: 4rem;
    }
}

@media (max-width: 768px) {
    .table-custom-responsive {
        overflow: visible;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .table-mobile-cards,
    .table-mobile-cards thead,
    .table-mobile-cards tbody,
    .table-mobile-cards tr,
    .table-mobile-cards td,
    .table-mobile-keyvalue,
    .table-mobile-keyvalue tbody,
    .table-mobile-keyvalue tr,
    .table-mobile-keyvalue td {
        display: block;
        width: 100%;
    }

    .table-mobile-cards thead,
    .table-mobile-keyvalue .mobile-label-cell {
        display: none;
    }

    .table-mobile-cards tr,
    .table-mobile-keyvalue tr {
        overflow: hidden;
        margin: 0 0 .85rem;
        padding: .85rem .95rem;
        border: 1px solid var(--lecture-line);
        border-radius: .85rem;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 .65rem 1.2rem rgba(31, 47, 56, .08);
    }

    .table-mobile-cards td,
    .table-mobile-keyvalue td[data-label] {
        display: grid;
        grid-template-columns: minmax(6.25rem, 38%) minmax(0, 1fr);
        gap: .75rem;
        align-items: start;
        min-height: auto;
        padding: .55rem 0 !important;
        color: #31433d;
        text-align: left !important;
        border: 0 !important;
        border-bottom: 1px dashed rgba(42, 157, 120, .18) !important;
        background: transparent !important;
        word-break: break-word;
    }

    .table-mobile-cards td:last-child,
    .table-mobile-keyvalue td[data-label]:last-child {
        border-bottom: 0 !important;
    }

    .table-mobile-cards td[data-label]::before,
    .table-mobile-keyvalue td[data-label]::before {
        content: attr(data-label);
        display: block;
        color: #146248;
        font-weight: 900;
        line-height: 1.5;
    }

    .table-mobile-cards .text-link,
    .table-mobile-cards .text-link-page {
        justify-self: start;
        white-space: normal;
    }

    .table-stage .table-custom-responsive,
    .member-profile .table-custom-responsive {
        margin-top: 0;
    }
}

@media (max-width: 420px) {
    .captcha-row {
        gap: .5rem;
    }

    .captcha-row img {
        width: 6rem;
        max-width: 28vw;
    }

    .table-mobile-cards td,
    .table-mobile-keyvalue td[data-label] {
        grid-template-columns: minmax(5.25rem, 36%) minmax(0, 1fr);
        gap: .55rem;
        font-size: .94rem;
    }
}

/* Final fixes: radio states, tablet cards, table mascots ------------- */
.radio-text input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}

.radio-text label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.radio-text input[type="radio"]:checked + label,
.radio-text input[type="radio"]:checked + .radio-custom-dummy + label,
.radio-text label.is-checked,
.auth-card .radio-text input[type="radio"]:checked + label,
.auth-card .radio-text input[type="radio"]:checked + .radio-custom-dummy + label,
.auth-card .radio-text label.is-checked,
.form-group-panel .radio-text input[type="radio"]:checked + label,
.form-group-panel .radio-text input[type="radio"]:checked + .radio-custom-dummy + label,
.form-group-panel .radio-text label.is-checked {
    color: #fff !important;
    border-color: var(--lecture-alert) !important;
    background: var(--lecture-alert) !important;
    box-shadow: 0 .45rem 1rem rgba(230, 95, 85, .24) !important;
}

.table-stage-ranking {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.table-stage-ranking .table-mascot {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    align-self: flex-end;
    width: min(13.5rem, 28vw);
    margin: -1.25rem 1.25rem -1px 0;
}

.table-stage-ranking .table-custom-responsive {
    width: 100%;
}

.mobile-card-heading {
    display: none !important;
}

@media (max-width: 991px) {
    .table-custom-responsive {
        overflow: visible !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .table-custom-responsive > .table-custom,
    .table-custom-responsive > .table-custom thead,
    .table-custom-responsive > .table-custom tbody,
    .table-custom-responsive > .table-custom tr,
    .table-custom-responsive > .table-custom td,
    .table-custom-responsive > .table-custom th,
    .table-mobile-cards,
    .table-mobile-cards thead,
    .table-mobile-cards tbody,
    .table-mobile-cards tr,
    .table-mobile-cards td,
    .table-mobile-keyvalue,
    .table-mobile-keyvalue tbody,
    .table-mobile-keyvalue tr,
    .table-mobile-keyvalue td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .table-custom-responsive > .table-custom thead,
    .table-mobile-cards thead,
    .table-mobile-keyvalue .mobile-label-cell {
        display: none !important;
    }

    .table-custom-responsive > .table-custom tr,
    .table-mobile-cards tr,
    .table-mobile-keyvalue tr {
        overflow: hidden;
        margin: 0 0 .85rem !important;
        padding: .85rem .95rem !important;
        border: 1px solid var(--lecture-line) !important;
        border-radius: .85rem !important;
        background: rgba(255, 255, 255, .96) !important;
        box-shadow: 0 .65rem 1.2rem rgba(31, 47, 56, .08) !important;
    }

    .table-custom-responsive > .table-custom td[data-label],
    .table-mobile-cards td[data-label],
    .table-mobile-keyvalue td[data-label] {
        display: grid !important;
        grid-template-columns: minmax(6.25rem, 38%) minmax(0, 1fr) !important;
        gap: .75rem;
        align-items: start;
        min-height: auto !important;
        padding: .55rem 0 !important;
        color: #31433d;
        text-align: left !important;
        border: 0 !important;
        border-bottom: 1px dashed rgba(42, 157, 120, .18) !important;
        background: transparent !important;
        word-break: break-word;
    }

    .table-custom-responsive > .table-custom td[data-label]:last-child,
    .table-mobile-cards td[data-label]:last-child,
    .table-mobile-keyvalue td[data-label]:last-child {
        border-bottom: 0 !important;
    }

    .table-custom-responsive > .table-custom td[data-label]::before,
    .table-mobile-cards td[data-label]::before,
    .table-mobile-keyvalue td[data-label]::before {
        content: attr(data-label);
        display: block !important;
        color: #146248;
        font-weight: 900;
        line-height: 1.5;
    }

    .table-mobile-keyvalue .mobile-label-cell,
    .table-custom-responsive > .table-mobile-keyvalue .mobile-label-cell {
        display: none !important;
    }

    .table-stage .table-mascot,
    .table-stage-profile .table-mascot,
    .table-stage-ranking .table-mascot {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        display: block;
        align-self: flex-end;
        width: min(12.5rem, 48vw) !important;
        margin: -1rem 1rem -1px auto !important;
    }

    .table-stage .table-mascot + .table-custom-responsive,
    .table-stage-ranking .table-mascot + .table-custom-responsive,
    .table-stage-profile .table-mascot + .table-custom-responsive {
        margin-top: 0 !important;
    }
}

@media (max-width: 420px) {
    .table-custom-responsive > .table-custom td[data-label],
    .table-mobile-cards td[data-label],
    .table-mobile-keyvalue td[data-label] {
        grid-template-columns: minmax(5.25rem, 36%) minmax(0, 1fr) !important;
        gap: .55rem;
        font-size: .94rem;
    }

    .table-stage .table-mascot,
    .table-stage-profile .table-mascot,
    .table-stage-ranking .table-mascot {
        width: min(11rem, 54vw) !important;
        margin: -.65rem .75rem -1px auto !important;
    }
}

/* Inner banner pattern ------------------------------------------------ */
.breadcrumbs-custom.bg-secondary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(40, 143, 119, .95), rgba(236, 147, 57, .82)) !important;
}

.breadcrumbs-custom.bg-secondary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: none;
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 100%;
    opacity: .78;
    mix-blend-mode: multiply;
    filter: contrast(1.28) saturate(1.05);
}

/* 2026-07-11 navbar + member form refinement ------------------------ */
.rd-navbar-classic .rd-navbar-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.rd-navbar-static .rd-navbar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rd-navbar-static .rd-navbar-main-element {
    flex: 1 1 auto;
    min-width: 0;
}

.rd-navbar-static .rd-navbar-nav-wrap {
    display: flex;
    justify-content: flex-end;
}

.rd-navbar-static .rd-navbar-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: .45rem;
}

.rd-navbar-static .rd-nav-link i {
    margin-right: .38rem;
    font-size: .98em;
}

.rd-navbar-fixed .rd-navbar-main,
.rd-navbar-fixed .rd-navbar-panel {
    display: flex;
    align-items: center;
    width: 100%;
}

.rd-navbar-fixed .rd-navbar-panel {
    justify-content: space-between;
    padding: .55rem 1rem;
}

.rd-navbar-fixed .rd-navbar-brand {
    min-width: 0;
    margin-right: 1rem;
}

.rd-navbar-fixed .brand {
    display: inline-flex;
    align-items: flex-end;
    max-width: calc(100vw - 6rem);
}

.rd-navbar-fixed .brand-text {
    min-width: 0;
}

.rd-navbar-fixed .brand-name {
    white-space: nowrap;
}

.rd-navbar-fixed .brand-badge {
    white-space: nowrap;
}

.rd-navbar-fixed .rd-navbar-toggle {
    position: relative;
    z-index: 1201;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.rd-navbar-fixed .rd-navbar-toggle:hover,
.rd-navbar-fixed .rd-navbar-toggle.active {
    background: rgba(248,183,53,.24);
}

.rd-navbar-fixed .rd-navbar-nav-wrap {
    position: fixed;
    top: 4.25rem !important;
    right: 0 !important;
    left: auto !important;
    z-index: 1200;
    width: min(21rem, calc(100vw - 2rem));
    max-width: none;
    height: calc(100vh - 4.25rem);
    overflow-y: auto;
    padding: .85rem .75rem 1.25rem;
    border-left: 1px solid rgba(42,157,120,.16);
    border-radius: 0 0 0 1.1rem;
    background:
        linear-gradient(180deg, rgba(255,250,240,.98), rgba(239,248,241,.98));
    box-shadow: -1rem 1.25rem 2.5rem rgba(31,47,56,.18);
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .24s ease, visibility .24s ease;
}

.rd-navbar-fixed .rd-navbar-nav-wrap.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.rd-navbar-fixed .rd-navbar-nav {
    display: grid;
    gap: .45rem;
    padding: 0;
}

.rd-navbar-fixed .rd-nav-item {
    margin: 0 !important;
}

.rd-navbar-fixed .rd-nav-link {
    justify-content: flex-start;
    gap: .65rem;
    min-height: 3.05rem;
    padding: .75rem .95rem !important;
    font-size: .98rem;
    line-height: 1.35;
    text-align: left;
    border-radius: .85rem;
}

.rd-navbar-fixed .rd-nav-link i {
    flex: 0 0 1.4rem;
    width: 1.4rem;
    margin: 0;
    color: var(--lecture-primary);
    font-size: 1rem;
    text-align: center;
}

.rd-navbar-fixed .rd-nav-item:hover .rd-nav-link i,
.rd-navbar-fixed .rd-nav-item.active .rd-nav-link i,
.rd-navbar-fixed .rd-nav-item.opened .rd-nav-link i {
    color: var(--lecture-alert);
}

html.navbar-open,
body.navbar-open {
    overflow: hidden;
}

.member-change-button-r,
.member-change-button-b,
button.member-change-button-r,
button.member-change-button-b {
    cursor: pointer;
}

button.button-block {
    display: block;
    width: 100%;
}

@media (max-width: 575px) {
    .rd-navbar-fixed .rd-navbar-panel {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .rd-navbar-fixed .brand {
        max-width: calc(100vw - 5.5rem);
    }

    .rd-navbar-fixed .brand-name {
        font-size: .94rem;
    }

    .rd-navbar-fixed .brand-badge {
        font-size: .78rem;
        padding: .12rem .45rem;
    }

    .rd-navbar-fixed .rd-navbar-nav-wrap {
        width: min(19.5rem, calc(100vw - 1rem));
    }
}

.breadcrumbs-custom.bg-secondary::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .16), transparent 28%, rgba(255, 255, 255, .12)),
        linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .03));
    pointer-events: none;
}

.breadcrumbs-custom.bg-secondary > .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .breadcrumbs-custom.bg-secondary::before {
        background-size: auto 115%;
        opacity: .7;
    }
}

/* Stronger banner pattern and richer mobile cards -------------------- */
.breadcrumbs-custom.bg-secondary {
    background:
        linear-gradient(135deg, #1f8d74 0%, #67a85e 46%, #d9862f 100%) !important;
}

.breadcrumbs-custom.bg-secondary::before {
    background-size: auto 112%;
    opacity: .46;
    mix-blend-mode: normal;
    filter: contrast(1.75) brightness(.92) saturate(1.05);
}

.breadcrumbs-custom.bg-secondary::after {
    background:
        linear-gradient(90deg, rgba(20, 98, 72, .18), transparent 24%, rgba(255, 250, 240, .18)),
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(31, 47, 56, .08)) !important;
}

@media (max-width: 991px) {
    .table-custom-responsive > .table-mobile-cards tr[data-card-title],
    .table-mobile-cards tr[data-card-title] {
        position: relative;
        padding: 0 0 .65rem !important;
        border: 0 !important;
        border-radius: 1rem !important;
        background:
            linear-gradient(#fff, #fff) padding-box,
            linear-gradient(135deg, rgba(42, 157, 120, .85), rgba(248, 183, 53, .75), rgba(230, 95, 85, .75)) border-box !important;
        border: 1px solid transparent !important;
        box-shadow: 0 .85rem 1.65rem rgba(31, 47, 56, .11) !important;
    }

    .table-custom-responsive > .table-mobile-cards tr[data-card-title]::before,
    .table-mobile-cards tr[data-card-title]::before {
        content: attr(data-card-title);
        display: block;
        padding: .9rem 1rem .35rem;
        color: #174d3c;
        font-size: 1.08rem;
        font-weight: 900;
        line-height: 1.35;
        background:
            linear-gradient(135deg, rgba(231, 247, 233, .96), rgba(255, 246, 223, .96));
    }

    .table-custom-responsive > .table-mobile-cards tr[data-card-subtitle]::after,
    .table-mobile-cards tr[data-card-subtitle]::after {
        content: attr(data-card-subtitle);
        display: inline-flex;
        max-width: calc(100% - 2rem);
        margin: 0 1rem .45rem;
        padding: .18rem .6rem;
        color: #7a3f28;
        font-size: .9rem;
        font-weight: 800;
        line-height: 1.45;
        border-radius: 999px;
        background: rgba(248, 183, 53, .2);
    }

    .table-custom-responsive > .table-mobile-cards td[data-label],
    .table-mobile-cards td[data-label],
    .table-mobile-keyvalue td[data-label] {
        margin: 0 .95rem;
        grid-template-columns: minmax(6rem, 34%) minmax(0, 1fr) !important;
    }

    .table-custom-responsive > .table-mobile-cards td[data-label]::before,
    .table-mobile-cards td[data-label]::before,
    .table-mobile-keyvalue td[data-label]::before {
        display: inline-flex !important;
        align-items: center;
        width: max-content;
        max-width: 100%;
        padding: .12rem .48rem;
        color: #146248;
        font-size: .82rem;
        font-weight: 900;
        border-radius: 999px;
        background: rgba(42, 157, 120, .11);
    }

    .table-custom-responsive > .table-mobile-cards tr:nth-child(3n + 2),
    .table-mobile-cards tr:nth-child(3n + 2) {
        background:
            linear-gradient(#fff, #fff) padding-box,
            linear-gradient(135deg, rgba(35, 116, 171, .72), rgba(248, 183, 53, .72)) border-box !important;
    }

    .table-custom-responsive > .table-mobile-cards tr:nth-child(3n + 3),
    .table-mobile-cards tr:nth-child(3n + 3) {
        background:
            linear-gradient(#fff, #fff) padding-box,
            linear-gradient(135deg, rgba(230, 95, 85, .72), rgba(42, 157, 120, .72)) border-box !important;
    }
}

@media (max-width: 768px) {
    .breadcrumbs-custom.bg-secondary::before {
        background-size: auto 128%;
        opacity: .52;
    }
}

/* Mobile table card header cleanup ----------------------------------- */
@media (max-width: 991px) {
    .table-custom-responsive > .table-mobile-cards tr[data-card-title]::before,
    .table-mobile-cards tr[data-card-title]::before,
    .table-custom-responsive > .table-mobile-cards tr[data-card-subtitle]::after,
    .table-mobile-cards tr[data-card-subtitle]::after {
        content: none !important;
        display: none !important;
    }

    .table-mobile-cards .mobile-card-title-source {
        display: none !important;
    }

    .table-custom-responsive > .table-mobile-cards .mobile-card-heading,
    .table-mobile-cards .mobile-card-heading {
        display: grid !important;
        grid-template-columns: minmax(5.75rem, 32%) minmax(0, 1fr) !important;
        gap: .75rem;
        align-items: center;
        width: auto !important;
        margin: 0 .95rem;
        padding: .9rem 0 !important;
        color: #174d3c;
        text-align: left !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(42, 157, 120, .14) !important;
        background:
            linear-gradient(135deg, rgba(231, 247, 233, .98), rgba(255, 246, 223, .96)) !important;
    }

    .mobile-card-heading-label {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        color: #146248;
        font-size: .82rem;
        font-weight: 900;
        line-height: 1.35;
    }

    .mobile-card-heading-label::before {
        content: "";
        display: inline-block;
        width: .25rem;
        height: 1.45rem;
        border-radius: 999px;
        background: linear-gradient(180deg, var(--lecture-primary), var(--lecture-accent));
    }

    .mobile-card-heading-title {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
        color: #1f2f38;
        font-size: 1.18rem;
        font-weight: 900;
        line-height: 1.35;
        word-break: break-word;
    }

    .mobile-card-heading-title .fa {
        flex: 0 0 auto;
        margin-right: .45rem !important;
        top: 0 !important;
        font-size: 1.05rem;
    }

    .table-custom-responsive > .table-mobile-cards td[data-label],
    .table-mobile-cards td[data-label],
    .table-mobile-keyvalue td[data-label] {
        width: auto !important;
        grid-template-columns: minmax(5.75rem, 32%) minmax(0, 1fr) !important;
        padding: .72rem 0 !important;
    }

    .table-custom-responsive > .table-mobile-cards td[data-label]::before,
    .table-mobile-cards td[data-label]::before,
    .table-mobile-keyvalue td[data-label]::before {
        display: flex !important;
        align-items: center;
        width: auto;
        max-width: none;
        min-height: 1.6rem;
        padding: 0 0 0 .7rem;
        color: #146248;
        font-size: .86rem;
        font-weight: 900;
        line-height: 1.45;
        border-left: .25rem solid var(--lecture-primary);
        border-radius: 0;
        background: transparent;
    }
}

@media (max-width: 420px) {
    .table-custom-responsive > .table-mobile-cards .mobile-card-heading,
    .table-mobile-cards .mobile-card-heading {
        grid-template-columns: minmax(5rem, 34%) minmax(0, 1fr) !important;
        gap: .55rem;
    }

    .mobile-card-heading-title {
        font-size: 1.12rem;
    }

    .table-custom-responsive > .table-mobile-cards td[data-label],
    .table-mobile-cards td[data-label],
    .table-mobile-keyvalue td[data-label] {
        grid-template-columns: minmax(5rem, 34%) minmax(0, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .table-custom-responsive > .table-mobile-cards td.mobile-card-title-source,
    .table-mobile-cards td.mobile-card-title-source {
        display: none !important;
    }
}

/* Mobile register/profile visual spacing ----------------------------- */
@media (max-width: 768px) {
    .register-panel {
        gap: 0;
    }

    .register-visual {
        z-index: 3;
        justify-content: center;
        margin: -1.25rem auto -1px !important;
    }

    .register-visual img {
        width: min(14.5rem, 68vw) !important;
        max-height: 10rem;
        object-fit: contain;
    }

    .register-card {
        z-index: 2;
        padding-top: 1.5rem !important;
    }
}

@media (max-width: 420px) {
    .register-visual {
        margin-top: -.75rem !important;
        margin-bottom: -1px !important;
    }

    .register-visual img {
        width: min(13rem, 70vw) !important;
        max-height: 8.5rem;
    }
}

/* Final brand, season list, and score counter refinements ------------ */
.brand {
    align-items: center;
}

.brand img {
    align-self: center;
}

.brand-text {
    align-self: flex-end;
    align-items: flex-end;
    margin-bottom: .18rem;
}

.brand-name {
    line-height: 1;
}

.brand-badge {
    line-height: 1;
    margin-bottom: .02rem;
}

.season-shell {
    margin-top: clamp(1.25rem, 3vw, 2.75rem);
}

.season-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: -1px;
}

.season-toolbar .season-tabs {
    flex: 1 1 auto;
    align-self: center;
    margin: 2.25rem 0 .75rem;
}

.season-shell .section-cutout {
    flex: 0 0 auto;
    justify-content: flex-end;
    min-height: 0;
    margin: 0 1.5rem -1px 0;
}

.season-shell .section-cutout img {
    width: min(24rem, 36vw);
    filter: drop-shadow(0 1rem 1.2rem rgba(31, 47, 56, .14));
}

.season-tone-earth .season-card-header {
    background: linear-gradient(135deg, var(--lecture-earth), var(--lecture-alert));
}

.season-tone-leaf .season-card-header {
    background: linear-gradient(135deg, var(--lecture-secondary), var(--lecture-primary));
}

.season-tone-river .season-card-header {
    background: linear-gradient(135deg, #2374ab, #2a9d78);
}

.season-tone-coral .season-card-header {
    background: linear-gradient(135deg, var(--lecture-alert), var(--lecture-accent));
}

@media (max-width: 991px) {
    .brand {
        align-items: center;
    }

    .brand-text {
        margin-bottom: .1rem;
    }

    .season-toolbar {
        display: grid;
        gap: .5rem;
    }

    .season-toolbar .season-tabs {
        margin: .75rem 0 .35rem;
    }

    .season-shell .section-cutout {
        justify-content: flex-end;
        margin: -.35rem .85rem -1px 0;
    }

    .season-shell .section-cutout img {
        width: min(14rem, 54vw);
    }
}

@media (max-width: 575px) {
    .brand-text {
        max-width: 13rem;
        gap: .38rem;
    }

    .brand-name {
        max-width: 7.4rem;
    }

    .brand-badge {
        padding: .14rem .42rem;
        font-size: .62rem;
    }
}

/* Maintenance visual layer ------------------------------------------ */
.button-news,
.button-news:focus,
.button-activity,
.button-activity:focus,
.button-primary,
.button-primary:focus {
    color: #fff;
    background-color: var(--lecture-alert);
    border-color: var(--lecture-alert);
}

.button-news:hover,
.button-news:active,
.button-news.active,
.button-activity:hover,
.button-activity:active,
.button-activity.active,
.button-primary:hover,
.button-primary:active,
.button-primary.active {
    color: #fff;
    background-color: var(--lecture-alert-dark);
    border-color: var(--lecture-alert-dark);
}

.button-quiz,
.button-quiz:focus,
.button-secondary,
.button-secondary:focus,
.button-card-ranking,
.button-card-ranking:focus {
    color: #fff;
    background-color: var(--lecture-primary);
    border-color: var(--lecture-primary);
}

.button-quiz:hover,
.button-quiz:active,
.button-quiz.active,
.button-secondary:hover,
.button-secondary:active,
.button-secondary.active,
.button-card-ranking:hover,
.button-card-ranking:active,
.button-card-ranking.active {
    color: #fff;
    background-color: var(--lecture-primary-dark);
    border-color: var(--lecture-primary-dark);
}

.brand {
    display: inline-flex;
    align-items: flex-end;
    gap: .7rem;
    min-width: 0;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0;
    max-height: 3.25rem;
    overflow: visible;
}

.brand img {
    flex: 0 0 auto;
    width: auto !important;
    max-width: 3.25rem;
    max-height: 3.25rem !important;
    object-fit: contain;
}

.brand-text {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    max-width: clamp(16rem, 30vw, 25rem);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
}

.brand-name {
    display: inline-block;
    color: #fff;
    font-size: clamp(1.04rem, 1.55vw, 1.34rem);
    font-weight: 900;
    line-height: 1.12;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: .18rem .55rem;
    color: #174d3c;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1.25;
    border-radius: 999px;
    background: linear-gradient(90deg, #fff6df, #e7f7e9);
    box-shadow: inset 0 0 0 1px rgba(42, 157, 120, .14);
}

.rd-navbar-fixed .rd-navbar-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: .75rem;
}

.rd-navbar-fixed .rd-navbar-toggle {
    order: 2;
    margin-left: auto;
    margin-right: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
}

.rd-navbar-fixed .rd-navbar-brand {
    order: 1;
    min-width: 0;
}

.rd-navbar-fixed .rd-navbar-nav-wrap {
    left: auto;
    right: 0;
    width: min(18rem, 82vw);
    transform: translateX(100%);
}

.rd-navbar-fixed.active .rd-navbar-nav-wrap,
.rd-navbar-fixed.rd-navbar--is-clone.active .rd-navbar-nav-wrap,
.rd-navbar-fixed .rd-navbar-nav-wrap.active {
    transform: translateX(0);
}

.season-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin: clamp(.75rem, 2vw, 1.5rem) 0 .75rem;
}

.season-tab {
    min-height: 3.15rem;
    padding: .72rem 1.22rem;
    color: #146248;
    font-size: 1.05rem;
    font-weight: 900;
    border: 1px solid rgba(42, 157, 120, .28);
    border-radius: .85rem;
    background: linear-gradient(135deg, #fffdf8, #eef8f3);
    box-shadow: 0 .45rem 1rem rgba(31, 47, 56, .08);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.season-tab:not(.is-disabled):hover {
    color: #fff;
    border-color: var(--lecture-primary);
    background: linear-gradient(135deg, var(--lecture-secondary), var(--lecture-primary));
    box-shadow: 0 .8rem 1.45rem rgba(42, 157, 120, .18);
    transform: translateY(-2px);
}

.season-tab.is-active {
    color: #fff;
    border-color: var(--lecture-primary);
    background: linear-gradient(135deg, var(--lecture-secondary), var(--lecture-primary));
    box-shadow: 0 .8rem 1.45rem rgba(42, 157, 120, .2);
}

.season-tab.is-disabled {
    color: rgba(31, 47, 56, .42);
    background: #f2eadc;
    box-shadow: none;
    cursor: not-allowed;
}

.season-shell {
    position: relative;
}

.season-shell .section-cutout {
    justify-content: flex-end;
    min-height: 0;
    margin: 0 1.25rem -1px 0;
}

.season-shell .section-cutout img {
    width: min(18rem, 30vw);
}

.season-panel[hidden] {
    display: none !important;
}

.season-card {
    width: 100%;
}

.season-card-header {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1rem;
    align-items: baseline;
    justify-content: flex-start;
}

.season-card-header span {
    color: rgba(255, 255, 255, .86);
    font-size: .98rem;
    font-weight: 800;
}

.score-section {
    background: linear-gradient(180deg, rgba(255, 253, 248, .84), rgba(238, 248, 243, .94));
}

.score-card {
    min-height: clamp(26rem, 52vh, 34rem);
    display: block;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(12px);
}

.score-card::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .6) 56%, rgba(255, 255, 255, .18)),
        radial-gradient(circle at 12% 90%, rgba(248, 183, 53, .22), transparent 34%);
}

.score-card-competition {
    background: rgba(255, 250, 240, .82);
}

.score-content {
    width: min(100%, 34rem);
    margin-left: auto;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: .85rem;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 1rem 2.5rem rgba(31, 47, 56, .1);
}

.score-mascot {
    position: absolute;
    left: clamp(1rem, 5vw, 4rem);
    bottom: -1px;
    z-index: 1;
    justify-self: auto;
    width: min(34rem, 42vw);
    max-height: 88%;
    object-fit: contain;
    object-position: left bottom;
}

.score-actions .button {
    min-width: 9rem;
    margin: 0;
}

.member-profile-wide {
    max-width: 1170px;
}

.profile-card {
    position: relative;
    z-index: 1;
    padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 3rem);
    padding-right: min(22rem, 34vw);
    border: 1px solid var(--lecture-line);
    border-radius: .9rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 250, 240, .9));
    box-shadow: var(--lecture-shadow);
    text-align: left;
}

.profile-row {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr) 6rem minmax(0, 1fr);
    gap: .75rem 1rem;
    align-items: center;
    padding: .8rem 0;
    border-bottom: 1px dashed rgba(42, 157, 120, .18);
}

.profile-row:last-child {
    border-bottom: 0;
}

.profile-label {
    color: #146248;
    font-size: .92rem;
    font-weight: 900;
}

.profile-value {
    color: var(--lecture-ink);
    font-size: 1.08rem;
    font-weight: 800;
}

.member-no-highlight {
    color: var(--lecture-secondary);
    font-weight: 900;
    letter-spacing: .06em;
}

.table-stage-profile .table-mascot {
    width: min(23rem, 32vw);
    right: 1.25rem;
    bottom: calc(100% - 5rem);
}

@media (max-width: 991px) {
    .rd-navbar-classic.rd-navbar-fixed .rd-navbar-main,
    .rd-navbar-fixed .rd-navbar-main {
        min-height: 4rem;
    }

    .rd-navbar-fixed .brand-text {
        max-width: 13rem;
        gap: .38rem;
    }

    .rd-navbar-fixed .brand-name {
        font-size: .98rem;
    }

    .rd-navbar-fixed .brand-badge {
        padding: .14rem .42rem;
        font-size: .66rem;
    }

    .score-card {
        min-height: auto;
        padding: 1.25rem;
    }

    .score-content {
        margin: 0 auto;
        text-align: center;
    }

    .score-mascot {
        position: relative;
        left: auto;
        bottom: auto;
        display: block;
        width: min(18rem, 68vw);
        margin: -1rem auto -1.25rem;
    }

    .profile-card {
        padding-right: 1.25rem;
    }

    .table-stage-profile .table-mascot {
        width: min(15rem, 56vw) !important;
        margin: -1rem 1rem -1px auto !important;
    }
}

@media (max-width: 575px) {
    .rd-navbar-fixed .brand {
        gap: .5rem;
        max-height: 3rem;
    }

    .rd-navbar-fixed .rd-navbar-brand img {
        max-height: 2.45rem;
        max-width: 2.45rem;
    }

    .brand-text {
        max-width: 13rem;
    }

    .brand-name {
        max-width: 7.4rem;
    }

    .brand-badge {
        font-size: .62rem;
    }

    .season-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: .5rem;
        margin-bottom: .5rem;
    }

    .season-tab {
        padding-left: .65rem;
        padding-right: .65rem;
        font-size: 1rem;
    }

    .season-card-header {
        display: grid;
        gap: .25rem;
    }

    .season-shell .section-cutout {
        display: flex;
        justify-content: flex-end;
        margin: -.5rem .75rem -1px 0;
    }

    .season-shell .section-cutout img {
        width: min(12rem, 56vw);
    }

    .episode-list a {
        align-items: flex-start;
    }

    .lecture-title,
    .lecture-topic {
        display: inline;
    }

    .score-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .score-actions .button {
        width: 100%;
    }

    .profile-row {
        grid-template-columns: 5rem minmax(0, 1fr);
    }
}

/* Client polish overrides: keep these last so legacy template rules cannot win. */
.brand,
.rd-navbar-fixed .brand {
    display: inline-flex !important;
    align-items: flex-end !important;
    gap: .7rem !important;
    max-height: none !important;
    line-height: 1 !important;
    vertical-align: middle;
}

.brand img,
.rd-navbar-fixed .rd-navbar-brand img {
    flex: 0 0 auto;
    align-self: flex-end !important;
    width: auto !important;
    max-width: 3.25rem !important;
    max-height: 3.25rem !important;
    object-fit: contain;
}

.brand-text,
.rd-navbar-fixed .brand-text {
    display: inline-flex !important;
    flex: 0 1 auto;
    align-items: flex-end !important;
    gap: .5rem !important;
    min-width: 0;
    max-width: clamp(17rem, 34vw, 26rem) !important;
    margin: 0 0 .04rem !important;
    overflow: visible !important;
    white-space: nowrap;
}

.brand-name,
.rd-navbar-fixed .brand-name {
    display: inline-block;
    flex: 0 1 auto;
    max-width: none !important;
    color: #fff;
    font-size: clamp(1.08rem, 1.55vw, 1.35rem) !important;
    font-weight: 900;
    line-height: 1 !important;
    overflow: visible;
    text-overflow: clip;
}

.brand-badge,
.rd-navbar-fixed .brand-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-bottom: -.02rem;
    padding: .38rem .58rem .18rem .58rem !important;
    color: #174d3c;
    font-size: .78rem !important;
    font-weight: 900;
    line-height: 1.1 !important;
    border-radius: 999px;
    background: linear-gradient(90deg, #fff6df, #e7f7e9);
    box-shadow: inset 0 0 0 1px rgba(42, 157, 120, .14);
}

.rd-navbar-classic.rd-navbar-static .rd-navbar-main,
.rd-navbar-static .rd-navbar-main {
    align-items: center;
}

.season-shell {
    margin-top: clamp(1.5rem, 3vw, 2.75rem) !important;
}

.season-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(1rem, 2.5vw, 2rem);
    margin-bottom: -1px;
}

.season-toolbar .season-tabs {
    flex: 1 1 auto;
    align-self: flex-end;
    gap: .5rem !important;
    margin: clamp(2rem, 4vw, 3.25rem) 0 .85rem !important;
}

.season-shell .section-cutout {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-height: 0 !important;
    margin: 0 clamp(.75rem, 2vw, 1.5rem) -1px 0 !important;
}

.season-shell .section-cutout img {
    display: block;
    width: min(24.5rem, 36vw) !important;
    max-width: none !important;
    height: auto;
    object-fit: contain;
    object-position: right bottom;
}

@media (max-width: 991px) {
    .brand,
    .rd-navbar-fixed .brand {
        gap: .55rem !important;
        align-items: flex-end !important;
    }

    .brand img,
    .rd-navbar-fixed .rd-navbar-brand img {
        max-width: 2.75rem !important;
        max-height: 2.75rem !important;
    }

    .brand-text,
    .rd-navbar-fixed .brand-text {
        gap: .38rem !important;
        max-width: calc(100vw - 7rem) !important;
    }

    .brand-name,
    .rd-navbar-fixed .brand-name {
        max-width: min(10.4rem, calc(100vw - 13rem)) !important;
        font-size: .98rem !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-badge,
    .rd-navbar-fixed .brand-badge {
        padding: .14rem .43rem !important;
        font-size: .66rem !important;
    }

    .season-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: .25rem;
        margin-bottom: -1px;
    }

    .season-toolbar .season-tabs {
        align-self: auto;
        margin: .65rem 0 .65rem !important;
    }

    .season-shell .section-cutout {
        margin: -.45rem .85rem -1px auto !important;
    }

    .season-shell .section-cutout img {
        width: min(14rem, 58vw) !important;
    }
}

@media (max-width: 575px) {
    .brand img,
    .rd-navbar-fixed .rd-navbar-brand img {
        max-width: 2.45rem !important;
        max-height: 2.45rem !important;
    }

    .brand-text,
    .rd-navbar-fixed .brand-text {
        max-width: calc(100vw - 6.5rem) !important;
    }

    .brand-name,
    .rd-navbar-fixed .brand-name {
        max-width: min(7.8rem, calc(100vw - 12rem)) !important;
        font-size: .94rem !important;
    }

    .brand-badge,
    .rd-navbar-fixed .brand-badge {
        font-size: .62rem !important;
    }

    .season-toolbar .season-tabs {
        margin-top: .55rem !important;
    }

    .season-shell .section-cutout img {
        width: min(12rem, 56vw) !important;
    }
}

/* Home feature card CTA buttons */
.voucher-box-block .button.button-card-practice,
.voucher-box-block .button.button-card-ranking,
.voucher-box-block .button.button-card-competition,
.voucher-box-block .button.button-card-pause {
    min-width: 10.75rem;
    padding: .9rem 1.45rem;
    color: #fff !important;
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: 0;
    border: 2px solid rgba(255, 255, 255, .58) !important;
    border-radius: .7rem;
    box-shadow:
        0 .85rem 1.35rem rgba(31, 47, 56, .2),
        inset 0 1px 0 rgba(255, 255, 255, .22);
    transform: translateY(0);
}

.voucher-box-block .button.button-card-practice {
    background: linear-gradient(135deg, #cf4a42, #f07b4a) !important;
}

.voucher-box-block .button.button-card-ranking {
    background: linear-gradient(135deg, #126b8f, #15826f) !important;
}

.voucher-box-block .button.button-card-competition {
    color: #3f2a10 !important;
    background: linear-gradient(135deg, #ffd66b, #f4a62d) !important;
    border-color: rgba(255, 246, 223, .88) !important;
}
.voucher-box-block .button.button-card-pause {
    color: #56615f !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(226, 232, 229, .92)) !important;
    border-color: rgba(255, 255, 255, .72) !important;
    box-shadow:
        0 .65rem 1.1rem rgba(31, 47, 56, .14),
        inset 0 0 0 1px rgba(86, 97, 95, .08),
        inset 0 1px 0 rgba(255, 255, 255, .52) !important;
    cursor: pointer;
    opacity: .96;
}

.voucher-box-block .button.button-card-practice:hover,
.voucher-box-block .button.button-card-practice:active {
    background: linear-gradient(135deg, #b73e38, #e65f55) !important;
}

.voucher-box-block .button.button-card-ranking:hover,
.voucher-box-block .button.button-card-ranking:active {
    background: linear-gradient(135deg, #0e5f7d, #146248) !important;
}

.voucher-box-block .button.button-card-competition:hover,
.voucher-box-block .button.button-card-competition:active {
    color: #2f210e !important;
    background: linear-gradient(135deg, #ffc94f, #f18f2d) !important;
}

.voucher-box-block .button.button-card-pause:hover,
.voucher-box-block .button.button-card-pause:active {
    color: #56615f !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(226, 232, 229, .92)) !important;
}

.voucher-box-block .button.button-card-practice:hover,
.voucher-box-block .button.button-card-ranking:hover,
.voucher-box-block .button.button-card-competition:hover {
    border-color: rgba(255, 255, 255, .9) !important;
    box-shadow:
        0 1rem 1.55rem rgba(31, 47, 56, .24),
        inset 0 1px 0 rgba(255, 255, 255, .3);
    transform: translateY(-3px);
}

.voucher-box-block .button.button-card-pause:hover,
.voucher-box-block .button.button-card-pause:focus,
.voucher-box-block .button.button-card-pause:active {
    border-color: rgba(255, 255, 255, .72) !important;
    box-shadow:
        0 .65rem 1.1rem rgba(31, 47, 56, .14),
        inset 0 0 0 1px rgba(86, 97, 95, .08),
        inset 0 1px 0 rgba(255, 255, 255, .52) !important;
    transform: none !important;
}

@media (max-width: 767px) {
    .competition-notice {
        display: block;
        margin-top: 16px;
    }

    .competition-notice-status {
        justify-content: center;
        padding: 9px 14px;
    }

    .competition-notice-content {
        display: block;
        padding: 11px 14px 13px;
        font-size: 15px;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .voucher-box-block .button.button-card-practice,
    .voucher-box-block .button.button-card-ranking,
    .voucher-box-block .button.button-card-competition,
    .voucher-box-block .button.button-card-pause {
        width: min(100%, 13rem);
        min-width: 0;
        padding: .82rem 1rem;
        font-size: 1rem;
    }
}

/* Exam list: desktop mascot overlap and seven distinct season headers. */
.season-toolbar {
    position: relative;
    z-index: 3;
}

.season-panel {
    position: relative;
    z-index: 1;
}

.season-shell .section-cutout img {
    position: relative;
    z-index: 4;
    transform: translateY(1.35rem);
}

.season-tone-1 .season-card-header {
    background: linear-gradient(135deg, #8d5a2b, #e65f55) !important;
}

.season-tone-2 .season-card-header {
    background: linear-gradient(135deg, #2374ab, #2a9d78) !important;
}

.season-tone-3 .season-card-header {
    background: linear-gradient(135deg, #146248, #f8b735) !important;
}

.season-tone-4 .season-card-header {
    background: linear-gradient(135deg, #cf4a42, #f07b4a) !important;
}

.season-tone-5 .season-card-header {
    background: linear-gradient(135deg, #126b8f, #7fb86a) !important;
}

.season-tone-6 .season-card-header {
    background: linear-gradient(135deg, #6c421e, #d89a35) !important;
}

.season-tone-7 .season-card-header {
    background: linear-gradient(135deg, #1b7f86, #e65f55) !important;
}

@media (max-width: 991px) {
    .season-shell .section-cutout {
        justify-content: center !important;
        margin: -.45rem auto -1px !important;
    }

    .season-shell .section-cutout img {
        transform: none;
    }
}

/* 2026-07-11 final navbar override ----------------------------------- */
.rd-navbar-static .rd-navbar-main {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
}

.rd-navbar-static .rd-navbar-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: .35rem !important;
}

.rd-navbar-static .rd-nav-link i {
    margin-right: .38rem !important;
    font-size: .98em !important;
}

.rd-navbar-fixed .rd-navbar-panel {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 4.25rem !important;
    padding: .55rem .9rem !important;
}

.rd-navbar-fixed .rd-navbar-brand {
    order: 1 !important;
    min-width: 0 !important;
    margin-right: .75rem !important;
}

.rd-navbar-fixed .brand {
    display: inline-flex !important;
    align-items: flex-end !important;
    max-width: calc(100vw - 5.9rem) !important;
}

.rd-navbar-fixed .brand-name,
.rd-navbar-fixed .brand-badge {
    white-space: nowrap !important;
}

.rd-navbar-fixed .rd-navbar-toggle {
    order: 2 !important;
    flex: 0 0 2.75rem !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    margin: 0 0 0 auto !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.12) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18) !important;
}

.rd-navbar-fixed .rd-navbar-toggle:hover,
.rd-navbar-fixed .rd-navbar-toggle.active {
    background: rgba(248,183,53,.24) !important;
}

.rd-navbar-fixed .rd-navbar-nav-wrap {
    position: fixed !important;
    top: 4.25rem !important;
    right: 0 !important;
    left: auto !important;
    z-index: 1200 !important;
    width: min(21rem, calc(100vw - 1rem)) !important;
    height: calc(100vh - 4.25rem) !important;
    overflow-y: auto !important;
    padding: .85rem .75rem 1.25rem !important;
    border-left: 1px solid rgba(42,157,120,.16) !important;
    border-radius: 0 0 0 1.1rem !important;
    background: linear-gradient(180deg, rgba(255,250,240,.98), rgba(239,248,241,.98)) !important;
    box-shadow: -1rem 1.25rem 2.5rem rgba(31,47,56,.18) !important;
    transform: translateX(105%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform .24s ease, visibility .24s ease !important;
}

.rd-navbar-fixed .rd-navbar-nav-wrap.active {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.rd-navbar-fixed .rd-navbar-nav {
    display: grid !important;
    gap: .45rem !important;
    padding: 0 !important;
}

.rd-navbar-fixed .rd-nav-item {
    margin: 0 !important;
}

.rd-navbar-fixed .rd-nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: .65rem !important;
    min-height: 3.05rem !important;
    padding: .75rem .95rem !important;
    color: #174d3c !important;
    font-size: .98rem !important;
    font-weight: 850 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    border-left: 0 !important;
    border-radius: .85rem !important;
    background: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(42,157,120,.1) !important;
}

.rd-navbar-fixed .rd-nav-link i {
    flex: 0 0 1.4rem !important;
    width: 1.4rem !important;
    margin: 0 !important;
    color: var(--lecture-primary) !important;
    font-size: 1rem !important;
    text-align: center !important;
}

.rd-navbar-fixed .rd-nav-item:hover .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.focus .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.active .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.opened .rd-nav-link {
    color: #174d3c !important;
    background: linear-gradient(135deg, #e8f7e9, #fff2cf) !important;
    box-shadow: inset 0 0 0 1px rgba(42,157,120,.25), 0 .35rem .8rem rgba(31,47,56,.08) !important;
}

.rd-navbar-fixed .rd-nav-item:hover .rd-nav-link i,
.rd-navbar-fixed .rd-nav-item.active .rd-nav-link i,
.rd-navbar-fixed .rd-nav-item.opened .rd-nav-link i {
    color: var(--lecture-alert) !important;
}

html.navbar-open,
body.navbar-open {
    overflow: hidden !important;
}

button.member-change-button-r,
button.member-change-button-b,
button.button-block {
    display: block;
    width: 100%;
    cursor: pointer;
}

/* Navbar runtime alignment patch: keep overrides here instead of editing style.css. */
@media (min-width: 992px) {
    .rd-navbar-classic.rd-navbar-static .rd-navbar-main {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 1rem !important;
    }

    .rd-navbar-classic.rd-navbar-static .rd-navbar-panel {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .rd-navbar-classic.rd-navbar-static .rd-navbar-main-element {
        display: block !important;
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        margin-left: auto !important;
    }

    .rd-navbar-classic.rd-navbar-static .rd-navbar-nav-wrap {
        display: flex !important;
        width: auto !important;
        min-width: 0 !important;
        justify-content: flex-end !important;
    }

    .rd-navbar-classic.rd-navbar-static .rd-navbar-nav {
        width: auto !important;
        margin-left: auto !important;
    }
}

/* Lecture library */
.lecture-library { background: #f4f1e9; color: #17362f; }
.lecture-library-intro { max-width: 760px; margin: 0 auto 2rem; text-align: center; }
.lecture-eyebrow { display: block; margin-bottom: .55rem; color: #a75a35; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.lecture-library-intro h2 { margin: 0 0 .65rem; color: #17362f; font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.18; }
.lecture-library-intro p { margin: 0; color: #5f6e68; }
.lecture-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto; gap: .8rem; align-items: end; margin-bottom: 2rem; padding: 1.2rem; border: 1px solid rgba(23,54,47,.12); border-radius: 1rem; background: #fff; box-shadow: 0 .8rem 2rem rgba(23,54,47,.07); }
.lecture-filter label span { display: block; margin: 0 0 .35rem; color: #44635b; font-size: .78rem; font-weight: 800; }
.lecture-filter select { width: 100%; height: 46px; padding: 0 2.2rem 0 .85rem; border: 1px solid #cad5d0; border-radius: .6rem; background: #fff; color: #17362f; }
.lecture-filter button, .lecture-filter > a { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 1.15rem; border: 0; border-radius: .6rem; font-weight: 800; white-space: nowrap; }
.lecture-filter button { color: #fff; background: #1f745b; cursor: pointer; }
.lecture-filter > a { color: #80583d; background: #eee7dc; }
.lecture-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.lecture-card { overflow: hidden; border: 1px solid rgba(23,54,47,.1); border-radius: 1rem; background: #fff; box-shadow: 0 .7rem 1.8rem rgba(23,54,47,.08); transition: transform .2s ease, box-shadow .2s ease; }
.lecture-card:hover { transform: translateY(-4px); box-shadow: 0 1rem 2.3rem rgba(23,54,47,.13); }
.lecture-cover { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #23483f; }
.lecture-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.lecture-card:hover .lecture-cover img { transform: scale(1.035); }
.lecture-cover-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: 3rem; background: linear-gradient(135deg,#17362f,#3d7a68); }
.lecture-play { position: absolute; right: 1rem; bottom: 1rem; display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; color: #17362f; background: #f4c45a; box-shadow: 0 .4rem 1rem rgba(0,0,0,.2); }
.lecture-card-body { padding: 1.25rem; }
.lecture-meta { display: flex; flex-wrap: wrap; gap: .4rem .75rem; margin-bottom: .75rem; color: #6b746f; font-size: .78rem; font-weight: 700; }
.lecture-meta span + span::before { content: '•'; margin-right: .75rem; color: #c47a4c; }
.lecture-card h3 { margin: 0 0 .7rem; font-size: 1.2rem; line-height: 1.4; }
.lecture-card h3 a { color: #17362f; }
.lecture-card-body > p { display: -webkit-box; overflow: hidden; min-height: 4.6em; margin: 0 0 .8rem; color: #65716d; font-size: .92rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.lecture-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.lecture-tags span { padding: .3rem .6rem; border-radius: 999px; color: #25644f; font-size: .75rem; font-weight: 700; background: #e5f0eb; }
.lecture-quiz-link { display: inline-flex; align-items: center; gap: .45rem; color: #a14e2b; font-weight: 850; }
.lecture-empty { padding: 5rem 1rem; border: 1px dashed #b6c4be; border-radius: 1rem; color: #6b7772; text-align: center; background: rgba(255,255,255,.55); }
.lecture-empty i { font-size: 2.8rem; }
.lecture-player { margin: 0 0 2rem; padding: 1rem; border-radius: 1rem; background: #142d27; box-shadow: 0 .8rem 2rem rgba(20,45,39,.18); }
.lecture-player-frame { position: relative; overflow: hidden; width: 100%; padding-top: 56.25%; border-radius: .65rem; background: #000; }
.lecture-player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lecture-player-meta { display: flex; flex-wrap: wrap; gap: .6rem 1rem; padding: 1rem .25rem .15rem; color: #dce9e5; }
.reflection-box { margin: 2rem 0; padding: 1.25rem; border: 1px solid #d8e1dd; border-radius: .85rem; background: #f7faf8; }
.reflection-box label { display: flex; justify-content: space-between; margin-bottom: .65rem; color: #17362f; font-weight: 850; }
.reflection-box textarea { width: 100%; min-height: 150px; padding: .85rem; border: 1px solid #bdcbc5; border-radius: .6rem; resize: vertical; }
.question-video-link { display: inline-flex; align-items: center; gap: .4rem; margin-left: .7rem; padding: .36rem .7rem; border-radius: 999px; color: #fff !important; font-size: .78rem; font-weight: 800; background: #b64c35; }

@media (max-width: 991px) {
  .lecture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lecture-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lecture-grid, .lecture-filter { grid-template-columns: 1fr; }
  .lecture-filter > a { width: 100%; }
  .lecture-card-body > p { min-height: auto; }
}

/* Attempt review score card ------------------------------------------ */
.attempt-summary {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1.5rem;
}

.attempt-summary h3 {
    align-self: center;
    margin: 0;
    color: #174d3c;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 900;
}

.attempt-summary h3::after {
    content: "";
    display: block;
    width: 4.25rem;
    height: .25rem;
    margin-top: .65rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lecture-primary), var(--lecture-accent), var(--lecture-alert));
}

.attempt-score-card {
    flex: 0 0 min(23rem, 48%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid rgba(42, 157, 120, .22);
    border-radius: .85rem;
    background:
        linear-gradient(#fffdf8, #fffdf8) padding-box,
        linear-gradient(135deg, rgba(42, 157, 120, .82), rgba(248, 183, 53, .72)) border-box;
    box-shadow: 0 .85rem 1.5rem rgba(31, 47, 56, .1);
}

.attempt-score-cell {
    display: grid;
    gap: .35rem;
    align-content: center;
    min-height: 6rem;
    padding: .95rem 1rem;
    text-align: center;
}

.attempt-score-cell + .attempt-score-cell {
    border-left: 1px solid rgba(42, 157, 120, .18);
    background: linear-gradient(135deg, rgba(231, 247, 233, .78), rgba(255, 246, 223, .72));
}

.attempt-score-cell span {
    color: #146248;
    font-size: .9rem;
    font-weight: 900;
    line-height: 1.3;
}

.attempt-score-cell strong {
    color: #1f2f38;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    font-weight: 950;
    line-height: 1.1;
}

.attempt-score-number {
    color: var(--lecture-alert) !important;
    font-size: clamp(2.05rem, 3.4vw, 3rem) !important;
}

.attempt-summary-practice .attempt-score-card {
    flex: 1 1 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
}

.attempt-summary-competition .attempt-score-card {
    background:
        linear-gradient(#fffdf8, #fffdf8) padding-box,
        linear-gradient(135deg, rgba(35, 116, 171, .78), rgba(230, 95, 85, .72), rgba(248, 183, 53, .72)) border-box;
}

.attempt-summary-competition .attempt-score-cell + .attempt-score-cell {
    background: linear-gradient(135deg, rgba(238, 246, 251, .9), rgba(255, 240, 237, .72));
}

/* Laptop: keep the full title above the four-column practice summary. */
@media (min-width: 992px) and (max-width: 1536px) {
    .attempt-summary-practice {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
        padding-top: 1.75rem;
    }

    .attempt-summary-practice h3 {
        width: 100%;
        text-align: center;
    }

    .attempt-summary-practice h3::after {
        margin-right: auto;
        margin-left: auto;
    }

    .attempt-summary-practice .attempt-score-card {
        width: 100%;
    }

    .rd-navbar-classic.rd-navbar-static .rd-navbar-main {
        gap: .5rem !important;
    }

    .rd-navbar-static .rd-navbar-nav {
        gap: .2rem !important;
    }

    .rd-navbar-static .rd-nav-link {
        padding-right: .62rem !important;
        padding-left: .62rem !important;
        font-size: .94rem !important;
        white-space: nowrap;
    }
}

/* Quiz accuracy bar fallback for pages without core.min.js. */
.progress-linear {
    border: 1px solid rgba(248, 183, 53, .24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .62);
    margin-bottom: 1.65rem;
}

.progress-linear-header {
    gap: .85rem;
}

.progress-linear-counter {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 8.5rem;
    font-size: 1.05rem;
    font-weight: 900;
    white-space: nowrap;
}

.progress-linear-counter::before {
    content: "本題答題正確率 ";
}

.progress-linear-counter::after {
    content: "%";
}

.progress-linear-body {
    position: relative;
    overflow: visible;
    box-shadow: inset 0 .08rem .2rem rgba(31, 47, 56, .12);
}

.progress-linear-bar {
    min-width: .35rem;
}

/* Ranking mascot should sit on the table edge. */
.table-stage-ranking {
    align-items: stretch !important;
}

.table-stage-ranking .table-mascot {
    align-self: flex-end !important;
    margin: -1.35rem 1.25rem -1px 0 !important;
}

@media (max-width: 991px) {
    .attempt-summary {
        display: grid;
        grid-template-columns: 1fr;
        gap: .85rem;
        margin-bottom: 1rem;
    }

    .attempt-summary h3 {
        text-align: center;
    }

    .attempt-summary h3::after {
        margin-left: auto;
        margin-right: auto;
    }

    .attempt-score-card {
        justify-self: center;
        width: min(100%, 23rem);
        flex-basis: auto;
    }

    .attempt-summary-practice .attempt-score-card {
        width: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .attempt-score-cell {
        min-height: 5.2rem;
        padding: .8rem .75rem;
    }

    .progress-linear-header {
        align-items: flex-start;
    }

    .progress-linear-counter {
        min-width: 7.5rem;
        font-size: .95rem;
    }

    .progress-linear-body::after {
        position: static;
        display: block;
        margin-top: .45rem;
        text-align: right;
    }

    .table-stage-ranking .table-mascot {
        display: block !important;
        align-self: flex-end !important;
        width: min(12.5rem, 48vw) !important;
        margin: -1rem 1rem -1px auto !important;
    }

    .table-stage-ranking .table-mascot + .table-custom-responsive {
        margin-top: 0 !important;
    }
}

@media (max-width: 480px) {
    .attempt-score-card {
        width: 100%;
    }

    .attempt-score-cell strong {
        font-size: 1.08rem;
    }

    .attempt-summary-practice .attempt-score-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .attempt-score-number {
        font-size: 2.1rem !important;
    }
}

/* Competition ranking board ------------------------------------------ */
.table-stage-ranking {
    --lecture-ranking-mascot-space: clamp(7rem, 13vw, 9.5rem);
    position: relative !important;
    display: block !important;
    padding-top: var(--lecture-ranking-mascot-space) !important;
}

.table-stage-ranking .table-mascot {
    position: absolute !important;
    right: clamp(1rem, 4vw, 2.5rem) !important;
    top: auto !important;
    bottom: calc(100% - var(--lecture-ranking-mascot-space) - 1px) !important;
    z-index: 3 !important;
    width: min(19rem, 40vw) !important;
    max-height: calc(var(--lecture-ranking-mascot-space) + 2.25rem) !important;
    object-fit: contain !important;
    object-position: right bottom !important;
    margin: 0 !important;
    filter: drop-shadow(0 .9rem 1rem rgba(31, 47, 56, .12));
}

.ranking-table-wrap {
    overflow: hidden !important;
    border: 1px solid rgba(42, 157, 120, .18) !important;
    border-radius: 0 1rem 1rem 1rem !important;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, .98), rgba(238, 248, 243, .96)) !important;
    box-shadow: 0 1rem 2.2rem rgba(31, 47, 56, .1) !important;
}

.ranking-table {
    border-collapse: separate !important;
    border-spacing: 0 .55rem !important;
    overflow: hidden;
    min-width: 0 !important;
    padding: .75rem !important;
    background:
        radial-gradient(circle at 8% 0, rgba(248, 183, 53, .13), transparent 32%),
        linear-gradient(180deg, #fffdf8, #eef8f3) !important;
}

.ranking-table thead th {
    padding: 1rem .9rem !important;
    color: #fff !important;
    font-size: .98rem !important;
    font-weight: 900 !important;
    border: 0 !important;
    background: linear-gradient(135deg, #146248, #2374ab) !important;
}

.ranking-table thead th:first-child {
    border-radius: .85rem 0 0 .85rem;
}

.ranking-table thead th:last-child {
    border-radius: 0 .85rem .85rem 0;
}

.ranking-table tbody tr {
    background: #fff !important;
    box-shadow: 0 .45rem 1rem rgba(31, 47, 56, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ranking-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 .75rem 1.35rem rgba(31, 47, 56, .1);
}

.ranking-table tbody td {
    padding: 1rem .9rem !important;
    color: #243b35 !important;
    font-weight: 800;
    border-top: 1px solid rgba(42, 157, 120, .1) !important;
    border-bottom: 1px solid rgba(42, 157, 120, .1) !important;
    background: transparent !important;
    vertical-align: middle !important;
}

.ranking-table tbody td:first-child {
    border-left: 1px solid rgba(42, 157, 120, .1) !important;
    border-radius: .85rem 0 0 .85rem;
}

.ranking-table tbody td:last-child {
    border-right: 1px solid rgba(42, 157, 120, .1) !important;
    border-radius: 0 .85rem .85rem 0;
}

.ranking-row-top td {
    background: linear-gradient(135deg, rgba(255, 250, 240, .96), rgba(231, 247, 233, .86)) !important;
}

.ranking-place {
    white-space: nowrap;
}

.ranking-medal,
.ranking-plain,
.ranking-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 2.35rem;
    border-radius: 999px;
    font-weight: 950;
    line-height: 1;
}

.ranking-medal {
    min-width: 6.75rem;
    padding: .5rem .9rem;
    color: #174d3c;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .48);
}

.ranking-medal i {
    margin: 0 !important;
    font-size: 1rem;
    line-height: 1;
    transform: none !important;
}

.ranking-medal-gold {
    background: linear-gradient(135deg, #ffe7a3, #f8b735);
}

.ranking-medal-silver {
    background: linear-gradient(135deg, #eef2f1, #b8c3c0);
}

.ranking-medal-bronze {
    background: linear-gradient(135deg, #f3c199, #c47d3d);
}

.ranking-plain {
    min-width: 5.75rem;
    padding: .45rem .8rem;
    color: #146248;
    background: rgba(42, 157, 120, .1);
}

.ranking-score {
    min-width: 3.75rem;
    padding: .45rem .85rem;
    color: #fff !important;
    background: linear-gradient(135deg, var(--lecture-alert), var(--lecture-accent));
    box-shadow: 0 .4rem .85rem rgba(230, 95, 85, .18);
}

@media (max-width: 991px) {
    .table-stage-ranking {
        --lecture-ranking-mascot-space: clamp(5.75rem, 26vw, 8rem);
        padding-top: var(--lecture-ranking-mascot-space) !important;
    }

    .table-stage-ranking .table-mascot {
        width: min(13.5rem, 56vw) !important;
        max-height: calc(var(--lecture-ranking-mascot-space) + 1.5rem) !important;
        right: clamp(.75rem, 5vw, 1.25rem) !important;
        bottom: calc(100% - var(--lecture-ranking-mascot-space) - 1px) !important;
        margin: 0 !important;
    }

    .ranking-table-wrap {
        border-radius: 0 .9rem .9rem .9rem !important;
        overflow: visible !important;
    }

    .ranking-table {
        display: block !important;
        padding: 0 !important;
        border-spacing: 0 !important;
        background: transparent !important;
    }

    .ranking-table tbody tr {
        border-color: rgba(42, 157, 120, .2) !important;
    }

    .ranking-table tbody td:first-child,
    .ranking-table tbody td:last-child {
        border-radius: 0 !important;
    }

    .ranking-table .mobile-card-heading {
        background: linear-gradient(135deg, rgba(255, 246, 223, .98), rgba(231, 247, 233, .98)) !important;
    }

    .ranking-table .mobile-card-heading-title {
        color: #174d3c !important;
    }

    .ranking-table .ranking-score {
        justify-self: flex-start;
    }
}

/* Ranking correction: keep the mascot/table gap controlled by one rule. */
.table-stage-ranking {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding-top: 0 !important;
}

.table-stage-ranking .table-mascot {
    position: relative !important;
    display: block !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    align-self: flex-end !important;
    width: min(19rem, 40vw) !important;
    max-height: none !important;
    margin: 0 clamp(1rem, 4vw, 2.5rem) -1px 0 !important;
    transform: none !important;
}

.table-stage-ranking .table-mascot + .ranking-table-wrap,
.table-stage-ranking .ranking-table-wrap {
    margin-top: 0 !important;
    border-radius: 1rem !important;
}

.table-stage-ranking .ranking-table {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-spacing: 0 !important;
}

.ranking-table tbody tr {
    box-shadow: none !important;
}

.ranking-table tbody tr:hover {
    transform: none !important;
    background: rgba(231, 247, 233, .62) !important;
}

.ranking-table tbody td:first-child,
.ranking-table tbody td:last-child,
.ranking-table thead th:first-child,
.ranking-table thead th:last-child {
    border-radius: 0 !important;
}

.ranking-score {
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    color: #146248 !important;
    font-size: 1.25rem !important;
    font-weight: 950 !important;
    line-height: 1.2 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 991px) {
    .table-stage-ranking .table-mascot {
        width: min(13.5rem, 56vw) !important;
        margin: 0 clamp(.75rem, 5vw, 1.25rem) -1px auto !important;
    }

    .table-stage-ranking .ranking-table-wrap {
        border-radius: .9rem !important;
    }
}

/* Desktop result-card composition. */
@media (min-width: 992px) {
    .score-card {
        isolation: isolate;
    }

    .score-card::before {
        z-index: 0;
    }

    .score-mascot {
        left: clamp(-2.5rem, -1vw, -.5rem);
        z-index: 1;
        width: min(58rem, 78vw);
        max-width: 82%;
        max-height: none;
    }

    .score-content {
        z-index: 2;
    }
}

/* ========================================================================== */
/* Lecture platform v1: restrained professional visual system                 */
/* Inspired by the typography, spacing and paper-like surfaces of 師來運轉.     */
/* ========================================================================== */
:root {
    --lecture-ink: #27322f;
    --lecture-muted: #6f7773;
    --lecture-paper: #f5f2ea;
    --lecture-cream: #fffdf9;
    --lecture-primary: #334f48;
    --lecture-primary-dark: #223b35;
    --lecture-secondary: #a85f48;
    --lecture-accent: #b08a45;
    --lecture-accent-dark: #8a5d17;
    --lecture-alert: #a85b47;
    --lecture-alert-dark: #844536;
    --lecture-earth: #765a44;
    --lecture-line: #e2ddd4;
    --lecture-banner: #cbd4ce;
    --lecture-primary-soft: #eef1ed;
    --lecture-control-line: #cad5d0;
    --lecture-white: #fff;
    --lecture-shadow: 0 14px 36px rgba(39, 50, 47, .08);
}

html { scroll-behavior: smooth; }
body {
    color: var(--lecture-ink);
    background: var(--lecture-cream);
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
}
.page { background: var(--lecture-cream) !important; }
h1, h2, h3, h4, h5, h6,
.title, .breadcrumbs-custom-title, .voucher-title, .brand-name {
    font-family: "Noto Serif TC", serif !important;
    font-weight: 700 !important;
    letter-spacing: .035em;
}

/* Header */
.page-header .rd-navbar,
.page-header .rd-navbar.rd-navbar--is-stuck {
    border-bottom: 1px solid rgba(51, 79, 72, .12) !important;
    background: var(--lecture-cream) !important;
    box-shadow: 0 .45rem 1.5rem rgba(39, 50, 47, .06) !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
@media (min-width: 1200px) {
    .page-header { min-height: 78px; }
    .page-header .rd-navbar-static {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 1080 !important;
        width: 100% !important;
    }
}
.rd-navbar-classic .rd-navbar-main { min-height: 78px; }
.rd-navbar-brand .lecture-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .8rem;
    color: var(--lecture-ink) !important;
}
.lecture-brand-mark {
    display: inline-grid;
    width: 52px;
    height: 52px;
    place-items: center;
    flex: 0 0 52px;
    border-radius: 4px;
    color: #fff;
    background: var(--lecture-primary);
    font-size: 1.15rem;
}
.lecture-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}
.lecture-brand-title {
    display: block;
    color: var(--lecture-ink) !important;
    font-family: "Noto Serif TC", serif;
    font-size: 1.03rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: .025em;
    white-space: nowrap;
}
.lecture-brand-subtitle {
    display: block;
    margin: 0 0 .38rem;
    color: var(--lecture-accent) !important;
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-size: .5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .13em;
    white-space: nowrap;
}
.rd-navbar-static .rd-nav-link { color: #4c5753 !important; font-size: .92rem; font-weight: 600; }
.rd-navbar-static .rd-nav-item:hover .rd-nav-link,
.rd-navbar-static .rd-nav-item.active .rd-nav-link {
    color: var(--lecture-primary) !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.rd-navbar-toggle span,
.rd-navbar-toggle span::before,
.rd-navbar-toggle span::after { background-color: var(--lecture-primary) !important; }
.rd-navbar-fixed .rd-navbar-panel { background: var(--lecture-cream) !important; }
.rd-navbar-fixed .rd-navbar-nav-wrap { background: var(--lecture-cream) !important; }
.rd-navbar-fixed .rd-nav-link { color: var(--lecture-ink) !important; border-left-color: transparent; }
.rd-navbar-fixed .rd-nav-item.active .rd-nav-link,
.rd-navbar-fixed .rd-nav-item:hover .rd-nav-link { color: var(--lecture-primary) !important; background: var(--lecture-primary-soft) !important; border-left-color: var(--lecture-accent); }

/* Inner page heading */
.bg-secondary,
.breadcrumbs-custom.bg-secondary {
    position: relative;
    isolation: isolate;
    padding-top: clamp(2.4rem, 5vw, 4.5rem);
    padding-bottom: clamp(2.2rem, 4vw, 3.8rem);
    color: var(--lecture-ink);
    background: var(--lecture-paper) !important;
    border-bottom: 1px solid var(--lecture-line);
}
.breadcrumbs-custom.bg-secondary::before,
.breadcrumbs-custom.bg-secondary::after { display: none !important; background-image: none !important; }
.breadcrumbs-custom-title { color: var(--lecture-ink) !important; font-size: clamp(2rem, 4vw, 3.15rem); }
.breadcrumbs-custom-title::after { width: 34px; height: 1px; background: var(--lecture-accent) !important; }
.breadcrumbs-custom-path,
.breadcrumbs-custom-path a,
.breadcrumbs-custom-path li { color: var(--lecture-muted) !important; }

/* Shared sections, forms and controls */
.section-custom, .bg-gray-150, .section.bg-default, .quiz-page, .competition-page { background: var(--lecture-cream) !important; }
.section-custom { padding-top: clamp(2.25rem, 4vw, 3.5rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.button, button, input, select, textarea { border-radius: 4px !important; }
.button { letter-spacing: .04em; box-shadow: none !important; }
.button-news, .button-card-practice, .button-card-ranking, .button-card-competition {
    color: #fff !important;
    border-color: var(--lecture-primary) !important;
    background: var(--lecture-primary) !important;
}
.button-card-competition {
    border-color: var(--lecture-secondary) !important;
    background: var(--lecture-secondary) !important;
}
.button:hover { transform: translateY(-1px); }
.button-news:hover, .button-card-practice:hover, .button-card-ranking:hover, .button-card-competition:hover {
    border-color: var(--lecture-secondary) !important;
    background: var(--lecture-secondary) !important;
}
.form-control, .quiz-input, textarea, select {
    border-color: #cbc8c0 !important;
    color: var(--lecture-ink) !important;
    background-color: #fff !important;
}
.form-control:focus, textarea:focus, select:focus { border-color: var(--lecture-primary) !important; box-shadow: 0 0 0 3px rgba(51, 79, 72, .1) !important; }

/* Homepage */
.section-custom .container.wide { border-bottom: 0 !important; }
.section-custom .title { color: var(--lecture-ink); font-size: clamp(2.2rem, 5vw, 4rem); }
.title::after {
    width: 34px !important;
    height: 1px !important;
    background: var(--lecture-accent) !important;
}
.introduction_text { max-width: 780px; margin: 1.25rem auto 0; color: var(--lecture-muted); font-size: 1.08rem; }
.lecture-principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 980px;
    margin: 3rem auto 0;
    border: 1px solid var(--lecture-line);
    background: #fff;
}
.lecture-principles div { padding: 2rem; text-align: left; }
.lecture-principles div + div { border-left: 1px solid var(--lecture-line); }
.lecture-principles strong { display: block; margin-bottom: .4rem; color: var(--lecture-primary); font-family: "Noto Serif TC", serif; font-size: 1.2rem; }
.lecture-principles div:nth-child(2) strong { color: var(--lecture-secondary); }
.lecture-principles span { color: var(--lecture-muted); font-size: .9rem; }
.bg-gray-150 { padding-top: clamp(4rem, 7vw, 6rem) !important; padding-bottom: clamp(4rem, 7vw, 6rem) !important; background: var(--lecture-paper) !important; }
.lecture-portal-heading { max-width: 760px; margin-bottom: 2rem; text-align: left; }
.lecture-section-index, .lecture-entry-label {
    display: block;
    margin-bottom: .6rem;
    color: var(--lecture-accent);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.lecture-portal-heading .title { margin-bottom: 1rem; text-align: left; }
.lecture-portal-heading .title::after { margin-right: auto; margin-left: 0; }
.lecture-portal-heading .subtitle-2 { color: var(--lecture-ink); }
.lecture-portal-heading p { color: var(--lecture-muted); }
.competition-notice { border-radius: 4px !important; border: 1px solid var(--lecture-line) !important; background: #fff !important; box-shadow: none !important; }
.competition-notice-status { color: #fff !important; background: var(--lecture-secondary) !important; }
.lecture-entry-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 1px;
    margin-top: 1.5rem;
    border: 1px solid var(--lecture-line);
    background: var(--lecture-line);
}
.lecture-entry-primary {
    position: relative;
    display: flex;
    min-height: 390px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4.5rem);
    color: #fff;
    background: var(--lecture-primary-dark);
}
.lecture-entry-primary::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2rem;
    width: 1px;
    background: rgba(255,255,255,.18);
}
.lecture-entry-primary:hover { color: #fff; background: #1b312c; }
.lecture-entry-primary .lecture-entry-number { position: absolute; top: 2rem; right: 2rem; color: rgba(255,255,255,.48); font-family: "Noto Serif TC", serif; font-size: 2rem; }
.lecture-entry-primary .lecture-entry-label { color: #cfb486; }
.lecture-entry-primary strong { max-width: 620px; font-family: "Noto Serif TC", serif; font-size: clamp(2rem, 4vw, 3.55rem); font-weight: 700; line-height: 1.35; }
.lecture-entry-description { max-width: 600px; margin-top: 1rem; color: rgba(255,255,255,.7); }
.lecture-entry-action { margin-top: 2rem; padding-bottom: .35rem; border-bottom: 1px solid rgba(255,255,255,.5); font-weight: 700; }
.lecture-entry-action i { margin-left: .6rem; }
.lecture-entry-secondary { display: grid; grid-template-rows: repeat(2, 1fr); gap: 1px; background: var(--lecture-line); }
.lecture-entry-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 2rem;
    color: var(--lecture-ink);
    background: #fff;
}
.lecture-entry-item:hover { color: var(--lecture-primary); background: #faf8f3; }
.lecture-entry-item .lecture-entry-number { align-self: start; color: var(--lecture-accent); font-family: "Noto Serif TC", serif; font-size: .8rem; }
.lecture-entry-item small, .lecture-entry-item strong, .lecture-entry-item em { display: block; }
.lecture-entry-item small { margin-bottom: .45rem; color: var(--lecture-muted); font-size: .65rem; font-style: normal; letter-spacing: .12em; text-transform: uppercase; }
.lecture-entry-item strong { font-family: "Noto Serif TC", serif; font-size: 1.4rem; }
.lecture-entry-item em { margin-top: .5rem; color: var(--lecture-muted); font-size: .85rem; font-style: normal; }
.lecture-entry-item > i { color: var(--lecture-accent); font-size: .85rem; }
.lecture-entry-item:nth-child(2) .lecture-entry-number,
.lecture-entry-item:nth-child(2) > i { color: var(--lecture-secondary); }
.professional-link-card {
    display: flex;
    min-height: 118px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--lecture-line);
    border-radius: 2px;
    color: var(--lecture-ink);
    background: #fff;
}
.professional-link-card:hover { color: var(--lecture-primary); border-color: rgba(51, 79, 72, .42); box-shadow: var(--lecture-shadow); }
.professional-link-card i { order: 2; color: var(--lecture-accent); font-size: .85rem; }
.professional-link-card:nth-child(even) i { color: var(--lecture-secondary); }
.professional-link-card span { font-family: "Noto Serif TC", serif; font-weight: 700; }

/* Lecture listing */
.lecture-library { background: var(--lecture-cream); }
.lecture-library-intro { max-width: 980px; margin-bottom: 2.5rem; }
.lecture-eyebrow { color: var(--lecture-accent); letter-spacing: .18em; }
.lecture-library-intro h2 { color: var(--lecture-ink); font-size: clamp(2rem, 4vw, 3.35rem); }
.lecture-library-intro p { color: var(--lecture-muted); }
.lecture-filter {
    margin-bottom: 2.5rem;
    padding: 1rem;
    border: 1px solid var(--lecture-line);
    border-radius: 4px;
    background: #fff;
    box-shadow: var(--lecture-shadow);
}
.lecture-filter label span { color: var(--lecture-muted); font-weight: 600; }
.lecture-filter select { border-radius: 2px !important; }
.lecture-filter button { border-radius: 2px !important; background: var(--lecture-primary); }
.lecture-filter button:hover,
.lecture-filter button:focus { background: var(--lecture-secondary) !important; }
.lecture-filter > a { border-radius: 2px !important; color: var(--lecture-primary); background: #eeeae2; }
.lecture-grid { gap: 1.35rem; }
.lecture-card { border-color: var(--lecture-line); border-radius: 2px; box-shadow: none; }
.lecture-card:hover { border-color: rgba(51,79,72,.28); transform: translateY(-2px); box-shadow: var(--lecture-shadow); }
.lecture-cover {
    aspect-ratio: 16/8.6;
    overflow: hidden;
    background: var(--lecture-primary-dark);
}
.lecture-cover::before { display: none; }
.lecture-cover-image { display: block; width: 100% !important; max-width: none !important; height: 100%; object-fit: cover; transition: transform .45s ease; }
.lecture-card:hover .lecture-cover-image { transform: scale(1.025); }
.lecture-cover-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: rgba(255,255,255,.55); background: var(--lecture-primary-dark); font-size: 2.5rem; }
.lecture-cover-year { position: absolute; bottom: .8rem; left: .8rem; z-index: 2; padding: .25rem .55rem; color: #fff; background: rgba(25,35,32,.82); font-family: "Noto Serif TC", serif; font-size: .82rem; font-weight: 700; letter-spacing: .06em; }
.lecture-play { position: absolute; top: 50%; left: 50%; z-index: 2; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; color: #fff; background: rgba(25,35,32,.72); transform: translate(-50%,-50%); }
.lecture-card-body { padding: 1.35rem; }
.lecture-meta { color: var(--lecture-muted); }
.lecture-meta span + span::before { color: var(--lecture-accent); }
.lecture-card:nth-child(even) .lecture-meta span + span::before { color: var(--lecture-secondary); }
.lecture-card h3, .lecture-card h3 a { color: var(--lecture-ink); }
.lecture-card h3 a:hover { color: var(--lecture-secondary); }
.lecture-card-body > p { color: var(--lecture-muted); }
.lecture-tags span { border: 1px solid #dec5bb; border-radius: 2px; color: var(--lecture-secondary); background: #f4e7e2; }
.lecture-quiz-link { color: var(--lecture-primary); }
.lecture-quiz-link:hover { color: var(--lecture-secondary); }
.lecture-empty { border-radius: 2px; background: var(--lecture-paper); }

/* Quiz, auth, member records and results */
.auth-hero, .auth-bg-login, .auth-bg-forgot, .auth-bg-password, .auth-bg-register, .auth-bg-profile,
.score-section { background: var(--lecture-paper) !important; background-image: none !important; }
.auth-hero::before, .auth-hero::after { display: none !important; }
.auth-hero .auth-card, .register-card, .member-panel, .score-card {
    border: 1px solid var(--lecture-line) !important;
    border-radius: 3px !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: var(--lecture-shadow) !important;
    backdrop-filter: none !important;
}
.register-visual-professional {
    display: grid;
    min-height: 300px;
    place-items: center;
    color: rgba(51,79,72,.72);
    background: #dfe4e0;
    font-size: 6rem;
}
.register-visual-professional::before { display: none !important; }
.lecture-player { border-radius: 3px; background: var(--lecture-primary-dark); box-shadow: var(--lecture-shadow); }
.lecture-player-frame { border-radius: 1px; }
.practice-lecture-heading, .quiz-session-heading, .competition-session-heading {
    border: 1px solid var(--lecture-line) !important;
    border-radius: 3px !important;
    background: #fff !important;
    box-shadow: none !important;
}
.radio-question-text.question { border-color: var(--lecture-line) !important; border-radius: 3px !important; background: #fff; }
.progress-linear-bar { background: var(--lecture-primary) !important; }
.reflection-box { border-color: var(--lecture-line); border-radius: 3px; background: var(--lecture-paper); }
.question-video-link { border-radius: 2px; background: var(--lecture-primary); }
.question-video-link:hover { background: var(--lecture-secondary); }
.score-card { min-height: 0; }
.score-card::before { background: none !important; }
.score-content { width: 100%; max-width: 720px; margin: auto; text-align: center; }
.score-result { color: var(--lecture-primary) !important; }
.score-mascot, .table-mascot, .section-cutout { display: none !important; }
.table-stage, .table-stage-profile, .table-stage-ranking { padding-top: 0 !important; }
.table-responsive, .ranking-table-wrap { border: 1px solid var(--lecture-line) !important; border-radius: 3px !important; box-shadow: none !important; }
.ranking-medal, .ranking-plain { border-radius: 2px !important; }

/* Remove all decorative bitmap backgrounds from the v1 frontend. */
.auth-bg-login, .auth-bg-forgot, .auth-bg-password, .auth-bg-register, .auth-bg-profile,
.score-section, .breadcrumbs-custom.bg-secondary, .bg-secondary { background-image: none !important; }

@media (max-width: 991px) {
    .rd-navbar-classic .rd-navbar-main { min-height: 64px; }
    .lecture-principles { grid-template-columns: 1fr; }
    .lecture-principles div + div { border-top: 1px solid var(--lecture-line); border-left: 0; }
    .lecture-entry-layout { grid-template-columns: 1fr; }
    .lecture-entry-primary { min-height: 340px; }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .section-custom, .section-md { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .lecture-principles div { padding: 1.35rem; }
    .lecture-filter { padding: .85rem; }
    .lecture-card-body { padding: 1.15rem; }
    .lecture-cover { aspect-ratio: 16/9; }
    .lecture-entry-primary { min-height: 320px; padding: 2rem; }
    .lecture-entry-primary::before { left: 1rem; }
    .lecture-entry-primary .lecture-entry-number { top: 1.25rem; right: 1.25rem; }
    .lecture-entry-item { padding: 1.4rem; }
    .register-visual-professional { min-height: 190px; font-size: 4rem; }
}

/* ========================================================================== */
/* Lecture platform refinement: navigation, inner heading, links and auth     */
/* ========================================================================== */

/* Use icon and type weight for the active item. */
.rd-navbar-static .rd-nav-item.active .rd-nav-link { font-weight: 700; }
.rd-navbar-static .rd-nav-item.active .rd-nav-link i { color: var(--lecture-accent) !important; }

/* Inner pages: editorial heading with a restrained geometric field. */
.breadcrumbs-custom.bg-secondary {
    position: relative;
    overflow: hidden;
    padding-top: clamp(2.6rem, 5vw, 4.8rem);
    padding-bottom: clamp(1.6rem, 3vw, 2.5rem);
    text-align: left !important;
    background: #e9ebe6 !important;
}
.breadcrumbs-custom.bg-secondary::before {
    content: "";
    position: absolute;
    top: 50%;
    right: clamp(-9rem, -5vw, -3rem);
    display: block !important;
    width: clamp(15rem, 28vw, 27rem);
    height: clamp(15rem, 28vw, 27rem);
    border: 1px solid rgba(51, 79, 72, .12);
    border-radius: 50%;
    background: transparent !important;
    box-shadow: 0 0 0 42px rgba(51,79,72,.035), 0 0 0 84px rgba(51,79,72,.025), 0 0 0 126px rgba(51,79,72,.018);
    transform: translateY(-50%);
}
.breadcrumbs-custom.bg-secondary::after { display: none !important; }
.breadcrumbs-custom .container { position: relative; z-index: 1; }
.breadcrumbs-custom-title {
    max-width: 900px;
    margin: 0 !important;
    color: var(--lecture-ink) !important;
    text-align: left !important;
    font-size: clamp(2rem, 4vw, 3.35rem);
}
.breadcrumbs-custom-title::after { display: none !important; }
.breadcrumbs-custom-path {
    display: flex !important;
    width: min(100%, 900px);
    justify-content: flex-start !important;
    margin: 1.5rem 0 0 !important;
    padding-top: .8rem;
    border-top: 1px solid rgba(51,79,72,.2);
    text-align: left !important;
}
.breadcrumbs-custom-path,
.breadcrumbs-custom-path a,
.breadcrumbs-custom-path li { color: #64706c !important; }

/* Homepage modules share one content edge. */
.lecture-portal-section .competition-notice,
.lecture-portal-section .lecture-entry-layout {
    width: 100%;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Compact partner/resource directory with the original managed image. */
.friendly-link-section {
    padding-top: clamp(3rem, 5vw, 4.5rem) !important;
    padding-bottom: clamp(3rem, 5vw, 4.5rem) !important;
    background: #fff !important;
}
.friendly-link-heading {
    position: relative;
    min-height: 178px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    padding: clamp(1.6rem, 3vw, 2.5rem);
    color: #fff;
    text-align: left;
    background: linear-gradient(120deg, #202957, #27376e);
    border-radius: 2px;
}
.friendly-link-heading::before {
    content: "";
    position: absolute;
    top: -9rem;
    right: 15%;
    width: 23rem;
    height: 23rem;
    border: 1px solid rgba(244, 197, 46, .36);
    border-radius: 50%;
    box-shadow: 0 0 0 2rem rgba(255, 255, 255, .035), 0 0 0 4rem rgba(255, 255, 255, .02);
}
.friendly-link-heading-visual {
    position: absolute;
    right: clamp(1rem, 7vw, 6rem);
    bottom: -2.8rem;
    z-index: 0;
    width: min(22vw, 182px);
    height: 210px;
    background: url('/images/givas-friendly-link-character.png') right bottom / contain no-repeat;
    filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .24));
}
.friendly-link-heading > :not(.friendly-link-heading-visual) { position: relative; z-index: 1; }
.friendly-link-heading .lecture-section-index { color: var(--givas-yellow); }
.friendly-link-heading .title { margin-bottom: .35rem; color: #fff; text-align: left; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.friendly-link-heading .title::after { margin-right: auto; margin-left: 0; }
.friendly-link-heading p { margin-bottom: 0; color: rgba(255, 255, 255, .74); }
.friendly-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.professional-link-card {
    display: grid;
    min-height: 88px;
    grid-template-columns: minmax(72px, 108px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid var(--lecture-line);
    border-radius: 2px;
    color: var(--lecture-ink);
    background: #fff;
    box-shadow: none;
}
.professional-link-card:hover { color: var(--lecture-primary); border-color: rgba(51,79,72,.38); box-shadow: 0 10px 26px rgba(39,50,47,.07); transform: translateY(-2px); }
.professional-link-media { display: grid; height: 54px; place-items: center; padding: .25rem; border-right: 1px solid var(--lecture-line); }
.professional-link-media img { display: block; width: 100%; max-width: 94px; max-height: 46px; object-fit: contain; filter: saturate(.72); }
.professional-link-card:hover .professional-link-media img { filter: saturate(1); }
.professional-link-title { overflow: hidden; font-family: "Noto Sans TC", sans-serif !important; font-size: .9rem; font-weight: 600 !important; line-height: 1.45; }
.professional-link-card > i { color: var(--lecture-accent); font-size: .72rem; }

/* Member pages: content panel + form panel, without decorative gradient rules. */
.auth-section.auth-hero { background: var(--lecture-paper) !important; }
.auth-hero-shell {
    display: grid !important;
    width: min(100%, 1040px);
    grid-template-columns: minmax(300px, .82fr) minmax(380px, 1.18fr);
    align-items: stretch;
    margin: 0 auto;
    border: 1px solid var(--lecture-line);
    background: #fff;
    box-shadow: var(--lecture-shadow);
}
.auth-context {
    position: relative;
    display: flex;
    min-height: 480px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.5rem);
    color: #fff;
    background: var(--lecture-primary-dark);
}
.auth-context::before {
    content: "";
    position: absolute;
    top: -6rem;
    right: -6rem;
    width: 15rem;
    height: 15rem;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    box-shadow: 0 0 0 32px rgba(255,255,255,.025), 0 0 0 64px rgba(255,255,255,.018);
}
.auth-context > span { color: #cfb486; font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.auth-context h2 { margin-top: .6rem; color: #fff; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.auth-context p { margin-top: 1rem; color: rgba(255,255,255,.7); }
.auth-context ul { margin-top: 1.5rem; padding: 1.1rem 0 0; border-top: 1px solid rgba(255,255,255,.16); list-style: none; }
.auth-context li { color: rgba(255,255,255,.78); font-size: .85rem; }
.auth-context li + li { margin-top: .35rem; }
.auth-context li::before { content: "—"; margin-right: .55rem; color: #cfb486; }
.auth-hero .auth-card {
    width: 100% !important;
    min-height: 480px;
    padding: clamp(2rem, 4vw, 3.5rem) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.auth-card h3 { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--lecture-line); }
.auth-card h3::after { display: none !important; background: none !important; }

@media (max-width: 991px) {
    .friendly-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-hero-shell { grid-template-columns: 1fr; }
    .auth-context { min-height: 290px; }
    .auth-hero .auth-card { min-height: 0; }
}

@media (max-width: 640px) {
    .breadcrumbs-custom.bg-secondary { padding-top: 2.4rem; padding-bottom: 1.5rem; }
    .breadcrumbs-custom-path { flex-wrap: wrap; margin-top: 1rem !important; }
    .friendly-link-grid { grid-template-columns: 1fr; }
    .professional-link-card { grid-template-columns: 84px minmax(0, 1fr) auto; }
    .auth-context { min-height: 250px; padding: 1.75rem; }
    .auth-hero .auth-card { padding: 1.75rem !important; }
}

/* ========================================================================== */
/* Lecture platform refinement 2: active nav, tags and registration           */
/* ========================================================================== */

.rd-navbar-static .rd-nav-item.active .rd-nav-link { color: var(--lecture-accent-dark) !important; font-weight: 700; }
.rd-navbar-static .rd-nav-item.active .rd-nav-link i { color: var(--lecture-accent-dark) !important; }
.breadcrumbs-custom-path { width: 100%; }

.lecture-filter select,
.lecture-filter input { width: 100%; height: 46px; border: 1px solid var(--lecture-control-line); border-radius: 2px !important; color: var(--lecture-ink); background: #fff; }
.lecture-filter input { padding: 0 .85rem; }
.lecture-tags a { display: inline-flex; margin: .2rem .35rem .2rem 0; padding: .22rem .55rem; border: 1px solid #dec5bb; border-radius: 2px; color: var(--lecture-secondary); background: #f4e7e2; font-size: .82rem; }
.lecture-tags a:hover { color: #fff; border-color: var(--lecture-secondary); background: var(--lecture-secondary); }

.register-section { background: var(--lecture-paper) !important; }
.register-panel {
    display: grid !important;
    width: min(100%, 1120px);
    max-width: none !important;
    grid-template-columns: minmax(300px, .72fr) minmax(560px, 1.28fr);
    align-items: stretch;
    margin: 0 auto;
    border: 1px solid var(--lecture-line);
    background: #fff;
    box-shadow: var(--lecture-shadow);
}
.register-cultural-panel {
    position: relative;
    display: flex;
    min-height: 760px;
    align-items: flex-end;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.25rem);
    color: #fff;
    background: #223b35;
}
.register-cultural-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,36,32,.18) 15%, rgba(21,36,32,.9) 100%); }
.register-cultural-copy { position: relative; z-index: 1; }
.register-cultural-copy > span { color: #dfc69c; font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.register-cultural-copy h2 { margin-top: .6rem; color: #fff; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.register-cultural-copy p { margin-top: 1rem; color: rgba(255,255,255,.78); }
.register-panel .register-card {
    width: 100% !important;
    padding: clamp(2rem, 4vw, 3.5rem) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 991px) {
    .register-panel { grid-template-columns: 1fr; }
    .register-cultural-panel { min-height: 300px; background-position: center 56%; }
}

@media (max-width: 640px) {
    .register-cultural-panel { min-height: 230px; padding: 1.75rem; }
    .register-panel .register-card { padding: 1.75rem !important; }
}

/* Final palette cleanup for forms, links, active navigation and data tables. */

.register-panel .register-card { padding: clamp(2.5rem, 4vw, 4rem) !important; }
.register-card h3::after,
.form-group-panel h4::after { display: none !important; background: none !important; }
.register-form {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.5rem !important;
}
.form-group-panel {
    padding: clamp(1.4rem, 3vw, 2rem) !important;
    border-color: var(--lecture-line) !important;
    border-radius: 3px !important;
    background: #fffdf9 !important;
}
.form-group-panel h4 {
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    color: var(--lecture-ink) !important;
    border-bottom: 1px solid var(--lecture-line);
}
.register-form .form-wrap + .form-wrap { margin-top: 1.2rem; }

.radio-text label:hover,
.radio-text input[type="radio"]:checked + label,
.radio-text input[type="radio"]:checked + .radio-custom-dummy + label,
.radio-text label.is-checked,
.auth-card .radio-text input[type="radio"]:checked + label,
.auth-card .radio-text input[type="radio"]:checked + .radio-custom-dummy + label,
.auth-card .radio-text label.is-checked,
.form-group-panel .radio-text input[type="radio"]:checked + label,
.form-group-panel .radio-text input[type="radio"]:checked + .radio-custom-dummy + label,
.form-group-panel .radio-text label.is-checked {
    color: #fff !important;
    border-color: var(--lecture-primary) !important;
    background: var(--lecture-primary) !important;
    box-shadow: 0 .4rem 1rem rgba(51,79,72,.18) !important;
}

.text-link:hover,
.text-link-page:hover,
.introduction_text a:hover,
.member-panel a:not(.button):hover,
.auth-card a:not(.button):hover,
.table-custom a:not(.button):hover,
.ranking-table a:not(.button):hover,
.breadcrumbs-custom-path a:hover {
    color: var(--lecture-accent) !important;
}

.table-custom thead th,
.ranking-table thead th {
    color: #fff !important;
    border-color: rgba(255,255,255,.12) !important;
    background: var(--lecture-primary) !important;
}

@media (min-width: 768px) {
    .table-custom thead th + th,
    .ranking-table thead th + th {
        border-left: 1px solid rgba(255,255,255,.24) !important;
    }

    .table-custom tbody td + td,
    .ranking-table tbody td + td {
        border-left: 1px solid var(--lecture-line) !important;
    }
}
.table-custom tbody tr:nth-child(even) { background: var(--lecture-paper) !important; }
.table-custom tbody tr:hover,
.ranking-table tbody tr:hover { background: var(--lecture-primary-soft) !important; }
.ranking-table-wrap,
.ranking-table { background: #fff !important; }

@media (max-width: 640px) {
    .register-panel .register-card { padding: 1.75rem !important; }
    .form-group-panel { padding: 1.25rem !important; }
}

/* Registration uses one generous form panel below the cultural visual. */
.register-panel {
    grid-template-columns: minmax(0, 1fr) !important;
}
.register-cultural-panel {
    min-height: clamp(250px, 31vw, 360px);
    align-items: flex-end;
    background-position: center 48%;
}
.register-panel .register-card {
    width: min(100%, 820px) !important;
    margin: 0 auto;
}
.register-form { gap: 2rem !important; }
.register-form-section {
    padding: 0;
    border: 0;
    background: transparent;
}
.register-form-section + .register-form-section {
    padding-top: .25rem;
}
.register-form-section h4 {
    margin-bottom: 1.5rem;
    padding: 0 0 .75rem;
    color: var(--lecture-ink) !important;
    border-bottom: 1px solid var(--lecture-line);
}
.register-form-section h4::after { display: none !important; }
.register-form-section .form-wrap + .form-wrap { margin-top: 1.2rem; }

/* Desktop navigation underline grows from the center into the active palette. */
.rd-navbar-static .rd-nav-link {
    position: relative;
    transform: none !important;
    transition: color .28s ease !important;
}
.rd-navbar-static .rd-nav-link::after {
    content: "";
    position: absolute;
    top: calc(100% + 5px);
    right: .15rem;
    bottom: auto;
    left: .15rem;
    display: block !important;
    height: 2px;
    opacity: 0;
    background: linear-gradient(90deg, var(--lecture-secondary), var(--lecture-accent), var(--lecture-primary));
    background-position: 100% 0;
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .34s cubic-bezier(.22, .61, .36, 1), opacity .18s ease, background-position .45s ease;
}
.rd-navbar-static .rd-nav-link:hover::after,
.rd-navbar-static .rd-nav-link:focus-visible::after,
.rd-navbar-static .rd-nav-item.focus .rd-nav-link::after,
.rd-navbar-static .rd-nav-item.active .rd-nav-link::after,
.rd-navbar-static .rd-nav-item.opened .rd-nav-link::after {
    opacity: 1;
    background-position: 0 0;
    transform: scaleX(1);
}

@media (max-width: 640px) {
    .register-cultural-panel { min-height: 220px; background-position: center 50%; }
}

.lecture-pagination { display: flex; justify-content: center; margin-top: 2.5rem; margin-bottom:1rem; }
.lecture-pagination .page {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
    min-height: 0;
    overflow: visible;
    opacity: 1;
    background: none;
}
.lecture-pagination .page a,
.lecture-pagination .page span {
    display: grid;
    min-width: 38px;
    height: 38px;
    place-items: center;
    padding: 0 .65rem;
    border: 1px solid var(--lecture-line);
    color: var(--lecture-primary);
    background: #fff;
}
.lecture-pagination .page a:hover,
.lecture-pagination .page .active { color: #fff; border-color: var(--lecture-primary); background: var(--lecture-primary); }

/* Lecture and registration banners share one editorial layout. */
.breadcrumbs-custom.bg-secondary {
    background-color: var(--lecture-banner) !important;
    background-image: url("../images/lecture-weave-pattern.svg") !important;
    background-position: left center !important;
    background-size: 360px auto !important;
}
.breadcrumbs-custom.bg-secondary::before {
    top: 50%;
    right: clamp(-7rem, -5vw, -3.5rem);
    bottom: auto;
    left: auto;
    width: clamp(17rem, 27vw, 25rem);
    height: clamp(17rem, 27vw, 25rem);
    z-index: 0;
    border: 1px solid rgba(51,79,72,.13);
    border-radius: 50%;
    background: rgba(255,255,255,.06) !important;
    box-shadow: 0 0 0 38px rgba(51,79,72,.035), 0 0 0 76px rgba(51,79,72,.022);
    clip-path: none;
    opacity: 1;
    transform: translateY(-50%);
}
.breadcrumbs-custom.bg-secondary::after { display: none !important; }
.content-banner-layout {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(480px, 1.18fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
}
.content-banner-heading { min-width: 0; }
.content-banner-copy {
    position: relative;
    width: min(100%, 560px);
    justify-self: end;
    padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.35rem, 2.8vw, 2rem);
    border: 1px solid rgba(255,255,255,.34);
    background: rgba(255,253,249,.44);
    box-shadow: 0 10px 26px rgba(39,50,47,.045);
    text-align: right;
}
.content-banner-copy::before,
.content-banner-copy::after { display: none; }
.content-banner-copy > span {
    display: block;
    margin-bottom: .65rem;
    color: var(--lecture-accent);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.content-banner-copy h3 {
    margin: 0;
    color: var(--lecture-ink);
    font-family: "Noto Sans TC", sans-serif;
    font-size: clamp(1.08rem, 1.55vw, 1.38rem);
    font-weight: 600;
    line-height: 1.6;
    text-wrap: balance;
}
.content-banner-copy p {
    margin: .8rem 0 0;
    color: var(--lecture-muted);
    font-size: .86rem;
    line-height: 1.8;
}
.content-banner .breadcrumbs-custom-path {
    width: 100%;
    max-width: 360px;
}
.breadcrumbs-custom-path li::after {
    content: "";
    top: 50%;
    right: -4px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--lecture-accent);
    border-right: 2px solid var(--lecture-accent);
    color: transparent;
    font-family: inherit;
    transform: translateY(-50%) rotate(45deg);
}
.breadcrumbs-custom-path li:last-child::after { display: none; }

/* The registration fields remain one form, split by one restrained rule. */
.register-panel {
    display: block !important;
    width: min(100%, 1080px);
}
.register-panel .register-card {
    width: 100% !important;
    max-width: none;
    padding: clamp(2rem, 4vw, 3.5rem) !important;
}
.register-card > p {
    max-width: 920px;
    margin-bottom: 2rem;
    color: var(--lecture-muted);
    font-size: .88rem;
    line-height: 1.8;
}
.register-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
}
.register-form-section:first-child { padding-right: clamp(1.5rem, 4vw, 3.25rem); }
.register-form-section + .register-form-section {
    padding-top: 0;
    padding-left: clamp(1.5rem, 4vw, 3.25rem);
    border-left: 1px solid var(--lecture-line);
}
.register-form > .button,
.register-form > .text-decoration-lines {
    grid-column: 1 / -1;
}
.register-form > .button { margin-top: 2rem; }

/* The selected keyword tag is visually distinct from the other tags. */
.lecture-tags a.active {
    color: #fff;
    border-color: var(--lecture-secondary);
    background: var(--lecture-secondary);
}
.lecture-tags a.active:hover {
    border-color: var(--lecture-primary-dark);
    background: var(--lecture-primary-dark);
}

/* Compact lecture-platform footer, distinct from the original quiz footer. */
.lecture-footer {
    padding: 1.75rem 30px !important;
    border-top: 2px solid var(--lecture-accent);
    color: rgba(255,255,255,.72);
    background-color: var(--lecture-primary-dark) !important;
    background-image: url("../images/lecture-weave-pattern.svg") !important;
    background-size: 360px auto !important;
}
.lecture-footer-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 0 !important;
}
.lecture-footer-identity { display: flex; align-items: center; gap: 1rem; text-align: left; }
.lecture-footer-identity > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--lecture-accent);
    color: var(--lecture-accent);
    font-family: "Noto Serif TC", serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
}
.lecture-footer-identity strong,
.lecture-footer-identity small { display: block; }
.lecture-footer-identity strong { color: #fff; font-family: "Noto Serif TC", serif; font-size: .95rem; }
.lecture-footer-identity small { margin-top: .25rem; color: rgba(255,255,255,.52); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.lecture-footer .rights {
    margin: 0;
    color: rgba(255,255,255,.58) !important;
    font-size: .76rem !important;
    font-weight: 400;
    text-align: right;
}

.page-header .rd-nav-link i,
.page-header .rd-nav-item:hover .rd-nav-link i,
.page-header .rd-nav-item.opened .rd-nav-link i {
    color: var(--lecture-muted) !important;
    font-size: .78em;
    opacity: .82;
    transition: none !important;
}
.page-header .rd-nav-item.active .rd-nav-link i {
    color: var(--lecture-accent-dark) !important;
    opacity: 1;
}

@media (max-width: 991px) {
    /* Keep the mobile drawer above inner-page banners and outside .page clipping. */
    .page-header {
        position: relative !important;
        z-index: 2140 !important;
    }
    html.navbar-open .page,
    body.navbar-open .page {
        overflow: visible !important;
    }
    .rd-navbar-fixed.navbar-open,
    .rd-navbar-fixed.navbar-open .rd-navbar-main-outer,
    .rd-navbar-fixed.navbar-open .rd-navbar-main,
    .rd-navbar-fixed.navbar-open .rd-navbar-main-element {
        overflow: visible !important;
    }
    .rd-navbar-fixed .rd-navbar-panel {
        position: relative !important;
        z-index: 2150 !important;
    }
    .rd-navbar-fixed .rd-navbar-nav-wrap {
        z-index: 2145 !important;
    }
    .rd-navbar-fixed .lecture-brand { display: flex !important; }
    .lecture-brand-mark { width: 44px; height: 44px; flex-basis: 44px; font-size: 1rem; }
    .lecture-brand-title { font-size: .88rem; }
    .lecture-brand-subtitle { margin: 0 0 .3rem; font-size: .43rem; letter-spacing: .1em; }
    .content-banner-layout { grid-template-columns: 1fr; gap: 1.8rem; }
    .content-banner-copy {
        width: 100%;
        justify-self: start;
        padding: 1.25rem 1.35rem;
        border: 1px solid rgba(255,255,255,.32);
        background: rgba(255,253,249,.44);
        text-align: left;
    }
}

@media (max-width: 767px) {
    .register-form { grid-template-columns: minmax(0, 1fr) !important; }
    .register-form-section:first-child { padding-right: 0; }
    .register-form-section + .register-form-section {
        margin-top: 2rem;
        padding-top: 2rem;
        padding-left: 0;
        border-top: 1px solid var(--lecture-line);
        border-left: 0;
    }
    .lecture-footer-layout { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
    .lecture-footer .rights { text-align: left; }
}

@media (max-width: 420px) {
    .lecture-brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
    .lecture-brand-title { font-size: .78rem; }
    .lecture-brand-subtitle { font-size: .38rem; letter-spacing: .07em; }
}

.title::after,
.breadcrumbs-custom-title::after,
.divider,
.auth-card h3::after,
.register-card h3::after,
.form-group-panel h4::after,
.score-content h3::after,
.attempt-summary h3::after {
    display: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* Member center: four direct destinations instead of empty preview panels. */
.member-hub-section {
    padding-top: 2rem !important;
    padding-bottom: clamp(3.5rem, 7vw, 6rem) !important;
}
.member-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}
.member-hub-card {
    display: flex;
    min-height: 290px;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border: 1px solid var(--lecture-line);
    border-top: 3px solid var(--lecture-primary);
    color: var(--lecture-ink);
    background: #fff;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.member-hub-card:nth-child(1) { border-top-color: #486f83; }
.member-hub-card:nth-child(2) { border-top-color: var(--lecture-secondary); }
.member-hub-card:nth-child(3) { border-top-color: var(--lecture-primary); }
.member-hub-card:nth-child(4) { border-top-color: var(--lecture-accent-dark); }
.member-hub-card:hover {
    color: var(--lecture-ink);
    border-color: rgba(51,79,72,.34);
    box-shadow: var(--lecture-shadow);
    transform: translateY(-3px);
}
.member-hub-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 1.6rem;
    place-items: center;
    border: 1px solid var(--lecture-line);
    color: var(--lecture-primary);
    background: var(--lecture-primary-soft);
    font-size: 1.35rem;
}
.member-hub-card:nth-child(1) .member-hub-icon { color: #486f83; background: #edf3f5; }
.member-hub-card:nth-child(2) .member-hub-icon { color: var(--lecture-secondary); background: #f5e9e4; }
.member-hub-card:nth-child(3) .member-hub-icon { color: var(--lecture-primary); background: var(--lecture-primary-soft); }
.member-hub-card:nth-child(4) .member-hub-icon { color: var(--lecture-accent-dark); background: #f6f0e5; }
.member-hub-card > strong {
    font-family: "Noto Serif TC", serif;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}
.member-hub-card > p {
    margin-top: .8rem;
    color: var(--lecture-muted);
    font-size: .92rem;
    line-height: 1.8;
}
.member-hub-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--lecture-secondary);
    font-size: .85rem;
    font-weight: 700;
}
.member-hub-card:nth-child(1) .member-hub-link { color: #486f83; }
.member-hub-card:nth-child(2) .member-hub-link { color: var(--lecture-secondary); }
.member-hub-card:nth-child(3) .member-hub-link { color: var(--lecture-primary); }
.member-hub-card:nth-child(4) .member-hub-link { color: var(--lecture-accent-dark); }
.member-hub-card:nth-child(1):hover { border-color: rgba(72, 111, 131, .42); }
.member-hub-card:nth-child(2):hover { border-color: rgba(171, 91, 62, .4); }
.member-hub-card:nth-child(3):hover { border-color: rgba(51, 79, 72, .4); }
.member-hub-card:nth-child(4):hover { border-color: rgba(158, 119, 45, .4); }

/* Profile form follows the registration page's two-column structure. */
.profile-password-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.15rem 0;
    border-top: 1px solid var(--lecture-line);
    border-bottom: 1px solid var(--lecture-line);
}
.profile-password-entry strong,
.profile-password-entry span { display: block; }
.profile-password-entry strong { color: var(--lecture-ink); }
.profile-password-entry span { margin-top: .25rem; color: var(--lecture-muted); font-size: .8rem; }
.profile-password-entry .text-link { flex: 0 0 auto; }

@media (max-width: 1100px) {
    .member-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .member-hub-card { min-height: 230px; }
}

@media (max-width: 640px) {
    .member-hub-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .profile-password-entry { align-items: flex-start; flex-direction: column; }
}

/* Member center destinations share the same banner-to-content spacing. */
.member-section-content.section-md {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

@media (max-width: 768px) {
    .member-hub-section {
        padding-top: 1.75rem !important;
    }

    .member-section-content.section-md {
        padding-top: 1.75rem !important;
        padding-bottom: 1.75rem !important;
    }
}

@media (max-width: 575px) {
    .member-hub-section {
        padding-top: 1.5rem !important;
    }

    .member-section-content.section-md {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Attempt summaries follow the current white, gray-green and clay palette. */
.attempt-summary h3 {
    color: var(--lecture-ink);
    font-weight: 700;
}

.attempt-score-card,
.attempt-summary-competition .attempt-score-card {
    border: 1px solid var(--lecture-line);
    border-radius: 3px;
    background: #fff !important;
    box-shadow: none;
}

.attempt-score-cell + .attempt-score-cell,
.attempt-summary-competition .attempt-score-cell + .attempt-score-cell {
    border-left-color: var(--lecture-line);
    background: #fff !important;
}

.attempt-score-cell span { color: var(--lecture-primary); }
.attempt-score-number { color: var(--lecture-secondary) !important; }

/* Shared field icons for login, registration and member account forms. */
.auth-input-shell,
.auth-captcha-row {
    position: relative;
}
.auth-field-icon {
    position: absolute;
    top: 2rem;
    left: 1rem;
    z-index: 2;
    display: inline-flex;
    width: 1.15rem;
    align-items: center;
    justify-content: center;
    color: var(--lecture-primary);
    font-size: .95rem;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
    transition: color .2s ease;
}
.auth-input-shell .form-input,
.auth-captcha-row .form-input {
    padding-left: 3rem !important;
}
.auth-input-shell:focus-within .auth-field-icon,
.auth-captcha-row:focus-within .auth-field-icon {
    color: var(--lecture-secondary);
}
.auth-captcha-icon .fa-shield {
    font-size: 1.05rem;
}
.auth-captcha-icon .fa-check {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fffdf8;
    font-size: .42rem;
    transform: translate(-50%, -54%);
}
.auth-captcha-hint {
    display: block;
    margin-top: .45rem;
    color: var(--lecture-muted);
    font-size: .78rem;
    line-height: 1.5;
}
.auth-captcha-row img.captcha {
    cursor: pointer;
}

/* ========================================================================== */
/* Givas brand refresh: culture-led learning with a brighter challenge accent */
/* ========================================================================== */
:root {
    --givas-indigo: #394798;
    --givas-pink: #d72577;
    --givas-yellow: #f4c52e;
    --givas-sky: #eaf6f4;
    --givas-navy: #202957;
}

.lecture-brand-mark {
    overflow: hidden;
    border: 1px solid rgba(57, 71, 152, .14);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(32, 41, 87, .08);
}
.lecture-brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.lecture-brand-title {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-weight: 700;
    letter-spacing: .02em;
}
.lecture-brand-subtitle { color: var(--givas-indigo) !important; }
.rd-navbar-static .rd-nav-link::after {
    background: linear-gradient(90deg, var(--givas-indigo), var(--givas-pink), var(--givas-yellow));
}

.givas-hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(2.5rem, 5vw, 5.5rem);
    padding-bottom: clamp(1.75rem, 3vw, 3rem);
    background: var(--lecture-cream) !important;
}
.givas-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1.15rem;
    opacity: .8;
    background:
        linear-gradient(135deg, transparent 48%, rgba(54, 62, 151, .12) 49%, rgba(54, 62, 151, .12) 51%, transparent 52%) 0 0 / 2.4rem 1.15rem repeat-x,
        linear-gradient(90deg, var(--givas-indigo), var(--givas-pink), var(--givas-yellow));
    clip-path: polygon(0 35%, 8% 35%, 10% 0, 12% 35%, 88% 35%, 90% 0, 92% 35%, 100% 35%, 100% 100%, 0 100%);
}
.givas-hero::before {
    content: "";
    position: absolute;
    top: 12%;
    left: -5rem;
    width: 10rem;
    height: 10rem;
    border: 1.25rem solid var(--givas-sky);
    border-radius: 50%;
    opacity: .9;
}
.givas-hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(480px, 1.12fr);
    gap: clamp(2.5rem, 5vw, 5.5rem);
    align-items: center;
    padding-bottom: clamp(1.25rem, 2vw, 2rem);
}
.lecture-portal-section {
    padding-top: clamp(2rem, 4vw, 3.5rem) !important;
    background: linear-gradient(180deg, #f7f8ff 0%, #f7f8ff 46%, #fbfbff 76%, #fff 100%) !important;
}
.givas-hero-visual-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1.1rem;
}
.givas-hero-copy {
    position: static;
    z-index: 2;
    padding: 1rem 0;
    text-align: left;
}
.givas-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    color: var(--givas-indigo);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
}
.givas-hero-eyebrow::before {
    content: "";
    width: 2.5rem;
    height: 4px;
    border-radius: 999px;
    background: var(--givas-pink);
    box-shadow: 1.1rem 0 0 var(--givas-yellow);
}
.givas-hero .title {
    max-width: 11em;
    margin: 0;
    color: var(--givas-navy);
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif !important;
    font-size: clamp(2.45rem, 4.6vw, 4.8rem);
    font-weight: 700 !important;
    line-height: 1.28;
    text-align: left;
}
.givas-hero .introduction_text {
    max-width: 680px;
    margin: 1.35rem 0 0;
    color: #556461;
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1.9;
}
.givas-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    justify-content: flex-end;
    margin-top: .35rem;
}
.givas-hero-actions .button {
    display: inline-flex;
    min-width: 148px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    margin: 0;
    padding: .8rem 1.5rem;
    border-radius: 999px !important;
    font-size: .92rem;
}
.givas-button-primary {
    color: #fff !important;
    border-color: var(--givas-indigo) !important;
    background: var(--givas-indigo) !important;
}
.givas-button-primary:hover {
    border-color: var(--givas-pink) !important;
    background: var(--givas-pink) !important;
}
.givas-button-secondary {
    color: var(--givas-navy) !important;
    border-color: rgba(32, 41, 87, .24) !important;
    background: #fff !important;
}
.givas-button-secondary:hover {
    color: var(--givas-indigo) !important;
    border-color: var(--givas-indigo) !important;
    background: #fff !important;
}
.givas-hero-media {
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding: 0 0 1.4rem 1.4rem;
}
.givas-hero-media::before,
.givas-hero-media::after {
    content: "";
    position: absolute;
    z-index: -1;
}
.givas-hero-media::before {
    right: -1rem;
    bottom: 0;
    width: 76%;
    height: 58%;
    border-radius: 1.25rem;
    background: var(--givas-yellow);
}
.givas-hero-media::after {
    top: -1rem;
    left: 0;
    width: 34%;
    height: 42%;
    border-radius: 1.25rem 0 0 0;
    background: var(--givas-pink);
}
.givas-hero-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(32, 41, 87, .2);
}
.givas-hero-media-label {
    position: absolute;
    right: clamp(.8rem, 3vw, 2rem);
    bottom: 0;
    max-width: calc(100% - 4rem);
    padding: .7rem 1rem;
    border-radius: .4rem;
    color: var(--givas-navy);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 24px rgba(32, 41, 87, .12);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.givas-hero .lecture-principles {
    max-width: none;
    margin: 0;
    border-radius: .75rem;
    box-shadow: 0 14px 34px rgba(32, 41, 87, .06);
}
.givas-hero .lecture-principles + .givas-hero-actions {
    margin-top: 1.25rem;
}
.givas-hero .lecture-principles > div {
    position: relative;
    padding: 1.55rem 1.75rem 1.45rem;
    border-top: 4px solid var(--givas-indigo);
}
.givas-hero .lecture-principles > div:nth-child(2) { border-top-color: var(--givas-pink); }
.givas-hero .lecture-principles > div:nth-child(3) { border-top-color: var(--givas-yellow); }
.givas-hero .lecture-principles > div:nth-child(1) strong { color: var(--givas-indigo); }
.givas-hero .lecture-principles > div:nth-child(2) strong { color: var(--givas-pink); }
.givas-hero .lecture-principles > div:nth-child(3) strong { color: var(--lecture-primary); }

.lecture-footer-mark {
    overflow: hidden;
    border-color: rgba(255, 255, 255, .28) !important;
    border-radius: 50%;
    background: #fff;
}
.lecture-footer-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.lecture-footer-identity strong {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

@media (max-width: 1100px) {
    .givas-hero-layout {
        grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
        gap: 2.5rem;
    }
    .givas-hero .title { font-size: clamp(2.25rem, 4.4vw, 3.6rem); }
}

@media (max-width: 900px) {
    .givas-hero-layout { grid-template-columns: 1fr; }
    .givas-hero-copy { position: relative; max-width: 760px; padding-bottom: 1rem; }
    .givas-hero-visual-column { width: min(100%, 760px); }
    .givas-hero-actions { justify-content: flex-start; }
    .givas-hero .title { max-width: none; }
    .givas-hero-media { width: min(100%, 760px); }
}

@media (max-width: 640px) {
    .givas-hero {
        padding-top: 2.25rem !important;
        padding-bottom: 3rem !important;
    }
    .givas-hero::before { display: none; }
    .givas-hero-layout { gap: 2rem; }
    .givas-hero .title { font-size: clamp(2.05rem, 10vw, 3rem); }
    .givas-hero-eyebrow {
        font-size: .62rem;
        letter-spacing: .11em;
    }
    .givas-hero-media { padding: 0 0 .9rem .7rem; }
    .givas-hero-media::after {
        top: -.6rem;
        width: 38%;
        height: 45%;
        border-radius: .8rem 0 0 0;
    }
    .givas-hero-media::before {
        right: -.4rem;
        border-radius: .8rem;
    }
    .givas-hero-media img { border-radius: .7rem; aspect-ratio: 16 / 9; }
    .givas-hero-media-label {
        right: .4rem;
        max-width: calc(100% - 2rem);
        font-size: .72rem;
    }
    .givas-hero .lecture-principles > div { padding: 1.25rem 1.35rem; }
}

/* ========================================================================== */
/* Givas visual system: shared inner pages, learning and member experiences  */
/* ========================================================================== */
:root {
    --lecture-ink: #23313d;
    --lecture-muted: #68717c;
    --lecture-paper: #f6f5f0;
    --lecture-cream: #fffefa;
    --lecture-primary: var(--givas-indigo);
    --lecture-primary-dark: var(--givas-navy);
    --lecture-secondary: var(--givas-pink);
    --lecture-accent: #dcae22;
    --lecture-accent-dark: #a87805;
    --lecture-alert: #b54d64;
    --lecture-alert-dark: #91374b;
    --lecture-line: #dedee8;
    --lecture-banner: #edf0fb;
    --lecture-primary-soft: #eef0fb;
    --lecture-control-line: #cacddb;
    --lecture-shadow: 0 16px 38px rgba(37, 46, 91, .09);
}

/* A shared title field gives all ordinary inner pages one clear identity. */
.breadcrumbs-custom.bg-secondary {
    overflow: hidden;
    padding-top: clamp(2.55rem, 5vw, 4.6rem);
    padding-bottom: clamp(1.75rem, 3vw, 2.65rem);
    background-color: var(--lecture-banner) !important;
    background-image: none !important;
}
.breadcrumbs-custom.bg-secondary::before {
    top: 50%;
    right: clamp(8rem, 18vw, 20rem);
    width: clamp(11rem, 18vw, 16rem);
    height: clamp(11rem, 18vw, 16rem);
    border: 1.1rem solid rgba(244, 197, 46, .36);
    border-radius: 50%;
    background: none !important;
    box-shadow: 2.5rem -1rem 0 -1.1rem rgba(215, 37, 119, .12);
    opacity: 1;
    transform: translateY(-50%);
}
.breadcrumbs-custom.bg-secondary::after {
    content: "";
    position: absolute;
    right: clamp(1.5rem, 6vw, 7rem);
    bottom: 0;
    z-index: 0;
    display: block !important;
    width: clamp(11rem, 20vw, 18rem);
    height: 88%;
    background: url('/images/givas-banner-explorers.png') right bottom / contain no-repeat;
    pointer-events: none;
}
.breadcrumbs-custom .container { z-index: 1; }
.breadcrumbs-custom-title {
    color: var(--givas-navy) !important;
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
}
.breadcrumbs-custom-path,
.breadcrumbs-custom-path a,
.breadcrumbs-custom-path li { color: #69738a !important; }
.breadcrumbs-custom-path li::after {
    border-top-color: var(--givas-pink);
    border-right-color: var(--givas-pink);
}
.breadcrumbs-custom-path a:hover { color: var(--givas-indigo) !important; }

/* Editorial banners use copy rather than a second competing illustration. */
.breadcrumbs-custom.bg-secondary.content-banner::after { display: none !important; }
.content-banner .content-banner-copy {
    border-color: rgba(57, 71, 152, .12);
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 12px 28px rgba(42, 52, 105, .08);
}
.content-banner-copy > span { color: var(--givas-indigo); }

/* Login and account pages share the same character-led split panel. */
.auth-section.auth-hero,
.register-section {
    background: #f7f7fb !important;
}
.auth-hero-shell,
.register-panel {
    border-color: rgba(57, 71, 152, .15);
    border-radius: 1rem;
    box-shadow: 0 18px 46px rgba(42, 52, 105, .1);
    overflow: hidden;
}
.auth-context {
    isolation: isolate;
    background: linear-gradient(145deg, #263e95 0%, #303477 58%, #693278 100%);
}
.auth-context::before {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 96% 4%, transparent 0 15%, rgba(244, 197, 46, .7) 15.3% 15.8%, transparent 16.1%),
        radial-gradient(circle at 96% 4%, transparent 0 24%, rgba(215, 37, 119, .32) 24.3% 25.6%, transparent 25.9%),
        radial-gradient(circle at 96% 4%, transparent 0 32%, rgba(255, 255, 255, .12) 32.3% 33.7%, transparent 34%) !important;
    box-shadow: none;
}
.auth-context::after {
    content: "";
    position: absolute;
    right: -1rem;
    bottom: 0;
    z-index: 0;
    width: min(92%, 295px);
    height: 52%;
    background: right bottom / contain no-repeat;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .2));
    opacity: .96;
}
.auth-bg-login .auth-context::after { background-image: url('/images/givas-login-characters.png'); }
.auth-bg-forgot .auth-context::after,
.auth-bg-password .auth-context::after { background-image: url('/images/givas-account-characters.png'); }
.auth-context > * { position: relative; z-index: 1; }
.auth-context > span { color: var(--givas-yellow); }
.auth-context h2 {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    letter-spacing: .02em;
}
.auth-context li::before { color: var(--givas-yellow); }
.auth-hero .auth-card {
    background: #fff;
}
.auth-card h3,
.register-card h3 {
    color: var(--givas-navy);
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif !important;
}
.auth-card h3 i,
.register-card h3 i { color: var(--givas-pink); }
.auth-card .form-input:focus,
.register-card .form-input:focus {
    border-color: var(--givas-indigo) !important;
    box-shadow: 0 0 0 3px rgba(57, 71, 152, .12) !important;
}
.auth-field-icon { color: var(--givas-indigo); }
.auth-input-shell:focus-within .auth-field-icon,
.auth-captcha-row:focus-within .auth-field-icon { color: var(--givas-pink); }
.auth-hero .button,
.register-card .button,
.member-change-button-r {
    border-color: var(--givas-indigo) !important;
    background: var(--givas-indigo) !important;
}
.auth-hero .button:hover,
.register-card .button:hover,
.member-change-button-r:hover {
    border-color: var(--givas-pink) !important;
    background: var(--givas-pink) !important;
}
.auth-card a:not(.button):hover,
.text-link:hover,
.text-link-page:hover { color: var(--givas-pink) !important; }

/* Registration gets its own visual stage while keeping the form intact. */
.register-panel {
    display: grid !important;
    width: min(100%, 1080px);
    grid-template-columns: minmax(0, 1fr) !important;
}
.register-cultural-panel {
    min-height: clamp(245px, 27vw, 330px);
    padding: clamp(1.75rem, 4vw, 3.25rem);
    background: var(--givas-navy) url('/images/givas-register-forest.webp') center 47% / cover no-repeat;
}
.register-cultural-panel::before {
    background: linear-gradient(90deg, rgba(32, 41, 87, .92), rgba(32, 41, 87, .42));
}
.register-cultural-copy { max-width: 530px; }
.register-cultural-copy > span { color: var(--givas-yellow); }
.register-cultural-copy h2 {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    letter-spacing: .02em;
}
.register-panel .register-card {
    width: 100% !important;
    margin: 0;
    padding: clamp(2rem, 4vw, 3.5rem) !important;
    background: #fff;
}
.register-form-section h4 {
    color: var(--givas-indigo) !important;
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
.radio-text label:hover,
.radio-text input[type="radio"]:checked + label,
.radio-text input[type="radio"]:checked + .radio-custom-dummy + label,
.radio-text label.is-checked {
    border-color: var(--givas-indigo) !important;
    background: var(--givas-indigo) !important;
    box-shadow: 0 .4rem 1rem rgba(57, 71, 152, .16) !important;
}

/* Learning cards and the member hub carry accents without a green-heavy UI. */
.lecture-library { background: #f7f7fb !important; }
.lecture-card:hover { border-color: rgba(57, 71, 152, .35); }
.lecture-card h3 a:hover,
.lecture-quiz-link:hover { color: var(--givas-pink); }
.lecture-tags a {
    border-color: rgba(57, 71, 152, .18);
    color: var(--givas-indigo);
    background: #f0f1fb;
}
.lecture-tags a:hover,
.lecture-tags a.active {
    border-color: var(--givas-indigo);
    background: var(--givas-indigo);
}
.member-hub-section { background: #f7f7fb !important; }
.member-hub-card { border-top-color: var(--givas-indigo); }
.member-hub-card:nth-child(1) { border-top-color: var(--givas-indigo); }
.member-hub-card:nth-child(2) { border-top-color: var(--givas-pink); }
.member-hub-card:nth-child(3) { border-top-color: var(--givas-yellow); }
.member-hub-card:nth-child(4) { border-top-color: #7a4c9d; }
.member-hub-card:hover { border-color: rgba(57, 71, 152, .35); }
.member-hub-card:nth-child(1) .member-hub-icon,
.member-hub-card:nth-child(1) .member-hub-link { color: var(--givas-indigo); background-color: #eef0fb; }
.member-hub-card:nth-child(2) .member-hub-icon,
.member-hub-card:nth-child(2) .member-hub-link { color: var(--givas-pink); background-color: #fff0f6; }
.member-hub-card:nth-child(3) .member-hub-icon,
.member-hub-card:nth-child(3) .member-hub-link { color: #aa7b08; background-color: #fff8dc; }
.member-hub-card:nth-child(4) .member-hub-icon,
.member-hub-card:nth-child(4) .member-hub-link { color: #7a4c9d; background-color: #f5effa; }
.member-hub-link { background: transparent !important; }

@media (max-width: 991px) {
    .breadcrumbs-custom.bg-secondary::after { width: 12rem; right: 1rem; }
    .auth-context::after { height: 46%; }
}

@media (max-width: 767px) {
    .breadcrumbs-custom.bg-secondary::after,
    .breadcrumbs-custom.bg-secondary::before { display: none !important; }
    .breadcrumbs-custom.bg-secondary { padding-top: 2.1rem; }
    .register-cultural-panel {
        min-height: 230px;
        background-position: 58% center;
    }
}

/* ========================================================================== */
/* Givas refinement: neutral navigation and a story-led lecture entry        */
/* ========================================================================== */
.rd-navbar-static .rd-nav-link {
    color: #40444c !important;
}
.rd-navbar-static .rd-nav-link i { color: #777d89 !important; }
.rd-navbar-static .rd-nav-item:hover .rd-nav-link,
.rd-navbar-static .rd-nav-item.active .rd-nav-link {
    color: var(--givas-indigo) !important;
}
.rd-navbar-static .rd-nav-item:hover .rd-nav-link i,
.rd-navbar-static .rd-nav-item.active .rd-nav-link i {
    color: var(--givas-indigo) !important;
}

.lecture-footer {
    border-top-color: var(--givas-pink);
    background-color: #202957 !important;
    background-image: none !important;
}
.lecture-footer-identity small { color: rgba(255, 255, 255, .64); }
.lecture-footer .rights { color: rgba(255, 255, 255, .68) !important; }

.lecture-entry-primary {
    isolation: isolate;
    justify-content: flex-end;
    background: var(--givas-navy) url('/images/givas-entry-lab.webp') center center / cover no-repeat;
}
.lecture-entry-primary::before {
    inset: 0;
    z-index: 0;
    width: auto;
    background: linear-gradient(90deg, rgba(20, 28, 66, .96) 0%, rgba(32, 41, 87, .84) 48%, rgba(32, 41, 87, .32) 100%);
}
.lecture-entry-primary::after {
    content: "";
    position: absolute;
    right: -2.4rem;
    bottom: 0;
    z-index: 0;
    width: min(34%, 250px);
    height: 88%;
    background: url('/images/giwas-teacher.png') right bottom / contain no-repeat;
    filter: drop-shadow(0 13px 16px rgba(0, 0, 0, .22));
    opacity: 0;
    pointer-events: none;
    transform: translateX(2.2rem);
}
.lecture-entry-primary > * { position: relative; z-index: 1; }
.lecture-entry-primary:hover { background-color: var(--givas-navy); }
.lecture-entry-primary .lecture-entry-label { color: var(--givas-yellow); }
.lecture-entry-primary .lecture-entry-number { color: rgba(255, 255, 255, .7); }
.lecture-entry-action { border-bottom-color: rgba(244, 197, 46, .78); }

@media (max-width: 640px) {
    .lecture-entry-primary::after {
        right: .5rem;
        width: 42%;
        height: 54%;
        opacity: .78;
        transform: none;
    }
    .lecture-entry-primary::before {
        background: linear-gradient(90deg, rgba(20, 28, 66, .97), rgba(32, 41, 87, .7));
    }
}

/* Keep the original weaving motif as a quiet cultural texture. */
.breadcrumbs-custom.bg-secondary {
    background-image: url("../images/lecture-weave-pattern.svg") !important;
    background-position: left center !important;
    background-size: 360px auto !important;
}

/* Use the indigo system colour consistently for every navigation state. */
.page-header .rd-nav-item.active .rd-nav-link,
.page-header .rd-nav-item.active .rd-nav-link i,
.page-header .rd-nav-item:hover .rd-nav-link,
.page-header .rd-nav-item:hover .rd-nav-link i,
.page-header .rd-nav-item.opened .rd-nav-link,
.page-header .rd-nav-item.opened .rd-nav-link i {
    color: var(--givas-indigo) !important;
}

/* The primary entry preserves its illustration on hover instead of resetting it. */
.lecture-entry-primary:hover {
    background: var(--givas-navy) url('/images/givas-entry-lab.webp') center center / cover no-repeat;
}
.lecture-entry-primary:hover::after {
    right: clamp(1rem, 3.4vw, 2.9rem);
    opacity: 1;
    transform: translateX(0) rotate(0);
}
.lecture-entry-primary > .lecture-entry-label,
.lecture-entry-primary > strong,
.lecture-entry-primary > .lecture-entry-description,
.lecture-entry-primary > .lecture-entry-action {
    transition: transform .32s cubic-bezier(.22, .61, .36, 1), color .24s ease;
}
.lecture-entry-primary:hover > .lecture-entry-label,
.lecture-entry-primary:hover > strong,
.lecture-entry-primary:hover > .lecture-entry-description,
.lecture-entry-primary:hover > .lecture-entry-action { transform: translateX(.45rem); }

/* All three homepage destinations communicate that they are interactive. */
.lecture-entry-primary::after {
    transition: right .3s ease, transform .3s ease, opacity .22s ease;
}
.lecture-entry-item {
    position: relative;
    overflow: hidden;
    transition: color .24s ease, background-color .24s ease, transform .24s ease;
}
.lecture-entry-item::after {
    content: "";
    position: absolute;
    right: -.5rem;
    bottom: -.5rem;
    z-index: 0;
    width: 38%;
    height: 86%;
    background: right bottom / contain no-repeat;
    opacity: 0;
    pointer-events: none;
    transform: translateX(1.8rem) rotate(3deg);
    transition: opacity .24s ease, transform .32s cubic-bezier(.22, .61, .36, 1);
}
.lecture-entry-item:nth-child(1)::after { background-image: url('/images/givas-ranking-character.png'); }
.lecture-entry-item:nth-child(2)::after {
    width: 50%;
    height: 92%;
    background-image: url('/images/givas-entry-characters.png');
}
.lecture-entry-item > * { position: relative; z-index: 1; }
.lecture-entry-item:hover {
    color: var(--givas-navy);
    background: linear-gradient(135deg, #fffdf8 0%, #f7edda 100%);
    transform: translateX(.2rem);
}
.lecture-entry-item:nth-child(2):hover {
    background: linear-gradient(135deg, #fff6fa 0%, #f6c5da 100%);
}
.lecture-entry-item:hover::after {
    opacity: 1;
    transform: translateX(0) rotate(0);
}
.lecture-entry-item:hover > i { color: var(--givas-pink); transform: translateX(.22rem); }
.lecture-entry-item > i { transition: color .24s ease, transform .24s ease; }

/* Homepage portal owns the final section surface so the fade to the
   white resource area cannot be overridden by the shared section defaults. */
.lecture-portal-section.bg-gray-150 {
    background: linear-gradient(180deg, #f7f8ff 0%, #f7f8ff 46%, #fbfbff 76%, #fff 100%) !important;
}

@media (max-width: 767px) {
    .breadcrumbs-custom.bg-secondary { background-size: 280px auto !important; }
    .lecture-entry-item::after { width: 34%; height: 78%; }
    .friendly-link-heading-visual { right: 1rem; width: 150px; opacity: .82; }
}

@media (max-width: 520px) {
    .lecture-entry-item:hover { transform: none; }
    .lecture-entry-item::after { width: 31%; opacity: .22; transform: none; }
    .lecture-entry-primary:hover > .lecture-entry-label,
    .lecture-entry-primary:hover > strong,
    .lecture-entry-primary:hover > .lecture-entry-description,
    .lecture-entry-primary:hover > .lecture-entry-action { transform: none; }
    .friendly-link-heading { min-height: 155px; }
    .friendly-link-heading-visual { right: -.4rem; bottom: -2.4rem; width: 156px; height: 164px; opacity: .38; }
}

/* ========================================================================== */
/* Givas unified refinement: one visual language for every public page        */
/* ========================================================================== */
:root {
    --givas-surface: #ffffff;
    --givas-surface-soft: #f7f8ff;
    --givas-line: #dfe3f2;
    --givas-shadow-soft: 0 12px 30px rgba(32, 41, 87, .08);
    --givas-shadow-lift: 0 18px 38px rgba(32, 41, 87, .13);
}

body,
.section-custom,
.bg-gray-150,
.section.bg-default,
.quiz-page,
.competition-page { color: var(--lecture-ink); background: var(--givas-surface-soft) !important; }

.section { position: relative; }
.section-md { padding-top: clamp(3.25rem, 6vw, 5.5rem); padding-bottom: clamp(3.25rem, 6vw, 5.5rem); }

/* The banner, cards and forms share the same indigo-tinted surface treatment. */
.breadcrumbs-custom.bg-secondary {
    border-bottom-color: var(--givas-line);
    background-color: #f1f3fc !important;
}
.breadcrumbs-custom-title::after,
.title::after { height: 2px !important; background: var(--givas-pink) !important; }
.breadcrumbs-custom-path a:hover,
.text-link:hover,
.text-link-page:hover,
.table-custom a:not(.button):hover,
.ranking-table a:not(.button):hover { color: var(--givas-indigo) !important; }

.button,
.lecture-filter button,
.lecture-filter > a {
    border-radius: .55rem !important;
    transition: transform .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.button:not(.givas-button-secondary),
.lecture-filter button {
    box-shadow: 0 7px 14px rgba(57, 71, 152, .14) !important;
}
.button:hover,
.lecture-filter button:hover { transform: translateY(-2px); }
.button:focus-visible,
.lecture-filter button:focus-visible,
.lecture-filter select:focus-visible,
.form-input:focus-visible {
    outline: 3px solid rgba(57, 71, 152, .18);
    outline-offset: 2px;
}

.lecture-filter,
.lecture-card,
.member-hub-card,
.auth-hero-shell,
.register-panel,
.auth-hero .auth-card,
.register-card,
.member-panel,
.score-card,
.table-custom-responsive,
.ranking-table-wrap {
    border-color: var(--givas-line) !important;
    border-radius: .9rem !important;
    box-shadow: var(--givas-shadow-soft) !important;
}
.lecture-filter { padding: 1.15rem; background: rgba(255, 255, 255, .92); }
.lecture-filter select,
.form-input,
.auth-card .form-input,
.register-card .form-input {
    min-height: 48px;
    border-color: #cdd3e8 !important;
    border-radius: .5rem !important;
}
.lecture-filter select:focus,
.form-input:focus,
.auth-card .form-input:focus,
.register-card .form-input:focus {
    border-color: var(--givas-indigo) !important;
    box-shadow: 0 0 0 4px rgba(57, 71, 152, .1) !important;
}

/* Learning, record and result panels use the same soft lift and dark media. */
.lecture-card { overflow: hidden; background: var(--givas-surface); }
.lecture-card:hover,
.member-hub-card:hover { border-color: rgba(57, 71, 152, .42) !important; box-shadow: var(--givas-shadow-lift) !important; transform: translateY(-4px); }
.lecture-cover,
.lecture-cover-placeholder { background: var(--givas-navy); }
.lecture-cover-year { background: rgba(32, 41, 87, .9); }
.lecture-play { border-color: rgba(255, 255, 255, .82); background: rgba(57, 71, 152, .88); }
.lecture-meta span + span::before { color: var(--givas-pink); }
.lecture-tags a,
.lecture-admin-tags span {
    border-color: rgba(57, 71, 152, .18);
    color: var(--givas-indigo);
    background: #f0f1fb;
}
.lecture-tags a:hover,
.lecture-tags a.active { color: #fff; border-color: var(--givas-indigo); background: var(--givas-indigo); }

.member-hub-card { border-top-width: 4px; border-radius: .9rem !important; }
.member-hub-icon { border-radius: .7rem; }
.member-hub-card > strong,
.lecture-card h3,
.lecture-card h3 a { font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
.member-hub-card:nth-child(4) { border-top-color: #6875bd; }
.member-hub-card:nth-child(4) .member-hub-icon,
.member-hub-card:nth-child(4) .member-hub-link { color: #5664ac; background-color: #f0f2ff; }

/* Data-heavy pages remain calm: one table treatment, not a separate theme. */
.table-custom-responsive,
.ranking-table-wrap { overflow: hidden; background: var(--givas-surface); }
.table-custom thead th,
.ranking-table thead th { background: var(--givas-indigo) !important; }
.table-custom tbody tr:nth-child(even) { background: #f8f9fe !important; }
.table-custom tbody tr:hover,
.ranking-table tbody tr:hover { background: #eef1ff !important; }
.table-custom tbody td + td,
.ranking-table tbody td + td { border-left-color: var(--givas-line) !important; }

/* A restrained common rhythm for the account and quiz forms. */
.auth-card h3,
.register-card h3 { padding-bottom: 1rem; border-bottom: 1px solid var(--givas-line); }
.form-group-panel,
.profile-password-entry { border-color: var(--givas-line) !important; }
.form-group-panel { border-radius: .75rem !important; background: #fafbff !important; }
.profile-password-entry { background: #fafbff; padding: 1.15rem; border-radius: .65rem; }
.auth-context { background: linear-gradient(145deg, var(--givas-indigo), var(--givas-navy) 70%, #4e397d); }

@media (max-width: 767px) {
    .section-md { padding-top: 3rem; padding-bottom: 3rem; }
    .lecture-filter,
    .lecture-card,
    .member-hub-card,
    .table-custom-responsive,
    .ranking-table-wrap { border-radius: .7rem !important; }
    .member-hub-card:hover,
    .lecture-card:hover { transform: translateY(-2px); }
}

/* Member hub: keep the four actions distinct without adding decorative labels. */
.member-hub-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    --member-hub-accent: var(--givas-indigo);
    --member-hub-tint: #eef0fb;
    --member-hub-character: none;
}
.member-hub-card:nth-child(1) {
    --member-hub-accent: var(--givas-indigo);
    --member-hub-tint: #eef0fb;
    --member-hub-character: url('/images/givas-hub-practice.png');
}
.member-hub-card:nth-child(2) {
    --member-hub-accent: var(--givas-pink);
    --member-hub-tint: #fff0f6;
    --member-hub-character: url('/images/givas-hub-competition.png');
}
.member-hub-card:nth-child(3) {
    --member-hub-accent: #7a4c9d;
    --member-hub-tint: #f5effa;
    --member-hub-character: url('/images/givas-hub-profile.png');
    border-top-color: #7a4c9d;
}
.member-hub-card:nth-child(4) {
    --member-hub-accent: #aa7b08;
    --member-hub-tint: #fff8dc;
    --member-hub-character: url('/images/givas-hub-password.png');
}
.member-hub-card::before {
    content: "";
    position: absolute;
    top: -4.5rem;
    right: -4.5rem;
    z-index: 0;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: var(--member-hub-tint);
    opacity: .8;
    transition: transform .36s cubic-bezier(.22, .61, .36, 1), opacity .3s ease;
}
.member-hub-card::after {
    content: "";
    position: absolute;
    right: -.8rem;
    bottom: -.8rem;
    z-index: 0;
    width: min(48%, 160px);
    height: 62%;
    background: var(--member-hub-character) right bottom / contain no-repeat;
    filter: drop-shadow(0 12px 14px rgba(32, 41, 87, .18));
    opacity: 0;
    pointer-events: none;
    transform: translate(2.1rem, 1rem) rotate(2deg);
    transition: opacity .22s ease, transform .38s cubic-bezier(.22, .61, .36, 1);
}
.member-hub-card > * { position: relative; z-index: 1; transition: transform .3s cubic-bezier(.22, .61, .36, 1); }
.member-hub-card .member-hub-icon,
.member-hub-card .member-hub-link { color: var(--member-hub-accent) !important; }
.member-hub-card .member-hub-icon { background: var(--member-hub-tint) !important; }
.member-hub-card:hover::before { opacity: 1; transform: scale(1.3); }
.member-hub-card:hover::after { opacity: 1; transform: translate(0) rotate(0); }
.member-hub-card:hover > .member-hub-icon,
.member-hub-card:hover > strong,
.member-hub-card:hover > p,
.member-hub-card:hover > .member-hub-link { transform: translateX(.3rem); }
/* Compact icon-and-title header keeps the reading area clear of the character stage. */
.member-hub-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    align-items: start;
    column-gap: .85rem;
}
.member-hub-card .member-hub-icon {
    width: 48px;
    height: 48px;
    margin: 0;
    grid-column: 1;
    grid-row: 1;
}
.member-hub-card > strong {
    max-width: none;
    align-self: center;
    grid-column: 2;
    grid-row: 1;
}
.member-hub-card > p {
    max-width: 68%;
    margin: .65rem 0 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    grid-column: 1 / -1;
    grid-row: 2;
}
.member-hub-card .member-hub-link {
    align-self: end;
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 0;
}
/* These two source images have different compositions, so their stage is tuned separately. */
.member-hub-card:nth-child(1)::after {
    right: .25rem;
    bottom: 0;
    width: min(62%, 180px);
    height: 45%;
    background-position: right bottom;
}
.member-hub-card:nth-child(2)::after {
    right: .65rem;
    bottom: .4rem;
    width: min(48%, 160px);
    height: 72%;
}

@media (hover: none) {
    .member-hub-card::after { display: none; }
}

/* Practice detail: keep the video readable while giving the full lecture
   summary its own column. The list view remains intentionally truncated. */
.lecture-study-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2rem;
}
.lecture-study-layout--no-summary { display: block; }
.lecture-study-media .lecture-player { margin: 0; }
.lecture-summary-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border: 1px solid var(--lecture-line);
    border-radius: .9rem;
    background: var(--lecture-cream);
    box-shadow: var(--lecture-shadow);
}
.lecture-summary-kicker {
    display: block;
    padding-left: .75rem;
    border-left: 4px solid var(--lecture-secondary);
    color: var(--lecture-primary);
    font-size: .8rem;
    font-weight: 850;
    letter-spacing: .12em;
}
.lecture-summary-content {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 1rem;
    color: var(--lecture-ink);
    font-size: .96rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
    overflow: hidden;
}
.lecture-summary-panel.is-expanded { height: auto !important; }
.lecture-summary-panel.is-expanded .lecture-summary-content { flex: 0 0 auto; overflow: visible; }
.lecture-summary-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    align-self: flex-start;
    margin-top: auto;
    padding: .65rem 0 0;
    border: 0;
    color: var(--lecture-primary);
    font-size: .85rem;
    font-weight: 800;
    background: transparent;
    cursor: pointer;
}
.lecture-summary-toggle:hover { color: var(--lecture-secondary); }
.lecture-summary-content p { margin: 0 0 1rem; }
.lecture-summary-content p:last-child { margin-bottom: 0; }
.lecture-summary-content ul,
.lecture-summary-content ol { margin: 0 0 1rem 1.25rem; padding: 0; }
.lecture-summary-content img { max-width: 100%; height: auto; }

@media (max-width: 900px) {
    .lecture-study-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .lecture-study-layout { gap: 1rem; margin-bottom: 1.5rem; }
    .lecture-summary-panel { padding: 1.15rem; }
}
