﻿/* ================================================
   Beads of Brilliance — Minimal Core CSS
   Only what Bootstrap cannot replace.
   All layout/grid/spacing handled by Bootstrap.
   ================================================ */

/* ── CSS Variables ── */
:root {
  --brand-gold: #ffd700;
  --brand-gold-dark: #daa520;
  --brand-blue: #4a90e2;
  --brand-blue-dark: #357abd;
  --brand-text: #2c3e50;
  --bg-page: #f4f6f9;

  /* ── Type scale ── */
  --text-xs: 0.75rem; /* 12px — labels, badges, legal */
  --text-sm: 0.875rem; /* 14px — captions, sub-text */
  --text-base: 1rem; /* 16px — body copy */
  --text-md: 1.125rem; /* 18px — lead / intro text */
  --text-lg: 1.25rem; /* 20px — card titles, section sub-heads */
  --text-xl: 1.5rem; /* 24px — section headings h3 */
  --text-2xl: 1.875rem; /* 30px — page headings h2 */
  --text-3xl: 2.25rem; /* 36px — hero headings h1 */
  --text-4xl: 3rem; /* 48px — display / hero */
}

/* ── Global base ── */
html {
  font-size: 16px;
}
body {
  background: var(--bg-page);
  color: var(--brand-text);
  font-size: var(--text-base);
  line-height: 1.65;
}

/* ── Heading scale ── */
h1,
.h1 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.2;
}
h2,
.h2 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: 700;
  line-height: 1.25;
}
h3,
.h3 {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  font-weight: 700;
  line-height: 1.3;
}
h4,
.h4 {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  font-weight: 600;
  line-height: 1.35;
}
h5,
.h5 {
  font-size: var(--text-lg);
  font-weight: 600;
}
h6,
.h6 {
  font-size: var(--text-base);
  font-weight: 600;
}

/* ── Body text helpers ── */
.text-xs {
  font-size: var(--text-xs) !important;
}
.text-sm {
  font-size: var(--text-sm) !important;
}
.text-base {
  font-size: var(--text-base) !important;
}
.text-md {
  font-size: var(--text-md) !important;
}
.text-lg {
  font-size: var(--text-lg) !important;
}

/* Minimum readable size — nothing below 12px */
small,
.small {
  font-size: var(--text-sm) !important;
}
img {
  max-width: 100%;
  height: auto;
}
html,
body {
  overflow-x: hidden;
}

/* ── CTA Buttons (brand-specific, not Bootstrap) ── */
.cta-button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.cta-button.primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.35);
}
.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
  color: #fff;
}
.cta-button.secondary {
  background: transparent;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}
.cta-button.secondary:hover {
  background: var(--brand-blue);
  color: #fff;
}

/* ── Scroll to top ── */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* ── Page container ── */
.page-container {
  width: 100%;
  padding: 0 1.5rem;
}
.content-container {
  width: 100%;
  padding: 0 1.5rem;
}

/* ── Section headers ── */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--brand-text);
  margin-bottom: 0.5rem;
}
.section-description {
  color: #666;
  font-size: 1rem;
}
.section-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-gold));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ── Hero sections ── */
.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
}
.hero-description {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
}
.highlight {
  color: var(--brand-gold);
}

/* ── Breadcrumb ── */
.breadcrumb-nav {
  background: #f8f9fa;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #e9ecef;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}
.breadcrumb-item a {
  color: var(--brand-blue);
  text-decoration: none;
}
.breadcrumb-item a:hover {
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: #666;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding: 0 0.4rem;
  color: #aaa;
}

/* ── Sub nav ── */
.sub-nav {
  background: #fff;
  border-bottom: 2px solid #e9ecef;
}
.sub-nav-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  scrollbar-width: none;
}
.sub-nav-list::-webkit-scrollbar {
  display: none;
}
.sub-nav-item a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #555;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.sub-nav-item a:hover,
.sub-nav-item.active a {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

/* ── Program/feature cards ── */
.program-card,
.feature-card,
.benefit-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.program-card:hover,
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* ── Paper cards (practice worksheets) ── */
.paper-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  text-decoration: none;
  color: var(--brand-text);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: 1px solid #f0f0f0;
}
.paper-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  color: var(--brand-text);
}
.paper-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.paper-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.paper-card-sub {
  font-size: 0.8rem;
  color: #888;
  flex: 1;
}
.paper-card-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 0.5rem;
  text-transform: uppercase;
}
.badge-new {
  background: #e8f5e9;
  color: #27ae60;
}
.badge-free {
  background: #e3f2fd;
  color: #1976d2;
}
.badge-hot {
  background: #fff3e0;
  color: #e67e22;
}

