/* Styles for the inner pages added after About, Tour and Videos, plus the shared footer. */
.bg-purple { background: var(--purple); } .bg-teal { background: var(--teal); } .bg-peach { background: var(--peach); }
.bg-green { background: var(--green); } .bg-yellow { background: var(--yellow); color: var(--navy) !important; }
.bg-yellow h1 { text-shadow: 0 4px 0 rgba(255, 255, 255, .5); }
.lead-c { text-align: center; font-size: 1.12rem; color: var(--soft); font-weight: 600; max-width: 900px; margin: 0 auto; }
.center { text-align: center; margin-top: 34px; }
.tag { display: inline-block; background: var(--yellow); color: var(--navy); font: 600 .85rem "Fredoka", sans-serif; padding: 3px 12px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }

/* Curriculum */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.pillar { border-radius: 30px; padding: 24px 22px 28px; color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pillar::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .16); right: -40px; top: -50px; }
.pillar i { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 2rem; margin-bottom: 14px; box-shadow: 0 6px 0 rgba(0, 0, 0, .1); }
.pillar h3 { line-height: 1.2; margin-bottom: 8px; }

/* Classroom posters */
.rooms { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: center; margin-bottom: 30px; }
.posters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.posters img { width: 100%; border-radius: 18px; border: 5px solid #fff; box-shadow: var(--shadow); display: block; }

/* Programs */
.progs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.prog { position: relative; padding: 56px 22px 22px; border-top: 8px solid var(--coral); }
.prog p { color: var(--soft); font-size: .98rem; }
.badge { position: absolute; top: -44px; left: 20px; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; text-align: center; font: 700 1.15rem/1 "Fredoka", sans-serif; color: #fff; border: 5px solid #fff; box-shadow: 0 8px 18px rgba(35, 44, 71, .2); transform: rotate(-8deg); }
.badge small { display: block; font-size: .72rem; font-weight: 500; margin-top: 3px; }
.music { margin-top: 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--navy); color: #fff; }
.music > i { width: 84px; height: 84px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-size: 2.4rem; }
.music h3 { margin-bottom: 4px; font-size: 1.45rem; }
.music .chip { margin: 8px 6px 0 0; background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; cursor: default; }
.btn-yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 0 #d9a91f; }
.btn-yellow:hover { box-shadow: 0 4px 0 #d9a91f; }
.accept { margin-top: 26px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.accept .chip { cursor: default; margin: 8px 6px 0 0; background: var(--cream); box-shadow: none; }

/* Schedule */
.sched { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: start; }
.trow { display: grid; grid-template-columns: 30px 168px 1fr; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 2px dashed #ffe9b8; }
.trow:last-child { border: 0; }
.trow > i { font-size: 1.3rem; color: var(--blue); text-align: center; }
.trow:nth-child(3n) > i { color: var(--coral); } .trow:nth-child(3n+1) > i { color: var(--peach); }
.trow b { font: 600 .9rem "Fredoka", sans-serif; background: var(--cream); border-radius: 999px; padding: 4px 10px; text-align: center; }
.ev { display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: center; margin-bottom: 11px; }
.ev i { font: 700 .95rem/1.15 "Fredoka", sans-serif; font-style: normal; color: #fff; border-radius: 16px; padding: 12px 4px; text-align: center; text-transform: uppercase; box-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
.ev b { font: 600 1.05rem/1.25 "Fredoka", sans-serif; }

/* Lunch menu */
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.day { padding: 0; overflow: hidden; }
.day .t { padding: 14px 0 12px; text-align: center; font-size: 2.6rem; line-height: 1; color: #fff; }
.day .t b { display: block; font: 600 .9rem "Fredoka", sans-serif; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.day .b { padding: 14px 18px 20px; }
.day h3 { font-size: 1.1rem; line-height: 1.25; margin-bottom: 8px; }
.day li { color: var(--soft); font-size: .92rem; padding: 2px 0 2px 16px; position: relative; }
.day li::before { content: "•"; position: absolute; left: 2px; color: var(--coral); }
.notebar { margin-top: 20px; background: #fff; border-radius: 18px; padding: 12px 22px; box-shadow: var(--shadow); font-weight: 700; display: flex; gap: 12px; align-items: center; }
.notebar i { color: var(--coral); }

/* Campuses */
.camps { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.camp { padding: 0; overflow: hidden; }
.camp iframe { display: block; width: 100%; height: 230px; border: 0; background: #dbeedd; }
.camp .b { padding: 20px 26px 24px; }
.camp li { padding: 4px 0; color: var(--soft); font-weight: 600; }
.camp li i { color: var(--coral); width: 1.4em; text-align: center; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.btn-soft { background: var(--cream); color: var(--navy); box-shadow: 0 4px 0 #ffe9b8; }
.btn-soft:hover { box-shadow: 0 2px 0 #ffe9b8; }

/* Enrollment */
.enroll { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.estep { display: grid; grid-template-columns: 62px 1fr; gap: 16px; margin-bottom: 14px; }
.estep > i { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font: 700 1.6rem "Fredoka", sans-serif; font-style: normal; color: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .12); border: 4px solid #fff; }
.estep b { font: 600 1.15rem "Fredoka", sans-serif; display: block; }
.estep p { color: var(--soft); font-size: .96rem; }
.wait { background: var(--navy); color: #fff; border-radius: 22px; padding: 16px 22px; display: flex; gap: 18px; align-items: center; margin-top: 16px; box-shadow: var(--shadow); }
.wait > i { font-size: 2rem; color: var(--yellow); }
.wait b { font: 600 1.15rem "Fredoka", sans-serif; display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Checkout */
.pay { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.methods { display: flex; gap: 10px; margin-bottom: 16px; }
.methods > span { flex: 1; text-align: center; border: 2px solid #ffe9b8; border-radius: 14px; padding: 11px; font-weight: 800; }
.methods > span.sel { border-color: var(--blue); background: #e8f6fe; }
.hint { color: var(--soft); font-size: .9rem; margin-top: 10px; }
.sum { background: var(--navy); color: #fff; }
.ln { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.ln.total { font: 700 1.9rem "Fredoka", sans-serif; color: var(--yellow); border: 0; padding: 16px 0; }
.kid { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.kid b { font: 600 1.2rem "Fredoka", sans-serif; }
.ok { background: #dff5e9; color: #1f8a55; font-weight: 800; font-size: .82rem; padding: 3px 12px; border-radius: 999px; }

/* Parent portal */
.portal { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - var(--nav-h)); }
.sidebar { background: var(--navy); color: #fff; padding: 24px 16px; font: 500 1.02rem "Fredoka", sans-serif; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; margin-bottom: 5px; white-space: nowrap; }
.sidebar a.act { background: var(--coral); box-shadow: 0 4px 0 var(--coral-dark); }
.sidebar a i { width: 1.3em; text-align: center; }
.sidebar u { text-decoration: none; background: var(--yellow); color: var(--navy); border-radius: 999px; padding: 0 9px; font-size: .85rem; font-weight: 600; margin-left: auto; }
.dash { padding: 24px 32px 50px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-content: start; }
.dash > h1 { grid-column: 1 / -1; font-size: 2rem; text-shadow: none; }
.dash .wide { grid-column: 1 / -1; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
td, th { text-align: left; padding: 8px 4px; border-bottom: 1px solid #ffe9b8; }
th { font-size: .78rem; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.due { background: var(--cream); border-radius: 18px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.due b { font: 700 1.6rem "Fredoka", sans-serif; display: block; }

/* Messages */
.chat { display: grid; grid-template-columns: 310px 1fr; height: calc(100vh - var(--nav-h)); min-height: 560px; background: #fff; }
.clist { border-right: 2px solid #ffe9b8; padding: 20px 14px; background: var(--cream); overflow-y: auto; }
.clist h1 { font-size: 1.4rem; text-shadow: none; padding: 0 8px 12px; }
.conv { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 16px; margin-bottom: 4px; }
.conv.act { background: #fff; box-shadow: var(--shadow); }
.conv .av { width: 46px; height: 46px; font-size: 1.1rem; }
.conv b { font: 600 1rem/1.2 "Fredoka", sans-serif; display: block; }
.conv span span { font-size: .84rem; color: var(--soft); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.conv u { text-decoration: none; background: var(--coral); color: #fff; border-radius: 999px; font-size: .78rem; font-weight: 800; padding: 1px 8px; }
.thread { display: flex; flex-direction: column; min-height: 0; }
.thead { display: flex; align-items: center; gap: 14px; padding: 16px 26px; border-bottom: 2px solid #ffe9b8; }
.thead b { font: 600 1.2rem "Fredoka", sans-serif; display: block; }
.thead small { color: var(--green); font-weight: 800; font-size: .88rem; }
.msgs { flex: 1; padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.m { max-width: 62%; padding: 12px 18px; border-radius: 22px 22px 22px 6px; background: var(--cream); align-self: flex-start; }
.m.me { align-self: flex-end; background: var(--blue); color: #fff; border-radius: 22px 22px 6px 22px; }
.m small { display: block; font-size: .76rem; opacity: .7; margin-top: 3px; }
.day-sep { align-self: center; font-size: .8rem; font-weight: 800; color: var(--soft); background: var(--cream); padding: 3px 14px; border-radius: 999px; }
.composer { display: flex; gap: 12px; padding: 16px 26px 22px; align-items: center; }
.composer input { border-radius: 999px; }

/* Gallery */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gal .ph { aspect-ratio: 1 / 1; border-radius: 22px; }
.gal .ph[hidden] { display: none; }
.gal .ph img { object-position: 50% 70%; }
.gal .ph em { font-size: .95rem; padding: 4px 14px; right: 12px; }

/* Sky motion: clouds drift, the sun glows, the star and the note float.
   `translate`/`rotate`/`scale` are used instead of `transform` so existing transforms stay intact. */
@keyframes drift { from { translate: -40px 0; } to { translate: 90px 0; } }
@keyframes glow { 50% { box-shadow: 0 0 0 30px rgba(249, 204, 77, .3), 0 0 0 66px rgba(249, 204, 77, .14); } }
@keyframes twinkle { 50% { scale: 1.35; rotate: 18deg; } }
@keyframes floaty { 50% { translate: 0 -16px; rotate: 10deg; } }
.cloud { animation: drift 14s ease-in-out infinite alternate; }
.cloud-2 { animation-duration: 20s; animation-direction: alternate-reverse; }
.banner .cloud { animation-duration: 11s; }
.sun { animation: glow 5s ease-in-out infinite; }
.deco-star { animation: twinkle 3s ease-in-out infinite; }
.deco-note { animation: floaty 4s ease-in-out infinite; }
/* Home headline: each word pops in, then keeps bobbing; the yellow marker draws itself under "en español". */
@keyframes pop { from { opacity: 0; scale: .3; rotate: -8deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes bob { 50% { translate: 0 -8px; } }
@keyframes mark { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
.motion .hero h1 > span { display: inline-block; animation: pop .7s cubic-bezier(.34, 1.56, .64, 1) both, bob 3s ease-in-out 1.6s infinite; }
.motion .hero h1 > span:nth-of-type(1) { animation-delay: .1s, 1.6s; }
.motion .hero h1 > span:nth-of-type(2) { animation-delay: .35s, 1.9s; }
.motion .hero h1 > span:nth-of-type(3) { animation-delay: .6s, 2.2s; }
.motion .hero h1 > .hl { background-repeat: no-repeat; animation: pop .7s cubic-bezier(.34, 1.56, .64, 1) .85s both, mark .8s ease-out 1.3s both, bob 3s ease-in-out 2.5s infinite; }
@media (prefers-reduced-motion: reduce) {
  .cloud, .sun, .deco-star, .deco-note, .hero h1 > span, .hero h1 > .hl { animation: none; }
}
.foot .credit { margin-top: 6px; font-size: .9rem; }
.foot .credit a { color: var(--yellow); font-weight: 800; }
.foot .credit a:hover { text-decoration: underline; }

/* Footer */
.foot { background: var(--navy); color: rgba(255, 247, 230, .8); padding: 28px 20px 30px; text-align: center; font-size: .95rem; position: relative; z-index: 3; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 12px; font: 500 1rem "Fredoka", sans-serif; color: #fff; }
.foot nav a:hover { color: var(--yellow); }

@media (max-width: 1100px) {
  .pillars, .progs { grid-template-columns: repeat(2, 1fr); }
  .progs { row-gap: 60px; }
  .week { grid-template-columns: repeat(3, 1fr); }
  .gal { grid-template-columns: repeat(3, 1fr); }
  .rooms { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sched, .camps, .enroll, .pay, .dash, .accept, .music { grid-template-columns: minmax(0, 1fr); }
  .music { text-align: center; justify-items: center; }
  .pillars, .progs, .week { grid-template-columns: minmax(0, 1fr); }
  .posters, .gal { grid-template-columns: repeat(2, 1fr); }
  .trow { grid-template-columns: 26px 1fr; }
  .trow span { grid-column: 2; }
  .portal { grid-template-columns: minmax(0, 1fr); min-height: 0; align-content: start; }
  .sidebar { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 12px; }
  .two { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sidebar a { margin: 0; }
  .dash { padding: 20px 20px 40px; }
  .chat { grid-template-columns: minmax(0, 1fr); height: auto; }
  .clist { border-right: 0; border-bottom: 2px solid #ffe9b8; }
  .msgs { padding: 18px; max-height: 60vh; }
  .m { max-width: 85%; }
  .composer, .thead { padding-left: 18px; padding-right: 18px; }
  .stats div { flex: 1 1 100%; }
}

/* Curriculum page */
.sec { margin-top: 46px; }
.quote blockquote.big { font: 600 1.5rem/1.3 "Fredoka", sans-serif; font-style: normal; color: #fff; }
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.areas li { background: #fff; border-radius: 20px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); font: 600 1rem/1.25 "Fredoka", sans-serif; }
.areas i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.2rem; flex: none; }
.marks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.marks li { background: #fff; border-radius: 999px; padding: 9px 18px; font-weight: 800; box-shadow: 0 4px 12px rgba(35, 44, 71, .1); }
.marks i { color: var(--purple); margin-right: 8px; }
.motto { text-align: center; margin-top: 50px; }
.motto > p:first-child { font: 700 clamp(1.4rem, 3.2vw, 2.1rem)/1.2 "Fredoka", sans-serif; }
.motto small { color: var(--soft); font-weight: 700; }
@media (max-width: 1100px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .areas { grid-template-columns: minmax(0, 1fr); } }
