:root {
  --blue: #173caa;
  --navy: #10265b;
  --gold: #f2c65b;
  --ink: #192b49;
  --muted: #56647a;
  --light: #f3f6fc;
  --border: #dfe5ef;
  --white: #fff;
}

/* Shared student pages; existing homepage styles remain in place. */
.dashboard-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dashboard-toolbar p { margin: 0; }
.admin-record { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; }
.checkbox-control { width: 22px; height: 22px; min-height: 22px; }
.subject-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 18px; }
fieldset { border: 1px solid var(--border); border-radius: 5px; min-width: 0; padding: 18px; }
legend { font-weight: 700; padding-inline: 8px; }
@media (max-width: 760px) { .subject-row { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
.header-inner { flex-wrap: wrap; padding-block: 20px; }
#main-nav { flex-wrap: wrap; gap: 16px; }
#main-nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }
.page-hero { background: var(--blue); color: white; padding-block: 48px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -1px; }
.page-hero p:last-child { margin-bottom: 0; }
.page-content { padding-block: 36px 60px; max-width: 960px; }
.page-alert { padding: 18px 22px; background: #fff6dc; border-left: 4px solid var(--gold); border-radius: 5px; margin-bottom: 25px; }
.panel { padding: 28px; border: 1px solid var(--border); border-radius: 8px; background: white; margin-bottom: 24px; }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
input, select, textarea { width: 100%; min-width: 0; padding: 12px; font: inherit; color: var(--ink); background: white; border: 1px solid #8996ad; border-radius: 5px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #bb7d00; outline-offset: 3px; }
textarea { resize: vertical; }
.field-help { font-size: 12px; color: var(--muted); margin-block: 8px 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 25px; }
.full-width { grid-column: 1 / -1; }
.search-row { display: flex; align-items: start; gap: 14px; }
.search-row input { flex: 1; }
.search-row button { flex-shrink: 0; }
button.button { border: 1px solid transparent; cursor: pointer; }
.button-blue { background: var(--blue); color: white; }
.button-secondary { background: var(--light); color: var(--navy); }
button:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.feedback { overflow-wrap: anywhere; }
.feedback:not(:empty) { padding: 16px; background: var(--light); border-left: 3px solid var(--blue); }
.support-line { margin-top: 32px; color: var(--muted); font-size: 14px; }
.result-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
dt { font-weight: 700; font-size: 12px; color: var(--muted); }
dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; font-weight: 700; padding-block: 12px; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; }
th { background: var(--light); }
#notes-list h2 { font-size: 22px; }
#notes-list .text-link { display: inline-block; margin-top: 15px; }
@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; }
  .search-row input { flex: auto; }
  .panel { padding: 20px; }
  .result-details { grid-template-columns: 1fr 1fr; }
}
@media print {
  body:has(#result-card:not([hidden])) .topbar,
  body:has(#result-card:not([hidden])) .site-header,
  body:has(#result-card:not([hidden])) .page-hero,
  body:has(#result-card:not([hidden])) .page-alert,
  body:has(#result-card:not([hidden])) #results-form,
  body:has(#result-card:not([hidden])) #results-message,
  body:has(#result-card:not([hidden])) #print-result,
  body:has(#result-card:not([hidden])) .field-help,
  body:has(#result-card:not([hidden])) .support-line,
  body:has(#result-card:not([hidden])) footer { display: none; }
  #result-card::before { content: "Innovative Academy — Ranjhianwala, Bhera, Sargodha"; display: block; font-weight: 700; margin-bottom: 20px; }
  #result-card { border: 0; padding: 0; }
  .page-content { width: 100%; padding: 0; }
  tr { break-inside: avoid; }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
}
a {
  color: inherit;
}
button {
  font: inherit;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #bb7d00;
  outline-offset: 5px;
}
section {
  scroll-margin-top: 25px;
}
.container {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  padding-block: 9px;
}
.topbar a {
  text-decoration: none;
}
.site-header {
  background: #fff;
}
.header-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 7px;
}
.brand-mark {
  background: var(--blue);
  color: white;
  width: 49px;
  height: 55px;
  display: grid;
  place-content: center;
  border-radius: 5px 5px 17px 17px;
  position: relative;
  font-size: 20px;
}
.brand-mark span {
  position: absolute;
  color: var(--gold);
  font-size: 12px;
  top: 0;
  right: 5px;
}
nav {
  display: flex;
  align-items: center;
  gap: 23px;
  font-size: 13px;
  font-weight: 600;
}
nav a {
  text-decoration: none;
}
nav a:hover,
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.nav-contact {
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 5px;
}
.menu-toggle {
  background: white;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 5px;
  color: var(--navy);
}
.hero {
  background: var(--blue);
  color: white;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 50px;
  align-items: center;
  padding-block: 75px 90px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--blue);
  margin: 0 0 17px;
}
.hero .eyebrow,
.admission-banner .eyebrow {
  color: var(--gold);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(40px, 4.7vw, 62px);
  line-height: 1.13;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
h1 span {
  color: var(--gold);
}
.hero-description {
  max-width: 500px;
  color: #e3eafb;
  font-size: 16px;
}
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 13px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button-gold {
  background: var(--gold);
  color: var(--navy);
}
.button-outline {
  border: 1px solid #8098dc;
  color: white;
}
.hero-location {
  font-size: 11px;
  color: #dce5fa;
  margin: 24px 0 0;
}
.learning-art {
  height: 390px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 35px;
}
.art-orbit {
  position: absolute;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  width: 380px;
  height: 380px;
  top: 0;
  left: 20px;
  z-index: -1;
}
.orbit-two {
  width: 285px;
  height: 285px;
  top: 45px;
  left: 65px;
}
.art-heading {
  position: absolute;
  top: 42px;
  left: 80px;
  transform: rotate(-7deg);
  font-size: 25px;
  letter-spacing: 4px;
  line-height: 1.3;
}
.art-heading strong {
  font-size: 42px;
  color: var(--gold);
  letter-spacing: 0;
}
.art-heading span {
  display: block;
  font-size: 11px;
  letter-spacing: 5px;
  margin-top: 10px;
}
.art-star {
  position: absolute;
  color: var(--gold);
  font-size: 47px;
}
.star-one {
  right: 15px;
  top: 50px;
}
.star-two {
  left: 15px;
  top: 165px;
}
.book {
  height: 51px;
  border-radius: 5px 11px 11px 5px;
  border-right: 13px solid #e5e8f1;
  box-shadow: 0 12px 22px #08247740;
  display: flex;
  align-items: center;
  padding-left: 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  width: 80%;
  align-self: center;
}
.book-gold {
  background: var(--gold);
  color: var(--navy);
  transform: rotate(-8deg);
  margin-bottom: 11px;
  width: 73%;
}
.book-white {
  background: white;
  color: var(--blue);
  transform: rotate(3deg);
  margin-bottom: 10px;
}
.book-blue {
  background: #0d286a;
  color: white;
  width: 88%;
  transform: rotate(-3deg);
}
.art-caption {
  position: absolute;
  bottom: -2px;
  left: 70px;
  font-size: 12px;
  letter-spacing: 1px;
}
.art-caption span {
  color: var(--gold);
  margin-right: 8px;
}
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  margin-top: -28px;
  box-shadow: 0 12px 32px #10265b09;
  padding: 25px 10px;
}
.highlights div {
  padding: 0 30px;
  border-right: 1px solid var(--border);
}
.highlights div:last-child {
  border: 0;
}
.highlights strong,
.highlights span {
  display: block;
}
.highlights strong {
  font-size: 19px;
  color: var(--blue);
}
.highlights span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.section {
  padding-block: 78px;
}
h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 15px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.about-grid p:not(.eyebrow),
.section-heading > p,
.contact-grid > div > p,
.notices-grid > div > p {
  color: var(--muted);
  font-size: 14px;
}
.text-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.text-link span {
  margin-left: 12px;
}
.classes-section {
  background: var(--light);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 45px;
  margin-bottom: 28px;
}
.section-heading > p {
  max-width: 340px;
}
.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.class-card {
  background: white;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 7px;
  border-top: 3px solid var(--blue);
}
.card-number {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 700;
  display: block;
  margin-bottom: 30px;
}
.class-card .grade {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
}
.class-card p:not(.grade) {
  font-size: 13px;
  color: var(--muted);
}
.class-card a {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 24px;
}
.class-card a:hover {
  text-decoration: underline;
}
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.resource-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: linear-gradient(110deg, #f8faff, #fff);
}
.status {
  display: inline-block;
  font-size: 10px;
  color: #654900;
  background: #fff3cf;
  padding: 4px 9px;
  border-radius: 20px;
  margin-bottom: 16px;
  font-weight: 700;
}
.resource-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
  max-width: 430px;
}
.notices-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  padding-top: 0;
}
.notice {
  display: flex;
  gap: 20px;
  background: var(--light);
  border-radius: 7px;
  padding: 28px;
}
.notice-icon {
  border: 1px solid #a9bce9;
  flex-shrink: 0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  color: var(--blue);
  font-weight: 700;
}
.notice h3 {
  font-size: 16px;
}
.notice p {
  font-size: 13px;
  color: var(--muted);
}
.admission-banner {
  background: var(--navy);
  color: white;
  border-radius: 10px;
  padding: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
}
.admission-banner h2 {
  font-size: 30px;
}
.admission-banner p:last-child {
  font-size: 13px;
  color: #dce5fa;
  margin-bottom: 0;
}
.admission-banner .button {
  flex-shrink: 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
address {
  font-style: normal;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
address span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
address a {
  font-size: 18px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
address p {
  font-size: 14px;
}
footer {
  border-top: 1px solid var(--border);
  padding-block: 22px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}
footer p {
  margin: 0;
}
footer a {
  text-decoration: none;
}
.menu-toggle {
  display: none;
}
@media (max-width: 1000px) {
  nav {
    gap: 13px;
  }
  .brand {
    font-size: 17px;
  }
  .hero-grid {
    gap: 20px;
  }
  .art-heading {
    left: 45px;
  }
  .art-orbit {
    left: 0;
    width: 310px;
    height: 310px;
  }
  .orbit-two {
    left: 35px;
    top: 35px;
    width: 240px;
    height: 240px;
  }
  .art-heading strong {
    font-size: 34px;
  }
  .class-card {
    padding: 23px;
  }
  .admission-banner {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 760px) {
  .container {
    width: calc(100% - 36px);
  }
  .topbar-inner {
    font-size: 10px;
    gap: 12px;
  }
  .header-inner {
    min-height: 82px;
    flex-wrap: wrap;
    gap: 0;
    padding-block: 15px;
  }
  .brand {
    font-size: 17px;
  }
  .brand-mark {
    width: 40px;
    height: 46px;
  }
  .menu-toggle:not([hidden]) {
    display: block;
  }
  nav {
    width: 100%;
    flex-wrap: wrap;
    padding-top: 20px;
    gap: 18px;
  }
  nav[data-enhanced="true"] {
    display: none;
  }
  nav[data-enhanced="true"].is-open {
    display: flex;
  }
  .nav-contact {
    padding: 0;
    border: 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 48px 65px;
  }
  .hero-description {
    font-size: 15px;
  }
  h1 {
    font-size: 43px;
  }
  .learning-art {
    width: min(370px, 100%);
    height: 335px;
    margin: 12px auto 0;
  }
  .art-heading {
    top: 20px;
    left: 65px;
  }
  .art-caption {
    left: 45px;
  }
  .highlights {
    padding: 20px 5px;
  }
  .highlights div {
    padding: 0 12px;
  }
  .highlights strong {
    font-size: 14px;
  }
  .highlights span {
    font-size: 10px;
  }
  .section {
    padding-block: 50px;
  }
  .about-grid,
  .contact-grid,
  .notices-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    max-width: 100%;
  }
  .class-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .card-number {
    margin-bottom: 20px;
  }
  .notices-grid {
    padding-top: 0;
  }
  .admission-banner {
    padding: 28px;
  }
  .admission-banner h2 {
    font-size: 27px;
  }
  address {
    margin-top: 12px;
  }
  .footer-inner {
    flex-wrap: wrap;
  }
  .notice {
    padding: 22px;
    gap: 14px;
  }
}
@media (max-width: 380px) {
  .brand {
    font-size: 15px;
  }
  .brand small {
    letter-spacing: 1px;
  }
  .menu-toggle {
    font-size: 12px;
  }
  h1 {
    font-size: 37px;
  }
  .highlights div {
    padding: 0 8px;
  }
  address {
    grid-template-columns: 1fr;
  }
  .art-heading {
    left: 45px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
