:root {
  --indigo:       #1a1535;
  --indigo-mid:   #2d2660;
  --indigo-light: #3d3580;
  --saffron:      #e8831a;
  --saffron-light:#f5a623;
  --gold:         #c9962d;
  --parchment:    #fdf6e8;
  --parchment-dark: #f2e8ce;
  --cream:        #fefcf5;
  --crimson:      #c0392b;
  --forest:       #1a6b45;
  --text-dark:    #1a1535;
  --text-mid:     #3d3560;
  --text-muted:   #7a7098;
  --white:        #ffffff;
  --card-bg:      #fffdf5;
  --border:       rgba(200, 160, 40, 0.25);

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;
  --ff-serif:   'Crimson Text', Georgia, serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(26,21,53,0.10);
  --shadow-lg: 0 12px 48px rgba(26,21,53,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body { font-family: var(--ff-body); background: var(--parchment);
color: var(--text-dark); min-height: 100vh;
overflow-x: hidden; }

/* styling of scrollbar  */

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--parchment-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* styling of navigation bar  */
.navbar {
position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
display: flex; align-items: center; gap: 1.5rem; background: var(--indigo);
padding: 0 2rem; height: 64px;
border-bottom: 2px solid var(--saffron);  box-shadow: 0 2px 20px rgba(0,0,0,0.4); }

.nav-logo {
display: flex; align-items: center; gap: 0.6rem;
font-family: var(--ff-display); font-size: 1.35rem; font-weight: 700;
color: var(--saffron-light); letter-spacing: 0.02em;
flex-shrink: 0; }

.mandala-icon {
width: 30px; height: 30px; border: 2px solid var(--saffron);
border-radius: 50%; position: relative; }

.mandala-icon::before, .mandala-icon::after { content: '';
position: absolute; inset: 4px; border: 1.5px solid var(--gold);
border-radius: 50%;}

.mandala-icon::after { inset: 9px; background: var(--saffron); border: none;
}

.nav-links { display: flex; list-style: none; gap: 0.25rem; margin-left: auto;}

.nav-link { text-decoration: none;
color: rgba(255,255,255,0.7); font-size: 0.875rem;
font-weight: 500; padding: 0.4rem 0.85rem; border-radius: 6px;
transition: all 0.2s; letter-spacing: 0.02em; }

.nav-link:hover, .nav-link.active { color: var(--saffron-light);
background: rgba(232, 131, 26, 0.12);}
.nav-link.practice-btn { background: var(--saffron); color: var(--white); 
font-weight: 600;}
.nav-link.practice-btn:hover { background: var(--saffron-light); color: var(--white);}

.hamburger {
  display: none; background: none; border: none; color: var(--saffron-light); font-size: 1.5rem;
cursor: pointer; margin-left: auto;}

/* styling of sections */

.page-section {
display: none; min-height: 100vh; padding: 96px 2rem 4rem; max-width: 1100px;
margin: 0 auto;}
.page-section.active { display: block; }

.hero {
display: flex; align-items: center; gap: 3rem; padding: 2rem 0 3rem; border-bottom: 1.5px solid var(--border);
}

.hero-mandala-wrap { flex-shrink: 0;}
#heroMandala {
  filter: drop-shadow(0 0 24px rgba(232,131,26,0.35));
}

.hero-eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
color: var(--saffron);margin-bottom: 0.75rem;
}

.hero-title { font-family: var(--ff-display);
font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900;

line-height: 1.1; color: var(--indigo);
margin-bottom: 1.25rem;
}

.hero-title .accent { color: var(--saffron); display: block;}

.hero-desc { font-family: var(--ff-serif); font-size: 1.15rem; line-height: 1.75;
color: var(--text-mid); max-width: 52ch; margin-bottom: 2rem; }

.hero-cta-row { display: flex; gap: 1rem; flex-wrap: wrap;}


/* styling of buttons */
 
.btn-primary { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--saffron);
color: var(--white);

font-family: var(--ff-body); font-size: 0.9rem; font-weight: 600;
padding: 0.65rem 1.5rem; border: none; border-radius: 8px;
cursor: pointer; transition: all 0.2s;
letter-spacing: 0.02em; box-shadow: 0 3px 12px rgba(232,131,26,0.3); }

