/* Gurukula Desam - 7 Sacred Ashram Books & Grade Reader Styles (Zero-Wrapper & Zero-Border Architecture) */

.books-library-container,
.grade-curriculum-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 0 60px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.library-hero-banner,
.grade-hero-banner {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 16px 0 20px !important;
  margin-bottom: 20px !important;
  box-shadow: none !important;
  position: relative;
}

.grade-switch-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 18px 0;
  padding: 10px 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.grade-selector-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
  justify-content: flex-start;
}

.book-grade-btn {
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 8px !important;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95);
}

.book-grade-btn:hover, .book-grade-btn.active {
  background: rgba(212, 175, 55, 0.25) !important;
  border-color: var(--gold-bright, #ffd700) !important;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.6), 0 2px 5px rgba(0,0,0,0.95);
}

/* Shelf of 7 Books - Clean Elegant Sacred Ashram Shelf */
.books-shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0 22px;
}

.shelf-book-btn {
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
  position: relative;
}

.shelf-book-btn:hover {
  background: rgba(30, 41, 59, 0.88) !important;
  border-color: var(--book-accent, var(--gold)) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6) !important;
}

.shelf-book-btn.active {
  background: rgba(30, 41, 59, 0.95) !important;
  border-color: var(--book-accent, var(--gold)) !important;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.35), 0 6px 16px rgba(0,0,0,0.7) !important;
}

.shelf-book-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  transition: all 0.2s ease;
}

.shelf-book-btn:hover::after,
.shelf-book-btn.active::after {
  background: var(--book-accent, var(--gold));
  left: 10%;
  right: 10%;
}

.shelf-book-num {
  font-size: 0.72rem;
  font-family: monospace;
  color: var(--book-accent, #94a3b8);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95);
}

.shelf-book-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.95), 0 2px 8px rgba(0,0,0,0.9);
}

.shelf-book-btn.active .shelf-book-title {
  color: var(--gold-bright);
  text-shadow: 0 0 15px rgba(212,175,55,0.7), 0 2px 6px rgba(0,0,0,0.95);
}

.shelf-book-en {
  font-size: 0.75rem;
  color: #94a3b8;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95);
}

/* Book Reader Workspace (Pure Zero-Wrapper) */
.book-reader-workspace {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.reader-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  border: none !important;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.reader-book-heading {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 2px 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.98), 0 4px 15px rgba(0,0,0,0.95);
}

.reader-book-subheading {
  color: var(--gold-soft);
  font-size: 0.96rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95);
}

.reader-chapter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  background: transparent !important;
  padding: 0;
  border: none !important;
}

.reader-chap-btn {
  background: transparent !important;
  border: none !important;
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95);
}

.reader-chap-btn:hover, .reader-chap-btn.active {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6), 0 1px 4px rgba(0,0,0,0.95);
}

.reader-chap-btn.active .chap-badge {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

.chap-badge {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.reading-chapter-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.chap-read-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.chap-num-tag {
  font-family: monospace;
  font-size: 0.8rem;
  background: transparent !important;
  color: var(--gold-bright);
  border: none !important;
  padding: 0;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95);
}

.chap-read-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0 0 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.98), 0 4px 16px rgba(0,0,0,0.95);
}

.reading-section-block {
  margin-bottom: 24px;
  background: transparent !important;
  border: none !important;
  padding: 4px 0 !important;
  box-shadow: none !important;
}

.reading-section-block h4 {
  text-shadow: 0 1px 4px rgba(0,0,0,0.98), 0 2px 10px rgba(0,0,0,0.92);
}

.reading-section-block div,
.reading-section-block p {
  text-shadow: 0 1px 3px rgba(0,0,0,0.98), 0 2px 8px rgba(0,0,0,0.9);
}

/* Chapter Visuals Gallery & Carousel */
.chapter-visuals-panel {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 4px 0 16px 0 !important;
  margin: 14px 0 22px;
  box-shadow: none !important;
}

.carousel-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  border: none !important;
  padding-bottom: 4px;
}

.carousel-heading {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.95);
}

.carousel-counter-pill {
  font-size: 0.75rem;
  background: transparent !important;
  color: #38bdf8;
  border: none !important;
  padding: 0;
  font-family: monospace;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95);
}

.carousel-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: transparent !important;
  border: none !important;
  margin-bottom: 12px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.92), 0 4px 15px rgba(0, 0, 0, 0.95) !important;
  cursor: pointer;
}

.carousel-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
  border: none !important;
}

.carousel-overlay-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 65%, transparent 100%);
  padding: 16px 20px 14px;
  color: #ffffff;
}

