/* Lahore Science Academy: periodic-table tiles, deep blue + cyan + white. */
:root {
  --blue: #0b2a6f;
  --blue-d: #061a49;
  --blue-dd: #04112f;
  --blue-m: #1d4ed8;
  --cyan: #19c3e6;
  --cyan-l: #c9f3fb;
  --ice: #f2f8fd;
  --white: #ffffff;
  --ink: #0d1b33;
  --muted: #55657f;
  --line: #d9e5f2;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Source Sans 3", system-ui, sans-serif; font-size: 1.04rem; color: var(--ink); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Lexend", system-ui, sans-serif; font-weight: 600; line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 5.5vw, 2.6rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 14px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* element tile, the core motif */
.el { position: relative; display: inline-grid; place-items: center; width: 64px; height: 64px; border: 2px solid currentColor; border-radius: 6px; font-family: "Lexend", sans-serif; font-weight: 600; font-size: 1.6rem; line-height: 1; flex: none; }
.el i { position: absolute; left: 5px; top: 4px; font-style: normal; font-size: 0.6rem; font-weight: 400; }
.el small { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 0.48rem; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--blue-d); color: #fff; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand .el { width: 42px; height: 42px; font-size: 1.05rem; color: var(--cyan); background: rgba(25, 195, 230, 0.1); }
.brand .el i { font-size: 0.48rem; left: 3px; top: 2px; }
.brand b { display: block; font-family: "Lexend", sans-serif; font-weight: 600; font-size: 1rem; line-height: 1.15; }
.brand small { display: block; font-size: 0.74rem; color: var(--cyan); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.92rem; padding: 8px 10px; border-radius: 6px; }
.nav a:hover { color: var(--cyan); }
.nav a.go { background: var(--cyan); color: var(--blue-dd); white-space: nowrap; }
.nav a.cur { background: transparent; box-shadow: inset 0 0 0 2px var(--cyan); color: var(--cyan); }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; }
.btn svg { width: 20px; height: 20px; }
.btn-cyan { background: var(--cyan); color: var(--blue-dd); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-out { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); color: #fff; }
.btn-line { box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue); }
.btn-sm { padding: 9px 14px; font-size: 0.9rem; }

/* hero */
.hero { background: var(--blue-d); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(25, 195, 230, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 195, 230, 0.08) 1px, transparent 1px); background-size: 24px 24px; }
.hero .wrap { position: relative; display: grid; gap: 32px; padding-top: 40px; padding-bottom: 52px; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding-top: 72px; padding-bottom: 80px; } }
.eyebrow { display: inline-block; font-family: "Lexend", sans-serif; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.hero h1 { font-size: clamp(2.3rem, 8.5vw, 4rem); margin: 10px 0 16px; }
.hero h1 b { color: var(--cyan); font-weight: 600; }
.hero .lead { color: rgba(255, 255, 255, 0.82); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 22px; }
.rating { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 8px 14px; font-size: 0.94rem; }
.rating .stars { color: var(--cyan); letter-spacing: 2px; }

/* hero periodic block */
.ptable { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 440px; width: 100%; margin: 0 auto; }
.ptable .el { width: 100%; height: auto; aspect-ratio: 1 / 1; font-size: clamp(1.4rem, 6vw, 2rem); color: #fff; border-width: 1.5px; border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.04); }
.ptable .el small { font-size: clamp(0.46rem, 1.9vw, 0.6rem); }
.ptable .el.c { background: var(--cyan); color: var(--blue-dd); border-color: var(--cyan); }
.ptable .el.b { background: var(--blue-m); border-color: var(--blue-m); }
.ptable .photo { grid-column: span 2; grid-row: span 2; border-radius: 6px; overflow: hidden; }
.ptable .photo img { width: 100%; height: 100%; object-fit: cover; }

/* subject strip */
.strip { background: var(--cyan); color: var(--blue-dd); }
.strip .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-top: 16px; padding-bottom: 16px; }
@media (min-width: 800px) { .strip .wrap { grid-template-columns: repeat(4, 1fr); } }
.strip div { font-size: 0.88rem; line-height: 1.3; }
.strip b { display: block; font-family: "Lexend", sans-serif; font-size: 1.2rem; }

/* sections */
.section { padding: 64px 0; }
.section.ice { background: var(--ice); }
.section.deep { background: var(--blue); color: #fff; }
.section .eyebrow { color: var(--blue-m); }
.section.deep .eyebrow { color: var(--cyan); }
.sub { color: var(--muted); max-width: 40em; }
.deep .sub { color: rgba(255, 255, 255, 0.75); }

/* programme cards */
.progs { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .progs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .progs { grid-template-columns: repeat(3, 1fr); } }
.prog { border: 1.5px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; background: #fff; }
.prog-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.prog-top .el { color: var(--blue); }
.prog:nth-child(3n + 2) .prog-top .el { color: var(--blue-m); }
.prog:nth-child(3n) .prog-top .el { color: #0a8fae; }
.prog-top h3 { margin: 0; }
.prog-top div > span { display: block; font-size: 0.84rem; color: var(--muted); }
.prog ul { margin: 0 0 16px; padding-left: 18px; color: var(--muted); font-size: 0.97rem; flex: 1; }
.prog li { margin-bottom: 4px; }
.prog li::marker { color: var(--cyan); }

/* subjects grid (deep) */
.subjects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 26px; }
@media (min-width: 800px) { .subjects { grid-template-columns: repeat(6, 1fr); } }
.subj { border: 1.5px solid rgba(255, 255, 255, 0.25); border-radius: 8px; padding: 10px; position: relative; aspect-ratio: 1 / 1.05; display: flex; flex-direction: column; justify-content: flex-end; }
.subj i { position: absolute; left: 10px; top: 8px; font-style: normal; font-size: 0.78rem; color: var(--cyan); }
.subj b { font-family: "Lexend", sans-serif; font-weight: 600; font-size: clamp(1.6rem, 7vw, 2.4rem); line-height: 1; }
.subj span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); margin-top: 4px; }
.subj.hot { background: var(--cyan); border-color: var(--cyan); color: var(--blue-dd); }
.subj.hot i, .subj.hot span { color: var(--blue-d); }

/* why */
.why { display: grid; gap: 14px; margin-top: 26px; }
@media (min-width: 800px) { .why { grid-template-columns: repeat(2, 1fr); } }
.why .item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 10px; padding: 18px; border-left: 4px solid var(--cyan); }
.why .el { width: 48px; height: 48px; font-size: 1.1rem; color: var(--blue); }
.why .el i { font-size: 0.5rem; }
.why p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 26px; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }

