/* ----------------------------------------------------
 * CHINESE LEARNING HUB CSS
 * ---------------------------------------------------- */

/* Global Hub Styles */
.chinese-hub {
    background: #fdfcf8; /* Match the hoctap page background or use a distinct one */
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.chinese-hub__spacer {
    height: 40px;
}

.chinese-hub__container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px 40px; /* Explicit padding so it never touches the edge */
}

/* Hub Hero */
.hub-hero {
    background: linear-gradient(135deg, #1976D2 0%, #64B5F6 100%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 15px 30px rgba(25, 118, 210, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: #fff;
}

@media (max-width: 768px) {
    .hub-hero { padding: 30px 20px; flex-direction: column; text-align: center; }
}

.hub-hero__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hub-hero__eyebrow {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-bottom: 10px;
}

.hub-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hub-hero__lead {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 25px;
    line-height: 1.5;
}

.hub-hero__stats {
    display: flex;
    gap: 30px;
}

@media (max-width: 768px) {
    .hub-hero__stats { justify-content: center; }
}

.hub-hero__stat-item strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1.1;
}

.hub-hero__stat-item span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.hub-hero__visual {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .hub-hero__visual { display: none; }
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}
.hero-circle--1 { width: 300px; height: 300px; top: -100px; right: -50px; }
.hero-circle--2 { width: 150px; height: 150px; bottom: -50px; left: 10%; }

.floating-icon {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Common Section Styles */
.chinese-section {
    margin-bottom: 40px;
}
.chinese-section__header {
    margin-bottom: 25px;
}
.chinese-section__header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.chinese-section__header p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

/* Hanyu Curriculum Grid */
.hanyu-books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 992px) {
    .hanyu-books-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .hanyu-books-grid { grid-template-columns: 1fr; }
}

.hanyu-course-card {
    background: #fff;
    border-radius: 24px;
    padding: 35px 25px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(122, 96, 69, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-shadow: 0 4px 12px rgba(63, 38, 17, 0.04);
}
.hanyu-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(63, 38, 17, 0.08);
    border-color: rgba(36, 124, 90, 0.2);
}
.hanyu-course-card__badge {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(31, 41, 55, 0.05);
    color: #1f2937;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hanyu-course-card__icon {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 25px;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.hanyu-course-card:hover .hanyu-course-card__icon {
    transform: scale(1.1) rotate(8deg);
}

.hanyu-course-card__icon--1 { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); color: #1976d2; }
.hanyu-course-card__icon--2 { background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); color: #388e3c; }
.hanyu-course-card__icon--3 { background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%); color: #f57c00; }
.hanyu-course-card__icon--4 { background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%); color: #7b1fa2; }
.hanyu-course-card__icon--5 { background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%); color: #d32f2f; }
.hanyu-course-card__icon--6 { background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%); color: #00796b; }

