/* ROBOAIBHARAT™ — base styles. Each subdomain sets its own --accent via a body class. */
:root {
  --ink: #14123a;
  --ink-soft: #4a4868;
  --muted: #7a7894;
  --line: #e4e3ef;
  --bg: #fbfaf7;
  --card: #ffffff;
  --brand: #3b2fc9;        /* indigo */
  --saffron: #f28c1b;      /* Bharat saffron */
  --green: #138a4f;        /* Bharat green */
  --accent: var(--brand);
  --accent-soft: #ecebff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,18,58,.06), 0 8px 24px rgba(20,18,58,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", var(--font);
}
body.site-learn    { --accent: #3b2fc9; --accent-soft: #ecebff; }
body.site-school   { --accent: #138a4f; --accent-soft: #e3f5eb; }
body.site-studio   { --accent: #d6336c; --accent-soft: #fde8ef; }
body.site-business { --accent: #0f5e8c; --accent-soft: #e2f0f8; }
body.site-www      { --accent: #f28c1b; --accent-soft: #fff1df; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Top ribbon: brand-wide navigation across subdomains */
.ribbon { background: var(--ink); color: #cfcde6; font-size: .8rem; }
.ribbon .container { display: flex; gap: 18px; overflow-x: auto; padding: 7px 0; white-space: nowrap; }
.ribbon a { color: #cfcde6; }
.ribbon a.active { color: #fff; font-weight: 600; }

/* Header */
.header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: .02em; }
.logo:hover { text-decoration: none; }
.logo .ai { color: var(--saffron); }
.logo sup { font-size: .55em; font-weight: 600; color: var(--muted); }
.logo .section-tag { font-family: var(--font); font-weight: 600; font-size: .8rem; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 99px; margin-left: 8px; vertical-align: middle; }
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav a.btn, .nav a.btn:hover { color: #fff; }
.nav a.btn-outline, .nav a.btn-outline:hover { color: var(--accent); }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 11px 20px; font-weight: 600; font-size: .95rem; cursor: pointer; font-family: inherit; }
.btn:hover { filter: brightness(.94); text-decoration: none; }
.btn-outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--accent-soft), var(--bg)); }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 12px; }

section.block { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }

/* Cards & grids */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 a { color: var(--ink); }
.card .foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-thumb { margin: -22px -22px 16px; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16/9; object-fit: cover; background: var(--accent-soft); }
.tile { display: block; color: var(--ink); }
.tile:hover { text-decoration: none; border-color: var(--accent); }
.tile .kicker { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.price { font-weight: 700; font-size: 1.1rem; }

/* Pills / filters */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.pill { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); font-size: .88rem; }
.pill.active, .pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Forms */
.form-card { max-width: 560px; margin: 40px auto; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-row input:not([type=checkbox]):not([type=radio]), .form-row select, .form-row textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.form-row ul { list-style: none; padding: 0; margin: 0; }
.form-row .help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.errorlist { color: #b42318; font-size: .85rem; list-style: none; padding: 0; margin: 4px 0 0; }

/* Messages */
.messages { list-style: none; padding: 0; margin: 16px 0 0; }
.messages li { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; background: var(--accent-soft); color: var(--ink); }
.messages li.error { background: #fdecea; color: #b42318; }

/* Course / lesson */
.two-col { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 340px; } }
.syllabus { list-style: none; padding: 0; margin: 0; }
.syllabus li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.video-frame { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: var(--radius); background: #000; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); }
.prompt-box { background: var(--ink); color: #f1f0ff; padding: 18px; border-radius: 12px; font-family: ui-monospace, Menlo, monospace; font-size: .9rem; white-space: pre-wrap; word-break: break-word; }
.certificate { border: 8px double var(--saffron); padding: 48px 24px; text-align: center; background: #fff; border-radius: 6px; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat strong { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--accent); }

/* Footer */
.footer { background: var(--ink); color: #b9b7d6; padding: 48px 0 24px; margin-top: 64px; font-size: .9rem; }
.footer a { color: #e3e1f7; }
.footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 32px; }
.footer h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; }
.footer .legal { border-top: 1px solid #2d2a5a; padding-top: 18px; font-size: .8rem; }
.tricolor { height: 4px; background: linear-gradient(90deg, var(--saffron) 33%, #fff 33% 66%, var(--green) 66%); }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
table.simple { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.simple th, table.simple td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
.card > .badge { align-self: flex-start; }