.btn-primary:hover { background: var(--saffron-light); transform: translateY(-1px);
box-shadow: 0 6px 20px rgba(232,131,26,0.4); }

.btn-primary:active { transform: translateY(0); }

.btn-ghost { display: inline-flex; align-items: center;
background: transparent; color: var(--indigo);

font-family: var(--ff-body); font-size: 0.9rem; font-weight: 600;
padding: 0.65rem 1.5rem; border: 2px solid var(--indigo);
border-radius: 8px; cursor: pointer;
transition: all 0.2s;}

.btn-ghost:hover { background: var(--indigo);
color: var(--saffron-light); }

/* home cards styling */

.home-cards { display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1.5rem; padding: 2.5rem 0;}

.home-card {
  background: var(--card-bg); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
padding: 2rem 1.5rem; cursor: pointer; transition: all 0.25s; position: relative; overflow: hidden;}

.home-card::before { content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--saffron), var(--gold)); opacity: 0;
  transition: opacity 0.25s;}

  .home-card:hover 
 { border-color: var(--saffron); box-shadow: var(--shadow-lg); transform: translateY(-4px);}

.home-card:hover::before { opacity: 1; }

.card-glyph {
  font-size: 2.5rem; font-weight: 900; color: var(--saffron); margin-bottom: 0.75rem;
  line-height: 1; font-family: var(--ff-display);}

  .home-card h3 {
font-family: var(--ff-display); font-size: 1.25rem; font-weight: 700;
color: var(--indigo); margin-bottom: 0.5rem; }

.home-card p {
font-size: 0.875rem; color: var(--text-muted); line-height: 1.6;
margin-bottom: 1rem; }

.card-arrow {
font-size: 0.825rem; font-weight: 600; color: var(--saffron);
letter-spacing: 0.03em; }

.sutras-strip {
  background: var(--indigo); border-radius: var(--radius); padding: 1.25rem 1.75rem; 
  margin-top: 1rem;}

  .sutras-label {
font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
color: var(--saffron); margin-bottom: 0.75rem;
}

.sutras-scroll {
display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
align-items: center; font-family: var(--ff-serif); font-style: italic; font-size: 0.9rem;
color: rgba(255,255,255,0.75); }

.sutras-scroll .dot { color: var(--saffron); }

/* learner header styling */

.learn-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2.5rem;
padding-bottom: 1.5rem; border-bottom: 2px solid var(--border);
}