.hanyu-course-card__title { font-size: 1.2rem; font-weight: 800; color: #1f2937; margin: 0 0 10px 0; line-height: 1.3; }
.hanyu-course-card__desc { font-size: 0.9rem; color: #6b7280; margin: 0 0 20px 0; line-height: 1.5; }

.btn-start-learning {
    width: 100%;
    padding: 12px 24px;
    border-radius: 14px;
    border: 1px solid rgba(36, 124, 90, 0.2);
    background: transparent;
    color: #2f7d4a;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
}
.hanyu-course-card:hover .btn-start-learning {
    background: #2f7d4a;
    color: #fff;
    border-color: #2f7d4a;
    box-shadow: 0 8px 20px rgba(47, 125, 74, 0.2);
}

/* PDF Library Styles */
.chinese-search__group { position: relative; width: 100%; max-width: 300px; }
.chinese-search__icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #adb5bd; pointer-events: none; }
.chinese-search__input { width: 100%; padding: 10px 15px 10px 40px; border-radius: 999px; border: 1px solid #dee2e6; background: #fff; font-size: 14px; transition: all 0.3s; }
.chinese-search__input:focus { outline: none; border-color: #2684FF; box-shadow: 0 0 0 3px rgba(38, 132, 255, 0.1); }
.chinese-scroll-container { max-height: 820px; overflow-y: auto; padding: 10px; margin: -10px; scrollbar-width: thin; scrollbar-color: #dee2e6 transparent; }
.chinese-books-grid { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.chinese-book-item { flex: 0 0 25%; max-width: 25%; padding: 0 12px; margin-bottom: 24px; }
@media (max-width: 992px) { .chinese-book-item { flex: 0 0 50%; max-width: 50%; } }
@media (max-width: 576px) { .chinese-book-item { flex: 0 0 100%; max-width: 100%; } }
.chinese-book-card { background: #fff; border-radius: 16px; overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.05); height: 100%; }
.chinese-book-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important; }
.chinese-book-card__cover { position: relative; aspect-ratio: 4/3; background: #f8f9fa; overflow: hidden; }
.chinese-book-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.chinese-book-card__placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%); color: #adb5bd; }
.chinese-book-card__placeholder i { font-size: 40px; margin-bottom: 8px; }
.chinese-book-card__placeholder span { font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.chinese-book-card__overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.chinese-book-card:hover .chinese-book-card__overlay { opacity: 1; }
.btn-view-pdf { padding: 8px 20px; border-radius: 999px; background: #fff; color: #333; border: none; font-weight: 700; cursor: pointer; font-size: 13px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.chinese-book-card__body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.chinese-book-card__title { font-size: 1rem; font-weight: 700; color: #212529; margin-bottom: 0.4rem; line-height: 1.4; }
.chinese-book-card__desc { font-size: 0.85rem; color: #6c757d; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Modal PDF */
.student-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.student-modal__backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.student-modal__card--pdf-viewer { position: relative; width: 100%; max-width: 1100px; height: 90vh; background: #fff; border-radius: 20px; display: flex; flex-direction: column; box-shadow: 0 25px 50px rgba(0,0,0,0.3); overflow: hidden; animation: modalFadeIn 0.3s ease-out; }
.btn-close-modal { background: none; border: none; font-size: 32px; color: #666; cursor: pointer; line-height: 1; padding: 0 10px; }
@keyframes modalFadeIn { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ----------------------------------------------------
 * LESSONS MAP CSS
 * ---------------------------------------------------- */
.hanyu-lessons__header {
    margin-bottom: 40px;
}

.hanyu-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0 0 20px 0;
    list-style: none;
}
.hanyu-breadcrumb__item {
    font-size: 0.95rem;
    color: #6b7280;
}
.hanyu-breadcrumb__item a {
    color: #2f7d4a;
    text-decoration: none;
    font-weight: 600;
}
.hanyu-breadcrumb__item + .hanyu-breadcrumb__item::before {
    display: inline-block;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    color: #adb5bd;
    content: "/";
}
.hanyu-breadcrumb__item--active {
    color: #495057;
    font-weight: 500;
}

.hanyu-lessons__hero {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
}
.hanyu-lessons__hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    margin-right: 25px;
    flex-shrink: 0;
}
.hanyu-lessons__hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.2;
}
.hanyu-lessons__hero-desc {
    font-size: 1.05rem;
    color: #6b7280;
    margin: 0;
}

.hanyu-lessons__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 992px) {
    .hanyu-lessons__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hanyu-lessons__grid { grid-template-columns: 1fr; }
    .hanyu-lessons__hero { flex-direction: column; text-align: center; }
    .hanyu-lessons__hero-icon { margin-right: 0; margin-bottom: 20px; }
}

.hanyu-empty-state {
    background: #fff;
    border-radius: 24px;
    padding: 60px 20px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.hanyu-empty-state__icon {
    font-size: 48px;
    color: #adb5bd;
    margin-bottom: 20px;
}
.hanyu-empty-state__title {
    font-size: 1.3rem;
    color: #495057;
    margin-bottom: 10px;
    font-weight: 700;
}
.hanyu-empty-state__desc {
    color: #6c757d;
    margin: 0;
}

.lesson-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.lesson-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
    border-color: #28a745;
}
.lesson-card__number {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #28a745;
    margin-bottom: 12px;
    background: rgba(40, 167, 69, 0.1);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
}
.lesson-card__title-cn {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3436;
    line-height: 1.2;
}
.lesson-card__title-vn {
    font-size: 0.95rem;
}
.lesson-card__footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f3f5;
    display: flex;
    justify-content: flex-end;
}
.btn-study {
    font-size: 13px;
    font-weight: 700;
    color: #28a745;
    transition: transform 0.2s;
}
.lesson-card:hover .btn-study {
    transform: translateX(5px);
}

/* ----------------------------------------------------
 * STUDY PAGE CSS
 * ---------------------------------------------------- */
.hanyu-study-page {
    background: #fdfcf8;
    min-height: 100vh;
    padding-bottom: 50px;
}

.hanyu-study-hero {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.2);
}
.hanyu-study-hero__top {
    margin-bottom: 20px;
}
.hanyu-study-hero__back {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.hanyu-study-hero__back:hover {
    color: #fff;
}
.hanyu-study-hero__main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hanyu-study-hero__title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 5px 0;
}
.hanyu-study-hero__subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin: 0;
}
.hanyu-study-hero__btn-pinyin {
    background: #fff;
    color: #28a745;
    border: none;
    border-radius: 99px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hanyu-study-hero__btn-pinyin:hover {
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .hanyu-study-hero__main { flex-direction: column; align-items: flex-start; gap: 20px; }
}

.hanyu-study-container {
    max-width: 1140px;
    margin: 0 auto;
}

.hanyu-tabs {
    display: flex;
    background: #fff;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 30px;
    position: sticky;
    top: 20px;
    z-index: 100;
    gap: 10px;
    overflow-x: auto;
}
.hanyu-tabs__btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #6c757d;
    padding: 12px 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}
.hanyu-tabs__btn:hover {
    color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}
.hanyu-tabs__btn--active {
    background: #28a745 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}
.hanyu-tabs__btn--quiz:hover {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.05);
}
.hanyu-tabs__btn--quiz.hanyu-tabs__btn--active {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.hanyu-tab-pane {
    display: none;
}
.hanyu-tab-pane--active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hanyu-study-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    padding: 30px;
}

.hanyu-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #28a745;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.hanyu-play-btn:hover { transform: scale(1.1); }
.hanyu-play-btn--small {
    width: 36px;
    height: 36px;
    font-size: 14px;
    background: #e8f5e9;
    color: #28a745;
    box-shadow: none;
}

.hanyu-sentence-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 16px;
    transition: background 0.3s;
    border: 1px solid transparent;
}
.hanyu-sentence-item:hover {
    background: #f8fff9;
    border-color: rgba(40, 167, 69, 0.1);
}
.hanyu-sentence-item:last-child {
    margin-bottom: 0;
}
.hanyu-speaker {
    display: inline-block;
    background: #495057;
    color: #fff;
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.hanyu-dialogue--a .hanyu-speaker { background: #1976d2; }
.hanyu-dialogue--b .hanyu-speaker { background: #2e7d32; }

.hanyu-hanzi {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: 700;
    color: #2d3436;
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 5px;
}
.hanyu-pinyin {
    font-style: italic;
    font-size: 1.05rem;
    color: #28a745;
    margin-bottom: 8px;
}
.hanyu-vn {
    font-size: 1.05rem;
    color: #6c757d;
}

.hanyu-vocab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 768px) { .hanyu-vocab-grid { grid-template-columns: 1fr; } }
.hanyu-vocab-item {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    align-items: center;
}
.hanyu-vocab-content { flex: 1; }
.hanyu-vocab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.hanyu-vocab-hanzi {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}
.hanyu-vocab-type {
    background: #f1f3f5;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.hanyu-vocab-pinyin {
    font-style: italic;
    color: #28a745;
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.hanyu-vocab-vn {
    font-weight: 700;
    color: #495057;
}

.hanyu-grammar-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.05);
}
.hanyu-grammar-badge {
    background: #d4edda;
    color: #155724;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}
.hanyu-grammar-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 15px 0;
}
.hanyu-grammar-exp {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 20px;
}
.hanyu-grammar-example {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #28a745;
}
.hanyu-grammar-example-text {
    margin-top: 10px;
    color: #212529;
    font-style: italic;
}

.hanyu-phonetic-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f3f5;
}
.hanyu-phonetic-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.hanyu-phonetic-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.hanyu-phonetic-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    color: #1f2937;
}
.hanyu-phonetic-content {
    color: #6c757d;
    line-height: 1.6;
}

.hanyu-exercise-item {
    margin-bottom: 30px;
}
.hanyu-exercise-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hanyu-exercise-badge {
    background: #f1f3f5;
    color: #495057;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.8rem;
}
.hanyu-exercise-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    color: #212529;
    line-height: 1.6;
}

/* ----------------------------------------------------
 * PROGRESS & COMPLETION CSS
 * ---------------------------------------------------- */
.hanyu-book-progress {
    width: 100%;
    max-width: 400px;
}
.hanyu-book-progress__info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #6c757d;
}
.hanyu-lessons__hero .hanyu-book-progress__info {
    color: rgba(255, 255, 255, 0.9);
}
.hanyu-book-progress__bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 99px;
    overflow: hidden;
}
.hanyu-lessons__hero .hanyu-book-progress__bar {
    background: rgba(255, 255, 255, 0.2);
}
.hanyu-book-progress__fill {
    height: 100%;
    background: #28a745;
    border-radius: 99px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.hanyu-lessons__hero .hanyu-book-progress__fill {
    background: #fff;
}

.lesson-card--completed {
    border-color: rgba(40, 167, 69, 0.3) !important;
    background: #f8fff9 !important;
}
.lesson-card__check {
    margin-left: 6px;
    color: #28a745;
    font-size: 14px;
    vertical-align: middle;
}
/* Interactive Phonetics */
.hanyu-phonetic-section {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.05);
}
.hanyu-phonetic-section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a237e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #e8eaf6;
    padding-bottom: 10px;
}

