/* ════════════════════════════════════════════════════════════════
   promo-2027.css — "2027 Grade 6 Maths — new classes" popup (index.html)
   Pure HTML/CSS (no poster image). Opened by js/promo-2027.js.
   ════════════════════════════════════════════════════════════════ */
.pr-overlay{
  position:fixed; inset:0; z-index:2000; display:none;
  align-items:center; justify-content:center; padding:16px;
  background:rgba(2,6,23,.62); backdrop-filter:blur(3px);
}
.pr-overlay.open{ display:flex; animation:prFade .35s ease both; }
.pr-overlay.closing{ animation:prFade .25s ease reverse both; }

/* Image Expo-style layout: card in the middle, round ✕ on its corner,
   buttons underneath the card */
.pr-wrap{
  position:relative; width:min(440px,100%); display:flex; flex-direction:column; align-items:center;
  animation:prPop .6s cubic-bezier(.2,1.3,.4,1) both;
}
.pr-overlay.closing .pr-wrap{ animation:prPop .25s ease reverse both; }
.pr-card{
  position:relative; width:100%; max-height:calc(100vh - 120px); overflow-x:hidden; overflow-y:auto;
  background:#f7f5f0; color:#0f1b3d; border-radius:18px;
  box-shadow:0 30px 80px rgba(2,6,23,.5);
  font-family:'Noto Sans Sinhala','Open Sans',system-ui,sans-serif;
}

/* decorative shapes (same feel as the 2027 posters) */
.pr-card::before{
  content:""; position:absolute; top:-70px; right:-70px; width:230px; height:230px;
  border-radius:50%; background:#2350d8; z-index:0;
}
.pr-card::after{
  content:""; position:absolute; top:150px; left:-40px; width:120px; height:120px;
  border-radius:50%; background:#fdd447; opacity:.55; z-index:0;
}
.pr-card > *{ position:relative; z-index:1; }

