.syllabus-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 122px 20px 24px;
  text-align: center;
}

.syllabus-hero h1 {
  font-size: 38px;
  font-weight: 800;
  color: #0b1f3a;
  margin-bottom: 10px;
}

.syllabus-hero p {
  max-width: 720px;
  margin: 0 auto 22px;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.pdf-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Exam Pattern Strip */
.exam-strip {
  max-width: 1120px;
  margin: 10px auto 30px;
  padding: 0 20px;
}

.exam-box-wrapper {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(234, 179, 8, 0.28);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 12px 28px rgba(180, 130, 10, 0.08);
}

.exam-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.exam-box-header h2 {
  font-size: 19px;
  color: #0b1f3a;
}

.exam-meta {
  font-size: 13px;
  font-weight: 700;
  color: #854d0e;
  background: #fef9c3;
  border: 1px solid #facc15;
  padding: 5px 14px;
  border-radius: 999px;
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.exam-card {
  background: #fffdf5;
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-radius: 16px;
  padding: 15px 18px;
}

.exam-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.exam-sec {
  font-weight: 800;
  color: #0b1f3a;
  font-size: 15px;
}

.exam-qrange {
  font-size: 12px;
  color: #b45309;
  font-weight: 700;
}

.exam-rule {
  font-size: 13px;
  color: #475569;
  margin-bottom: 8px;
}

.exam-weight strong {
  color: #b45309;
  font-size: 16px;
  margin-right: 6px;
}

.exam-weight span {
  font-size: 12px;
  color: #64748b;
}

/* Semester Switcher & Search */
.controls-container {
  max-width: 1120px;
  margin: 0 auto 20px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.sem-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sem-tab {
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  border: 1.5px solid rgba(234, 179, 8, 0.3);
  padding: 11px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.sem-tab:hover {
  background: #fefce8;
  border-color: #eab308;
}

.sem-tab.active {
  background: linear-gradient(135deg, #fef08a 0%, #facc15 60%, #eab308 100%);
  color: #0b1f3a;
  border-color: #eab308;
  box-shadow: 0 4px 0 #ca8a04, 0 8px 18px rgba(234, 179, 8, 0.25);
}

.live-dot {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #0b1f3a;
  color: #fde047;
  font-weight: 800;
}

.search-box {
  flex: 1;
  min-width: 240px;
  max-width: 340px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  background: #ffffff;
  color: #0b1f3a;
  font-size: 14px;
  outline: none;
}

.search-box input:focus {
  border-color: #eab308;
  background: #fffdf5;
}

/* Main Syllabus Area */
.syllabus-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.sem-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.sem-info-bar h2 {
  font-size: 24px;
  color: #0b1f3a;
}

.sem-info-bar p {
  font-size: 14px;
  color: #475569;
}

.sem-pill-badge {
  font-size: 13px;
  font-weight: 700;
  color: #854d0e;
  background: #fef9c3;
  border: 1px solid #facc15;
  padding: 7px 16px;
  border-radius: 999px;
}

/* NEW: Paper Switcher Tabs (No Scrolling Needed!) */
.paper-tabs-wrapper {
  margin-bottom: 22px;
}

.paper-tabs-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #b45309;
  margin-bottom: 10px;
  display: block;
}

.paper-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.paper-tab {
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(234, 179, 8, 0.28);
  border-radius: 14px;
  padding: 10px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 165px;
}

.paper-tab:hover {
  background: #fefce8;
  border-color: #eab308;
  transform: translateY(-2px);
}

.paper-tab.active {
  background: #0b1f3a;
  border-color: #0b1f3a;
  box-shadow: 0 8px 20px rgba(11, 31, 58, 0.22);
}

.paper-tab-code {
  font-size: 11px;
  font-weight: 800;
  color: #b45309;
}

.paper-tab.active .paper-tab-code {
  color: #fde047;
}

.paper-tab-name {
  font-size: 13px;
  font-weight: 700;
  color: #0b1f3a;
}

.paper-tab.active .paper-tab-name {
  color: #ffffff;
}

/* Active Paper Full View Card */
.course-glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  border-top: 4px solid #facc15;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 38px rgba(180, 130, 10, 0.1);
}

.course-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.code-badge {
  background: #0b1f3a;
  color: #fde047;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 8px;
}

.type-badge {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 8px;
}

.credit-badge {
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 8px;
}

.course-title-wrap h3 {
  font-size: 24px;
  font-weight: 800;
  color: #0b1f3a;
  margin-bottom: 4px;
}

.course-hours {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.course-note {
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #fef9c3;
  border-left: 4px solid #eab308;
  font-size: 13px;
  color: #713f12;
  line-height: 1.55;
}

.detail-block {
  margin-top: 24px;
}

.detail-block h4 {
  font-size: 15px;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 12px;
}

.book-list {
  padding-left: 20px;
  color: #334155;
  font-size: 14px;
  line-height: 1.75;
}

.book-list.primary-books {
  color: #0b1f3a;
  font-weight: 600;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.module-box {
  background: #fffdf5;
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.module-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.module-top strong {
  color: #0b1f3a;
  font-size: 15px;
}

.mod-hours {
  font-size: 12px;
  font-weight: 700;
  color: #854d0e;
  background: #fef9c3;
  padding: 2px 8px;
  border-radius: 6px;
}

.module-box p {
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 12px;
}

.mod-q-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mod-q-tags span {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fef08a;
  color: #0b1f3a;
}

/* Blueprint Table */
.table-wrap {
  overflow-x: auto;
}

.pattern-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 14px;
  overflow: hidden;
}

.pattern-table th,
.pattern-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.pattern-table th {
  background: #fef9c3;
  color: #0b1f3a;
  font-weight: 800;
}

.pattern-table td {
  color: #334155;
}

.pattern-table .total-row td {
  font-weight: 800;
  color: #0b1f3a;
  background: #fffbeb;
  border-bottom: none;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: #ffffff;
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 18px;
  color: #475569;
}

@media (max-width: 640px) {
  .syllabus-hero h1 { font-size: 28px; }
  .course-glass-card { padding: 20px; }
  .paper-tab { flex: 1 1 140px; }
}