.hanyu-sound-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}
.hanyu-sound-card {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.hanyu-sound-card.has-audio:hover {
    background: #fff;
    border-color: #3949ab;
    box-shadow: 0 8px 20px rgba(57, 73, 171, 0.15);
    transform: translateY(-5px);
    cursor: pointer;
}
.hanyu-sound-val {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1a237e;
    line-height: 1.2;
}
.hanyu-sound-desc {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}
.hanyu-sound-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    color: #3949ab;
    opacity: 0.3;
}
.hanyu-sound-card.has-audio:hover .hanyu-sound-icon { opacity: 1; }

.hanyu-sound-card--final { background: #fff8e1; }
.hanyu-sound-card--final.has-audio:hover { border-color: #ffb300; box-shadow: 0 8px 20px rgba(255, 179, 0, 0.15); }
.hanyu-sound-card--final .hanyu-sound-val { color: #f57c00; }
.hanyu-sound-card--final .hanyu-sound-icon { color: #f57c00; }

/* Pinyin Table */
.hanyu-pinyin-table-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}
.hanyu-pinyin-table {
    margin-bottom: 0;
    background: #fff;
}
.hanyu-pinyin-th {
    background: #3949ab !important;
    color: #fff !important;
    text-align: center;
    font-weight: 800;
    min-width: 60px;
}
.hanyu-pinyin-th-initial {
    background: #f5f5f5 !important;
    color: #333 !important;
    text-align: center;
    font-weight: 800;
    width: 60px;
}
.hanyu-pinyin-td {
    text-align: center;
    vertical-align: middle;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s;
}
.hanyu-pinyin-td.has-audio { cursor: pointer; }
.hanyu-pinyin-td.has-audio:hover {
    background: #e8eaf6 !important;
    color: #3949ab;
}
.hanyu-pinyin-td i {
    font-size: 0.7rem;
    color: #999;
    margin-left: 3px;
    opacity: 0.5;
}
.hanyu-pinyin-td.has-audio:hover i { opacity: 1; color: #3949ab; }
.hanyu-pinyin-td--empty { background: #fafafa; }

/* Tone Grid */
.hanyu-tone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.hanyu-tone-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    border-bottom: 4px solid #eee;
}
.hanyu-tone-card.has-audio:hover {
    transform: scale(1.05);
    border-color: #3949ab;
    cursor: pointer;
}
.hanyu-tone-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 10px;
}
.hanyu-tone-val {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a237e;
    margin-bottom: 10px;
}
.hanyu-tone-desc {
    font-size: 0.9rem;
    color: #444;
}

/* Rule Card */
.hanyu-rule-card {
    background: #f1f8e9;
    border-radius: 16px;
    padding: 20px;
    border-left: 5px solid #4caf50;
}
.hanyu-rule-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #2e7d32;
    margin-bottom: 10px;
}
.hanyu-rule-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Interactive Exercises */
.hanyu-exercise-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}
.hanyu-exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.hanyu-exercise-type-badge {
    background: #e1f5fe;
    color: #0288d1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
}
.hanyu-exercise-instruction {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 3px solid #0288d1;
}

.hanyu-play-big-btn {
    background: #3949ab;
    color: #fff;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s;
}
.hanyu-exercise-audio-row {
    display: flex;
    justify-content: flex-start;
}
.hanyu-audio-icon-btn {
    background: #e8eaf6;
    border: none;
    padding: 8px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
    color: #3949ab;
    font-weight: 700;
}
.hanyu-audio-icon-btn:hover {
    background: #c5cae9;
    transform: scale(1.05);
}
.hanyu-speaker-icon {
    font-size: 1.2rem;
}
.hanyu-speaker-text {
    font-size: 0.95rem;
}

.hanyu-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.hanyu-opt-btn {
    background: #f5f5f5;
    border: 2px solid #eee;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    transition: all 0.2s;
    min-width: 100px;
}
.hanyu-opt-btn:hover {
    border-color: #3949ab;
    background: #fff;
    color: #3949ab;
}
.hanyu-opt-btn--correct {
    background: #e8f5e9 !important;
    border-color: #4caf50 !important;
    color: #2e7d32 !important;
}
.hanyu-opt-btn--wrong {
    background: #ffeeb3 !important;
    border-color: #f44336 !important;
    color: #d32f2f !important;
}

.hanyu-feedback {
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
}
.hanyu-feedback--correct { background: #e8f5e9; color: #2e7d32; }
.hanyu-feedback--wrong { background: #fffde7; color: #d32f2f; }

/* Read Aloud Grid */
.hanyu-read-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}
.hanyu-read-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px 10px;
    text-align: center;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.hanyu-read-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #3949ab;
}
.hanyu-read-cn {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}
.hanyu-read-pinyin {
    font-size: 0.95rem;
    color: #4caf50;
    font-weight: 700;
    font-style: italic;
}
.hanyu-read-actions {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
}
.hanyu-read-icon, .hanyu-read-icon-audio {
    font-size: 0.8rem;
    color: #ccc;
    transition: all 0.2s;
}
.hanyu-read-card:hover .hanyu-read-icon-audio { color: #3949ab; }
.hanyu-read-card--active .hanyu-read-icon { color: #4caf50; }
.hanyu-read-card--active { border-color: #4caf50; background: #f1f8e9; }

/* Quiz Engine Styles */
.hanyu-quiz-intro-card {
    max-width: 700px;
    margin: 40px auto;
    border: none !important;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}
.hanyu-quiz-icon-wrapper {
    display: inline-flex;
    width: 100px;
    height: 100px;
    background: #fff9c4;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(255, 235, 59, 0.2);
}
.hanyu-quiz-features {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.95rem;
}
.hanyu-quiz-intro-card h3 {
    color: #111827;
    font-size: 1.75rem;
}
.hanyu-quiz-intro-card .btn-primary {
    background: linear-gradient(135deg, #3949ab, #1a237e);
    border: none;
    font-weight: 800;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.hanyu-quiz-intro-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.4);
}

@keyframes hanyuTrophyBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.hanyu-quiz-icon-wrapper i {
    animation: hanyuTrophyBounce 2s ease-in-out infinite;
}

/* UI Utilities */
.rounded-xl { border-radius: 24px !important; }

/* Overlay System - Premium Glassmorphism */
.hanyu-quiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: all 0.4s ease;
    overflow-x: hidden;
    overflow-y: auto;
}

.hanyu-quiz-overlay.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.hanyu-quiz-close-fixed {
    all: unset; /* Strip all theme defaults */
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000001;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.hanyu-quiz-close-fixed:hover {
    background: #ef4444;
    transform: rotate(90deg) scale(1.1);
    color: white;
}

.hanyu-quiz-overlay__content {
    width: 95%;
    max-width: 800px;
    margin: auto;
    position: relative;
    padding: 40px 0;
    display: flex;
    justify-content: center;
}



@keyframes hanyuCardPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* Premium Quiz Card - Fixed Size & Professional Padding */
.hanyu-quiz-card {
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
    padding: 0 !important; /* Removed padding to use inner sections */
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 750px; /* Force fixed width */
    max-width: 95vw;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: hanyuCardPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hanyu-quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 35px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.hanyu-quiz-title {
    font-weight: 800;
    color: #1e293b;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hanyu-quiz-title i {
    color: #10b981;
}

.hanyu-quiz-close-btn {
    background: #e2e8f0;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
    font-family: Arial, sans-serif;
}


.hanyu-quiz-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.hanyu-quiz-body {
    padding: 40px 50px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hanyu-quiz-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}


.hanyu-quiz-progress-wrapper {
    background: #f1f5f9;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 45px;
}


.hanyu-quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hanyu-quiz-prompt-area {
    margin: 2rem 0 3rem;
    text-align: center;
}

.hanyu-quiz-prompt-text h2 {
    font-size: 4.5rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.hanyu-quiz-prompt-area .text-muted {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Options Grid */
.hanyu-quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .hanyu-quiz-options-grid {
        grid-template-columns: 1fr;
    }
    .hanyu-quiz-prompt-text h2 { font-size: 3rem; }
    .hanyu-quiz-card { padding: 2rem 1.5rem; }
}

.hanyu-quiz-opt-btn {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #334155;
    transition: all 0.25s ease;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hanyu-quiz-opt-btn:hover:not(:disabled) {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
}

.hanyu-quiz-opt-btn.correct {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

.hanyu-quiz-opt-btn.wrong {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

/* Feedback Overlay */
.hanyu-quiz-feedback {
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
    animation: hanyuFadeInUp 0.4s ease;
}

@keyframes hanyuFadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.bg-success-soft { background-color: #ecfdf5 !important; border: 1px solid #10b981; color: #065f46; }
.bg-danger-soft { background-color: #fef2f2 !important; border: 1px solid #ef4444; color: #991b1b; }

.hanyu-quiz-audio-btn {
    width: 120px;
    height: 120px;
    font-size: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    transition: all 0.3s;
}

.hanyu-quiz-audio-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.5);
}

/* Result Stats Layout */
.hanyu-quiz-result-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hanyu-stat-box {
    flex: 1;
    background: #f8fafc;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.hanyu-stat-box:hover {
    transform: translateY(-5px);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.hanyu-stat-label {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hanyu-stat-value {
    font-size: 2.2rem;
    font-weight: 800;
}

/* Action Buttons */
.hanyu-quiz-result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hanyu-btn-primary {
    background: #10b981;
    color: white !important;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    min-width: 180px;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hanyu-btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -3px rgba(16, 185, 129, 0.4);
}

.hanyu-btn-secondary {
    background: #f1f5f9;
    color: #475569 !important;
    border: 1px solid #cbd5e1;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    min-width: 180px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Quiz Library Items */
.hanyu-quiz-lib-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.hanyu-quiz-lib-item:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

.hanyu-quiz-lib-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hanyu-quiz-lib-icon.bg-primary { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.hanyu-quiz-lib-icon.bg-success { background: linear-gradient(135deg, #10b981, #059669); }

.hanyu-quiz-lib-content {
    flex: 1;
}

.hanyu-quiz-lib-content p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}







/* Difficulty Badges */
.hanyu-diff-badge {
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.diff-easy {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #d1fae5;
}

.diff-medium {
    background: #fffbeb;
    color: #f59e0b;
    border: 1px solid #fef3c7;
}

.diff-hard {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}

/* Quiz Interactive Components */
.hanyu-quiz-audio-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hanyu-quiz-audio-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #10b981;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.hanyu-quiz-audio-btn:hover {
    transform: scale(1.1);
    background: #059669;
}

.hanyu-quiz-audio-waves {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 30px;
}

.hanyu-quiz-audio-waves span {
    width: 4px;
    height: 10px;
    background: #10b981;
    border-radius: 2px;
    animation: hanyu-wave 1s infinite ease-in-out;
}

.hanyu-quiz-audio-waves span:nth-child(2) { animation-delay: 0.1s; }
.hanyu-quiz-audio-waves span:nth-child(3) { animation-delay: 0.2s; }
.hanyu-quiz-audio-waves span:nth-child(4) { animation-delay: 0.3s; }
.hanyu-quiz-audio-waves span:nth-child(5) { animation-delay: 0.4s; }

@keyframes hanyu-wave {
    0%, 100% { height: 10px; }
    50% { height: 30px; }
}

.hanyu-quiz-blank {
    display: inline-block;
    min-width: 80px;
    padding: 0 15px;
    margin: 0 10px;
    border-bottom: 3px dashed #10b981;
    color: #10b981;
    font-weight: 800;
}

.pulse-animation {
    animation: hanyu-pulse 2s infinite;
}

@keyframes hanyu-pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hanyu-quiz-instruction-text {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 10px;
}

/* Quiz Intro Card Premium Styles */
.hanyu-quiz-intro-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 32px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 60px auto;
    padding: 60px 40px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hanyu-quiz-intro-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hanyu-quiz-icon-wrapper {
    width: 110px;
    height: 110px;
    background: #fff8eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 30px 0;
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.1);
    position: relative;
    z-index: 1;
}

.hanyu-quiz-icon-wrapper i {
    font-size: 3.8rem;
    color: #f59e0b !important;
    filter: drop-shadow(0 4px 6px rgba(243, 156, 18, 0.2));
}

.hanyu-quiz-intro-card h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.hanyu-quiz-intro-card .text-muted {
    font-size: 1.15rem;
    color: #64748b !important;
    max-width: 550px;
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.hanyu-quiz-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 0 0 45px 0 !important;
    width: 100%;
}

.hanyu-quiz-feature-tag {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.hanyu-quiz-feature-tag i {
    font-size: 1.2rem;
}

.hanyu-quiz-feature-tag--listen i { color: #3b82f6; }
.hanyu-quiz-feature-tag--read i { color: #10b981; }
.hanyu-quiz-feature-tag--hanzi i { color: #f59e0b; }

.hanyu-quiz-feature-tag:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.1);
}

.hanyu-btn-quiz-start {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white !important;
    border: none;
    padding: 22px 60px;
    border-radius: 100px;
    font-weight: 850;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(217, 119, 6, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.hanyu-btn-quiz-start:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 25px 45px rgba(217, 119, 6, 0.4);
}

.hanyu-btn-quiz-start i {
    font-size: 1.5rem;
}
