/* MMM Study — Myanmar Subject Styles */
@import "../design_system.css";

:root {
  --subject-accent: var(--subj-myanmar, #2563EB);
}

/* ==========================================================================
   DESKTOP CONTAINER LAYOUT & ALIGNMENT
   Ensure the main content area is properly centered, balanced, and fills
   the desktop grid beside the persistent sidebar without awkward left bias
   ========================================================================== */
main {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ==========================================================================
   MYANMAR PROGRESSIVE VIEWPORT CONTAINERS
   Override the default 2-column .chapter-grid on outer containers
   (#true-chapters, #mcq-chapters, #blank-chapters) so that progressive
   screens (Screen 1 Parts, Screen 2 Chapters, Screen 3 Topics)
   occupy the FULL 100% width rather than being confined to column 1 (50%)
   ========================================================================== */
#true-chapters,
#mcq-chapters,
#blank-chapters,
#true-chapters.chapter-grid,
#mcq-chapters.chapter-grid,
#blank-chapters.chapter-grid {
  display: block;
  width: 100%;
}

/* ==========================================================================
   REFERENCE BENCHMARK HEADER & CIRCULAR BACK BUTTON
   ========================================================================== */
.ref-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.ref-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ref-back-circle {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--surface-card, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  box-shadow: 0 1px 3px rgba(11, 30, 54, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-navy-900, #0B1E36);
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 0;
}

.ref-back-circle:hover {
  background: #F8FAFC;
  transform: translateX(-2px);
  border-color: #CBD5E1;
  box-shadow: 0 3px 8px rgba(11, 30, 54, 0.12);
}

.ref-header-titles {
  display: flex;
  flex-direction: column;
}

.ref-header-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-navy-950, #071324);
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  line-height: 1.3;
}

.ref-header-sub {
  margin: 3px 0 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary, #64748B);
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.ref-header-right {
  display: flex;
  align-items: center;
}

.ref-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--surface-card, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  color: var(--text-secondary, #475569);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ref-refresh-btn:hover {
  background: #F8FAFC;
  color: var(--brand-navy-900, #0B1E36);
  border-color: #CBD5E1;
}

/* Progressive Curriculum Navigation Bar */
.curriculum-nav-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  padding: 12px 18px;
  background: var(--surface-card, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(11, 30, 54, 0.05));
  width: 100%;
  box-sizing: border-box;
}

.curriculum-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill, 9999px);
  background: var(--brand-navy-900, #0B1E36);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--brand-gold-border, rgba(197, 155, 39, 0.3));
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  min-height: 38px;
}

.curriculum-back-btn:hover {
  background: var(--brand-gold, #C59B27);
  color: var(--brand-navy-950, #071324);
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.3);
}

.curriculum-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary, #64748B);
  flex-wrap: wrap;
}

.curriculum-breadcrumbs a,
.breadcrumb-link {
  color: var(--brand-navy-800, #143058);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.curriculum-breadcrumbs a:hover,
.breadcrumb-link:hover {
  color: var(--brand-gold, #C59B27);
  text-decoration: underline;
}

.curriculum-breadcrumbs strong {
  color: var(--text-primary, #0F172A);
  font-weight: 700;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.crumb-sep {
  color: var(--text-muted, #94A3B8);
  font-weight: 400;
}

/* ==========================================================================
   FLOATING MODE BAR (NOTES vs PRACTICE)
   ========================================================================== */
.floating-mode-bar {
  display: inline-flex;
  align-items: center;
  background: var(--surface-card, #FFFFFF);
  border: 1.5px solid var(--border-color, #E2E8F0);
  border-radius: 9999px;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(11, 30, 54, 0.08);
  gap: 4px;
  margin-right: 8px;
}

.floating-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--text-secondary, #64748B);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  min-height: 36px;
  outline: none;
}

.floating-mode-btn:hover {
  color: var(--brand-navy-900, #0B1E36);
  background: #F1F5F9;
}

.floating-mode-btn.active {
  background: var(--brand-navy-900, #0B1E36);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(11, 30, 54, 0.18);
}

.floating-mode-btn.active .mode-icon {
  transform: scale(1.1);
}

.mode-icon {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.mode-text {
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   SCREEN 1: CURRICULUM PARTS (Balanced 3-Column Desktop Grid)
   ========================================================================== */
.curriculum-parts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
  margin-top: 8px;
  margin-bottom: 32px;
}

@media (max-width: 960px) {
  .curriculum-parts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.curriculum-part-card {
  background: var(--surface-card, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: var(--radius-lg, 16px);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(11, 30, 54, 0.05));
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  min-height: 110px;
}

.curriculum-part-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-gold, #C59B27);
  box-shadow: 0 6px 18px rgba(197, 155, 39, 0.14);
}

.curriculum-part-badge-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(197, 155, 39, 0.12);
  color: #8C6D13;
  font-weight: 700;
  font-size: 11.5px;
  margin-bottom: 10px;
  border: 1px solid rgba(197, 155, 39, 0.25);
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.curriculum-part-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy-950, #071324);
  margin: 0 0 12px 0;
  line-height: 1.35;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.curriculum-part-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 14px;
  border-radius: 8px;
  background: #F8FAFC;
  color: var(--brand-navy-900, #0B1E36);
  font-weight: 700;
  font-size: 12.5px;
  border: 1px solid #E2E8F0;
  transition: all 0.18s ease;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  cursor: pointer;
}

.curriculum-part-card:hover .curriculum-part-select-btn {
  background: var(--brand-navy-900, #0B1E36);
  color: #FFFFFF;
  border-color: var(--brand-navy-900, #0B1E36);
  box-shadow: 0 3px 8px rgba(11, 30, 54, 0.16);
}

/* ==========================================================================
   PART MODE SEGMENTED TOGGLE BAR (IN-PAGE)
   ========================================================================== */
.part-mode-segmented-bar {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  border-radius: 9999px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid #E2E8F0;
  gap: 4px;
}

.part-mode-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #64748B;
  font-size: 13.5px;
  font-weight: 700;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.part-mode-tab-btn:hover {
  color: var(--brand-navy-900, #0B1E36);
}

.part-mode-tab-btn.active {
  background: var(--brand-navy-900, #0B1E36);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(11, 30, 54, 0.16);
}

/* ==========================================================================
   PART 1: 5-MARK SPEAKING DEDICATED SCREEN & MODELS LIST
   ========================================================================== */
.speaking-5m-screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.speaking-5m-header-action {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.speaking-5m-quiz-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 9999px;
  background: var(--brand-gold, #C59B27);
  color: var(--brand-navy-950, #071324);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.18s ease;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  box-shadow: 0 2px 8px rgba(197, 155, 39, 0.25);
}

.speaking-5m-quiz-btn:hover {
  background: #B58B1E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.35);
}

.speaking-5m-models-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.model-answer-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 18px;
  transition: border-color 0.2s ease;
}

.model-answer-item:hover {
  border-color: #CBD5E1;
}

.model-answer-question {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-navy-900, #0B1E36);
  margin-bottom: 8px;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  line-height: 1.5;
}

.model-answer-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
}

.model-answer-toggle-btn:hover {
  background: #E2E8F0;
  color: var(--brand-navy-900, #0B1E36);
}

.model-answer-content {
  margin-top: 10px;
  padding: 12px 14px;
  background: #F8FAFC;
  border-left: 3px solid var(--brand-gold, #C59B27);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1E293B;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

/* ==========================================================================
   PART 1 & PART 3 CHAPTER PRACTICE CARDS (Compact Design)
   ========================================================================== */
.chapter-practice-card {
  background: var(--surface-card, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(11, 30, 54, 0.04);
  box-sizing: border-box;
  margin-bottom: 12px;
  width: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.chapter-practice-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 14px rgba(11, 30, 54, 0.07);
}

/* 4th Card: Uniform Entry Card for 5-Mark Speaking */
.chapter-practice-card.speaking-5m-card.speaking-5m-entry-card {
  border-color: rgba(197, 155, 39, 0.4);
  cursor: pointer;
}

.chapter-practice-card.speaking-5m-card.speaking-5m-entry-card:hover {
  border-color: var(--brand-gold, #C59B27);
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.14);
  transform: translateY(-2px);
}

.chapter-practice-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chapter-num-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: rgba(11, 30, 54, 0.06);
  color: var(--brand-navy-900, #0B1E36);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', 'Noto Sans Myanmar', sans-serif;
}

.chapter-num-badge.badge-gold {
  background: var(--brand-gold-soft, #FEF3C7);
  color: #B45309;
  border: 1px solid rgba(197, 155, 39, 0.35);
}

.chapter-practice-info {
  flex: 1;
}

.chapter-practice-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy-950, #071324);
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  line-height: 1.35;
}

.chapter-qtypes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
}

.qtype-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #F8FAFC;
  color: var(--brand-navy-900, #0B1E36);
  border: 1px solid #E2E8F0;
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  transition: all 0.16s ease;
  cursor: pointer;
}

.qtype-pill-btn:hover {
  background: var(--brand-navy-900, #0B1E36);
  color: #FFFFFF;
  border-color: var(--brand-navy-900, #0B1E36);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(11, 30, 54, 0.12);
}

.qtype-pill-btn.primary {
  background: rgba(197, 155, 39, 0.12);
  color: #8C6D13;
  border-color: rgba(197, 155, 39, 0.35);
}

.qtype-pill-btn.primary:hover {
  background: var(--brand-gold, #C59B27);
  color: var(--brand-navy-950, #071324);
  border-color: var(--brand-gold, #C59B27);
}

/* ==========================================================================
   PART 2: 3 CHAPTERS GRID (စကားပြေ၊ ကဗျာ၊ ပြဇာတ်)
   ========================================================================== */
.part2-chapters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .part2-chapters-grid {
    grid-template-columns: 1fr;
  }
}

.part2-ch-card {
  background: var(--surface-card, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(11, 30, 54, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 130px;
}

.part2-ch-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-gold, #C59B27);
  box-shadow: 0 6px 18px rgba(197, 155, 39, 0.14);
}

.part2-ch-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #F1F5F9;
  color: #475569;
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 8px;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.part2-ch-title {
  margin: 0 0 4px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy-950, #071324);
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  line-height: 1.35;
}

.part2-ch-meta {
  margin: 0 0 12px 0;
  font-size: 0.82rem;
  color: var(--text-secondary, #64748B);
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  flex: 1;
}

.part2-ch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: var(--brand-navy-900, #0B1E36);
  font-weight: 700;
  font-size: 12.5px;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  transition: all 0.18s ease;
}

.part2-ch-card:hover .part2-ch-btn {
  background: var(--brand-navy-900, #0B1E36);
  color: #FFFFFF;
  border-color: var(--brand-navy-900, #0B1E36);
}

/* ==========================================================================
   PART NOTES & TIPS CONTAINER
   ========================================================================== */
.myanmar-notes-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.tips-section-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(11, 30, 54, 0.04);
}

.tips-section-title {
  margin: 0 0 16px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy-950, #071324);
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #F8FAFC;
  border-left: 3px solid var(--brand-gold, #C59B27);
}

.tip-icon {
  font-size: 20px;
  line-height: 1;
}

.tip-content h4 {
  margin: 0 0 4px 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-navy-900, #0B1E36);
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.tip-content p {
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.resource-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 768px) {
  .resource-notes-grid {
    grid-template-columns: 1fr;
  }
}

.resource-note-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}

.note-card-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 6px;
  background: #EEF2FF;
  color: #4F46E5;
  font-weight: 700;
  font-size: 11.5px;
  margin-bottom: 8px;
}

.note-card-title {
  margin: 0 0 6px 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--brand-navy-900, #0B1E36);
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.note-card-desc {
  margin: 0 0 14px 0;
  font-size: 0.85rem;
  color: #64748B;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  line-height: 1.5;
  flex: 1;
}

.note-card-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--brand-navy-900, #0B1E36);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  transition: all 0.15s ease;
}

.note-card-btn:hover {
  background: var(--brand-gold, #C59B27);
  color: var(--brand-navy-950, #071324);
}

/* ==========================================================================
   SCREEN 2: TOPICS GRID & NUMBERED CARDS (2-Column Desktop Grid)
   ========================================================================== */
.ref-topics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 24px;
}

.ref-topic-card {
  background: var(--surface-card, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  min-height: 52px;
}

.ref-topic-card:hover {
  transform: translateY(-2px);
  border-color: #C7D2FE;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.08);
}

.ref-topic-badge {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: #EEF2FF;
  color: #4F46E5;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}

.ref-topic-info {
  flex: 1;
  min-width: 0;
}

.ref-topic-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-navy-900, #0B1E36);
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ref-topic-chevron {
  color: #94A3B8;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  margin-left: auto;
}

/* ==========================================================================
   SCREEN 3: TOPIC PRACTICE VIEW & OFFLINE STUDY CARD
   ========================================================================== */
.ref-offline-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}

.ref-offline-info {
  flex: 1;
}

.ref-offline-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-navy-900, #0B1E36);
  font-family: 'Poppins', 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.ref-offline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 8px;
  background: #FFFFFF;
  color: #4F46E5;
  border: 1px solid #C7D2FE;
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  transition: all 0.18s ease;
  min-height: 34px;
  box-sizing: border-box;
  white-space: nowrap;
}

.ref-offline-btn:hover {
  background: #EEF2FF;
  border-color: #818CF8;
  transform: translateX(2px);
}

.ref-practice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.ref-practice-card {
  background: var(--surface-card, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-sizing: border-box;
  min-height: 52px;
}

.ref-practice-card:hover {
  transform: translateY(-2px);
  border-color: #C7D2FE;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.08);
}

.ref-practice-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Soft Pastel Icon Themes matching reference images */
.icon-peach {
  background: #FEF3C7;
  color: #D97706;
}

.icon-purple {
  background: #F3E8FF;
  color: #9333EA;
}

.icon-amber {
  background: #FEF9C3;
  color: #CA8A04;
}

.icon-green {
  background: #DCFCE7;
  color: #16A34A;
}

.icon-rose {
  background: #FFE4E6;
  color: #E11D48;
}

.icon-indigo {
  background: #E0E7FF;
  color: #4F46E5;
}

.ref-practice-info {
  flex: 1;
  min-width: 0;
}

.ref-practice-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-navy-900, #0B1E36);
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  line-height: 1.35;
}

.ref-practice-meta {
  margin: 2px 0 0 0;
  font-size: 0.78rem;
  color: var(--brand-gold, #B45309);
  font-weight: 600;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.ref-practice-action {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.ref-practice-pct {
  font-size: 12.5px;
  font-weight: 600;
  color: #94A3B8;
  font-family: inherit;
}

.ref-practice-chevron {
  color: #94A3B8;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}



/* ==========================================================================
   SCREEN 2: CHAPTER SELECTION (Balanced 3-Column Desktop Grid)
   ========================================================================== */
#true-chapters > .chapter-grid,
#mcq-chapters > .chapter-grid,
#blank-chapters > .chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}

#true-chapters > .chapter-grid > .chapter-card,
#mcq-chapters > .chapter-grid > .chapter-card,
#blank-chapters > .chapter-grid > .chapter-card {
  height: 100%;
  box-sizing: border-box;
}

.chapter-card.has-topics {
  cursor: pointer;
}

.chapter-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.topics-count-badge {
  background: var(--brand-gold-soft, #FEF3C7);
  color: #92400E;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill, 9999px);
  font-weight: 700;
  white-space: nowrap;
}

#true-chapters > .chapter-grid > .chapter-card .chapter-title,
#mcq-chapters > .chapter-grid > .chapter-card .chapter-title,
#blank-chapters > .chapter-grid > .chapter-card .chapter-title {
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--brand-navy-900, #0B1E36);
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  margin: 0;
}

#true-chapters > .chapter-grid > .chapter-card .chapter-meta,
#mcq-chapters > .chapter-grid > .chapter-card .chapter-meta,
#blank-chapters > .chapter-grid > .chapter-card .chapter-meta {
  flex-grow: 1;
  font-size: 0.88rem;
  color: var(--text-secondary, #475569);
  line-height: 1.55;
  margin: 0;
}

#true-chapters > .chapter-grid > .chapter-card .start-btn,
#mcq-chapters > .chapter-grid > .chapter-card .start-btn,
#blank-chapters > .chapter-grid > .chapter-card .start-btn {
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
}

/* ==========================================================================
   SCREEN 3: TOPICS BREAKDOWN & CHAPTER PRACTICE BANNER
   ========================================================================== */
.chapter-practice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #071324 0%, #0B1E36 55%, #143058 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg, 16px);
  padding: 22px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md, 0 4px 14px rgba(11, 30, 54, 0.12));
  border: 1px solid var(--brand-gold-border, rgba(197, 155, 39, 0.35));
  width: 100%;
  box-sizing: border-box;
}

.chapter-practice-banner .banner-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.chapter-practice-banner .banner-info strong {
  font-size: 1.15rem;
  color: var(--brand-gold, #F6C85F);
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  font-weight: 700;
  line-height: 1.4;
}

.chapter-practice-banner .banner-info span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.chapter-practice-banner .start-btn {
  margin-top: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.topics-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-navy-900, #0B1E36);
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  margin: 0 0 16px 0;
  width: 100%;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.topic-card {
  background: var(--surface-card, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: var(--radius-md, 12px);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(11, 30, 54, 0.04));
  min-height: 64px;
  box-sizing: border-box;
}

.topic-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-gold, #C59B27);
  box-shadow: var(--shadow-md, 0 4px 14px rgba(11, 30, 54, 0.08));
  background: var(--surface-subtle, #F8FAFC);
}

.topic-card .topic-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-gold-soft, #FEF3C7);
  color: var(--brand-gold, #C59B27);
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.topic-card .topic-name-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.topic-card .topic-title {
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--brand-navy-900, #0B1E36);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.topic-card .topic-meta {
  font-size: 0.78rem;
  color: var(--text-muted, #64748B);
}

.topic-card .topic-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: var(--radius-pill, 9999px);
  background: var(--brand-navy-gradient);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.18s ease;
  min-height: 34px;
  border: 1px solid var(--brand-gold-border, rgba(197, 155, 39, 0.3));
}

.topic-card:hover .topic-action-btn {
  background: var(--brand-gold-gradient);
  color: var(--brand-navy-950, #071324);
  border-color: var(--brand-gold, #C59B27);
}

/* Part Badge */
.part-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill, 9999px);
  background: var(--brand-navy-gradient);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--brand-gold-border, rgba(197, 155, 39, 0.3));
}

/* ==========================================================================
   SPEAKING 5-MARK SECTION (Part 1 Special Card)
   ========================================================================== */
.speaking-five-mark-card {
  margin-top: 24px;
  background: linear-gradient(135deg, #0B1E36 0%, #143058 60%, #1E4273 100%);
  border: 1px solid var(--brand-gold-border, rgba(197, 155, 39, 0.4));
  border-radius: var(--radius-lg, 16px);
  padding: 24px 28px;
  color: #FFFFFF;
  box-shadow: var(--shadow-md, 0 6px 20px rgba(11, 30, 54, 0.12));
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.speaking-five-mark-card .five-mark-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.speaking-five-mark-card .five-mark-badge {
  background: var(--brand-gold, #C59B27);
  color: var(--brand-navy-950, #071324);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill, 9999px);
}

.speaking-five-mark-card .five-mark-type {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.speaking-five-mark-card .five-mark-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.speaking-five-mark-card .five-mark-meta {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.speaking-five-mark-card .five-mark-btn {
  align-self: flex-start;
  margin-top: 6px;
  background: var(--brand-gold-gradient);
  color: var(--brand-navy-950, #071324);
  border-color: var(--brand-gold, #C59B27);
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.35);
  padding: 10px 20px;
  border-radius: var(--radius-pill, 9999px);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
}

.speaking-five-mark-card .five-mark-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

/* Topic Type Pills */
.topic-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.topic-type-pills .type-pill {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill, 9999px);
  background: var(--brand-gold-soft, #FEF3C7);
  color: #92400E;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  font-weight: 600;
  white-space: nowrap;
}

/* Accessibility: Keyboard focus outlines */
.curriculum-part-card:focus-visible,
#true-chapters > .chapter-grid > .chapter-card:focus-visible,
#mcq-chapters > .chapter-grid > .chapter-card:focus-visible,
#blank-chapters > .chapter-grid > .chapter-card:focus-visible,
.topic-card:focus-visible,
.mode-card:focus-visible,
.part2-cat-card:focus-visible,
.curriculum-back-btn:focus-visible,
.curriculum-breadcrumbs a:focus-visible {
  outline: 2px solid var(--brand-gold, #C59B27);
  outline-offset: 3px;
}

/* ==========================================================================
   LEVEL 1 & LEVEL 2 PROGRESSIVE NAVIGATION HIERARCHY
   Mode Selection Cards (Notes vs Practice)
   ========================================================================== */
.subject-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 14px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.mode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--surface-card, #FFFFFF);
  border: 1.5px solid var(--border-color, #E2E8F0);
  border-radius: var(--radius-lg, 16px);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(11, 30, 54, 0.05));
  box-sizing: border-box;
  min-height: 140px;
  justify-content: space-between;
}

.mode-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mode-card.mode-notes::before {
  background: var(--brand-gold, #C59B27);
}

.mode-card.mode-practice::before {
  background: var(--subj-myanmar, #2563EB);
}

.mode-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11, 30, 54, 0.08);
}

.mode-card.mode-notes:hover {
  border-color: var(--brand-gold, #C59B27);
}

.mode-card.mode-practice:hover {
  border-color: var(--subj-myanmar, #2563EB);
}

.mode-card:hover::before {
  opacity: 1;
}

.mode-badge-wrap {
  margin-bottom: 10px;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #78350F;
  background: var(--brand-gold-soft, #FEF3C7);
  padding: 3px 10px;
  border-radius: var(--radius-pill, 9999px);
  border: 1px solid var(--brand-gold-border, rgba(197, 155, 39, 0.25));
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.mode-card.mode-practice .mode-badge {
  color: #1E40AF;
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.mode-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
  border: 1px solid #E2E8F0;
}

.mode-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy-900, #0B1E36);
  margin: 0 0 14px 0;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.mode-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 14px;
  background: var(--brand-navy-900, #0B1E36);
  color: #FFFFFF;
  border: 1px solid var(--brand-gold-border, rgba(197, 155, 39, 0.3));
  border-radius: var(--radius-sm, 8px);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  min-height: 38px;
  box-sizing: border-box;
}

.mode-card:hover .mode-action-btn {
  background: var(--brand-gold, #C59B27);
  color: var(--brand-navy-950, #071324);
}

/* ==========================================================================
   PART 2 EXACT SIX PRACTICE CATEGORIES GRID
   1. ခက်ဆစ်, 2. အလင်္ကာ, 3. မှား/မှန်, 4. အမှန်ရွေး, 5. ကွက်လပ်, 6. မေးခွန်းရှည်
   ========================================================================== */
.part2-categories-section {
  margin-bottom: 28px;
  width: 100%;
}

.practice-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy-900, #0B1E36);
  margin: 0 0 14px 0;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.part2-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
}

.part2-cat-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--surface-card, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: var(--radius-md, 12px);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(11, 30, 54, 0.04));
  box-sizing: border-box;
}

.part2-cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-gold, #C59B27);
  box-shadow: 0 8px 20px rgba(197, 155, 39, 0.12);
}

.part2-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.part2-cat-icon {
  font-size: 24px;
}

.part2-cat-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill, 9999px);
  background: var(--brand-gold-soft, #FEF3C7);
  color: #78350F;
  border: 1px solid var(--brand-gold-border, rgba(197, 155, 39, 0.3));
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.part2-cat-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-navy-900, #0B1E36);
  margin: 0 0 6px 0;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.part2-cat-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary, #64748B);
  margin: 0 0 16px 0;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  flex: 1;
}

.part2-cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: #F1F5F9;
  color: var(--brand-navy-900, #0B1E36);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm, 8px);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  min-height: 44px;
  box-sizing: border-box;
}

.part2-cat-card:hover .part2-cat-btn {
  background: var(--brand-navy-900, #0B1E36);
  color: #FFFFFF;
  border-color: var(--brand-navy-900, #0B1E36);
}

/* ==========================================================================
   MYANMAR NOTES VIEW & LEARNING RESOURCES
   ========================================================================== */
.myanmar-notes-container {
  width: 100%;
  margin-top: 16px;
}

.empty-notes-card {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface-card, #FFFFFF);
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-lg, 16px);
  margin-bottom: 24px;
}

.empty-notes-card .empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.empty-notes-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy-900, #0B1E36);
  margin: 0 0 8px 0;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.empty-notes-card p {
  font-size: 0.9rem;
  color: var(--text-secondary, #64748B);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.55;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.resource-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  width: 100%;
}

.resource-note-card {
  padding: 20px;
  background: var(--surface-card, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: var(--radius-md, 12px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(11, 30, 54, 0.04));
}

.note-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: #F1F5F9;
  color: #475569;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.note-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy-900, #0B1E36);
  margin: 0 0 6px 0;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
}

.note-card-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary, #64748B);
  margin: 0 0 16px 0;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  flex: 1;
}

.note-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: var(--brand-navy-900, #0B1E36);
  color: #FFFFFF;
  border-radius: var(--radius-sm, 8px);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', sans-serif;
  min-height: 44px;
  box-sizing: border-box;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablets & Mobile)
   ========================================================================== */

/* Tablet & Intermediate Screens (769px - 1023px) */
@media (max-width: 1023px) {
  .curriculum-parts-grid,
  .subject-mode-grid,
  .part2-categories-grid,
  .resource-notes-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }

  #true-chapters > .chapter-grid,
  #mcq-chapters > .chapter-grid,
  #blank-chapters > .chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .chapter-practice-banner {
    padding: 20px 22px;
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  .curriculum-parts-grid,
  .subject-mode-grid,
  .part2-categories-grid,
  .resource-notes-grid,
  #true-chapters > .chapter-grid,
  #mcq-chapters > .chapter-grid,
  #blank-chapters > .chapter-grid,
  .topics-grid,
  .ref-topics-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ref-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .ref-hero-banner {
    padding: 22px 20px;
    border-radius: 16px;
  }

  .ref-hero-title {
    font-size: 1.35rem;
  }

  .ref-hero-btn {
    width: 100%;
    justify-content: center;
  }

  .ref-offline-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 20px;
  }

  .ref-offline-btn {
    width: 100%;
    justify-content: center;
  }

  .chapter-practice-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 18px 20px;
    gap: 14px;
  }

  .chapter-practice-banner .start-btn {
    text-align: center;
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}

/* Small Mobile Screens (<= 430px) */
@media (max-width: 430px) {
  .curriculum-nav-bar {
    padding: 10px 14px;
    gap: 8px;
  }

  .curriculum-back-btn {
    width: 100%;
    justify-content: center;
    min-height: 40px;
  }

  .curriculum-part-card,
  .mode-card,
  .chapter-practice-card,
  .part2-cat-card,
  .resource-note-card {
    padding: 14px 16px;
  }

  .curriculum-part-card-title {
    font-size: 1.05rem;
  }

  .chapter-practice-title {
    font-size: 0.98rem;
  }

  .chapter-qtypes-row {
    gap: 6px;
  }

  .qtype-pill-btn {
    padding: 5px 12px;
    font-size: 12px;
  }

  .topic-card {
    padding: 10px 12px;
    min-height: 40px;
  }

  .topic-card .topic-num {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}

/* Extra Small Mobile Screens (<= 375px) */
@media (max-width: 375px) {
  .curriculum-nav-bar {
    padding: 8px 12px;
  }

  .curriculum-part-card,
  .mode-card,
  .chapter-practice-card,
  .part2-cat-card {
    padding: 12px 14px;
  }

  .mode-title {
    font-size: 1.05rem;
  }

  .mode-action-btn,
  .part2-cat-btn,
  .note-card-btn {
    min-height: 38px;
    font-size: 12px;
  }
}


/* ========================================================================= */
/* Phase 3.4 Myanmar Unified Academic UI Benchmark Rules                     */
/* ========================================================================= */

:root {
  --subj-myan-accent: #C59B27;
  --subj-myan-light: #FFFBEB;
  --subj-myan-border: #FDE68A;
  --subj-myan-dark: #92400E;
  --subj-myan-hover: #B45309;
  --subj-myan-text-primary: #0F172A;
  --subj-myan-text-secondary: #475569;
  --subj-myan-surface: #FFFFFF;
  --subj-myan-surface-subtle: #F8FAFC;
  --subj-myan-card-border: #E2E8F0;
  --subj-myan-radius-sm: 6px;
  --subj-myan-radius-md: 8px;
  --subj-myan-radius-lg: 12px;
  --subj-myan-shadow-sm: 0 1px 3px rgba(11, 30, 54, 0.05);
  --subj-myan-shadow-md: 0 4px 12px rgba(11, 30, 54, 0.08);
}

/* Burmese Font Rendering & Diacritic Collision Safeguard */
[lang="my"],
.ref-header-title,
.ref-header-sub,
.curriculum-part-card-title,
.curriculum-part-select-btn,
.mode-title,
.mode-desc,
.curriculum-chapter-title,
.curriculum-topic-title,
.myanmar-viewport {
  font-family: "Noto Sans Myanmar", "Padauk", "Pyidaungsu", -apple-system, sans-serif !important;
  line-height: 1.65 !important;
}

/* Part Cards (Screen 1) */
.curriculum-parts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .curriculum-parts-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.curriculum-part-card {
  position: relative;
  background: var(--subj-myan-surface, #FFFFFF);
  border: 1px solid var(--subj-myan-card-border, #E2E8F0);
  border-radius: var(--subj-myan-radius-lg, 12px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease;
  box-shadow: var(--subj-myan-shadow-sm, 0 1px 3px rgba(11, 30, 54, 0.05));
  cursor: pointer;
  outline: none;
  text-align: left;
}

.curriculum-part-card:hover {
  transform: translateY(-2px);
  border-color: #FCD34D;
  box-shadow: 0 8px 24px rgba(197, 155, 39, 0.1);
}

.curriculum-part-badge-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  font-family: "Noto Sans Myanmar", ui-monospace, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
  margin-bottom: 14px;
}

.curriculum-part-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--subj-myan-text-primary, #0F172A);
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.curriculum-part-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--subj-myan-radius-md, 8px);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #FDE68A;
  background: #FFFBEB;
  color: #92400E;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.curriculum-part-card:hover .curriculum-part-select-btn {
  background: #C59B27;
  color: #FFFFFF;
  border-color: #C59B27;
}

/* Mode Selection Cards (Screen 2: Notes vs Practice Questions) */
.subject-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 18px;
}

@media (max-width: 768px) {
  .subject-mode-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.mode-card {
  position: relative;
  background: var(--subj-myan-surface, #FFFFFF);
  border: 1px solid var(--subj-myan-card-border, #E2E8F0);
  border-radius: var(--subj-myan-radius-lg, 12px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease;
  box-shadow: var(--subj-myan-shadow-sm, 0 1px 3px rgba(11, 30, 54, 0.05));
  cursor: pointer;
  outline: none;
  text-align: left;
}

.mode-card:hover {
  transform: translateY(-2px);
  border-color: #FCD34D;
  box-shadow: 0 8px 24px rgba(197, 155, 39, 0.1);
}

.mode-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--subj-myan-radius-md, 8px);
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.mode-card:hover .mode-icon-box {
  transform: scale(1.04);
  background: #FEF3C7;
}

.mode-badge-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.mode-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--subj-myan-text-primary, #0F172A);
  margin: 0 0 8px 0;
}

.mode-desc {
  font-size: 13.5px;
  color: var(--subj-myan-text-secondary, #475569);
  line-height: 1.65 !important;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.mode-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--subj-myan-radius-md, 8px);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #FDE68A;
  background: #FFFBEB;
  color: #92400E;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.mode-card:hover .mode-action-btn {
  background: #C59B27;
  color: #FFFFFF;
  border-color: #C59B27;
}

/* Focus Visible Rings (WCAG 2.1 AA) */
.curriculum-part-card:focus-visible,
.mode-card:focus-visible,
.curriculum-back-btn:focus-visible,
.curriculum-part-select-btn:focus-visible,
.mode-action-btn:focus-visible {
  outline: 2px solid #C59B27 !important;
  outline-offset: 2px !important;
}

/* Reduced Motion Compatibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 44px Minimum Mobile Touch Target Size */
@media (max-width: 768px) {
  .curriculum-part-select-btn,
  .mode-action-btn,
  .curriculum-back-btn {
    min-height: 44px;
    box-sizing: border-box;
  }
}