.pr-close{
  position:absolute; top:-14px; right:-14px; z-index:3; width:36px; height:36px; padding:0;
  border:0; border-radius:50%; background:#fff; color:#0f1b3d;
  font-size:18px; line-height:36px; cursor:pointer; box-shadow:0 4px 14px rgba(0,0,0,.35);
}
.pr-close:hover,.pr-close:focus{ background:#fff; transform:rotate(90deg); transition:transform .2s; }

.pr-top{ display:flex; gap:14px; align-items:flex-start; padding:22px 24px 2px; }
.pr-head{ flex:1; min-width:0; }
.pr-year{
  display:inline-block; font-family:'Poppins','Open Sans',sans-serif; font-weight:900;
  font-size:46px; line-height:1; letter-spacing:-1px; color:#2350d8;
  background:linear-gradient(100deg,#2350d8 40%,#7aa2ff 50%,#2350d8 60%);
  background-size:250% 100%; -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; animation:prShine 2.6s 1s ease-in-out infinite;
}
.pr-new{ color:#f26a4b; font-weight:800; font-size:16px; margin:6px 0 0; }
.pr-photo{
  width:108px; height:108px; flex:none; border-radius:50%; object-fit:cover;
  border:5px solid #fff; box-shadow:0 10px 24px rgba(15,27,61,.25);
  animation:prRise .6s .25s ease both;
}

.pr-title{ padding:4px 24px 0; margin:0; font-weight:900; line-height:1.15; }
.pr-title .g{ display:block; font-size:22px; }
.pr-title .g b{ color:#f26a4b; font-size:44px; margin-right:6px; vertical-align:-4px; }
.pr-title .m{ display:block; font-size:36px; letter-spacing:.5px; }

.pr-sub{ padding:8px 24px 6px; margin:0; color:#2350d8; font-weight:800; font-size:15px; }

.pr-list{ list-style:none; margin:0; padding:0 18px; }
.pr-row{
  display:flex; align-items:center; gap:12px; margin:0 0 10px; padding:12px 14px;
  background:#fff; border-radius:16px; border-left:6px solid #2350d8;
  box-shadow:0 6px 16px rgba(15,27,61,.08);
  animation:prRise .5s ease both;
}
.pr-row:nth-child(1){ animation-delay:.35s; }
.pr-row:nth-child(2){ animation-delay:.5s; border-left-color:#f26a4b; }
.pr-day{
  font-family:'Poppins','Open Sans',sans-serif; font-weight:900; font-size:34px;
  line-height:1; min-width:46px; text-align:center;
  animation:prBounce .7s .8s ease both;
}
.pr-row:nth-child(2) .pr-day{ animation-delay:.95s; }
.pr-when{ flex:1; min-width:0; }
.pr-when small{ display:block; color:#475569; font-size:12px; font-weight:600; }
.pr-when strong{ display:block; font-size:17px; font-weight:900; }
.pr-time{
  flex:none; background:#fdd447; color:#0f1b3d; font-weight:800; font-size:14px;
  padding:6px 10px; border-radius:10px; white-space:nowrap;
}

.pr-teacher{ padding:8px 24px 4px; }
.pr-teacher strong{ display:block; font-size:24px; font-weight:900; }
.pr-teacher span{ color:#475569; font-size:13px; }

.pr-call{
  display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px;
  padding:14px 24px; background:#0f1b3d; text-decoration:none; white-space:nowrap;
}
.pr-call span{ color:#fdd447; font-weight:900; font-size:18px; }
.pr-call b{ color:#fff; font-family:'Poppins','Open Sans',sans-serif; font-weight:900; font-size:24px; letter-spacing:.5px; }
.pr-call:hover,.pr-call:focus{ text-decoration:none; background:#16255a; }

.pr-actions{ display:flex; align-items:center; justify-content:center; gap:18px; margin-top:18px;
  font-family:'Noto Sans Sinhala','Open Sans',system-ui,sans-serif; }
.pr-more{
  display:inline-flex; align-items:center; gap:8px; padding:11px 22px; border-radius:999px;
  background:#fff; color:#0f1b3d !important; font-weight:800; font-size:14px; text-decoration:none;
  box-shadow:0 8px 20px rgba(0,0,0,.25); animation:prPulse 2s 1.4s ease-in-out infinite;
}
.pr-more:hover,.pr-more:focus{ text-decoration:none; transform:translateY(-2px); transition:transform .15s; }
.pr-later{
  border:0; background:none; padding:8px 4px; color:#e2e8f0; font-weight:800; font-size:14px; cursor:pointer;
}
.pr-later:hover,.pr-later:focus{ color:#fff; text-decoration:underline; }

/* floating maths symbols */
.pr-float{ position:absolute; z-index:0; font-weight:900; color:#2350d8; opacity:.13;
  font-size:28px; animation:prFloat 5s ease-in-out infinite; pointer-events:none; }
.pr-float.f1{ left:58%; top:120px; }
.pr-float.f2{ right:16px; top:300px; animation-delay:1.2s; color:#f26a4b; }
.pr-float.f3{ left:14px; bottom:120px; animation-delay:2.1s; }

@keyframes prFade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes prPop{ 0%{ opacity:0; transform:translateY(40px) scale(.85); } 100%{ opacity:1; transform:none; } }
@keyframes prRise{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:none; } }
@keyframes prBounce{ 0%{ transform:scale(.4); opacity:0; } 60%{ transform:scale(1.18); opacity:1; } 100%{ transform:scale(1); } }
@keyframes prShine{ 0%{ background-position:100% 0; } 60%,100%{ background-position:-50% 0; } }
@keyframes prPulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(255,255,255,.55); } 50%{ box-shadow:0 0 0 10px rgba(255,255,255,0); } }
@keyframes prFloat{ 0%,100%{ transform:translateY(0) rotate(0); } 50%{ transform:translateY(-12px) rotate(8deg); } }

@media (max-width:420px){
  .pr-year{ font-size:38px; }
  .pr-photo{ width:88px; height:88px; }
  .pr-title .m{ font-size:34px; }
  .pr-when strong{ font-size:15px; }
  .pr-day{ font-size:28px; min-width:38px; }
  .pr-close{ right:-8px; }
  .pr-call b{ font-size:21px; }
}
@media (prefers-reduced-motion:reduce){
  .pr-overlay *, .pr-overlay{ animation:none !important; }
}