.carousel-caption-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95);
}

.carousel-caption-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #e2e8f0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.98);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.75);
  border: none !important;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

.carousel-nav-btn:hover {
  background: var(--gold);
  color: #0b1120;
  transform: translateY(-50%) scale(1.08);
}

.carousel-prev-btn { left: 10px; }
.carousel-next-btn { right: 10px; }

.carousel-thumbs-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.carousel-thumb-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  position: relative;
  height: 54px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

.carousel-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6);
  transition: filter 0.2s ease;
  border: none !important;
}

.carousel-thumb-btn:hover img, .carousel-thumb-btn.active img {
  filter: brightness(1);
}

.carousel-thumb-btn.active {
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.7);
}

.thumb-num-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  background: rgba(0,0,0,0.85);
  color: var(--gold-bright);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  font-family: monospace;
}

/* Chapter Media Player (பாட இசை & காணொளிக் களம்) - Integrated Curriculum Audio/Video */
.chapter-media-card {
  margin: 22px 0;
  padding: 4px 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.chapter-media-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.chapter-media-title {
  color: var(--gold-bright);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.98);
}

.chapter-media-player-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.92), 0 4px 14px rgba(0,0,0,0.95);
  margin-bottom: 12px;
  background: #000000;
}

.chapter-media-player-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none !important;
}

.chapter-media-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chapter-media-lyrics-drawer {
  margin-top: 12px;
  padding: 14px 0;
  line-height: 1.8;
  color: #cbd5e1;
  font-size: 0.92rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.98);
  white-space: pre-line;
}

/* Lightbox & Moola Modals */
.art-lightbox-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 9, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.art-lightbox-modal.active {
  display: flex;
}

.art-lightbox-box {
  background: #0b1329;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  max-width: 980px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.art-lightbox-header {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}

.art-lightbox-stage {
  position: relative;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 360px;
  max-height: 60vh;
  user-select: none;
}

.art-lightbox-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
  cursor: zoom-in;
}

.art-lightbox-img.zoomed {
  transform: scale(1.6);
  cursor: zoom-out;
}

.art-lightbox-footer {
  padding: 16px 22px;
  background: #0d172e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
  max-height: 26vh;
}

/* Universal Moola Nool Modal Styling */
.moola-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: moolaFadeIn 0.22s ease-out;
}

.moola-modal-backdrop.open {
  display: flex;
}

.moola-modal-card {
  background: #0b1221;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 18px;
  max-width: 860px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.moola-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 10, 22, 0.9);
}

.moola-modal-title {
  margin: 0;
  font-size: 1.12rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.moola-modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.moola-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.moola-modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}

.moola-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 10, 22, 0.9);
  flex-wrap: wrap;
  gap: 10px;
}

.lesson-speech-btn.speaking {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.6); }
}

/* Sub-Chapter Jump Bar (7 Canonical Lesson Sub-Chapters) */
.subchapter-nav-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 0 16px 0;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.subchap-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.65) !important;
  color: #cbd5e1 !important;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.2s ease;
  text-shadow: 0 1px 3px #000 !important;
}

.subchap-pill-btn:hover {
  background: rgba(45, 212, 191, 0.22) !important;
  color: #2dd4bf !important;
  border-color: rgba(45, 212, 191, 0.45) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.subchap-pill-btn .subchap-icon {
  font-size: 0.95rem;
}

/* ========================================================================== */
/* STUDENT CHAPTER MASTERY & PROGRESS DECK (ZERO-WRAPPER & CRISP SHADOWS)    */
/* ========================================================================== */
.student-chapter-deck {
  margin: 32px 0 20px 0;
  padding: 22px 0 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent !important;
}

.student-deck-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.student-deck-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.98), 0 2px 10px rgba(0,0,0,0.9);
}

.chapter-lms-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 3px rgba(0,0,0,0.95);
  background: rgba(56, 189, 248, 0.14) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
}

.chapter-lms-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.22) !important;
}

.chapter-lms-btn.completed {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #34d399 !important;
  border: 1px solid #10b981 !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

/* Quick Interactive Quiz */
.chapter-quiz-wrap {
  margin: 18px 0;
  padding: 16px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.chapter-quiz-q {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fcd34d;
  margin-bottom: 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.98);
}

.chapter-quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chapter-quiz-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: inherit;
  text-shadow: 0 1px 3px #000;
}

.chapter-quiz-opt:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
  background: rgba(56, 189, 248, 0.12) !important;
  transform: translateX(4px);
}

