@charset "UTF-8";

:root {
    --giwas-ink: #1f2f38;
    --giwas-muted: #66737b;
    --giwas-sun: #f8b735;
    --giwas-leaf: #2a9d78;
    --giwas-river: #2374ab;
    --giwas-coral: #e65f55;
    --giwas-earth: #8d5a2b;
    --giwas-cream: #fffaf0;
    --giwas-line: #e6dcc9;
    --giwas-shadow: 0 18px 45px rgba(42, 57, 64, .14);
}

body {
    color: var(--giwas-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(--giwas-sun), var(--giwas-coral), var(--giwas-leaf), var(--giwas-river));
}

.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(--giwas-sun), var(--giwas-leaf));
}

.section-custom .img-wrap img,
.img-wrap img {
    border-radius: 8px;
    /*box-shadow: var(--giwas-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(--giwas-sun), var(--giwas-leaf), 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(--giwas-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(--giwas-river);
    border-color: var(--giwas-river);
}

.button-activity,
.member-change-button-r {
    background: var(--giwas-coral);
    border-color: var(--giwas-coral);
}

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

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

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

.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(--giwas-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(--giwas-shadow);
}

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

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

.table-custom-responsive {
    overflow: hidden;
    border: 1px solid var(--giwas-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(--giwas-river), var(--giwas-leaf));
    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(--giwas-river);
    font-weight: 700;
}

.text-link:hover,
.text-link-page:hover {
    color: var(--giwas-coral);
}

.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(--giwas-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--giwas-shadow);
}

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

.season-card:nth-child(even) .season-card-header {
    background: linear-gradient(135deg, var(--giwas-river), var(--giwas-leaf));
}

.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(--giwas-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(--giwas-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(--giwas-coral);
}

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

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

.episode-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(--giwas-ink);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(42, 57, 64, .1);
}

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

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

.practice-episode-heading .episode-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(--giwas-muted);
    font-size: .92rem;
    font-weight: 700;
    white-space: nowrap;
}

.quiz-session-date i {
    color: var(--giwas-leaf);
}

.competition-session-heading {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    color: var(--giwas-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(--giwas-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(--giwas-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-episode-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(--giwas-ink);
    border: 1px solid var(--giwas-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--giwas-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(--giwas-shadow);
}

.radio-question-text.question p {
    margin: 18px 0 20px;
    color: var(--giwas-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(--giwas-river);
    font-size: 22px;
    font-weight: 800;
}

.progress-linear-counter {
    color: var(--giwas-coral);
}

.progress-linear-counter::before {
    content: "本題正確率 ";
    color: var(--giwas-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(--giwas-sun), var(--giwas-leaf));
}

.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(--giwas-leaf);
    background: #e7f7e9;
    box-shadow: 0 10px 24px rgba(42, 157, 120, .16);
}

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

.radio-Answer-text label {
    flex: 1;
    margin: 0;
    color: var(--giwas-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(--giwas-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--giwas-shadow);
}

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

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

.auth-card .form-label {
    position: static;
    display: block;
    margin-bottom: 8px;
    padding: 0;
    color: var(--giwas-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(--giwas-leaf);
    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(--giwas-coral);
    background: var(--giwas-coral);
}

.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(--giwas-leaf);
    background: var(--giwas-leaf);
    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(--giwas-river);
    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(--giwas-leaf);
    background: linear-gradient(135deg, var(--giwas-river), var(--giwas-leaf));
}

.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(--giwas-ink);
    text-align: left;
    border-left: .3rem solid var(--giwas-sun);
    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(--giwas-river); }
.introduction_text a:hover { color: var(--giwas-coral); }

.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(--giwas-sun), var(--giwas-coral), var(--giwas-leaf), var(--giwas-river));
}

.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(--giwas-sun), var(--giwas-leaf));
}

.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(--giwas-sun);
}

.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(--giwas-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(--giwas-leaf);
}

.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(--giwas-river);
    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(--giwas-sun), var(--giwas-leaf));
}

.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);
    transform: translateY(-1px);
}

.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(--giwas-leaf);
}

.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;
}

.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(--giwas-line);
    border-radius: .875rem;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--giwas-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(--giwas-sun), var(--giwas-leaf));
}

.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(--giwas-coral);
}

.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);
    transform: translateY(-1px);
}
.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);
    transform: translateY(-1px);
}

.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(--giwas-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(--giwas-coral) !important;
    background: var(--giwas-coral) !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(--giwas-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(--giwas-leaf);
    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(--giwas-coral);
}

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(--giwas-leaf), var(--giwas-sun));
    }

    .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(--giwas-leaf);
        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(--giwas-earth), var(--giwas-coral));
}

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

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

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

@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 ------------------------------------------ */
:root {
    --main-red: var(--giwas-coral);
    --giwas-red-hover: #c94b43;
    --giwas-green-hover: #146248;
}

.button-news,
.button-news:focus,
.button-activity,
.button-activity:focus,
.button-primary,
.button-primary:focus {
    color: #fff;
    background-color: var(--main-red);
    border-color: var(--main-red);
}

.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(--giwas-red-hover);
    border-color: var(--giwas-red-hover);
}

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

.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(--giwas-green-hover);
    border-color: var(--giwas-green-hover);
}

.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(--giwas-leaf);
    background: linear-gradient(135deg, var(--giwas-river), var(--giwas-leaf));
    box-shadow: 0 .8rem 1.45rem rgba(42, 157, 120, .18);
    transform: translateY(-2px);
}

.season-tab.is-active {
    color: #fff;
    border-color: var(--giwas-leaf);
    background: linear-gradient(135deg, var(--giwas-river), var(--giwas-leaf));
    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(--giwas-line);
    border-radius: .9rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 250, 240, .9));
    box-shadow: var(--giwas-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(--giwas-ink);
    font-size: 1.08rem;
    font-weight: 800;
}

