/* =====================================================================
   Jawaharlal Nehru School (Primary Wing) - new design
   Bright, rounded and moving, but still tidy. Built on CSS variables, grid and clamp().
   ===================================================================== */
:root {
	--jp-teal: #0b2447; --jp-teal2: #173a73; --jp-pink: #a8232e; --jp-gold: #c9a227;
	--jp-blue: #2f7cf6; --jp-green: #1fb67a; --jp-purple: #7a5af8; --jp-orange: #ff7a2f;
	--jp-ink: #23323a; --jp-mute: #5d6d75; --jp-soft: #f6fafb; --jp-line: #e6eef0;
	--jp-r: 22px; --jp-shadow: 0 12px 34px rgba(11, 36, 71, .12); --jp-shadow2: 0 22px 50px rgba(11, 36, 71, .22);
	--jp-font: 'Inter', 'Segoe UI', system-ui, sans-serif; --jp-head: 'Playfair Display', 'Inter', system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--jp-font); color: var(--jp-ink); background: #fff; }
h1, h2, h3, h4, h5, h6, .logo-title { font-family: var(--jp-head); letter-spacing: .1px; }
header { display: contents; }
.jp-wrap { width: min(1220px, 100% - 32px); margin-inline: auto; }
.jp-center { text-align: center; }
.jp-skip { position: absolute; left: -999px; top: 6px; z-index: 99999; background: var(--jp-pink); color: #fff; padding: 8px 16px; border-radius: 20px; }
.jp-skip:focus { left: 10px; color: #fff; }

/* ---------- top strip ---------- */
.jp-top { background: linear-gradient(90deg, #071a35, var(--jp-teal) 50%, #0f2c5c); color: #fff; font-size: .9rem; }
.jp-top .jp-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 20px; padding: 7px 0; }
.jp-tagline { font-weight: 700; letter-spacing: .4px; }
.jp-tagline i { color: var(--jp-gold); font-style: normal; margin: 0 4px; }
.jp-top-r { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.jp-top a { color: #fff; text-decoration: none; opacity: .92; transition: color .25s, opacity .25s; }
.jp-top a:hover { color: var(--jp-gold); opacity: 1; }
.jp-top a i { color: var(--jp-gold); margin-right: 5px; }
.jp-top .jp-senior { padding: 3px 14px; border-radius: 20px; background: rgba(255, 255, 255, .14); font-weight: 700; }

/* ---------- brand row ---------- */
.jp-brand { background: #fff; background-image: radial-gradient(circle at 12% 0%, rgba(201, 162, 39, .16), transparent 40%), radial-gradient(circle at 90% 100%, rgba(168, 35, 46, .1), transparent 40%); }
.jp-brand .jp-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 0; }
.jp-logo { display: flex; align-items: center; gap: 16px; text-decoration: none !important; color: var(--jp-teal); }
.jp-logo img { width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); animation: jpBob 4.5s ease-in-out infinite; }
.jp-logo b { display: block; font: 700 clamp(1.15rem, 2.3vw, 1.7rem)/1.15 var(--jp-head); color: var(--jp-teal); }
.jp-logo small { display: block; color: var(--jp-pink); font-weight: 700; letter-spacing: .6px; font-size: .86rem; margin-top: 2px; }
.jp-brand-r { display: flex; flex-wrap: wrap; gap: 10px; }
@keyframes jpBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }

/* ---------- buttons ---------- */
.jp-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 40px; font: 700 .98rem/1 var(--jp-head); text-decoration: none !important; border: 2px solid transparent; cursor: pointer; overflow: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, background .3s; }
.jp-btn::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.jp-btn:hover::after { left: 130%; }
.jp-btn:hover { transform: translateY(-4px); }
.jp-btn-pink { background: linear-gradient(135deg, var(--jp-pink), #8a1b25); color: #fff !important; box-shadow: 0 8px 20px rgba(168, 35, 46, .35); }
.jp-btn-pink:hover { box-shadow: 0 14px 28px rgba(168, 35, 46, .5); }
.jp-btn-gold { background: linear-gradient(135deg, #d9b948, var(--jp-gold)); color: #3a2f00 !important; box-shadow: 0 8px 20px rgba(201, 162, 39, .4); }
.jp-btn-gold:hover { box-shadow: 0 14px 28px rgba(201, 162, 39, .55); }
.jp-btn-line { background: #fff; color: var(--jp-teal) !important; border-color: var(--jp-teal); }
.jp-btn-line:hover { background: var(--jp-teal); color: #fff !important; }
.jp-btn-glass { background: rgba(255, 255, 255, .16); color: #fff !important; border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.jp-btn-glass:hover { background: rgba(255, 255, 255, .3); }
.jp-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- navigation ---------- */
.jp-nav { position: sticky; top: 0; z-index: 1000; background: linear-gradient(90deg, var(--jp-pink), #8a1b25 60%, #701520); box-shadow: 0 8px 22px rgba(112, 21, 32, .28); }
.jp-nav .jp-wrap { display: flex; align-items: center; justify-content: center; position: relative; }
.jp-menu { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.jp-item { position: relative; }
.jp-link { display: flex; align-items: center; gap: 7px; padding: 14px 15px; color: #fff !important; text-decoration: none !important; font: 700 .98rem/1 var(--jp-head); white-space: nowrap; transition: background .25s, color .25s; position: relative; }
.jp-link em { font-style: normal; font-size: 1.15rem; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.jp-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 3px; border-radius: 3px; background: var(--jp-gold); transform: scaleX(0); transition: transform .3s ease; }
.jp-item:hover > .jp-link, .jp-link:focus-visible { background: rgba(255, 255, 255, .14); }
.jp-item:hover > .jp-link em { transform: scale(1.3) rotate(-8deg); }
.jp-item:hover > .jp-link::after { transform: scaleX(1); }
.jp-caret { width: 8px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translateY(-2px); transition: transform .3s; }
.jp-has:hover .jp-caret { transform: rotate(225deg) translateY(-1px); }
.jp-burger, .jp-nav-title { display: none; }

.jp-mega { position: absolute; left: 50%; top: 100%; z-index: 1100; width: max-content; min-width: 330px; max-width: min(640px, 94vw); background: #fff; border-radius: 0 0 24px 24px; padding: 16px 16px 18px; box-shadow: var(--jp-shadow2); border-top: 4px solid var(--jp-gold); opacity: 0; visibility: hidden; transform: translate(-50%, 14px); pointer-events: none; transition: opacity .16s ease, transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .16s; }
.jp-has:hover > .jp-mega, .jp-has:focus-within > .jp-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.jp-mega-head { font: 700 .82rem/1 var(--jp-head); letter-spacing: 1.5px; text-transform: uppercase; color: var(--jp-pink); padding: 2px 8px 12px; }
.jp-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.jp-tab { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 16px; text-decoration: none !important; color: var(--jp-ink) !important; background: var(--jp-soft); border: 1px solid transparent; transition: transform .25s ease, background .25s, border-color .25s, box-shadow .25s; }
.jp-tab:hover { background: #fff; border-color: #ecd0d3; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(168, 35, 46, .18); }
.jp-tab-ic { flex: none; width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; background: #fff; box-shadow: 0 4px 10px rgba(11, 36, 71, .1); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.jp-tab:hover .jp-tab-ic { transform: scale(1.18) rotate(-10deg); background: #fbeeee; }
.jp-tab-tx b { display: block; font: 700 .95rem/1.2 var(--jp-head); color: var(--jp-teal); }
.jp-tab-tx small { display: block; color: var(--jp-mute); font-size: .78rem; line-height: 1.25; margin-top: 2px; }

/* ---------- hero (CMS slider) ---------- */
.jp-hero { position: relative; overflow: hidden; background: #fff; }
.jp-hero .header-carousel::after, .jp-hero .header-carousel::before { display: none; }
.jp-hero-deco { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.jp-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(34px, 6vw, 90px); fill: #fff; display: block; }
.jp-hero-deco .hd { position: absolute; border-radius: 50%; opacity: .85; animation: jpFloat 7s ease-in-out infinite; }
.hd.h1 { width: 26px; height: 26px; left: 5%; top: 14%; background: var(--jp-gold); }
.hd.h2 { width: 16px; height: 16px; left: 11%; bottom: 24%; background: var(--jp-pink); animation-delay: -2s; }
.hd.h3 { width: 20px; height: 20px; right: 8%; top: 20%; background: var(--jp-green); animation-delay: -4s; }
.hd.h4 { width: 12px; height: 12px; right: 14%; bottom: 30%; background: var(--jp-blue); animation-delay: -1s; }
@keyframes jpFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-22px) scale(1.15); } }
.jp-badge { position: absolute; left: clamp(12px, 3vw, 44px); bottom: clamp(30px, 8vw, 120px); z-index: 6; width: clamp(84px, 10vw, 124px); height: clamp(84px, 10vw, 124px); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--jp-pink); box-shadow: 0 12px 30px rgba(168, 35, 46, .5), 0 0 0 6px rgba(255, 255, 255, .9); text-decoration: none !important; transition: transform .3s; }
.jp-badge:hover { transform: scale(1.1); }
.jp-badge svg { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); animation: jpSpin 14s linear infinite; }
.jp-badge text { font: 700 11.5px var(--jp-head); letter-spacing: 1.7px; fill: #fff; }
.jp-badge span { font-size: clamp(1.4rem, 3vw, 2rem); animation: jpBob 3s ease-in-out infinite; }
@keyframes jpSpin { to { transform: rotate(360deg); } }
.jns-ticker { border-radius: 60px !important; border: 2px solid #ecd0d3 !important; box-shadow: 0 10px 26px rgba(168, 35, 46, .15) !important; margin-top: 10px !important; }
.jns-ticker .tk-badge { font-family: var(--jp-head); }
.header-carousel .owl-dots { z-index: 7; }

/* ---------- sections ---------- */
.jp-sec { position: relative; padding: clamp(46px, 7vw, 86px) 0; overflow: hidden; }
.jp-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.jp-kick { display: inline-block; padding: 5px 16px; border-radius: 30px; background: #fbeeee; color: var(--jp-pink); font: 700 .86rem/1.3 var(--jp-head); letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 10px; }
.jp-kick-w { background: rgba(255, 255, 255, .18); color: #fff; }
.jp-head h2, .jp-about-txt h2, .jp-join h2 { font: 700 clamp(1.7rem, 4vw, 2.6rem)/1.15 var(--jp-head); color: var(--jp-teal); margin: 0 0 10px; }
.jp-head h2 em, .jp-join h2 em { font-style: normal; color: var(--jp-pink); position: relative; white-space: nowrap; }
.jp-head h2 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 10px; border-radius: 10px; background: rgba(201, 162, 39, .55); z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .8s .3s ease; }
.jp-rv.jp-in .jp-head h2 em::after, .jp-head.jp-in h2 em::after { transform: scaleX(1); }
.jp-head p { color: var(--jp-mute); font-size: 1.08rem; margin: 0; }

/* reveal on scroll */
.jp-rv { opacity: 0; transform: translateY(36px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.jp-rv.jp-left { transform: translateX(-46px); }
.jp-rv.jp-right { transform: translateX(46px); }
.jp-rv.jp-in { opacity: 1; transform: none; }

/* little world tiles */
.jp-little { background: linear-gradient(180deg, #fff, #f7fbfd); }
.jp-little::before, .jp-little::after, .jp-hl::before, .jp-albums::before { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.jp-little::before { width: 320px; height: 320px; left: -120px; top: 30px; background: radial-gradient(circle, rgba(201, 162, 39, .22), transparent 70%); animation: jpFloat 12s ease-in-out infinite; }
.jp-little::after { width: 380px; height: 380px; right: -140px; bottom: -40px; background: radial-gradient(circle, rgba(168, 35, 46, .14), transparent 70%); animation: jpFloat 14s ease-in-out infinite reverse; }
.jp-tiles { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
@media (min-width: 992px) { .jp-tiles { grid-template-columns: repeat(3, 1fr); } }
.jp-tile, .jp-card { --c: var(--jp-blue); --cs: #eaf2ff; position: relative; display: block; padding: 28px 24px 22px; border-radius: 26px; background: #fff; text-decoration: none !important; color: var(--jp-ink) !important; box-shadow: var(--jp-shadow); border: 1px solid var(--jp-line); border-bottom: 6px solid var(--c); overflow: hidden; transition: box-shadow .35s ease, border-color .35s; transform-style: preserve-3d; will-change: transform; }
.jp-tile::before, .jp-card::before { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--cs); transition: transform .6s ease; }
.jp-tile:hover::before, .jp-card:hover::before { transform: scale(2.6); }
.jp-tile:hover, .jp-card:hover { box-shadow: var(--jp-shadow2); }
.c-blue { --c: var(--jp-blue); --cs: #eaf2ff; } .c-pink { --c: var(--jp-pink); --cs: #fbeff0; } .c-green { --c: var(--jp-green); --cs: #e5f8f0; }
.c-gold { --c: #b08d1c; --cs: #fff6d6; } .c-purple { --c: var(--jp-purple); --cs: #efeaff; } .c-orange { --c: var(--jp-orange); --cs: #ffeee2; }
.jp-tile-ic, .jp-card-ic { position: relative; z-index: 1; display: inline-flex; width: 66px; height: 66px; border-radius: 22px; align-items: center; justify-content: center; font-size: 2rem; background: var(--cs); box-shadow: 0 8px 18px rgba(11, 36, 71, .1); margin-bottom: 14px; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.jp-tile:hover .jp-tile-ic, .jp-card:hover .jp-card-ic { transform: scale(1.18) rotate(-10deg); }
.jp-tile h3, .jp-card h3 { position: relative; z-index: 1; font: 700 1.35rem/1.2 var(--jp-head); color: var(--jp-teal); margin: 0 0 6px; }
.jp-tile p, .jp-card p { position: relative; z-index: 1; color: var(--jp-mute); margin: 0 0 14px; line-height: 1.55; }
.jp-more { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font: 700 .95rem/1 var(--jp-head); color: var(--c); }
.jp-arrow { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; transition: width .3s; }
.jp-arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.jp-tile:hover .jp-arrow, .jp-card:hover .jp-arrow, .jp-note:hover .jp-arrow { width: 30px; }

/* about */
.jp-about { background: #fff; }
.jp-about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(26px, 5vw, 70px); align-items: center; }
.jp-about-txt .jp-rich { color: var(--jp-ink); font-size: 1.06rem; line-height: 1.85; }
.jp-about-txt .jp-rich p { text-align: left; margin-bottom: 12px; }
.jp-about-pics { position: relative; min-height: 440px; }
.jp-pic { position: absolute; margin: 0; border-radius: 26px; overflow: hidden; border: 7px solid #fff; box-shadow: var(--jp-shadow2); transition: transform .5s ease; background: #eee; }
.jp-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s ease; }
.jp-pic:hover img { transform: scale(1.12); }
.jp-pic.p1 { width: 62%; height: 62%; left: 0; top: 0; transform: rotate(-4deg); z-index: 2; animation: jpBobS 7s ease-in-out infinite; }
.jp-pic.p2 { width: 56%; height: 52%; right: 0; top: 14%; transform: rotate(5deg); z-index: 1; animation: jpBobS 8s ease-in-out infinite -2s; }
.jp-pic.p3 { width: 54%; height: 46%; left: 22%; bottom: 0; transform: rotate(-2deg); z-index: 3; animation: jpBobS 9s ease-in-out infinite -4s; }
@keyframes jpBobS { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.jp-blob { position: absolute; border-radius: 50%; z-index: 0; }
.jp-blob.b1 { width: 120px; height: 120px; right: 4%; bottom: 6%; background: rgba(201, 162, 39, .5); animation: jpFloat 9s ease-in-out infinite; }
.jp-blob.b2 { width: 70px; height: 70px; left: 2%; bottom: 22%; background: rgba(168, 35, 46, .3); animation: jpFloat 7s ease-in-out infinite -3s; }

/* counters */
.jp-stats { background: linear-gradient(120deg, var(--jp-teal), var(--jp-teal2) 60%, #214b8c); color: #fff; padding: 46px 0; position: relative; overflow: hidden; }
.jp-stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 15%, rgba(168, 35, 46, .22), transparent 38%), radial-gradient(circle at 88% 85%, rgba(201, 162, 39, .16), transparent 38%); }
.jp-stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.jp-stat { padding: 10px; }
.jp-stat b { display: block; font: 800 clamp(2.4rem, 6vw, 3.8rem)/1 var(--jp-head); color: var(--jp-gold); text-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.jp-stat small { display: block; margin-top: 6px; font-weight: 700; letter-spacing: .5px; opacity: .92; }

/* highlight cards */
.jp-hl { background: #fff; }
.jp-hl::before { width: 340px; height: 340px; right: -130px; top: 40px; background: radial-gradient(circle, rgba(122, 90, 248, .14), transparent 70%); animation: jpFloat 13s ease-in-out infinite; }
.jp-hl-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }

/* CMS blocks: principal / KG / quick tiles */
.jp-cms { background: linear-gradient(180deg, #fff, #f7fbfd 30%, #f7fbfd 70%, #fff); padding: 26px 0 40px; overflow: hidden; }
.jp-cms .container-xxl { padding-top: 40px !important; }
.jp-cms .container-xxl h1.mb-3 { font: 700 clamp(1.7rem, 4vw, 2.6rem)/1.15 var(--jp-head); color: var(--jp-teal); }
.jp-cms .classes-item h3, .jp-cms .classes-item .h3, .jp-cms .classes-item span { font-family: var(--jp-head) !important; color: var(--jp-teal); font-weight: 700; }
.jp-cms .row.justify-content-center > [class*="col-"] { display: flex; }
.jp-cms .classes-item { height: 100%; width: 100%; background: #fff; border-radius: 26px; padding: 26px 12px 18px; box-shadow: var(--jp-shadow); border: 1px solid var(--jp-line); transition: transform .35s ease, box-shadow .35s ease; }
.jp-cms .classes-item:hover { box-shadow: var(--jp-shadow2); }
.jp-cms .classes-item img { transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.jp-cms .classes-item:hover img { transform: scale(1.12) rotate(-6deg); }

/* smile wall */
.jp-wall { background: #fff; }
.jp-wall-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(120px, 15vw, 190px); gap: 14px; margin-bottom: 30px; }
.jp-wall-i { position: relative; display: block; border-radius: 22px; overflow: hidden; background: #dde; box-shadow: var(--jp-shadow); }
.jp-wall-grid.full9 { grid-auto-flow: dense; }
.jp-wall-grid.full9 .w1 { grid-column: span 2; grid-row: span 2; }
.jp-wall-grid.full9 .w3 { grid-column: span 2; }
.jp-wall-grid.full9 .w4 { grid-row: span 2; }
.jp-wall-grid.full9 .w7, .jp-wall-grid.full9 .w9 { grid-column: span 2; }
.jp-wall-i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.jp-wall-i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 36, 71, .75), transparent 55%); opacity: .7; transition: opacity .4s; }
.jp-wall-i span { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 10px; color: #fff; font: 700 .95rem/1.25 var(--jp-head); transform: translateY(8px); opacity: 0; transition: transform .4s, opacity .4s; }
.jp-wall-i:hover img { transform: scale(1.14) rotate(1deg); }
.jp-wall-i:hover span { transform: none; opacity: 1; }
.jp-wall-i:hover::after { opacity: 1; }

/* albums */
.jp-albums { background: linear-gradient(180deg, #f7fbfd, #fff); }
.jp-albums::before { width: 300px; height: 300px; left: -100px; top: 60px; background: radial-gradient(circle, rgba(31, 182, 122, .16), transparent 70%); animation: jpFloat 11s ease-in-out infinite; }
.jp-album-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.jp-album { display: block; background: #fff; border-radius: 24px; overflow: hidden; text-decoration: none !important; color: var(--jp-ink) !important; box-shadow: var(--jp-shadow); border: 1px solid var(--jp-line); transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }
.jp-album:hover { transform: translateY(-10px); box-shadow: var(--jp-shadow2); }
.jp-album-pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.jp-album-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.jp-album:hover .jp-album-pic img { transform: scale(1.13); }
.jp-chip { position: absolute; left: 12px; top: 12px; padding: 4px 12px; border-radius: 20px; background: rgba(255, 255, 255, .92); color: var(--jp-pink); font: 700 .8rem/1.3 var(--jp-head); box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.jp-album-tx { padding: 14px 18px 16px; }
.jp-album-tx h3 { font: 700 1.08rem/1.3 var(--jp-head); color: var(--jp-teal); margin: 0 0 3px; }
.jp-album-tx small { color: var(--jp-mute); }

/* notice board */
.jp-board { background: #fff; }
.jp-board-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.jp-note { display: flex; align-items: center; gap: 16px; padding: 14px 20px; 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 ease, box-shadow .3s ease, border-color .3s; }
.jp-note:hover { transform: translateX(8px); border-color: #ecd0d3; box-shadow: 0 16px 34px rgba(168, 35, 46, .2); }
.jp-date { flex: none; width: 62px; height: 66px; border-radius: 18px; background: linear-gradient(160deg, var(--jp-pink), #8a1b25); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 8px 16px rgba(168, 35, 46, .3); }
.jp-date b { font: 800 1.6rem/1 var(--jp-head); }
.jp-date small { font: 700 .75rem/1 var(--jp-head); letter-spacing: 1px; }
.jp-note-tx { flex: 1; min-width: 0; }
.jp-note-tx b { display: block; font: 700 1.02rem/1.3 var(--jp-head); color: var(--jp-teal); }
.jp-note-tx small { color: var(--jp-mute); }
.jp-note .jp-arrow { color: var(--jp-pink); flex: none; }

/* videos */
.jp-videos { background: linear-gradient(180deg, #fff, #f7fbfd); }
.jp-vid-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-bottom: 30px; }
.jp-vid { display: block; text-decoration: none !important; color: var(--jp-ink) !important; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--jp-shadow); border: 1px solid var(--jp-line); transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }
.jp-vid:hover { transform: translateY(-9px); box-shadow: var(--jp-shadow2); }
.jp-vid-pic { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.jp-vid-pic img, .jp-vid-pic video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s ease; }
.jp-vid:hover .jp-vid-pic img, .jp-vid:hover .jp-vid-pic video { transform: scale(1.1); }
.jp-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--jp-pink); box-shadow: 0 0 0 8px rgba(255, 255, 255, .35); transition: transform .3s; animation: jpPulse 2.2s ease-in-out infinite; }
.jp-play::after { content: ""; position: absolute; left: 27px; top: 21px; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.jp-vid:hover .jp-play { transform: scale(1.18); }
@keyframes jpPulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(255, 255, 255, .35); } 50% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } }
.jp-vid h3 { font: 700 1.05rem/1.3 var(--jp-head); color: var(--jp-teal); margin: 0; padding: 14px 18px 16px; }

/* join us */
.jp-join { padding: 30px 0 70px; background: #fff; }
.jp-join-box { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; padding: clamp(26px, 5vw, 54px); border-radius: 34px; color: #fff; background: linear-gradient(125deg, var(--jp-pink), #8a1b25 50%, #701520); box-shadow: 0 24px 60px rgba(138, 27, 37, .4); }
.jp-join-box::before, .jp-join-box::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.jp-join-box::before { width: 280px; height: 280px; right: -90px; top: -110px; background: rgba(255, 255, 255, .12); animation: jpFloat 10s ease-in-out infinite; }
.jp-join-box::after { width: 200px; height: 200px; left: -70px; bottom: -90px; background: rgba(201, 162, 39, .25); animation: jpFloat 12s ease-in-out infinite reverse; }
.jp-join-tx, .jp-join-cards { position: relative; z-index: 1; }
.jp-join h2 { color: #fff; }
.jp-join h2 em { color: var(--jp-gold); }
.jp-join p { color: rgba(255, 255, 255, .92); font-size: 1.08rem; }
.jp-join-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: center; }
.jp-join-cards a { display: block; padding: 16px 16px 14px; border-radius: 20px; background: rgba(255, 255, 255, .15); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .3); color: #fff !important; text-decoration: none !important; transition: transform .3s ease, background .3s; word-break: break-word; }
.jp-join-cards a:hover { transform: translateY(-6px) rotate(-1deg); background: rgba(255, 255, 255, .28); }
.jp-join-cards em { display: block; font-style: normal; font-size: 1.6rem; margin-bottom: 4px; }
.jp-join-cards b { display: block; font: 700 1rem/1.2 var(--jp-head); }
.jp-join-cards small { display: block; opacity: .9; font-size: .84rem; line-height: 1.3; margin-top: 2px; }

/* ---------- inner pages: softer banner ---------- */
.jns-hero { border-radius: 0 0 clamp(26px, 5vw, 60px) clamp(26px, 5vw, 60px); }
.jns-hero h1 { font-family: var(--jp-head); }
.jns-inner .page-wrapper h2, .jns-inner .page-wrapper h3 { font-family: var(--jp-head); }

/* ---------- footer touch ---------- */
.jns-footer { border-radius: clamp(26px, 5vw, 60px) clamp(26px, 5vw, 60px) 0 0; margin-top: 0 !important; }
.jns-footer h3, .jns-footer h4 { font-family: var(--jp-head); }

/* ---------- small screens ---------- */
@media (max-width: 991px) {
	.jp-nav .jp-wrap { justify-content: space-between; min-height: 52px; }
	.jp-nav-title { display: block; color: #fff; font: 700 1.05rem var(--jp-head); }
	.jp-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 42px; padding: 0 10px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .18); order: 2; cursor: pointer; }
	.jp-burger span { display: block; height: 3px; border-radius: 3px; background: #fff; transition: transform .3s, opacity .3s; }
	.jp-nav.open .jp-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.jp-nav.open .jp-burger span:nth-child(2) { opacity: 0; }
	.jp-nav.open .jp-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	.jp-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; flex-wrap: nowrap; padding: 10px 12px 16px; border-radius: 0 0 24px 24px; box-shadow: var(--jp-shadow2); max-height: 78vh; overflow-y: auto; }
	.jp-nav.open .jp-menu { display: flex; animation: jpDrop .3s ease; }
	@keyframes jpDrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
	.jp-link { color: var(--jp-teal) !important; padding: 13px 12px; border-radius: 14px; justify-content: flex-start; }
	.jp-link::after { display: none; }
	.jp-caret { margin- border-color: var(--jp-pink); }
	.jp-item:hover > .jp-link { background: transparent; }
	.jp-item.open > .jp-link { background: #fbeeee; }
	.jp-item.open .jp-caret { transform: rotate(225deg); }
	.jp-mega { position: static; display: none; width: auto; max-width: none; min-width: 0; opacity: 1; visibility: visible; transform: none; pointer-events: auto; box-shadow: none; border-top: 0; border-radius: 0; padding: 4px 4px 10px; }
	.jp-has:hover > .jp-mega { opacity: 1; transform: none; }
	.jp-item.open > .jp-mega { display: block; }
	.jp-mega-head { display: none; }
	.jp-tabs { grid-template-columns: 1fr; }
	.jp-about-grid, .jp-join-box { grid-template-columns: 1fr; }
	.jp-about-pics { min-height: 380px; order: -1; }
	.jp-stats-grid { grid-template-columns: repeat(2, 1fr); }
	.jp-wall-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(130px, 30vw, 200px); }
	.jp-wall-grid.full9 .w3, .jp-wall-grid.full9 .w7, .jp-wall-grid.full9 .w9 { grid-column: span 1; }
}
@media (max-width: 575px) {
	.jp-top .jp-tagline { display: none; }
	.jp-top-r { justify-content: center; width: 100%; }
	.jp-brand-r { width: 100%; }
	.jp-brand-r .jp-btn { flex: 1; justify-content: center; padding: 11px 12px; font-size: .9rem; }
	.jp-logo img { width: 58px; height: 58px; }
	.jp-join-cards { grid-template-columns: 1fr; }
	.jp-board-list { grid-template-columns: 1fr; }
	.jp-about-pics { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
	.jp-logo img, .jp-hero-deco .hd, .jp-badge svg, .jp-badge span, .jp-pic, .jp-play, .jp-blob, .jp-little::before, .jp-little::after, .jp-hl::before, .jp-albums::before, .jp-join-box::before, .jp-join-box::after { animation: none !important; }
	.jp-rv { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   More fun: ribbon, floating things, learning journey, houses, banner emoji, sparkles
   ===================================================================== */
.jp-sec > .jp-wrap { position: relative; z-index: 1; }
.jp-floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.jp-floaters span { position: absolute; font-size: clamp(1.4rem, 3vw, 2.4rem); opacity: .5; filter: drop-shadow(0 6px 8px rgba(11, 36, 71, .18)); animation: jpDrift 9s ease-in-out infinite; }
.jp-floaters span:nth-child(1) { left: 3%; top: 10%; }
.jp-floaters span:nth-child(2) { right: 5%; top: 8%; animation-delay: -2s; animation-duration: 11s; }
.jp-floaters span:nth-child(3) { left: 9%; bottom: 8%; animation-delay: -4s; animation-duration: 13s; }
.jp-floaters span:nth-child(4) { right: 8%; bottom: 14%; animation-delay: -1s; }
.jp-floaters span:nth-child(5) { left: 46%; top: 3%; animation-delay: -5s; animation-duration: 12s; }
.jp-floaters span:nth-child(6) { right: 30%; bottom: 3%; animation-delay: -3s; animation-duration: 10s; }
@keyframes jpDrift { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 33% { transform: translate(14px, -22px) rotate(8deg); } 66% { transform: translate(-12px, -8px) rotate(-3deg); } }

/* word ribbon */
.jp-ribbon { position: relative; overflow: hidden; background: linear-gradient(90deg, var(--jp-gold), #d9b948, var(--jp-gold)); color: #4a3a00; border-top: 3px dashed rgba(11, 36, 71, .25); border-bottom: 3px dashed rgba(11, 36, 71, .25); transform: rotate(-1deg); margin: 14px -10px 0; box-shadow: 0 8px 18px rgba(201, 162, 39, .35); }
.jp-ribbon-track { display: flex; width: max-content; align-items: center; gap: 22px; padding: 10px 0; font: 800 1.2rem/1 var(--jp-head); letter-spacing: 1px; text-transform: uppercase; animation: jpMarquee 38s linear infinite; }
.jp-ribbon-track i { font-style: normal; color: var(--jp-pink); }
.jp-ribbon:hover .jp-ribbon-track { animation-play-state: paused; }
@keyframes jpMarquee { to { transform: translateX(-50%); } }

/* learning journey */
.jp-journey { background: linear-gradient(180deg, #fff, #fff8e8 55%, #fff); }
.jp-path-wrap { position: relative; padding: 20px 0 10px; }
.jp-path { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: start; }
.jp-path::before { content: ""; position: absolute; left: 4%; right: 4%; top: 46px; height: 6px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--jp-pink) 0 14px, transparent 14px 26px); animation: jpDash 2.4s linear infinite; opacity: .75; }
@keyframes jpDash { to { background-position: 26px 0; } }
.jp-bus { position: absolute; top: 4px; left: 0; z-index: 2; font-size: 2.1rem; animation: jpDrive 14s linear infinite; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); }
@keyframes jpDrive { 0% { left: 0; transform: scaleX(1); } 48% { left: calc(100% - 44px); transform: scaleX(1); } 50% { left: calc(100% - 44px); transform: scaleX(-1); } 98% { left: 0; transform: scaleX(-1); } 100% { left: 0; transform: scaleX(1); } }
.jp-step { --c: var(--jp-pink); --cs: #fbeff0; position: relative; z-index: 1; display: block; text-align: center; text-decoration: none !important; padding: 0 4px; color: var(--jp-ink) !important; }
.jp-step:nth-child(even) { margin-top: 0; }
.jp-step-ic { display: inline-flex; width: 92px; height: 92px; border-radius: 50%; align-items: center; justify-content: center; font-size: 2.6rem; background: #fff; border: 5px solid var(--c); box-shadow: 0 10px 24px rgba(11, 36, 71, .16), 0 0 0 7px var(--cs); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s; }
.jp-step:hover .jp-step-ic { transform: scale(1.18) rotate(-8deg); box-shadow: 0 16px 30px rgba(11, 36, 71, .25), 0 0 0 10px var(--cs); }
.jp-step b { display: block; margin-top: 12px; font: 700 1.15rem/1.2 var(--jp-head); color: var(--jp-teal); }
.jp-step small { display: block; color: var(--jp-mute); line-height: 1.3; font-weight: 600; }

/* houses */
.jp-houses { background: #fff; }
.jp-house-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.jp-house { --hc: #d9322b; position: relative; display: block; text-align: center; padding: 56px 20px 24px; 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); overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.jp-house.hr { --hc: #d9322b; } .jp-house.hb { --hc: #2563c4; } .jp-house.hg { --hc: #2e9b4e; } .jp-house.hn { --hc: #8a5a2b; }
.jp-flag { position: absolute; left: 0; right: 0; top: 0; height: 74px; background: var(--hc); clip-path: polygon(0 0, 100% 0, 100% 58%, 82% 74%, 64% 58%, 46% 74%, 28% 58%, 10% 74%, 0 58%); animation: jpWave 3.2s ease-in-out infinite; transform-origin: top; }
@keyframes jpWave { 0%, 100% { transform: skewX(0) scaleY(1); } 50% { transform: skewX(-3deg) scaleY(1.07); } }
.jp-house em { position: relative; z-index: 1; display: inline-flex; width: 80px; height: 80px; border-radius: 50%; align-items: center; justify-content: center; font-style: normal; font-size: 2.3rem; background: #fff; border: 5px solid var(--hc); box-shadow: 0 10px 22px rgba(11, 36, 71, .18); margin-top: -20px; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.jp-house:hover em { transform: scale(1.18) rotate(-10deg); }
.jp-house h3 { margin: 14px 0 2px; font: 700 1.3rem/1.2 var(--jp-head); color: var(--hc); }
.jp-house small { color: var(--jp-mute); font-weight: 700; }
.jp-house:hover { box-shadow: 0 22px 46px rgba(11, 36, 71, .25); }

/* banner emoji on the inner pages */
.jns-hero { overflow: hidden; }
.jns-hero-em { position: absolute; z-index: 0; pointer-events: none; opacity: .9; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .3)); animation: jpDrift 8s ease-in-out infinite; }
.jns-hero-em.e1 { left: 7%; top: 22%; font-size: clamp(2.6rem, 7vw, 5rem); }
.jns-hero-em.e2 { right: 9%; top: 18%; font-size: clamp(1.6rem, 4vw, 3rem); animation-delay: -2s; }
.jns-hero-em.e3 { right: 20%; bottom: 14%; font-size: clamp(1.2rem, 3vw, 2.2rem); animation-delay: -4s; }
.jns-hero-em.e4 { left: 22%; bottom: 10%; font-size: clamp(1.6rem, 4vw, 3rem); animation-delay: -1s; opacity: .6; }

/* smile wall + sparkle trail */
.jp-wall-i { transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), box-shadow .45s; }
.jp-wall-i:hover { transform: rotate(-1.6deg) scale(1.03); z-index: 3; box-shadow: var(--jp-shadow2); }
.jp-sp { position: fixed; z-index: 99990; pointer-events: none; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--c, #c9a227); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: jpSpark .8s ease-out forwards; }
@keyframes jpSpark { to { transform: translate(var(--tx, 0), var(--ty, 24px)) scale(0) rotate(160deg); opacity: 0; } }

@media (max-width: 991px) {
	.jp-path { grid-template-columns: 1fr; gap: 14px; padding-left: 8px; }
	.jp-path::before { left: 54px; right: auto; top: 20px; bottom: 20px; width: 6px; height: auto; background: repeating-linear-gradient(180deg, var(--jp-pink) 0 14px, transparent 14px 26px); animation: none; }
	.jp-bus { display: none; }
	.jp-step { display: flex; align-items: center; gap: 16px; text-align: left; padding: 0; }
	.jp-step:nth-child(even) { margin-top: 0; }
	.jp-step-ic { flex: none; width: 72px; height: 72px; font-size: 2rem; }
	.jp-step b { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .jp-ribbon-track, .jp-floaters span, .jp-path::before, .jp-bus, .jp-flag, .jns-hero-em { animation: none !important; } }