.chapter-quiz-opt.opt-correct {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #10b981 !important;
  color: #6ee7b7 !important;
  font-weight: 700;
}

.chapter-quiz-opt.opt-wrong {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
}

.chapter-quiz-feedback {
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  display: none;
}

/* Personal Sadhana Reflection Note */
.chapter-note-box {
  margin: 16px 0;
}

.chapter-note-textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 60px;
  transition: border-color 0.2s ease;
}

.chapter-note-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(15, 23, 42, 0.9);
}

/* ========================================================================== */
/* GURUKULA ONLINE CLASSROOM & 3-MONTH TRIMESTER SUITE STYLES                */
/* ========================================================================== */

.classroom-shell {
  margin: 10px 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Classroom Header Banner */
.classroom-header-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.classroom-header-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.classroom-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.classroom-title-box {
  flex: 1;
  min-width: 280px;
}

.classroom-sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.classroom-main-title {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 6px 0;
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.classroom-term-desc {
  color: var(--gold-soft);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

.classroom-badges-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.classroom-chip {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.classroom-chip-gold {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--gold-bright);
}

.classroom-chip-btn {
  cursor: pointer;
  transition: all 0.2s ease;
}

.classroom-chip-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
}

/* Classroom Progress Bar & Stats */
.classroom-progress-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
}

@media (max-width: 640px) {
  .classroom-progress-row {
    grid-template-columns: 1fr;
  }
}

.classroom-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.classroom-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #38bdf8 50%, var(--gold-bright) 100%);
  border-radius: 6px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.classroom-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 6px;
  font-weight: 600;
}

.classroom-xp-badge-lg {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(184, 134, 11, 0.15) 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-bright);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Classroom 4 Mode Navigation Tabs */
.classroom-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
  scrollbar-width: thin;
}

.classroom-tab-btn {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.classroom-tab-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.classroom-tab-btn.active {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-bright);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.3);
}

.classroom-tab-badge {
  background: rgba(0, 0, 0, 0.4);
  font-size: 0.74rem;
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--gold);
}

/* Panels */
.classroom-panel {
  display: none;
  animation: fadeInPanel 0.25s ease forwards;
}

.classroom-panel.active {
  display: block;
}

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

/* 12-Week Trimester Roadmap Styles */
.trimester-roadmap-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.trimester-month-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.trimester-month-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.trimester-month-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.trimester-checkpoint-badge {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.trimester-weeks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.trimester-week-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.trimester-week-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(30, 41, 59, 0.85);
}

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

.trimester-week-title {
  color: #38bdf8;
  font-size: 0.95rem;
  font-weight: 800;
}

.trimester-week-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.trimester-week-status.completed {
  color: #34d399;
  background: rgba(16, 185, 129, 0.2);
}

.week-lessons-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.week-lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.week-lesson-row:hover {
  background: rgba(15, 23, 42, 0.9);
}

