/* Location (centre) template-only sections. Shared with the not-yet-built
   Subject template if it turns out to need the same classes later — for
   now this is the only page using them, so they stay page-scoped. */

/* ===== subject-style hero (hero-facts side panel) ===== */
.subj-hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 52px; align-items: center; }
.subj-tag { display: inline-flex; align-items: center; gap: 9px; background: rgba(214, 164, 58, .16); color: var(--gold-soft); font: 700 12.5px var(--body); letter-spacing: .13em; text-transform: uppercase; padding: 8px 15px; border-radius: 999px; margin-bottom: 20px; position: relative; z-index: 1; }
.subj-hero .lead { color: #c9d3e5; font: 400 17px/1.65 var(--body); max-width: 560px; margin: 0 0 28px; position: relative; z-index: 1; }
.subj-hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-facts { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); border-radius: 20px; padding: 10px 26px; position: relative; z-index: 1; }
.hero-facts .fact { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hero-facts .fact:last-child { border-bottom: 0; }
.hero-facts .fact .k { display: flex; align-items: center; gap: 12px; font: 600 14px var(--body); color: #aab5c9; }
.hero-facts .fact .k svg { color: var(--gold); flex-shrink: 0; }
.hero-facts .fact .v { font: 700 15.5px var(--heading); color: #fff; text-align: right; }
@media (max-width: 980px) { .subj-hero .wrap { grid-template-columns: 1fr; gap: 34px; } }

/* ===== overview split ===== */
.ov-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; }
.ov-media { position: relative; }
.ov-media > img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: 22px; display: block; box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.ov-media .badge { position: absolute; bottom: -22px; left: -22px; background: #fff; border-radius: 16px; padding: 14px 20px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 14px; }
.ov-media .badge b { display: block; font: 800 15px var(--heading); color: var(--navy); line-height: 1.25; }
.ov-media .badge span { font: 500 12px var(--body); color: var(--slate); }
.ov-body p { font: 400 16px/1.72 var(--body); color: var(--slate); margin: 0 0 18px; }
.ov-body p:last-child { margin-bottom: 0; }
.ov-body p strong { color: var(--ink); font-weight: 700; }
@media (max-width: 980px) { .ov-wrap { grid-template-columns: 1fr; gap: 44px; } .ov-media .badge { left: 16px; } }

/* ===== why parents choose (3-up icon grid with dividers) ===== */
.whybe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; }
.whybe-item { position: relative; padding-right: 26px; }
.whybe-item:not(:nth-child(3n)):after { content: ''; position: absolute; top: 4px; right: 0; width: 1px; height: 78%; background: linear-gradient(var(--line), rgba(236, 226, 202, 0)); }
.whybe-ic { width: 52px; height: 52px; border-radius: 14px; background: rgba(214, 164, 58, .14); color: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.whybe-item:hover .whybe-ic { transform: translateY(-4px); }
.whybe-item h3 { font: 700 16.5px var(--heading); color: var(--navy); margin: 0 0 6px; }
.whybe-item p { font: 400 14px/1.6 var(--body); color: var(--slate); margin: 0; }
@media (max-width: 860px) { .whybe-grid { grid-template-columns: 1fr 1fr; gap: 34px 30px; } .whybe-item:not(:nth-child(3n)):after { display: none; } }
@media (max-width: 520px) { .whybe-grid { grid-template-columns: 1fr; } }

/* ===== typical day (numbered syllabus-style list) ===== */
.syll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; }
.syll-item { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.syll-item .idx { font: 800 16px var(--heading); color: var(--gold); width: 44px; height: 44px; border-radius: 12px; background: rgba(214, 164, 58, .12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.syll-item h3 { font: 700 17px var(--heading); color: var(--navy); margin: 0 0 5px; }
.syll-item p { font: 400 14px/1.55 var(--body); color: var(--slate); margin: 0; }
@media (max-width: 760px) { .syll-grid { grid-template-columns: 1fr; gap: 0; } }

/* ===== schools nearby (link list) ===== */
.school-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 40px; }
.school-item { display: flex; align-items: center; gap: 12px; padding: 16px 2px; border-bottom: 1px solid var(--line); font: 600 15px var(--body); color: var(--navy); transition: color .2s, padding-left .2s; }
.school-item svg { flex-shrink: 0; }
.school-item:hover { color: var(--gold); padding-left: 6px; }

/* ===== gallery (stage + thumbnail strip) ===== */
.gallery { display: flex; flex-direction: column; gap: 16px; }
.gal-stage { border-radius: 22px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); background: #fff; }
.gal-stage img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.gal-thumbs { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; scrollbar-color: var(--gold) #efe6d0; }
.gal-thumbs::-webkit-scrollbar { height: 7px; }
.gal-thumbs::-webkit-scrollbar-track { background: #efe6d0; border-radius: 7px; }
.gal-thumbs::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 7px; }
.gal-thumb { flex: 0 0 118px; height: 80px; border: 2px solid transparent; border-radius: 12px; overflow: hidden; padding: 0; cursor: pointer; background: none; transition: border-color .2s, transform .2s; opacity: .7; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumb:hover { transform: translateY(-2px); opacity: 1; }
.gal-thumb.active { border-color: var(--gold); opacity: 1; }