.member-no-highlight {
    color: var(--giwas-river);
    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;
    }

    .episode-title,
    .episode-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(--giwas-leaf) !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(--giwas-coral) !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(--giwas-leaf), var(--giwas-sun), var(--giwas-coral));
}

.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(--giwas-coral) !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 {
    --ranking-mascot-space: clamp(7rem, 13vw, 9.5rem);
    position: relative !important;
    display: block !important;
    padding-top: var(--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(--ranking-mascot-space) - 1px) !important;
    z-index: 3 !important;
    width: min(19rem, 40vw) !important;
    max-height: calc(var(--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(--giwas-coral), var(--giwas-sun));
    box-shadow: 0 .4rem .85rem rgba(230, 95, 85, .18);
}

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

    .table-stage-ranking .table-mascot {
        width: min(13.5rem, 56vw) !important;
        max-height: calc(var(--ranking-mascot-space) + 1.5rem) !important;
        right: clamp(.75rem, 5vw, 1.25rem) !important;
        bottom: calc(100% - var(--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;
    }
}

/* Fixed frontend navigation and desktop result-card composition. */
.page-header .rd-navbar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 1080 !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
    background: rgba(12, 29, 39, .88) !important;
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    backdrop-filter: blur(10px) saturate(125%);
    box-shadow: 0 .45rem 1.25rem rgba(20, 34, 42, .16) !important;
}

.page-header .rd-navbar-fixed .rd-navbar-panel {
    background: transparent !important;
}

@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: #f4f1eb;
    --lecture-cream: #fffdf9;
    --lecture-primary: #334f48;
    --lecture-primary-dark: #223b35;
    --lecture-accent: #aa7d3f;
    --lecture-line: #e2ddd4;
    --lecture-white: #fff;
    --lecture-shadow: 0 18px 48px rgba(39, 50, 47, .09);
}

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;
}
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: rgba(255, 253, 249, .96) !important;
    box-shadow: 0 .45rem 1.5rem rgba(39, 50, 47, .06) !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.rd-navbar-classic .rd-navbar-main { min-height: 78px; }
.rd-navbar-brand .brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--lecture-ink) !important; }
.rd-navbar-brand .brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 4px;
    color: #fff;
    background: var(--lecture-primary);
    font-size: 1rem;
}
.rd-navbar-brand .brand-name { display: block; color: var(--lecture-ink) !important; font-size: 1.1rem; line-height: 1.25; }
.rd-navbar-brand .brand-badge { display: block; margin-top: .2rem; padding: 0; color: var(--lecture-muted) !important; background: transparent !important; font-size: .58rem; font-weight: 600; letter-spacing: .14em; }
.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-static .rd-nav-item.active .rd-nav-link::after {
    content: "";
    position: absolute;
    right: 1rem;
    bottom: .4rem;
    left: 1rem;
    height: 2px;
    background: var(--lecture-accent);
}
.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: #eef1ed !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(4rem, 8vw, 7rem); 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:hover { transform: translateY(-1px); }
.button-news:hover, .button-card-practice:hover, .button-card-ranking:hover, .button-card-competition:hover { background: var(--lecture-primary-dark) !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); }
.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 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; }
.exercise_box { gap: 1.25rem; }
.voucher-box-block {
    min-height: 230px;
    padding: 2rem !important;
    border: 1px solid var(--lecture-line);
    border-radius: 4px !important;
    color: var(--lecture-ink) !important;
    background: #fff !important;
    box-shadow: none !important;
}
.voucher-box-block:hover { transform: translateY(-3px); box-shadow: var(--lecture-shadow) !important; }
.voucher-title { color: var(--lecture-ink) !important; font-size: 1.45rem; }
.voucher-text { color: var(--lecture-muted) !important; }
.competition-notice { border-radius: 4px !important; border: 1px solid var(--lecture-line) !important; background: #fff !important; box-shadow: none !important; }
.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 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 > 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 { transform: translateY(-4px); box-shadow: var(--lecture-shadow); }
.lecture-cover {
    aspect-ratio: 16/8.6;
    background: linear-gradient(145deg, #4b625c, var(--lecture-primary-dark));
}
.lecture-cover::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    top: -150px;
    right: -80px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(255,255,255,.04), 0 0 0 84px rgba(255,255,255,.025);
}
.lecture-cover-graphic { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 1.35rem; color: rgba(255,255,255,.92); }
.lecture-cover-graphic i { position: absolute; top: 50%; left: 50%; font-size: 2rem; opacity: .78; transform: translate(-50%,-50%); }
.lecture-cover-year { font-family: "Noto Serif TC", serif; font-size: 1.6rem; font-weight: 700; letter-spacing: .06em; }
.lecture-cover-graphic small { color: rgba(255,255,255,.62); font-size: .7rem; letter-spacing: .14em; }
.lecture-play { display: none; }
.lecture-card-body { padding: 1.35rem; }
.lecture-meta { color: var(--lecture-muted); }
.lecture-meta span + span::before { color: var(--lecture-accent); }
.lecture-card h3, .lecture-card h3 a { color: var(--lecture-ink); }
.lecture-card-body > p { color: var(--lecture-muted); }
.lecture-tags span { border-radius: 2px; color: #4d5f59; background: var(--lecture-paper); }
.lecture-quiz-link { color: var(--lecture-primary); }
.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: linear-gradient(145deg, #e7e4dc, #cdd7d2);
    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-episode-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); }
.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; }
}

@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; }
    .register-visual-professional { min-height: 190px; font-size: 4rem; }
}