/* ── Papers grid ── */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* ── Program section (practice dashboard) ── */
.program-section {
  margin-bottom: 2.5rem;
}
.program-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f0;
}
.program-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.program-section-header h2 {
  font-size: 1.2rem;
  color: var(--brand-text);
  margin: 0;
}
.program-section-header p {
  font-size: 0.82rem;
  color: #888;
  margin: 0;
}

/* ── Tool cards ── */
.tool-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--brand-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
  border: 1px solid #f0f0f0;
}
.tool-card:hover {
  transform: translateY(-2px);
  color: var(--brand-text);
}
.tool-card-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.tool-card-title {
  font-weight: 700;
  font-size: 0.9rem;
}
.tool-card-sub {
  font-size: 0.78rem;
  color: #888;
}

/* ── Testimonial cards ── */
.testimonial-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}
.star-rating {
  color: #ffd700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* ── Overview items (course stats) ── */
.overview-item {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}
.ov-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.ov-label {
  font-size: 0.72rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ov-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-text);
  margin-top: 0.25rem;
}

/* ── Outcome box ── */
.outcome-box {
  background: linear-gradient(135deg, #f0f4ff, #f8f0ff);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid #e0e7ff;
}
.outcome-box h4 {
  color: #667eea;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.outcome-box p {
  color: #555;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.7;
}

/* ── Module cards ── */
.module-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid #667eea;
}
.module-card h3 {
  color: #667eea;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.module-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.module-card ul li {
  padding: 3px 0 3px 1.2rem;
  color: #555;
  font-size: 0.88rem;
  position: relative;
}
.module-card ul li::before {
  content: "•";
  color: #667eea;
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ── Educator hero ── */
.educator-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* ── Abacus simulator ── */
.sim-hero {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  color: #fff;
  padding: 2rem 1rem 1.5rem;
  text-align: center;
}
.sim-container {
  width: 100%;
  padding: 1.5rem 1.5rem 4rem;
}
.canvas-wrap {
  overflow-x: auto;
  border-radius: 16px;
}
canvas {
  display: block;
  cursor: pointer;
  touch-action: none;
}

/* ── Print ── */
@media print {
  .fixed-feedback-button,
  .fixed-trial-button,
  .fixed-kit-button,
  .scroll-to-top,
  .free-demo-banner,
  nav {
    display: none !important;
  }
}

/* ── Educator Hero Section (used on program pages) ── */
.educator-hero-section {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: #fff;
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}
.educator-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
.educator-hero-section.magic-tables-section {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}
.educator-hero-section.vedic-math-section {
  background: linear-gradient(135deg, #c44569, #ff6b6b);
}
.educator-hero-section.curricular-math-section {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}
.educator-hero-section.abacus-junior-section {
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.educator-hero-section.youngstar-section {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.educator-hero-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}
.educator-hero-text {
  flex: 1 1 300px;
}
.educator-hero-image {
  flex: 1 1 280px;
  text-align: center;
}

.educator-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.educator-hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
}
.educator-hero-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Hero benefits bar */
.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 80px;
  transition: transform 0.2s;
}
.hero-benefit:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.22);
}
.benefit-stat {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.benefit-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

/* Hero image */
.hero-main-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}
.hero-main-image:hover {
  transform: scale(1.02) translateY(-4px);
}

/* Programs / benefits sections */
.programs-section,
.benefits-section {
  padding: 3rem 0;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.benefit-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.benefit-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.benefit-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-blue);
}
.benefit-block {
  text-align: center;
}

/* Mobile stacking */
@media (max-width: 768px) {
  .educator-hero-content {
    flex-direction: column;
    text-align: center;
  }
  .educator-hero-buttons {
    justify-content: center;
  }
  .hero-benefits {
    justify-content: center;
  }
  .programs-grid {
    grid-template-columns: 1fr;
  }
}
