/* Star Institute: crimson + gold on warm white, star motif */
:root {
  --crimson: #a3132b;
  --crimson-d: #6d0b1d;
  --crimson-dd: #4a0713;
  --gold: #e0a82e;
  --gold-l: #f6dc9c;
  --ink: #221416;
  --muted: #6a5a5c;
  --bg: #fffaf3;
  --bg-2: #fbefe0;
  --line: #ecdcc8;
  --wa: #25d366;
  --r: 10px;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e0a82e' d='M12 1.5l3.1 6.6 7.2.9-5.3 5 1.4 7.1L12 17.6 5.6 21.1 7 14l-5.3-5 7.2-.9z'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--crimson); }
h1, h2, h3 { font-family: "Sora", system-ui, sans-serif; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 9vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 6vw, 2.5rem); font-weight: 800; color: var(--crimson-d); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: "Sora", sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--crimson); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 14px; height: 14px; background: var(--star) center / contain no-repeat; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.note { font-size: 0.92rem; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 6px; font-family: "Sora", sans-serif; font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; min-height: 48px; transition: transform 0.15s, background 0.15s; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--crimson-dd); }
.btn-gold:hover { background: #ebb740; }
.btn-red { background: var(--crimson); color: #fff; }
.btn-red:hover { background: var(--crimson-d); }
.btn-line { border-color: var(--crimson); color: var(--crimson); background: transparent; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-sm { padding: 8px 14px; min-height: 40px; font-size: 0.85rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* header */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--crimson-d); color: #fff; border-bottom: 3px solid var(--gold); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.mark { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--gold); border-radius: 50%; }
.mark svg { width: 24px; height: 24px; }
.brand b { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.1rem; display: block; line-height: 1.1; }
.brand small { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-l); }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav a.cur, .nav a:hover { color: var(--gold); }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 85% 10%, #c0213a 0%, var(--crimson) 35%, var(--crimson-dd) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: 0.09; background: var(--star) 0 0 / 46px 46px; pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 32px; padding-top: 44px; padding-bottom: 52px; }
.rating { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.18); padding: 6px 12px; border-radius: 999px; font-size: 0.9rem; margin-bottom: 18px; }
.rating .stars { color: var(--gold); letter-spacing: 2px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: rgba(255, 255, 255, 0.86); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); border: 4px solid var(--gold); }
.badge-star { position: absolute; left: -6px; bottom: -22px; width: 120px; height: 120px; display: grid; place-items: center; text-align: center; color: var(--crimson-dd); font-family: "Sora", sans-serif; font-size: 0.6rem; font-weight: 700; line-height: 1.05;
  background: var(--gold); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); padding-top: 18px; }
.badge-star b { display: block; font-size: 1.35rem; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding-top: 72px; padding-bottom: 80px; } }

/* strip */
.strip { background: var(--gold); color: var(--crimson-dd); }
.strip .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding-top: 18px; padding-bottom: 18px; font-size: 0.9rem; }
.strip b { display: block; font-family: "Sora", sans-serif; font-size: 1.05rem; }
@media (min-width: 800px) { .strip .wrap { grid-template-columns: repeat(4, 1fr); } }

/* programme cards */
.grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 640px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; display: flex; flex-direction: column; }
.card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; background: var(--crimson); border-radius: 0 4px 4px 0; }
.card .lvl { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card h3 { color: var(--crimson-d); margin-top: 4px; font-size: 1.3rem; }
.card ul { margin: 0 0 18px; padding: 0; list-style: none; flex: 1; }
.card li { padding-left: 22px; position: relative; margin-bottom: 6px; font-size: 0.98rem; }
.card li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; background: var(--star) center / contain no-repeat; }
.card .btn { align-self: flex-start; }
.card.hl { background: var(--crimson-d); color: #fff; border-color: var(--crimson-d); }
.card.hl::before { background: var(--gold); }
.card.hl h3 { color: var(--gold); }
.card.hl .lvl { color: var(--gold-l); }
.card.hl .btn-line { color: #fff; border-color: var(--gold); }

/* why */
.why { display: grid; gap: 14px; margin-top: 26px; }
@media (min-width: 760px) { .why { grid-template-columns: repeat(2, 1fr); } }
.why .item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: var(--r); padding: 18px; border: 1px solid var(--line); }
.why .num { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-family: "Sora", sans-serif; font-weight: 800; color: var(--crimson-dd); background: var(--gold); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); padding-top: 6px; font-size: 0.9rem; }
.why h3 { margin-bottom: 4px; color: var(--crimson-d); }
.why p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.gallery .wide { grid-column: span 2; }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery .wide { grid-row: span 2; } .gallery .wide img { aspect-ratio: auto; } }