.week-lesson-row.is-done {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.week-lesson-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.week-lesson-check {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  color: transparent;
  font-size: 12px;
  font-weight: 900;
}

.week-lesson-check.checked {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.week-lesson-text {
  font-size: 0.83rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.week-lesson-row.is-done .week-lesson-text {
  color: #94a3b8;
  text-decoration: line-through;
}

.week-lesson-open-btn {
  font-size: 0.75rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.week-lesson-open-btn:hover {
  background: #38bdf8;
  color: #0f172a;
}

/* Student Progress & Mastery Tracker Grid */
.mastery-overview-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.mastery-metric-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.mastery-metric-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.mastery-metric-label {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
}

.mastery-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.mastery-book-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.mastery-book-card.fully-completed {
  border-color: rgba(212, 175, 55, 0.6);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.8) 100%);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.mastery-book-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mastery-book-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.mastery-dots-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.mastery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.mastery-dot.done {
  background: #10b981;
  border-color: #34d399;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.mastery-badge-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.mastery-badge-box.unlocked {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-bright);
}

/* Diploma / Graduation Certificate */
.diploma-outer-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.diploma-certificate-shell {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 10px solid #b8860b;
  outline: 3px solid #ffd700;
  outline-offset: -7px;
  border-radius: 12px;
  padding: 36px 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), inset 0 0 50px rgba(0, 0, 0, 0.5);
  text-align: center;
  position: relative;
  color: #ffffff;
}

.diploma-top-emblem {
  font-size: 2.2rem;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.diploma-inst-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.diploma-inst-sub {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.diploma-cert-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin: 16px 0 10px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  font-family: 'Mukta Malar', serif;
}

.diploma-citation-intro {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.diploma-student-name-box {
  display: inline-block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold-bright);
  border-bottom: 2px dashed rgba(212, 175, 55, 0.6);
  padding: 4px 24px;
  margin: 8px 0 18px 0;
  font-family: 'Mukta Malar', serif;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.diploma-citation-body {
  font-size: 0.96rem;
  line-height: 1.8;
  color: #e2e8f0;
  max-width: 720px;
  margin: 0 auto 24px auto;
}

.diploma-seal-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.diploma-sign-col {
  text-align: center;
}

.diploma-sign-line {
  width: 140px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: 8px auto 4px auto;
}

.diploma-sign-label {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

.diploma-seal-stamp {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px double var(--gold-bright);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

/* ========================================================================== */
/* TEACHER & STUDENT CLEAN PRINT STYLES (@media print)                        */
/* ========================================================================== */
@media print {
  .left-strip-bar,
  .strip-backdrop,
  .context-top-bar,
  .mobile-hamburger-btn,
  .grade-switch-strip,
  .classroom-header-card,
  .classroom-nav-tabs,
  .books-shelf-grid,
  .reader-chapter-tabs,
  .subchapter-nav-strip,
  .chapter-visuals-panel .carousel-top-bar,
  .chapter-visuals-panel .carousel-thumbs-row,
  .carousel-nav-btn,
  .lesson-speech-btn,
  .moola-reader-actions-row,
  .chapter-media-card,
  .student-chapter-deck .chapter-quiz-wrap,
  .student-chapter-deck .chapter-note-box,
  .student-chapter-deck button,
  .site-footer,
  .art-lightbox-modal,
  .strip-grades-mini-grid {
    display: none !important;
  }

  body.printing-diploma * {
    visibility: hidden;
  }
  body.printing-diploma .diploma-certificate-shell,
  body.printing-diploma .diploma-certificate-shell * {
    visibility: visible;
  }
  body.printing-diploma .diploma-certificate-shell {
    position: fixed;
    left: 0;
    top: 0;
    width: 100% !important;
    max-width: 100% !important;
    border: 8pt solid #b8860b !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: none !important;
    page-break-after: avoid;
  }
  body.printing-diploma .diploma-certificate-shell .diploma-inst-name,
  body.printing-diploma .diploma-certificate-shell .diploma-cert-title,
  body.printing-diploma .diploma-certificate-shell .diploma-student-name-box {
    color: #78350f !important;
    text-shadow: none !important;
  }
  body.printing-diploma .diploma-certificate-shell .diploma-citation-body,
  body.printing-diploma .diploma-certificate-shell .diploma-inst-sub {
    color: #1f2937 !important;
  }
  .chapter-visuals-panel .carousel-top-bar,
  .chapter-visuals-panel .carousel-thumbs-row,
  .carousel-nav-btn,
  .lesson-speech-btn,
  .moola-reader-actions-row,
  .chapter-media-card,
  .student-chapter-deck .chapter-quiz-wrap,
  .student-chapter-deck .chapter-note-box,
  .student-chapter-deck button,
  .site-footer,
  .art-lightbox-modal,
  .strip-grades-mini-grid {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
  }

  body.has-left-strip {
    padding-left: 0 !important;
  }

  .page-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10mm 15mm !important;
  }

  .reading-chapter-card {
    page-break-inside: auto;
  }

  .chap-read-title {
    color: #0f172a !important;
    font-size: 18pt !important;
    text-shadow: none !important;
    border-bottom: 2pt solid #b8860b !important;
    padding-bottom: 4pt !important;
    margin-bottom: 12pt !important;
  }

  .verse-callout-clean {
    border-left: 3pt solid #b8860b !important;
    padding-left: 10pt !important;
    margin: 10pt 0 !important;
    background: #fafaf9 !important;
  }

  .verse-text-sacred {
    color: #78350f !important;
    font-size: 13pt !important;
    text-shadow: none !important;
  }

  .verse-meaning-clean {
    color: #374151 !important;
    text-shadow: none !important;
  }

  .reading-section-block h4 {
    color: #1e3a8a !important;
    font-size: 13pt !important;
    text-shadow: none !important;
    margin-top: 12pt !important;
  }

  .reading-section-block div,
  .reading-section-block p {
    color: #1f2937 !important;
    text-shadow: none !important;
  }

  .student-chapter-deck {
    border-top: 1pt solid #cbd5e1 !important;
    margin-top: 16pt !important;
    page-break-inside: avoid;
  }
}

/* Author's Original Textbook Sheets Gallery */
.author-sheets-container {
  padding: 8px 0 24px;
}
.author-sheets-container .sheets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 16px 0;
}