.learn-icon { width: 70px; height: 70px;
background: var(--indigo); border-radius: 16px;
display: flex; align-items: center; justify-content: center;
font-size: 2.2rem; font-weight: 900;
color: var(--saffron-light); flex-shrink: 0;
box-shadow: 0 4px 16px rgba(26,21,53,0.25);
}
.learn-icon.minus { color: #e74c3c; }
.learn-icon.multiply { color: #27ae60; }
.learn-icon.divide { color: #2980b9; }

.learn-header h2 { font-family: var(--ff-display);
font-size: 2rem; font-weight: 800; color: var(--indigo);
}
.learn-sub { font-family: var(--ff-serif); font-style: italic;
color: var(--text-muted); margin-top: 0.3rem;
}

.method-grid { display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
margin-bottom: 2.5rem;
}

.method-card { background: var(--card-bg); border: 1.5px solid var(--border);
border-radius: var(--radius-lg); padding: 1.75rem; position: relative;
}
.method-card.full-width { grid-column: 1 / -1; }

.method-number {position: absolute; top: -1px; right: 20px;
background: var(--indigo); color: var(--saffron-light);
font-size: 0.72rem; font-weight: 700;
letter-spacing: 0.08em; padding: 0.25rem 0.6rem; border-radius: 0 0 6px 6px;
}

.method-card h3 { font-family: var(--ff-display); font-size: 1.15rem;
font-weight: 700; color: var(--indigo); margin-bottom: 0.65rem;
}
.method-card > p { font-size: 0.9rem; line-height: 1.7; color: var(--text-mid);
margin-bottom: 1.25rem; }

.example-box { background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-mid) 100%);
border-radius: 10px; padding: 1.25rem;
border-left: 3px solid var(--saffron);
}
.ex-title { font-family: var(--ff-serif); font-size: 0.95rem;
color: var(--saffron-light); font-weight: 600;
margin-bottom: 0.85rem;
}

.steps { display: flex; flex-direction: column; gap: 0.55rem; }

.step { display: flex; align-items: flex-start; gap: 0.75rem;
color: rgba(255,255,255,0.85); font-size: 0.875rem; line-height: 1.55;
}
.step strong { color: var(--saffron-light); }
.step em { color: rgba(255,255,255,0.6); font-style: italic; }

.step-n {
width: 24px; height: 24px; background: rgba(232,131,26,0.2);
border: 1px solid var(--saffron); border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-size: 0.7rem; font-weight: 700; color: var(--saffron-light);
flex-shrink: 0; margin-top: 1px;
}

.result-step { padding-top: 0.55rem;
border-top: 1px solid rgba(232,131,26,0.3); font-weight: 600;
color: var(--saffron-light) !important; font-size: 0.95rem !important;
}

.section-nav-row { display: flex;
justify-content: space-between; padding-top: 1rem; border-top: 1.5px solid var(--border);
gap: 1rem; flex-wrap: wrap;
}


/* practice section styling */

.practice-hero { text-align: center; padding: 2rem 0 2.5rem; border-bottom: 1.5px solid var(--border);
margin-bottom: 2.5rem; }

.practice-hero h2 { font-family: var(--ff-display); font-size: clamp(2rem , 4vw , 2.8rem);
font-weight: 900; color: var(--indigo);
margin-bottom: 0.5rem; }

.practice-sub { font-family: var(--ff-serif); font-size: 1.1rem ;
color: var(--text-muted); max-width: 55ch;
margin: 0 auto; line-height: 1.7; }

.level-select-grid { display: grid;
grid-template-columns: repeat(auto-fit,minimax(190px,1fr));
gap: 1.25rem; margin-bottom: 2.5rem; }

.level-card { background: var(--card-bg); border: 2px , solid var(--border);
border-radius: var(--radius-lg); padding: 1.75rem 1.25rem; cursor: pointer;
transition: all 0.25s; text-align: center; position: relative;
overflow: hidden; }

.level-card:hover { border-color: var(--saffron);
box-shadow: var(--shadow-lg);
transform: translateY(-4px);}

.level-card.selected { border-color: var(--saffron);
background: #fff8ee;}

.level-badge { width: 48px; height: 48px;
background: var(--indigo); color: var(--saffron-light);
border-radius: 50%; display: flex; align-items: center; justify-content: center;
font-family: var(--ff-display); font-size: 1rem ; font-weight: 800; margin: 0 auto 1rem;}

.level-card h3 { font-family: var(--ff-display); font-size: 1.1rem; font-weight: 700;
color: var(--indigo); margin-bottom: 0.5rem; }

.level-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6;
margin-bottom: 1rem; }

.level-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
text-transform: uppercase; background: rgba(232,131,26,0.12);
color: var(--saffron); padding: 0.25rem 0.6rem;
border-radius: 20px; border: 1px solid rgba(232,131,26,0.3); }

/* setting up the timer  */

.timer-setup { display: flex; justify-content: center;
padding: 1rem 0; }

.timer-card { background: var(--card-bg); border: 2px solid var(--border);
border-radius: var(--radius-lg); padding: 2.25rem;
max-width: 480px; width: 100%;
box-shadow: var(--shadow); text-align: center; }

.timer-card h3 { font-family: var(--ff-display);
font-size: 1.5rem; color: var(--indigo);
margin-bottom: 0.5rem; }

.timer-card p { color: var(--text-muted);
font-size: 0.9rem; margin-bottom: 1.5rem; }

.timer-card p span {color: var(--saffron);
font-weight: 600;}

.timer-options { display: flex;
flex-wrap: wrap; gap: 0.75rem;
justify-content: center; margin-bottom: 1.25rem; }

.timer-opt { padding: 0.55rem 1.1rem;
border: 2px solid var(--border); background: transparent;
border-radius: 8px; cursor: pointer;
font-size: 0.875rem; font-weight: 600;
color: var(--text-dark); transition: all 0.2s;}

.timer-opt:hover, .timer-opt.active { border-color: var(--saffron);
background: rgba(232,131,26,0.1); color: var(--saffron); }

.custom-time-row { display: flex; align-items: center;
justify-content: center; gap: 0.5rem;
margin-bottom: 1.25rem; }

