/* =====================================================================
   Home page layout v3: clean, image-led sections (loads after jp2.css)
   ===================================================================== */
.jp-hero-deco .hd { display: none; }
.jp-hero-deco { z-index: 4; }
.jp-bg-soft { background: #f6fafb; }

/* ---------- quick access bar ---------- */
.jp-quick { padding: 0 0 8px; position: relative; z-index: 3; }
.jp-quick-bar { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: 28px; box-shadow: 0 18px 46px rgba(11, 36, 71, .16); border: 1px solid var(--jp-line); overflow: hidden; }
.jp-quick-bar a { display: flex; align-items: center; gap: 14px; padding: 20px 22px; text-decoration: none !important; color: var(--jp-ink) !important; position: relative; transition: background .3s, transform .3s; }
.jp-quick-bar a + a::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--jp-line); }
.jp-quick-bar a:hover { background: linear-gradient(135deg, #fbeeee, #fff); }
.jp-qi { flex: none; width: 50px; height: 50px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: #fbeeee; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), background .3s; }
.jp-qi svg { width: 26px; height: 26px; fill: none; stroke: var(--jp-pink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.jp-quick-bar a:hover .jp-qi { transform: translateY(-4px) scale(1.08); background: var(--jp-pink); }
.jp-quick-bar a:hover .jp-qi svg { stroke: #fff; }
.jp-quick-bar b { display: block; font: 700 1.02rem/1.2 var(--jp-head); color: var(--jp-teal); }
.jp-quick-bar small { color: var(--jp-mute); font-weight: 600; }

/* ---------- welcome ---------- */
.jp-welcome-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.jp-welcome-pics { position: relative; min-height: 470px; }
.jp-welcome-pics figure { margin: 0; position: absolute; overflow: hidden; border-radius: 30px; box-shadow: var(--jp-shadow2); }
.jp-welcome-pics img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.jp-welcome-pics figure:hover img { transform: scale(1.1); }
.jp-wp1 { left: 0; top: 0; width: 78%; height: 78%; }
.jp-wp2 { right: 0; bottom: 0; width: 58%; height: 52%; border: 8px solid #fff; border-radius: 30px; }
.jp-since { position: absolute; left: 6%; bottom: 4%; width: 118px; height: 118px; border-radius: 50%; background: var(--jp-teal); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 14px 30px rgba(11, 36, 71, .4), 0 0 0 7px #fff; animation: jpBobS 6s ease-in-out infinite; }
.jp-since b { font: 800 2rem/1 var(--jp-head); color: var(--jp-gold); }
.jp-since small { font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: .72rem; }
.jp-welcome-txt h2 { font: 700 clamp(1.7rem, 4vw, 2.5rem)/1.15 var(--jp-head); color: var(--jp-teal); margin: 0 0 12px; }
.jp-rich { color: var(--jp-ink); font-size: 1.05rem; line-height: 1.85; }
.jp-rich p { text-align: left; margin-bottom: 12px; }
.jp-checks { list-style: none; padding: 0; margin: 14px 0 6px; }
.jp-checks li { position: relative; padding: 6px 0 6px 36px; font-weight: 600; color: var(--jp-teal); }
.jp-checks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--jp-pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- photo programme cards ---------- */
.jp-prog { background: #f6fafb; }
.jp-pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.jp-pcard { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; text-decoration: none !important; box-shadow: var(--jp-shadow); background: var(--jp-teal); }
.jp-pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.jp-pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 26, 53, .92) 0%, rgba(7, 26, 53, .35) 50%, rgba(7, 26, 53, .05) 100%); transition: opacity .4s; }
.jp-pcard > div { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 26px 26px 24px; color: #fff; transform: translateY(14px); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.jp-pcard small { display: block; font: 800 .95rem/1 var(--jp-head); color: var(--jp-gold); letter-spacing: 2px; margin-bottom: 6px; }
.jp-pcard h3 { color: #fff; font: 700 1.6rem/1.15 var(--jp-head); margin: 0 0 6px; }
.jp-pcard p { color: rgba(255, 255, 255, .88); margin: 0 0 10px; }
.jp-pcard .jp-more { color: var(--jp-gold); opacity: 0; transition: opacity .4s .1s; }
.jp-pcard:hover img { transform: scale(1.12); }
.jp-pcard:hover > div { transform: none; }
.jp-pcard:hover .jp-more { opacity: 1; }

/* ---------- learning journey (clean) ---------- */
.jp-journey2 { background: #fff; }
.jp-steps { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; padding-top: 6px; }
.jp-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 41px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--jp-pink), var(--jp-gold), var(--jp-green), var(--jp-blue), var(--jp-purple)); opacity: .55; }
.jp-st { position: relative; z-index: 1; display: block; text-align: center; padding: 0 6px; text-decoration: none !important; color: var(--jp-ink) !important; }
.jp-st-n { display: inline-flex; width: 82px; height: 82px; border-radius: 50%; align-items: center; justify-content: center; font: 800 1.45rem/1 var(--jp-head); color: #fff; background: linear-gradient(135deg, var(--jp-teal), var(--jp-teal2)); box-shadow: 0 10px 22px rgba(11, 36, 71, .3), 0 0 0 7px #fff; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), background .3s; }
.jp-st:hover .jp-st-n { transform: translateY(-6px) scale(1.1); background: linear-gradient(135deg, var(--jp-pink), #8a1b25); }
.jp-st b { display: block; margin-top: 12px; font: 700 1.02rem/1.25 var(--jp-head); color: var(--jp-teal); }
.jp-st small { display: block; margin-top: 3px; color: var(--jp-mute); font-weight: 600; font-size: .86rem; line-height: 1.35; }

/* ---------- principal / KG (CMS) ---------- */
.jp-cms { background: #f6fafb; padding: 24px 0 46px; }

/* ---------- highlight cards, numbered ---------- */
.jp-hl2 { background: #fff; }
.jp-hc { --c: var(--jp-blue); position: relative; display: block; padding: 30px 26px 22px; border-radius: 26px; background: #fff; text-decoration: none !important; color: var(--jp-ink) !important; border: 1px solid var(--jp-line); box-shadow: var(--jp-shadow); border-top: 6px solid var(--c); overflow: hidden; transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }
.jp-hc:hover { transform: translateY(-10px); box-shadow: var(--jp-shadow2); }
.jp-hc-n { position: absolute; right: 18px; top: 6px; font: 800 4rem/1 var(--jp-head); color: var(--c); opacity: .12; transition: opacity .3s, transform .5s; }
.jp-hc:hover .jp-hc-n { opacity: .25; transform: scale(1.15); }
.jp-hc h3 { position: relative; font: 700 1.3rem/1.2 var(--jp-head); color: var(--jp-teal); margin: 0 0 8px; }
.jp-hc p { position: relative; color: var(--jp-mute); line-height: 1.6; margin: 0 0 14px; }
.jp-hc .jp-more { color: var(--c); }

/* ---------- albums rail ---------- */
.jp-moments { background: #f6fafb; padding-bottom: clamp(40px, 6vw, 70px); }
.jp-moments-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.jp-moments-head h2 { font: 700 clamp(1.7rem, 4vw, 2.5rem)/1.15 var(--jp-head); color: var(--jp-teal); margin: 0; }
.jp-moments-head h2 em { font-style: normal; color: var(--jp-pink); }
.jp-rail-btns { display: flex; gap: 10px; }
.jp-rb { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--jp-teal); background: #fff; color: var(--jp-teal); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .3s, color .3s, transform .3s; }
.jp-rb:hover { background: var(--jp-pink); border-color: var(--jp-pink); color: #fff; transform: scale(1.08); }
.jp-rev { transform: rotate(180deg); }
.jp-rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(16px, calc((100vw - 1220px) / 2)) 26px; scrollbar-width: none; scroll-behavior: smooth; }
.jp-rail::-webkit-scrollbar { display: none; }
.jp-rcard { position: relative; flex: 0 0 min(320px, 78vw); aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden; scroll-snap-align: start; text-decoration: none !important; box-shadow: var(--jp-shadow); background: var(--jp-teal); }
.jp-rcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.jp-rcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 26, 53, .9), rgba(7, 26, 53, 0) 58%); }
.jp-rcard > div { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 20px 22px; color: #fff; }
.jp-rcard h3 { color: #fff; font: 700 1.15rem/1.3 var(--jp-head); margin: 0 0 3px; }
.jp-rcard small { color: rgba(255, 255, 255, .8); }
.jp-rcard:hover img { transform: scale(1.12); }
.jp-rcard .jp-chip { z-index: 3; }
.jp-rall { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--jp-pink), #8a1b25); }
.jp-rall::after { display: none; }
.jp-rall > div { position: static; display: flex; align-items: center; gap: 12px; font: 700 1.3rem var(--jp-head); }

/* ---------- news + video split ---------- */
.jp-split { background: #fff; }
.jp-split-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(26px, 5vw, 60px); align-items: start; }
.jp-split-grid.one { grid-template-columns: 1fr; max-width: 900px; }
.jp-board2 h2, .jp-vids2 h2 { font: 700 clamp(1.6rem, 3.6vw, 2.3rem)/1.15 var(--jp-head); color: var(--jp-teal); margin: 0 0 18px; }
.jp-board2 h2 em, .jp-vids2 h2 em { font-style: normal; color: var(--jp-pink); }
.jp-note2 { display: flex; align-items: center; gap: 16px; padding: 14px 18px; margin-bottom: 12px; border-radius: 22px; background: #fff; border: 1px solid var(--jp-line); box-shadow: var(--jp-shadow); text-decoration: none !important; color: var(--jp-ink) !important; transition: transform .3s, box-shadow .3s, border-color .3s; }
.jp-note2:hover { transform: translateX(8px); border-color: #ecd0d3; box-shadow: 0 16px 34px rgba(168, 35, 46, .2); }
.jp-note2 .jp-arrow { color: var(--jp-pink); flex: none; }
.jp-vlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.jp-v2 { display: block; text-decoration: none !important; color: var(--jp-ink) !important; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--jp-shadow); border: 1px solid var(--jp-line); transition: transform .4s, box-shadow .4s; }
.jp-v2.big { grid-column: 1 / -1; }
.jp-v2:hover { transform: translateY(-6px); box-shadow: var(--jp-shadow2); }
.jp-v2 h3 { font: 700 1rem/1.3 var(--jp-head); color: var(--jp-teal); margin: 0; padding: 12px 16px 14px; }
.jp-v2.big h3 { font-size: 1.2rem; }
.jp-v2:hover .jp-vid-pic img, .jp-v2:hover .jp-vid-pic video { transform: scale(1.1); }

/* ---------- houses band ---------- */
.jp-houses2 { display: flex; min-height: 190px; }
.jp-h2 { --hc: #d9322b; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 30px clamp(18px, 3vw, 44px); background: var(--hc); color: #fff !important; text-decoration: none !important; position: relative; overflow: hidden; transition: flex .6s cubic-bezier(.2, .8, .2, 1); }
.jp-h2.hr { --hc: #d9322b; } .jp-h2.hb { --hc: #2563c4; } .jp-h2.hg { --hc: #2e9b4e; } .jp-h2.hn { --hc: #8a5a2b; }
.jp-h2::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; bottom: -90px; background: rgba(255, 255, 255, .14); transition: transform .6s; }
.jp-h2:hover { flex: 1.6; }
.jp-h2:hover::before { transform: scale(1.8); }
.jp-h2 small { font-weight: 800; letter-spacing: 2px; text-transform: uppercase; opacity: .85; font-size: .78rem; }
.jp-h2 b { font: 700 clamp(1.5rem, 3vw, 2.2rem)/1.15 var(--jp-head); }
.jp-h2 span { opacity: .9; margin-top: 4px; max-height: 0; overflow: hidden; transition: max-height .5s; }
.jp-h2:hover span { max-height: 60px; }

/* join us: no emoji on cards */
.jp-join-cards em { display: none; }

@media (max-width: 991px) {
	.jp-quick-bar { grid-template-columns: repeat(2, 1fr); }
	.jp-quick-bar a:nth-child(5) { grid-column: 1 / -1; }
	.jp-quick-bar a + a::before { display: none; }
	.jp-welcome-grid, .jp-split-grid { grid-template-columns: 1fr; }
	.jp-welcome-pics { min-height: 400px; order: -1; }
	.jp-pcards { grid-template-columns: 1fr; }
	.jp-pcard { aspect-ratio: 16 / 11; }
	.jp-steps { grid-template-columns: 1fr; gap: 14px; padding-left: 4px; }
	.jp-steps::before { left: 45px; right: auto; top: 30px; bottom: 30px; width: 4px; height: auto; }
	.jp-st { display: flex; align-items: center; gap: 16px; text-align: left; padding: 0; }
	.jp-st-n { flex: none; width: 62px; height: 62px; font-size: 1.15rem; }
	.jp-st b { margin-top: 0; }
	.jp-houses2 { flex-wrap: wrap; }
	.jp-h2 { flex: 1 1 50%; min-height: 150px; }
	.jp-h2 span { max-height: none; }
	.jp-vlist { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
	.jp-quick-bar { grid-template-columns: 1fr; }
	.jp-quick-bar a { padding: 14px 18px; }
	.jp-welcome-pics { min-height: 330px; }
	.jp-since { width: 92px; height: 92px; }
	.jp-since b { font-size: 1.5rem; }
	.jp-moments-head { align-items: center; }
	.jp-rb { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .jp-since { animation: none; } }
.jp-rail { scroll-padding-left: max(16px, calc((100vw - 1220px) / 2)); }
.jp-split-grid.one { max-width: 1100px; margin-inline: auto; }
.jp-split-grid.one .jp-vids2 { text-align: center; }
.jp-split-grid.one .jp-vlist { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); text-align: left; }
.jp-split-grid.one .jp-v2.big { grid-column: auto; }
.jp-split-grid.one .jp-v2.big h3 { font-size: 1rem; }
