/* CBSE syllabus hub — compact SEO layout (loaded after up_board.css) */
.cbse-hub { --cbse-blue:#1d4ed8; --cbse-blue2:#2563eb; --cbse-ink:#0f172a; --cbse-muted:#475569; --cbse-line:#e2e8f0; --cbse-bg:#f8fafc; }
.cbse-hub .cbse-hero {
  display:grid; grid-template-columns:1.15fr .85fr; gap:28px; align-items:center;
  margin:8px 0 28px; padding:28px 24px; border-radius:18px;
  background:linear-gradient(135deg,#eff6ff 0%,#ffffff 55%,#f0f9ff 100%);
  border:1px solid #bfdbfe;
}
.cbse-hero-kicker { margin:0 0 8px; font-size:.78rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--cbse-blue); }
.cbse-hero h1 { margin:0 0 12px; font-size:clamp(1.55rem,3vw,2.1rem); line-height:1.25; color:var(--cbse-ink); text-align:left; }
.cbse-hero-lead { margin:0 0 14px; color:#334155; font-size:1.02rem; line-height:1.65; }
.cbse-hero-meta { margin:0 0 16px; font-size:.9rem; color:var(--cbse-muted); }
.cbse-hero-cta { display:flex; flex-wrap:wrap; gap:10px; }
.cbse-btn {
  display:inline-flex; align-items:center; justify-content:center; min-height:44px;
  padding:10px 18px; border-radius:10px; font-weight:700; font-size:.95rem; text-decoration:none; border:0;
}
.cbse-btn-primary { background:var(--cbse-blue2); color:#fff; }
.cbse-btn-ghost { background:#fff; color:var(--cbse-ink); border:1px solid var(--cbse-line); }
.cbse-hero-visual { margin:0; }
.cbse-hero-visual img { width:100%; height:auto; border-radius:14px; display:block; box-shadow:0 10px 28px rgba(37,99,235,.15); }
.cbse-search-wrap { margin:0 0 22px; }
.cbse-search-label { display:block; font-weight:700; margin-bottom:8px; color:var(--cbse-ink); }
.cbse-search-input {
  width:100%; max-width:520px; box-sizing:border-box; min-height:46px; padding:10px 14px;
  border:1px solid #bfdbfe; border-radius:10px; font-size:1rem; background:#fff;
}
.cbse-search-hint { margin:8px 0 0; font-size:.86rem; color:var(--cbse-muted); }
.cbse-class-cards {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; margin:0 0 28px;
}
.cbse-class-card {
  display:flex; flex-direction:column; gap:6px; padding:16px 14px; border-radius:14px; text-decoration:none;
  background:#fff; border:1px solid var(--cbse-line); color:var(--cbse-ink);
  box-shadow:0 2px 8px rgba(15,23,42,.04); transition:border-color .15s, transform .15s;
}
.cbse-class-card:hover, .cbse-class-card:focus { border-color:#93c5fd; transform:translateY(-2px); outline:none; }
.cbse-class-card strong { font-size:1.15rem; color:var(--cbse-blue); }
.cbse-class-card span { font-size:.88rem; color:var(--cbse-muted); }
.cbse-class-card em { font-style:normal; font-size:.86rem; font-weight:700; color:var(--cbse-blue2); margin-top:4px; }
.cbse-popular, .cbse-resources, .cbse-updates, .cbse-guide, .cbse-faq-block { margin:0 0 28px; }
.cbse-popular-list, .cbse-resource-list {
  display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 0; padding:0; list-style:none;
}
.cbse-popular-list a, .cbse-resource-list a {
  display:inline-block; padding:10px 14px; border-radius:999px; background:#eff6ff; border:1px solid #bfdbfe;
  color:#1d4ed8; font-weight:600; text-decoration:none; font-size:.9rem;
}
.cbse-guide h2, .cbse-updates h2, .cbse-faq-block h2, .cbse-popular h2, .cbse-resources h2 {
  margin:0 0 10px; color:#1e3a8a; font-size:1.25rem;
}
.cbse-guide p, .cbse-updates p, .cbse-faq-block p { color:#334155; line-height:1.65; margin:0 0 12px; }
.cbse-faq-block details {
  background:#fff; border:1px solid var(--cbse-line); border-radius:10px; padding:12px 14px; margin:0 0 10px;
}
.cbse-faq-block summary { cursor:pointer; font-weight:700; color:var(--cbse-ink); }
.cbse-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; margin:12px 0 8px; border:1px solid var(--cbse-line); border-radius:12px; background:#fff; }
.cbse-table { width:100%; border-collapse:collapse; min-width:420px; }
.cbse-table thead th {
  position:sticky; top:0; background:#1d4ed8; color:#fff; text-align:left; padding:12px 14px; font-size:.92rem;
}
.cbse-table td { padding:12px 14px; border-bottom:1px solid #eef2f7; }
.cbse-table tr:last-child td { border-bottom:0; }
.cbse-table tr[hidden] { display:none; }
.cbse-read-btn {
  display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:8px 14px;
  border-radius:8px; background:linear-gradient(135deg,#2563eb,#1d4ed8); color:#fff !important;
  font-weight:700; text-decoration:none; font-size:.9rem;
}
.cbse-class-meta { font-size:.9rem; color:var(--cbse-muted); margin:0 0 10px; }
.cbse-class-block { margin:0 0 32px; scroll-margin-top:80px; }
.cbse-class-block h2 { margin:0 0 8px; font-size:1.3rem; color:#0f172a; }
.cbse-old-page-link { margin-top:8px; }

/* Latest session strip */
.cbse-latest-strip {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.55;
}
.cbse-latest-strip p { margin: 0 0 8px; }
.cbse-latest-strip p:last-child { margin-bottom: 0; }
.cbse-latest-strip--current { border-color: #86efac; background: linear-gradient(135deg, #f0fdf4, #eff6ff); }
.cbse-latest-strip-links { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.cbse-latest-strip-btn {
  display: inline-flex; align-items: center; min-height: 38px; padding: 8px 14px;
  border-radius: 999px; background: #2563eb; color: #fff !important; font-weight: 700;
  text-decoration: none !important; font-size: 0.88rem;
}
.cbse-latest-strip a:not(.cbse-latest-strip-btn) { color: #1d4ed8; font-weight: 600; }

/* Class groups */
.cbse-class-group-nav {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px;
}
.cbse-class-group-link {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  border: 1px solid #dbeafe; border-radius: 14px; background: #fff;
  color: #0f172a !important; text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
.cbse-class-group-link strong { font-size: 1.05rem; color: #1d4ed8; }
.cbse-class-group-link span { font-size: 0.86rem; color: #64748b; }
.cbse-class-group { margin: 0 0 24px; }
.cbse-class-group-head h2 { margin: 0 0 4px; font-size: 1.3rem; color: #0f172a; }
.cbse-class-group-head p { margin: 0 0 12px; font-size: 0.92rem; color: #64748b; }
.cbse-class-cards--group { margin-bottom: 8px; }
.cbse-popular-lead { margin: 0 0 10px; color: #64748b; font-size: 0.92rem; }

/* Subject list (replaces table on hub) */
.cbse-subject-list {
  list-style: none; margin: 12px 0 0; padding: 0;
  border: 1px solid var(--cbse-line); border-radius: 12px; overflow: hidden; background: #fff;
}
.cbse-subject-list li {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #eef2f7;
}
.cbse-subject-list li:last-child { border-bottom: 0; }
.cbse-subject-list li[hidden] { display: none; }
.cbse-subject-link {
  flex: 1; min-width: 0; color: #0f172a; font-size: 0.96rem; font-weight: 600;
  text-decoration: none; line-height: 1.4;
}
.cbse-subject-link:hover { color: #1d4ed8; text-decoration: underline; }
.cbse-subject-btn { flex-shrink: 0; min-height: 34px; padding: 6px 12px; font-size: 0.82rem; }
.cbse-class-intro { font-size: 0.92rem; color: #475569; line-height: 1.55; margin: 0 0 12px; }
.cbse-class-panel > summary { list-style: none; cursor: pointer; }
.cbse-guide--compact details { border: 1px solid var(--cbse-line); border-radius: 12px; padding: 12px 16px; background: #fff; margin-bottom: 20px; }
.cbse-guide--compact summary { cursor: pointer; font-weight: 700; color: #1e3a8a; }
.cbse-guide--compact summary h2 { display: inline; margin: 0; font-size: 1.1rem; }
.cbse-guide--compact p { margin: 10px 0 0; color: #334155; line-height: 1.6; }

@media (max-width:820px) {
  .cbse-class-group-nav { grid-template-columns: 1fr; }
  .cbse-subject-list li { flex-direction: column; align-items: stretch; }
  .cbse-subject-btn { width: 100%; min-height: 40px; }
}
/* Student hub pages — override legacy float columns from newstyle.css */
.cbse-hub #content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px 40px;
  clear: both;
  float: none;
  width: 100%;
  box-sizing: border-box;
}
.cbse-hub .index1,
.cbse-hub .index2 {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  clear: both !important;
  margin: 0 auto 24px !important;
  box-sizing: border-box;
}
.hub-class-panel {
  border: 1px solid var(--cbse-line);
  border-radius: 14px;
  background: #fff;
  margin: 0 0 16px;
  padding: 0 16px 12px;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.hub-class-panel summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 4px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}
.hub-class-panel summary::-webkit-details-marker { display: none; }
.hub-class-panel[open] summary {
  border-bottom: 1px solid var(--cbse-line);
  margin-bottom: 12px;
  padding-bottom: 14px;
}
.hub-class-panel summary h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #0f172a;
}
.hub-class-panel summary .cbse-class-meta { margin: 0; }
.hub-class-panel summary::after {
  content: 'Expand ▾';
  margin-left: auto;
  font-size: .85rem;
  font-weight: 700;
  color: var(--cbse-blue2);
}
.hub-class-panel[open] summary::after { content: 'Collapse ▴'; }
.hub-subject-title {
  margin: 16px 0 8px;
  font-size: 1.05rem;
  color: #1e3a8a;
}
/* Standalone student hub pages (no legacy newstyle.css) */
.student-hub-page {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--cbse-bg, #f8fafc);
  color: var(--cbse-ink, #0f172a);
  line-height: 1.5;
}
.student-hub-page .cbse-hero--compact {
  grid-template-columns: 1fr;
  padding: 24px 20px;
}
.student-hub-page .hub-empty {
  color: #475569;
  padding: 20px 0;
}
.hub-book-panel {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin: 0 0 12px;
  padding: 0 12px 8px;
  background: #f8fafc;
}
.hub-book-panel summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 4px;
}
.hub-book-panel summary::-webkit-details-marker { display: none; }
.hub-book-panel summary .hub-subject-title { margin: 0; font-size: .98rem; }
.hub-book-panel summary::after {
  content: 'Show chapters ▾';
  float: right;
  font-size: .82rem;
  font-weight: 700;
  color: var(--cbse-blue2, #2563eb);
}
.hub-book-panel[open] summary::after { content: 'Hide chapters ▴'; }
@media (max-width:820px) {
  .cbse-hub .cbse-hero { grid-template-columns:1fr; padding:20px 16px; }
  .cbse-hero h1 { text-align:left; }
  .cbse-btn { width:100%; }
}