.custom-time-row input { width: 90px; padding: 0.5rem 0.75rem;
border: 2px solid var(--border); border-radius: 8px;
font-size: 0.9rem; background: var(--parchment);
color: var(--text-dark); text-align: center;
outline: none; }

.custom-time-row input:focus { border-color: var(--saffron); }
.custom-time-row span { color: var(--text-muted); font-size: 0.875rem; }

.start-test-btn { margin-top: 1rem; width: 100%; justify-content: center; }
.start-test-btn:disabled { background: #ccc;
cursor: not-allowed; box-shadow: none; }

#backFromTimer { margin-top: 0.75rem;
width: 100%; justify-content: center; }

#cbtView, #resultView { animation: fadeIn 0.35s ease; }

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

.cbt-header { background: var(--indigo); border-radius: var(--radius-lg);
padding: 1.25rem 1.75rem 1rem; margin-bottom: 1.75rem;
color: var(--white); }

.cbt-meta { display: flex; align-items: center;
justify-content: space-between; margin-bottom: 1rem;}

#cbtLevelLabel { font-family: var(--ff-display); font-size: 0.85rem;
font-weight: 700; color: var(--saffron-light);
text-transform: uppercase; letter-spacing: 0.1em; }

.cbt-q-counter { font-size: 0.875rem; color: rgba(255,255,255,0.7);}

.cbt-timer-display { display: flex; align-items: center;
justify-content: center; gap: 0.5rem;
margin-bottom: 0.75rem;}

.timer-icon { font-size: 1.1rem; }
#timerLabel { font-family: var(--ff-display);
font-size: 2rem; font-weight: 700;
color: var(--saffron-light); letter-spacing: 0.05em; }

#timerLabel.warning { color: #e74c3c; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

.cbt-progress-bar-wrap { background: rgba(255,255,255,0.1);
border-radius: 4px; height: 6px; }

.cbt-progress-bar { height: 100%; background: linear-gradient(90deg, var(--saffron), var(--saffron-light));
border-radius: 4px; transition: width 0.4s ease; width: 10%;}

.cbt-body { max-width: 720px; margin: 0 auto; }

.cbt-question-wrap { background: var(--card-bg);
border: 2px solid var(--border); border-radius: var(--radius-lg);
padding: 2rem 2.25rem; margin-bottom: 1.5rem;
min-height: 120px; display: flex;
align-items: center;}

.cbt-q-text { font-family: var(--ff-display); font-size: 1.4rem;
font-weight: 600; color: var(--indigo);
line-height: 1.5; width: 100%; }

.cbt-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem;
margin-bottom: 1.5rem; }

.cbt-option-btn { background: var(--card-bg); border: 2px solid var(--border); 
border-radius: 10px; padding: 1rem 1.25rem;
font-size: 1rem; font-weight: 500;
color: var(--text-dark); cursor: pointer;
transition: all 0.2s; text-align: left;
display: flex; align-items: center;
gap: 0.75rem; font-family: var(--ff-body); }

