/* ========================================================
   ヘジョン先生の韓国語発音教室 (혜정쌤의 한국어 발음교실)
   暖かく親しみやすいデザインスタイルシート
   ======================================================== */

:root {
  --primary: #ff6b6b;
  --primary-light: #ffe5e5;
  --primary-dark: #e04848;
  --peach: #ffa07a;
  --peach-light: #fff0eb;
  --mint: #38b2ac;
  --mint-light: #e6fffa;
  --yellow: #f6ad55;
  --yellow-light: #fefcbf;
  --lavender: #9f7aea;
  --lavender-light: #faf5ff;
  
  --bg-main: #fffdf9;
  --bg-card: #ffffff;
  --bg-card-sub: #faf6f0;
  --border-color: #f0e6da;
  --text-main: #4a3b32;
  --text-sub: #7d6b5d;
  --text-light: #a89a8e;

  --shadow-sm: 0 2px 6px rgba(180, 140, 120, 0.08);
  --shadow-md: 0 4px 14px rgba(180, 140, 120, 0.12);
  --shadow-lg: 0 8px 24px rgba(180, 140, 120, 0.16);
  --shadow-pop: 0 10px 30px rgba(255, 107, 107, 0.2);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --font-base: "Kiwi Maru", "Zen Maru Gothic", "M PLUS Rounded 1c", "Noto Sans KR", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  background-image: 
    radial-gradient(#ffe8d6 1.2px, transparent 1.2px), 
    radial-gradient(#ffe8d6 1.2px, var(--bg-main) 1.2px);
  background-size: 36px 36px;
  background-position: 0 0, 18px 18px;
}

/* 共通コンテナ */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.brand-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd3b6, #ffaaa5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid #fff;
  overflow: hidden;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.45);
  transform-origin: 28% 38%;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-sub);
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  background: white;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-icon:hover {
  background: var(--peach-light);
  border-color: var(--peach);
  transform: translateY(-1px);
}

/* 先生のごあいさつヒーローバナー */
.hero-banner {
  background: linear-gradient(135deg, #fff5f0 0%, #fff0f5 100%);
  border: 2px solid #ffe3db;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: "🌸";
  position: absolute;
  right: 15px;
  bottom: 10px;
  font-size: 4rem;
  opacity: 0.15;
  pointer-events: none;
}

.teacher-avatar-large {
  flex-shrink: 0;
  width: 150px;
}

.teacher-avatar-large img {
  width: 100%;
  height: auto;
  display: block;
}

.teacher-speech {
  flex: 1;
}

.teacher-speech h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.teacher-speech p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

.progress-overview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  border: 1px solid #ffd8cf;
}

.progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.progress-bar-wrap {
  width: 140px;
  height: 10px;
  background: #f0e6da;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff7e67, #ff6b6b);
  border-radius: 5px;
  transition: width 0.4s ease;
}

