/* Pandey Computer Education — shared styles */
:root {
  --paper: #f5f1e8;
  --panel: #ece6d8;
  --field: #fbf8f1;
  --ink: #1f1c18;
  --muted: #5c564c;
  --line: #d6cdbb;
  --red: #b0131f;
  --red-dark: #8a0e18;
  --blue: #1c3a6e;
  --blue-dark: #142b52;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(32px, 5vw, 50px); margin: 0 0 16px; }
h2 { font-size: clamp(25px, 3.4vw, 34px); margin: 0 0 14px; }
h3 { font-size: 21px; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--field); padding: 8px 12px; z-index: 30; }

/* Top bar */
.topbar { background: var(--blue); color: #e9eef7; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 52px; width: auto; display: block; mix-blend-mode: multiply; }
.brand strong { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.brand span { display: block; font-size: 13px; color: var(--muted); }
.menu-toggle { display: none; font: inherit; font-size: 15px; background: none; border: 1px solid var(--ink); color: var(--ink); padding: 6px 12px; border-radius: 4px; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); }

/* Buttons */
.btn { display: inline-block; padding: 11px 20px; border-radius: 4px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid var(--red); background: var(--red); color: #fff; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Sections */
section { padding: 64px 0; border-bottom: 1px solid var(--line); }
section.panel { background: var(--panel); }
.lede { font-size: 19px; color: var(--muted); max-width: 680px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }

/* Home hero */
.hero { padding: 56px 0 60px; }
.hero .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.hero-facts { border-top: 2px solid var(--ink); }
.hero-facts dl { margin: 0; }
.hero-facts div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hero-facts dt { color: var(--muted); }
.hero-facts dd { margin: 0; font-weight: 600; }

/* Page title */
.page-head { padding: 48px 0 40px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* Category list (home + courses) */
.cat-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.cat-list > li { display: grid; grid-template-columns: 60px 1fr 1.4fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cat-list .num { font-family: var(--serif); font-size: 26px; color: var(--red); }
.cat-list h3 { margin: 0; }
.cat-list h3 a { color: var(--ink); text-decoration: none; }
.cat-list h3 a:hover { color: var(--red); text-decoration: underline; }
.cat-list p { margin: 0; color: var(--muted); font-size: 16px; }

/* All-courses page: one block per group */
.groups { margin-top: 8px; }
.group { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.group:first-child { border-top: 2px solid var(--ink); }
.group .num { display: block; font-family: var(--serif); font-size: 22px; color: var(--red); margin-bottom: 6px; }
.group h2 { font-size: 27px; margin-bottom: 10px; }
.group h2 a { color: var(--ink); text-decoration: none; }
.group h2 a:hover { color: var(--red); text-decoration: underline; }
.group p { color: var(--muted); font-size: 16px; }
.group-courses { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; font-size: 16px; }
.group-courses li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); }
.group-courses a { color: var(--ink); text-decoration: none; }
.group-courses a:hover { color: var(--red); text-decoration: underline; }
.group-courses b { font-weight: 700; color: var(--red); margin-right: 6px; }

/* Two column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split-wide { grid-template-columns: 1.4fr 1fr; }

/* Course pages */
.toc { columns: 2; column-gap: 32px; margin: 24px 0 0; padding: 18px 0 0 18px; border-top: 1px solid var(--line); font-size: 16px; }
.toc li { break-inside: avoid; margin-bottom: 6px; }
.course { padding: 36px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; scroll-margin-top: 16px; }
.course:last-of-type { border-bottom: 0; }
.course .code { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--red); letter-spacing: .06em; margin-bottom: 4px; }
.course h2 { font-size: 26px; margin-bottom: 10px; }
.course h3 { font-family: var(--sans); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.course ul { margin: 0; padding-left: 20px; }
.course li { margin-bottom: 4px; }
.note { background: var(--panel); border: 1px solid var(--line); padding: 18px 20px; border-radius: 4px; font-size: 16px; }
.note p:last-child { margin: 0; }

/* Registrations */
.reg-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 16px; }
.reg-table th, .reg-table td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.reg-table th { width: 38%; color: var(--muted); font-weight: 600; }
.cert img { display: block; border: 1px solid var(--line); max-width: 380px; width: 100%; }
.cert figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Review quote */
blockquote { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.4; }
blockquote footer { font-family: var(--sans); font-size: 15px; color: var(--muted); margin-top: 10px; }

/* Contact */
.contact-list { margin: 0; }
.contact-list div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 14px; color: var(--muted); }
.contact-list dd { margin: 2px 0 0; font-weight: 600; }
form label { display: block; font-size: 15px; font-weight: 700; margin: 16px 0 6px; }
form input, form select, form textarea { width: 100%; padding: 11px 12px; border: 1px solid #b9ae98; border-radius: 4px; background: var(--field); font: inherit; color: var(--ink); }
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
form .btn { margin-top: 20px; }
.map iframe { width: 100%; height: 340px; border: 1px solid var(--line); display: block; }

/* Legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 24px; margin-top: 34px; }

/* CTA band */
.cta { background: var(--blue); color: #e9eef7; border-bottom: 0; }
.cta h2 { color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.cta p { margin: 0; }
.cta .btn-line { color: #fff; border-color: #fff; }
.cta .btn-line:hover { background: #fff; color: var(--blue); }

/* Footer */
.site-footer { background: var(--ink); color: #cfc8ba; font-size: 15px; padding: 48px 0 28px; }
.site-footer a { color: #f1ece2; }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 6px; }
.foot-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid #3d3832; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; }

@media (max-width: 900px) {
  .hero .wrap, .split, .split-wide, .course { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cat-list > li { grid-template-columns: 44px 1fr; }
  .cat-list p { grid-column: 2; }
  .group { grid-template-columns: 1fr; gap: 16px; }
  .group-courses { columns: 1; }
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .site-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .toc { columns: 1; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand img { height: 42px; }
  .brand strong { font-size: 17px; }
  .brand span { display: none; }
  .brand { flex: 1; min-width: 0; }
  .hero-facts div { grid-template-columns: 1fr; gap: 2px; }
}