.cbt-option-btn:hover:not(:disabled) { border-color: var(--saffron);
background: #fff8ee; transform: translateX(3px); }

.option-label { width: 30px; height: 30px;
background: var(--indigo); color: var(--saffron-light);
border-radius: 50%; display: flex; align-items: center; justify-content: center;
font-size: 0.78rem; font-weight: 700;
flex-shrink: 0; }

.cbt-option-btn.correct { border-color: var(--forest);
background: #eafaf2; color: var(--forest); }

.cbt-option-btn.correct .option-label { background: var(--forest); color: #fff; }

.cbt-option-btn.wrong { border-color: var(--crimson); background: #fdf0ef;
color: var(--crimson); }
.cbt-option-btn.wrong .option-label { background: var(--crimson); color: #fff; }

.cbt-option-btn:disabled { cursor: not-allowed; }

/* solution box styling  */

.cbt-solution-box {background: linear-gradient(135deg, var(--indigo), var(--indigo-mid));
border-radius: var(--radius-lg); padding: 1.75rem;
animation: fadeIn 0.3s ease; }

.solution-header { margin-bottom: 1.25rem; display: flex;
align-items: center; gap: 0.75rem; }

#solutionVerdict { font-family: var(--ff-display); font-size: 1.1rem;
font-weight: 700; padding: 0.4rem 1rem;
border-radius: 6px; }

.verdict-correct { background: rgba(26,107,69,0.3); color: #7debb4; }
.verdict-wrong { background: rgba(192,57,43,0.3); color: #f1948a; }

.sol-sutra { font-family: var(--ff-serif); font-style: italic;
color: var(--saffron-light); font-size: 0.9rem;
margin-bottom: 1rem; border-left: 3px solid var(--saffron);
padding-left: 0.75rem; }

#solSteps .step { margin-bottom: 0.45rem; }

#nextQBtn { margin-top: 1.25rem; width: 100%;
justify-content: center; }

/* final result view styling  */

.result-wrap { max-width: 540px;
margin: 0 auto; text-align: center;
padding: 2rem 1rem; }

.result-mandala-wrap { margin: 0 auto 1.5rem; }
#resultMandala { filter: drop-shadow(0 0 18px rgba(232,131,26,0.4)); }

.result-title { font-family: var(--ff-display); font-size: 2rem;
font-weight: 900; color: var(--indigo);
margin-bottom: 1.5rem; }

.result-score-row { display: flex; justify-content: center; gap: 2rem;
margin-bottom: 1.5rem; flex-wrap: wrap; }

.result-score-block { display: flex; flex-direction: column;
align-items: center; gap: 0.3rem; }

.rs-num { font-family: var(--ff-display); font-size: 2.4rem;
font-weight: 900; color: var(--saffron); }

.rs-lbl { font-size: 0.8rem; font-weight: 600;
text-transform: uppercase; letter-spacing: 0.1em;
color: var(--text-muted); }

.result-msg { font-family: var(--ff-serif);
font-size: 1.1rem; line-height: 1.7;
color: var(--text-mid); margin-bottom: 2rem;
padding: 1rem 1.5rem; background: var(--card-bg);
border-left: 3px solid var(--saffron);
border-radius: 0 8px 8px 0; text-align: left; }

.result-btns { display: flex; gap: 1rem;
justify-content: center; flex-wrap: wrap; }

/* styling of footer part of site  */

.site-footer { background: var(--indigo);
border-top: 2px solid var(--saffron);
padding: 1.5rem 2rem; margin-top: 4rem; }

.footer-inner { max-width: 1100px; margin: 0 auto;
display: flex; align-items: center;
gap: 1.5rem; flex-wrap: wrap; }

.footer-brand { font-family: var(--ff-display);
font-size: 1.15rem; font-weight: 700;
color: var(--saffron-light); }

.footer-copy { font-family: var(--ff-serif);
font-style: italic; color: rgba(255,255,255,0.5);
font-size: 0.9rem; flex: 1; }

.footer-links { display: flex;
gap: 1rem; }

.footer-links a { color: rgba(255,255,255,0.6);
font-size: 0.875rem; text-decoration: none;
transition: color 0.2s; }

.footer-links a:hover { color: var(--saffron-light); }

/* styling of geometric border */

.page-section::before { content: ''; position: fixed;
top: 64px; right: 0; width: 6px;
height: calc(100vh - 64px);
background: repeating-linear-gradient(
    to bottom,
    var(--saffron) 0px,
    var(--saffron) 8px,
    transparent 8px,
    transparent 16px
  );
opacity: 0.15; pointer-events: none; z-index: 0; }


@media (max-width: 768px) {
.nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--indigo); padding: 1rem; gap: 0.5rem; border-bottom: 2px solid var(--saffron); }
.nav-links.open { display: flex; }
.hamburger { display: flex; }

.hero { flex-direction: column; text-align: center; gap: 1.5rem; }
.hero-mandala-wrap { order: -1; }
#heroMandala { width: 260px; height: 260px; }
.hero-desc { margin: 0 auto 2rem; }
.hero-cta-row { justify-content: center; }

.learn-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
.method-grid { grid-template-columns: 1fr; }
.cbt-options { grid-template-columns: 1fr; }

.page-section { padding: 88px 1rem 3rem; }
.timer-card { padding: 1.5rem; } }

@media (max-width: 480px) {
.result-score-row { gap: 1rem; }
.hero-cta-row { flex-direction: column; align-items: center; }
.section-nav-row { flex-direction: column; }
.section-nav-row .btn-ghost, .section-nav-row .btn-primary { width: 100%; justify-content: center; }
}

