/**
 * Public curriculum browse pages.
 * Shares the landing page's palette: #1565C0 primary, slate text, 12px radius.
 */

.cur-hero {
  background: linear-gradient(135deg, #1565C0 0%, #0d47a1 100%);
  color: #fff;
  padding: 2.5rem 0 3rem;
}

.cur-hero h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #fff;
}

.cur-hero .cur-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbdefb;
  margin-bottom: 0.5rem;
}

.cur-hero .cur-lead {
  color: #e3f2fd;
  font-size: 0.97rem;
  max-width: 60ch;
  margin: 0;
}

.cur-breadcrumb {
  --bs-breadcrumb-divider-color: #90caf9;
  margin-bottom: 0.75rem;
}

.cur-breadcrumb .breadcrumb {
  margin: 0;
  font-size: 0.82rem;
  background: transparent;
  padding: 0;
}

.cur-breadcrumb a { color: #bbdefb; text-decoration: none; }
.cur-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.cur-breadcrumb .breadcrumb-item.active { color: #e3f2fd; }
/* styles.min.css is the LTR-only Bootstrap build, which floats the separator
   left and pads the wrong side, running the first two crumbs together in RTL. */
.cur-breadcrumb .breadcrumb-item + .breadcrumb-item {
  padding-left: 0;
  padding-inline-start: 0.5rem;
}

.cur-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  float: none;
  padding-right: 0;
  padding-inline-end: 0.5rem;
  color: #90caf9;
}

.cur-body { padding: 2.25rem 0 3rem; }

.cur-grade-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.35rem 1.4rem;
  margin-bottom: 1rem;
}

.cur-grade-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cur-grade-card h2 i { color: #1565C0; font-size: 0.95rem; }

.cur-subject-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: #334155;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
  width: 100%;
  height: 100%;
}

.cur-subject-pill:hover {
  background: #fff;
  border-color: #90caf9;
  box-shadow: 0 6px 18px rgba(21, 101, 192, 0.09);
  transform: translateY(-2px);
}

.cur-subject-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #e3f2fd;
  color: #1565C0;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cur-subject-pill:hover .cur-subject-icon { background: #1565C0; color: #fff; }

.cur-subject-pill i { color: inherit; }

.cur-subject-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

/* The Arabic subject names carry the book edition in the name, so they are far
   too long to truncate to one line without losing which edition it is. */
.cur-subject-name {
  font-size: 0.87rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.cur-subject-pill:hover .cur-subject-name { color: #1565C0; }

.cur-subject-count {
  font-size: 0.74rem;
  font-weight: 500;
  color: #94a3b8;
}

.cur-term-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin: 1.75rem 0 0.85rem;
}

.cur-unit-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  height: 100%;
}

.cur-unit-card:hover {
  border-color: #90caf9;
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.1);
  transform: translateY(-2px);
}

.cur-unit-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1565C0;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cur-unit-card .cur-unit-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.cur-unit-card .cur-unit-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

.cur-q-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.3rem;
  margin-bottom: 0.85rem;
}

.cur-q-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.cur-q-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1565C0;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cur-q-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.55;
  margin: 0;
}

.cur-q-passage {
  font-size: 0.85rem;
  color: #64748b;
  background: #f8fafc;
  border-inline-start: 3px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.cur-choices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

@media (max-width: 575.98px) {
  .cur-choices { grid-template-columns: 1fr; }
}

.cur-choices li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.87rem;
  color: #475569;
  background: #fff;
}

.cur-choice-key {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cur-cta {
  background: #fff;
  border: 1px solid #bbdefb;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.cur-cta h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.cur-cta p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.cur-cta .btn {
  background: #1565C0;
  border-color: #1565C0;
  border-radius: 50px;
  font-weight: 600;
  padding: 0.5rem 1.6rem;
}

.cur-cta .btn:hover { background: #0d47a1; border-color: #0d47a1; }

.cur-pager {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.cur-pager a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 48%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.cur-pager a:hover { border-color: #90caf9; color: #1565C0; }

.cur-empty {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

.cur-summary,
.cur-keywords {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.3rem;
  margin-bottom: 0.85rem;
}

.cur-summary h2,
.cur-keywords h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #1565C0;
  margin: 0 0 0.6rem;
}

.cur-summary p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.9;
  color: #334155;
}

.cur-keywords ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cur-keywords li {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  color: #334155;
}

.cur-intro {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #64748b;
  margin-bottom: 1rem;
}
