/* =========================================================
   MAPT ACADEMY — landing-page news box (2026-11-28; update 12: one news box above "Our Essence"; update 14: announcement box removed)
   Content comes from the review site's admin page (api/site-notices.php).
   Type: Cairo (Arabic, and its matching Latin letters for English).
   No text here is smaller than 1.25rem (20px), the largest body-text size of the page.
   ========================================================= */
:root{--font-notice:"Cairo","IBM Plex Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;--fs-notice:1.25rem;--fs-notice-title:clamp(1.5rem,1.3rem + .9vw,1.9rem)}

/* ---------- 1. "Latest News & Announcements" — above "Our Essence" (hidden when there is no item) ---------- */
.news-box{position:relative;overflow:hidden;width:min(100vw - 2.5rem,var(--container));margin-block:.5rem 2rem;
  padding:clamp(1.4rem,1rem + 1.6vw,2.2rem) clamp(1.2rem,.8rem + 2vw,2.6rem);
  font-family:var(--font-notice);font-size:var(--fs-notice);line-height:1.8;color:#fff;
  background:radial-gradient(120% 140% at 0% 0%,rgba(11,138,140,.38) 0%,rgba(11,138,140,0) 55%),
             linear-gradient(135deg,var(--navy-900) 0%,var(--navy) 60%,#0D3480 100%);
  border-radius:16px;box-shadow:0 18px 40px rgba(3,14,40,.45);border:1px solid rgba(127,211,210,.35);border-top:4px solid var(--gold)}
.news-box[hidden]{display:none}
.pathway .news-box{margin:0 auto clamp(2.5rem,2rem + 2vw,3.5rem)}
html[lang="en"] .news-box{line-height:1.65}
.news-box .notice-deco{position:absolute;inset-block-start:-60px;inset-inline-end:-70px;width:340px;height:340px;pointer-events:none;opacity:.9}
html[dir="rtl"] .news-box .notice-deco{transform:scaleX(-1)}
.news-head{position:relative;display:flex;align-items:center;gap:.85rem;margin-bottom:1.1rem}
.news-head h2,.news-head h3{margin:0;font-family:var(--font-notice);font-size:var(--fs-notice-title);font-weight:700;color:#fff;letter-spacing:0;line-height:1.35}
.news-icon{flex:none;display:grid;place-items:center;width:3rem;height:3rem;border-radius:50%;background:rgba(242,183,5,.16);border:1.5px solid rgba(242,183,5,.7);color:var(--gold)}
.news-icon svg{width:1.55rem;height:1.55rem}
.news-head .pulse{flex:none;position:relative;width:11px;height:11px;border-radius:50%;background:var(--gold);margin-inline-start:auto}
.news-head .pulse::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--gold);animation:notice-ping 1.8s ease-out infinite}
@keyframes notice-ping{0%{transform:scale(1);opacity:.8}100%{transform:scale(3);opacity:0}}
/* the items: a light panel inside the navy frame (date and "New" on one line, the text beneath) */
.news-panel{position:relative;list-style:none;margin:0;padding:.35rem clamp(1rem,.7rem + 1vw,1.5rem) .6rem;
  background:linear-gradient(180deg,#fff 0%,var(--soft-white) 100%);border-radius:12px;border:1px solid rgba(242,183,5,.55)}
.news-panel li{padding:.85rem 0;border-bottom:1px dashed var(--light-grey)}
.news-panel li:last-child{border-bottom:0}
.news-panel .news-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:.15rem}
.news-date{font-weight:600;color:var(--teal-ink);white-space:nowrap}
.news-new{display:inline-block;padding:0 .7rem;border-radius:999px;background:var(--gold);color:var(--navy-900);font-weight:700;line-height:1.6}
.news-text{margin:0;color:var(--charcoal);font-weight:500}
.news-text a{color:var(--teal-ink);font-weight:700;text-decoration:none;white-space:nowrap}
.news-text a:hover{text-decoration:underline}
.news-text a::after{content:" ←"}
html[lang="en"] .news-text a::after{content:" →"}

@media (prefers-reduced-motion:reduce){.news-head .pulse::after{animation:none}}
/* Small screens: the decoration stays behind the text, lighter and out of the way */
@media (max-width:640px){
  .news-box .notice-deco{width:230px;height:230px;inset-block-start:-110px;inset-inline-end:-110px;opacity:.4}
}