/* visit */
.visit { display: grid; gap: 28px; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1fr; } }
.addr { font-style: normal; margin-bottom: 16px; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; color: var(--blue); }
.note { font-size: 0.88rem; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.map { width: 100%; height: 340px; border: 0; border-radius: 10px; background: var(--ice); }

/* cta */
.cta { background: var(--blue-d); color: #fff; border-radius: 14px; padding: 30px 22px; position: relative; overflow: hidden; }
.cta::after { content: "Sc"; position: absolute; right: -14px; top: -10px; width: 120px; height: 120px; border: 2px solid rgba(25, 195, 230, 0.5); border-radius: 10px; display: grid; place-items: center; font-family: "Lexend", sans-serif; font-size: 3rem; color: rgba(25, 195, 230, 0.6); }
.cta > * { position: relative; z-index: 1; }
.cta .eyebrow { color: var(--cyan); }
.cta p { color: rgba(255, 255, 255, 0.8); max-width: 34em; }
.cta pre { font-family: ui-monospace, Menlo, monospace; font-size: 0.86rem; background: rgba(255, 255, 255, 0.06); border-radius: 8px; padding: 14px; white-space: pre-wrap; color: var(--cyan-l); border-left: 3px solid var(--cyan); }

/* fees page */
.page-hero { background: var(--blue-d); color: #fff; padding: 46px 0 38px; position: relative; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(25, 195, 230, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 195, 230, 0.08) 1px, transparent 1px); background-size: 24px 24px; }
.page-hero .wrap { position: relative; }
.page-hero .eyebrow { color: var(--cyan); }
.page-hero h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); }
.page-hero p { color: rgba(255, 255, 255, 0.8); max-width: 34em; }
.fee-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.fee-table th { text-align: left; font-family: "Lexend", sans-serif; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 8px 0; border-bottom: 2px solid var(--blue); }
.fee-table th:last-child, .fee-table td.amt { text-align: right; }
.fee-table td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table td .sym { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--blue-m); border-radius: 4px; font-family: "Lexend", sans-serif; font-size: 0.8rem; font-weight: 600; color: var(--blue-m); margin-right: 10px; vertical-align: middle; }
.fee-table td small { display: block; color: var(--muted); font-size: 0.86rem; margin-left: 40px; }
.fee-table td.amt { font-family: "Lexend", sans-serif; font-weight: 600; color: var(--blue); white-space: nowrap; padding-left: 10px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 20px 0 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 1.5px solid var(--line); border-radius: 6px; padding: 9px 14px; font-family: inherit; font-weight: 700; font-size: 0.92rem; background: #fff; color: var(--blue); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.tt { display: grid; gap: 8px; }
.slot { display: grid; grid-template-columns: 54px 1fr auto; gap: 2px 12px; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.slot .el { width: 54px; height: 54px; font-size: 1.15rem; color: var(--blue-m); grid-row: span 2; }
.slot .el i { font-size: 0.5rem; }
.slot .t { font-family: "Lexend", sans-serif; font-weight: 600; color: var(--blue); font-size: 0.98rem; }
.slot .d { font-size: 0.94rem; grid-column: 2; }
.slot .d small { display: block; color: var(--muted); }
.slot .btn { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 420px) { .slot { grid-template-columns: 46px 1fr; } .slot .el { width: 46px; height: 46px; font-size: 1rem; } .slot .btn { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 6px; } }
.tagx { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: var(--cyan-l); color: var(--blue); margin-left: 4px; vertical-align: 1px; }

/* footer */
.site-foot { background: var(--blue-dd); color: rgba(255, 255, 255, 0.78); padding: 44px 0 96px; font-size: 0.94rem; }
.site-foot .wrap { display: grid; gap: 22px; }
@media (min-width: 800px) { .site-foot .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site-foot h3 { color: #fff; font-size: 1rem; }
.site-foot a { color: var(--cyan); text-decoration: none; }

.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 640px) { .cta::after { display: none; } }