/* visit */
.visit { display: grid; gap: 28px; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1fr; align-items: start; } }
.addr { font-style: normal; margin-bottom: 18px; }
.hours { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.hours td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr:last-child td { border-bottom: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.map { width: 100%; height: 360px; border: 0; border-radius: var(--r); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line); }

/* admission CTA */
.admit { background: var(--crimson-d); color: #fff; border-radius: 14px; padding: 32px 22px; position: relative; overflow: hidden; }
.admit::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; background: var(--star) center / contain no-repeat; opacity: 0.18; }
.admit h2 { color: #fff; }
.admit .eyebrow { color: var(--gold-l); }
.admit pre { background: rgba(0, 0, 0, 0.25); border-left: 4px solid var(--gold); padding: 14px; border-radius: 6px; font: 0.92rem/1.6 ui-monospace, Menlo, monospace; white-space: pre-wrap; margin: 0 0 20px; }
@media (min-width: 760px) { .admit { padding: 44px; } }

/* fees page */
.page-hero { background: linear-gradient(160deg, var(--crimson) 0%, var(--crimson-dd) 100%); color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: 0.08; background: var(--star) 0 0 / 46px 46px; }
.page-hero .wrap { position: relative; padding-top: 44px; padding-bottom: 44px; }
.page-hero h1 { font-size: clamp(2rem, 8vw, 3.2rem); }
.page-hero p { color: rgba(255, 255, 255, 0.86); max-width: 60ch; margin: 0; }
.page-hero .eyebrow { color: var(--gold-l); }
.fee-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; margin-top: 20px; border: 1px solid var(--line); }
.fee-table th { background: var(--crimson-d); color: #fff; text-align: left; padding: 12px 14px; font-family: "Sora", sans-serif; font-size: 0.85rem; letter-spacing: 0.04em; }
.fee-table th:last-child, .fee-table td.amt { text-align: right; }
.fee-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table td small { display: block; color: var(--muted); font-size: 0.83rem; }
.fee-table td.amt { font-family: "Sora", sans-serif; font-weight: 700; color: var(--crimson); white-space: nowrap; }
.fee-table tr:nth-child(even) td { background: #fffdf8; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; margin-top: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 2px solid var(--crimson); background: #fff; color: var(--crimson); border-radius: 6px; padding: 8px 14px; font: 700 0.85rem "Sora", sans-serif; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--crimson); color: #fff; }
.tt { display: grid; gap: 10px; margin-top: 10px; }
@media (min-width: 760px) { .tt { grid-template-columns: repeat(2, 1fr); } }
.slot { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 8px; padding: 14px; }
.slot .t { grid-column: 1 / -1; font-family: "Sora", sans-serif; font-weight: 800; color: var(--crimson-d); }
.slot .d { font-size: 0.95rem; color: var(--muted); }
.slot[hidden] { display: none; }
.pill { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; vertical-align: middle; margin-left: 4px; }
.pill.g { background: #fde3e7; color: var(--crimson); }
.pill.b { background: #e5ecf8; color: #23448a; }

/* footer */
.site-foot { background: var(--crimson-dd); color: rgba(255, 255, 255, 0.8); padding: 44px 0 90px; font-size: 0.95rem; }
.site-foot .wrap { display: grid; gap: 22px; }
@media (min-width: 760px) { .site-foot .wrap { grid-template-columns: 1.4fr 1fr 1fr; } .site-foot .note { grid-column: 1 / -1; } }
.site-foot h3 { color: var(--gold); font-size: 1rem; }
.site-foot a { color: #fff; }

/* floating WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