/* コントロール・フィルターバー */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tab {
  background: white;
  border: 1.5px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-sub);
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-tab:hover {
  border-color: var(--peach);
  color: var(--text-main);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.quick-action-btn {
  background: linear-gradient(135deg, #fff2e6, #ffe5e5);
  border: 1.5px solid #ffccd2;
  color: var(--primary);
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.quick-action-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* 単元グリッドカード一覧 */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.lesson-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.lesson-card:hover {
  transform: translateY(-4px);
  border-color: var(--peach);
  box-shadow: var(--shadow-md);
}

.lesson-card.completed {
  border-color: #c6f6d5;
  background: linear-gradient(to bottom, #ffffff, #fafffa);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lesson-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--peach-light);
  color: #dd6b20;
}

.lesson-icon {
  font-size: 1.6rem;
}

.card-title-group h3 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-title-group .korean-sub {
  font-size: 0.85rem;
  color: var(--mint);
  font-weight: 600;
  margin-bottom: 10px;
}

.card-summary {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
  margin-top: auto;
}

.quiz-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-sub);
}

.quiz-status.passed {
  color: #38a169;
}

.stamp-mark {
  font-size: 1.1rem;
}

.btn-card-action {
  background: var(--primary);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-card-action:hover {
  background: var(--primary-dark);
}

/* ========================================================
   単元学習ビュー (Lesson Detail View)
   ======================================================== */
.view-wrap {
  display: none;
  animation: fadeIn 0.3s ease;
}

.view-wrap.active {
  display: block;
}

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

.lesson-view-header {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.back-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-back {
  background: #f7fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-sub);
  font-family: inherit;
  font-weight: 600;
}

.btn-back:hover {
  background: white;
  color: var(--primary);
  border-color: var(--primary);
}

.lesson-view-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.lesson-view-icon {
  font-size: 2.4rem;
  background: var(--peach-light);
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lesson-view-titles h2 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.lesson-view-titles .sub-ko {
  font-size: 1.05rem;
  color: var(--mint);
  font-weight: 700;
}

.lesson-audio-settings {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #fdf8f5;
  border-radius: var(--radius-md);
  border: 1px solid #fae8df;
  font-size: 0.85rem;
}

.speed-select {
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.85rem;
  background: white;
  font-family: inherit;
}

/* 学習コンテンツ セクション */
.lesson-content-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.content-box {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.content-box h3 {
  font-size: 1.2rem;
  color: #2b6cb0;
  border-bottom: 2px solid #ebf8ff;
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-box p {
  line-height: 1.8;
  margin-bottom: 12px;
}

.content-box ul {
  padding-left: 20px;
  line-height: 1.8;
}

.content-box li {
  margin-bottom: 6px;
}

.note-box {
  background: #fff8eb;
  border-left: 5px solid #f6ad55;
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
  font-size: 0.95rem;
  color: #744210;
}

/* テーブルスタイル */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

.lesson-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.lesson-table th,
.lesson-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
}

.lesson-table th {
  background: #f7fafc;
  color: #4a5568;
  font-weight: 700;
  white-space: nowrap;
}

.lesson-table tr:last-child td {
  border-bottom: none;
}

.lesson-table tr:hover td {
  background: #fffaeb;
}

.korean-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2b6cb0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.korean-sound {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e53e3e;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 音声再生ボタン */
.btn-speech {
  background: #ebf8ff;
  border: 1px solid #bee3f8;
  color: #3182ce;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  vertical-align: middle;
  flex-shrink: 0;
}

.btn-speech:hover {
  background: #3182ce;
  color: white;
  transform: scale(1.1);
}

.btn-speech:active {
  transform: scale(0.95);
}

.btn-speech.playing {
  background: #ff6b6b;
  color: white;
  border-color: #ff6b6b;
  animation: pulseAudio 0.6s infinite alternate;
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
}

@keyframes pulseAudio {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}

/* 下部アクションナビゲーション */
.lesson-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 50px;
  box-shadow: var(--shadow-sm);
}

.btn-start-quiz {
  background: linear-gradient(135deg, #ff7e67, #ff6b6b);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.35);
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-start-quiz:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 107, 107, 0.45);
}

/* ========================================================
   テスト・クイズ画面 (Quiz View)
   ======================================================== */
.quiz-container {
  max-width: 680px;
  margin: 30px auto 60px;
  background: white;
  border: 2px solid #ffd8cf;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px dashed #f0e6da;
}

.quiz-lesson-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.quiz-step-count {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-sub);
}

.quiz-progress-track {
  height: 8px;
  background: #f0e6da;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffa07a, #ff6b6b);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.question-box {
  margin-bottom: 24px;
}

.question-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 12px;
}

.question-prompt-card {
  background: #fff8f0;
  border: 2px dashed #ffcca8;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.prompt-korean {
  font-size: 1.8rem;
  font-weight: 800;
  color: #2b6cb0;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.option-btn {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: left;
  font-size: 1.05rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  font-family: inherit;
  font-weight: 600;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--peach);
  background: #fffaf7;
  transform: translateX(4px);
}

.option-btn:disabled {
  cursor: default;
}

.option-btn.correct {
  border-color: #48bb78;
  background: #f0fff4;
  color: #276749;
}

.option-btn.wrong {
  border-color: #f56565;
  background: #fff5f5;
  color: #9b2c2c;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f7fafc;
  border: 1px solid #cbd5e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-sub);
}

/* 解説ボックス */
.explanation-box {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.explanation-box.active {
  display: block;
}

.explanation-box.correct {
  background: #f0fff4;
  border-color: #c6f6d5;
}

.explanation-box.wrong {
  background: #fff5f5;
  border-color: #fed7d7;
}

.explanation-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.explanation-header.correct { color: #2f855a; }
.explanation-header.wrong { color: #c53030; }

.explanation-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
}

.quiz-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-next-question {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-next-question.active {
  display: inline-flex;
}

.btn-next-question:hover {
  background: var(--primary-dark);
}

/* ========================================================
   テストリザルト画面 (Quiz Result)
   ======================================================== */
.result-box {
  text-align: center;
  padding: 20px 10px;
}

.result-stamp {
  font-size: 5rem;
  margin-bottom: 10px;
  animation: stampBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes stampBounce {
  0% { transform: scale(0) rotate(-20deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.result-title {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.result-score-wrap {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 16px 0;
}

.result-score-wrap span {
  color: var(--primary);
}

.result-comment-card {
  background: #fff8f0;
  border: 2px solid #ffd8cf;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px auto;
  max-width: 480px;
  font-size: 1rem;
  line-height: 1.6;
  color: #744210;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.result-teacher-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn-secondary {
  background: #edf2f7;
  color: #4a5568;
  border: 1.5px solid #cbd5e0;
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* モーダル（早見表チートシートなど） */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f7fafc;
  border: 1px solid #cbd5e0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  color: #718096;
}

.modal-close-btn:hover {
  background: #edf2f7;
  color: #2d3748;
}

/* フッター */
.site-footer {
  background: white;
  border-top: 2px solid var(--border-color);
  padding: 24px 0 40px;
  text-align: center;
  margin-top: 40px;
  color: var(--text-sub);
  font-size: 0.85rem;
}

.footer-links {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* レスポンシブ調整 */
@media (max-width: 640px) {
  /* ヘッダー: ブランド1行+メニュー2x2の2段構成に整理 */
  .header-inner {
    flex-wrap: wrap;
    padding: 8px 0;
    gap: 8px 12px;
  }

  .brand-wrap {
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  .brand-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-text h1 {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-text p {
    display: none;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .header-actions .btn-icon {
    justify-content: center;
    padding: 6px 8px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .hero-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 16px;
  }

  .teacher-avatar-large {
    align-self: center;
  }
  
  .progress-overview {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .progress-bar-wrap {
    width: 100%;
  }

  .lesson-view-title-wrap {
    flex-direction: column;
  }

  .lesson-bottom-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-start-quiz {
    justify-content: center;
  }

  .quiz-container {
    padding: 20px 16px;
  }

  .options-list {
    gap: 10px;
  }

  .option-btn {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
}

