body { font-size:16px; line-height:1.8; color:#1a2535; -webkit-font-smoothing:antialiased; }
p, li { font-size:1rem; line-height:1.85; color:#2d3a4a; }
p { text-align:justify; hyphens:auto; }
h1,h2,h3,h4 { line-height:1.25; color:#0a2154; letter-spacing:-.01em; }
.card-meta, .ep-block-date, .ev-list-time, .evp-up-time,
.ann-card-school, small, .td-date { font-size:.8rem; line-height:1.6; color:#5a7090; }
.btn { font-size:.85rem; font-weight:700; letter-spacing:.02em; }

/* ==================================================== */

/* ================================================================
   COLOR MAP — navy=green | amber=yellow | green=blue | red=red
   ================================================================ */

/* Chip colors */
.chip-navy  { background:rgba(22,163,74,.12);  color:#14532d; border-left-color:#16a34a; }  /* green  */
.chip-amber { background:rgba(234,179,8,.15);  color:#713f12; border-left-color:#eab308; }  /* yellow */
.chip-green { background:rgba(37,99,235,.12);  color:#1e3a8a; border-left-color:#2563eb; }  /* blue   */
.chip-red   { background:rgba(220,38,38,.12);  color:#7f1d1d; border-left-color:#dc2626; }  /* red    */

/* Sidebar badge shades */
.evp-up-badge.shade-1 { background:#16a34a; }  /* green  — general   */
.evp-up-badge.shade-2 { background:#ca8a04; }  /* yellow — important */
.evp-up-badge.shade-3 { background:#2563eb; }  /* blue   — assessment*/
.evp-up-badge.shade-4 { background:#dc2626; }  /* red    — no class  */

/* Legend dots */
.leg-green  { background:#16a34a; }
.leg-yellow { background:#eab308; }
.leg-blue   { background:#2563eb; }
.leg-red    { background:#dc2626; }

/* ================================================================
   EVENTS CALENDAR LAYOUT
   ================================================================ */
.evp-body { background:#eef3fb; padding:2.5rem 0 4rem; }
.evp-container { max-width:1440px; margin:0 auto; padding:0 2rem; }
.evp-layout { display:grid; grid-template-columns:1fr 360px; gap:2rem; align-items:start; }

/* ── Calendar card ── */
.big-cal { background:#fff; border-radius:20px; box-shadow:0 8px 48px rgba(7,24,64,.14); overflow:hidden; border:1px solid #c5d8f5; }

.big-cal-nav { display:flex; align-items:center; justify-content:space-between; padding:1.5rem 2rem; background:linear-gradient(90deg,#071840 0%,#0d2b6e 100%); border-bottom:3px solid #c8a415; }
.big-cal-nav-info { text-align:center; }
.big-cal-nav-year { font-size:.72rem; font-weight:800; letter-spacing:.18em; text-transform:uppercase; color:rgba(200,216,255,.55); display:block; margin-bottom:2px; }
.big-cal-nav-month { font-family:'Poppins',Arial,sans-serif; font-size:1.75rem; font-weight:800; color:#fff; letter-spacing:.04em; text-transform:uppercase; line-height:1; }
.big-cal-nav-btn { width:42px; height:42px; border-radius:10px; background:rgba(255,255,255,.1); border:1.5px solid rgba(255,255,255,.2); color:#fff; display:flex; align-items:center; justify-content:center; text-decoration:none; font-size:1.2rem; font-weight:800; transition:background .2s,border-color .2s,transform .15s; }
.big-cal-nav-btn:hover { background:rgba(255,255,255,.2); border-color:#c8a415; transform:scale(1.08); }

.big-cal-dow { display:grid; grid-template-columns:repeat(7,1fr); background:#1a4a8a; }
.big-cal-dow span { padding:.85rem 0; text-align:center; font-size:.72rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:rgba(200,220,255,.7); }

.big-cal-grid { display:grid; grid-template-columns:repeat(7,1fr); border-left:1px solid #dce8f7; }
.big-cal-cell { min-height:145px; border-right:1px solid #dce8f7; border-bottom:1px solid #dce8f7; padding:.7rem .75rem; position:relative; transition:background .15s; }
.big-cal-cell:hover { background:#f0f6ff; }
.big-cal-cell.empty { background:#f5f8fd; }
.big-cal-cell.today { background:#eaf1ff; }
.big-cal-cell.today .big-cal-day-num { width:32px; height:32px; background:#0d2b6e; color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:.92rem; }
.big-cal-cell.has-events { cursor:pointer; }
.big-cal-day-num { font-size:.9rem; font-weight:700; color:#3a5a9a; margin-bottom:.5rem; line-height:1; display:inline-flex; align-items:center; justify-content:center; min-width:28px; min-height:28px; }
.big-cal-cell.empty .big-cal-day-num { color:#c5d2e8; }

.big-ev-chip { display:block; font-size:.74rem; font-weight:600; padding:5px 8px 5px 10px; border-radius:5px; margin-bottom:4px; white-space:normal; word-break:break-word; overflow:hidden; cursor:pointer; transition:opacity .15s,transform .1s; line-height:1.55; border-left:3px solid transparent; text-align:justify; hyphens:auto; letter-spacing:.01em; }
.big-ev-chip:hover { opacity:.85; transform:translateX(2px); }
.big-cal-more { font-size:.67rem; font-weight:800; color:#1a4a8a; cursor:pointer; opacity:.8; margin-top:3px; letter-spacing:.02em; }
.big-cal-more:hover { opacity:1; text-decoration:underline; }

/* Legend */
.big-cal-legend { display:flex; gap:1.25rem; flex-wrap:wrap; padding:1rem 1.5rem; background:#f0f6ff; border-top:1px solid #dce8f7; }
.big-cal-legend-item { display:flex; align-items:center; gap:7px; font-size:.75rem; font-weight:600; color:#4a6fa5; }
.big-cal-legend-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }

/* ── Sidebar ── */
.evp-sidebar { display:flex; flex-direction:column; gap:1.5rem; }

.evp-today-card { background:linear-gradient(145deg,#071840 0%,#0d2b6e 100%); border-radius:16px; padding:1.75rem 1.5rem; color:#fff; text-align:center; position:relative; overflow:hidden; border:1px solid rgba(200,164,21,.25); box-shadow:0 6px 32px rgba(7,24,64,.25); }
.evp-today-card::before { content:''; position:absolute; top:-30px; right:-30px; width:120px; height:120px; border-radius:50%; background:radial-gradient(circle,rgba(200,164,21,.15) 0%,transparent 70%); pointer-events:none; }
.evp-today-label { font-size:.65rem; font-weight:800; letter-spacing:.18em; text-transform:uppercase; color:#c8a415; margin-bottom:.5rem; display:flex; align-items:center; justify-content:center; gap:.4rem; }
.evp-today-day { font-family:'Poppins',Arial,sans-serif; font-size:3.5rem; font-weight:800; line-height:1; color:#fff; }
.evp-today-month { font-size:.95rem; color:rgba(200,216,255,.7); margin-top:.2rem; font-weight:600; }
.evp-today-weekday { font-size:.78rem; color:rgba(200,216,255,.45); margin-top:.15rem; }
.evp-today-btn { display:inline-flex; align-items:center; gap:.4rem; margin-top:1.1rem; font-size:.75rem; font-weight:700; color:rgba(255,255,255,.6); text-decoration:none; border:1px solid rgba(255,255,255,.2); padding:.35rem 1rem; border-radius:7px; transition:background .2s,color .2s,border-color .2s; }
.evp-today-btn:hover { background:rgba(200,164,21,.2); color:#c8a415; border-color:#c8a415; }

.evp-upcoming { background:#fff; border-radius:16px; box-shadow:0 4px 28px rgba(7,24,64,.1); overflow:hidden; border:1px solid #c5d8f5; }
.evp-upcoming-head { padding:1.1rem 1.4rem; background:linear-gradient(90deg,#071840 0%,#0d2b6e 100%); border-bottom:2px solid #c8a415; display:flex; align-items:center; justify-content:space-between; }
.evp-upcoming-head h3 { font-family:'Poppins',Arial,sans-serif; font-size:1rem; font-weight:700; color:#fff; display:flex; align-items:center; gap:.5rem; }
.evp-upcoming-head span { font-size:.68rem; font-weight:700; color:rgba(200,216,255,.5); letter-spacing:.06em; text-transform:uppercase; }

.evp-up-item { display:flex; align-items:center; gap:14px; padding:.9rem 1.4rem; border-bottom:1px solid #eef3fb; cursor:pointer; transition:background .15s; }
.evp-up-item:last-child { border-bottom:none; }
.evp-up-item:hover { background:#f0f6ff; }
.evp-up-badge { flex-shrink:0; width:52px; height:52px; border-radius:10px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; box-shadow:0 3px 10px rgba(13,43,110,.3); transition:filter .2s; }
.evp-up-item:hover .evp-up-badge { filter:brightness(1.1); }
.evp-up-badge .bm { font-size:.56rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.8); line-height:1; }
.evp-up-badge .bd { font-size:1.4rem; font-weight:900; line-height:1; color:#fff; margin-top:1px; }
.evp-up-info { flex:1; min-width:0; }
.evp-up-title { font-size:.86rem; font-weight:700; color:#0a2154; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.evp-up-time { display:flex; align-items:center; gap:4px; font-size:.72rem; color:#5a7ab0; margin-top:4px; }
.evp-upcoming-empty { padding:2rem 1.4rem; text-align:center; color:#7a9abf; font-size:.88rem; }
.evp-upcoming-empty .empty-ico { font-size:2rem; margin-bottom:.5rem; }

.evp-up-pagination { display:flex; align-items:center; justify-content:space-between; padding:.75rem 1.4rem; border-top:1px solid #eef3fb; background:#f8faff; }
.evp-up-pg-btn { display:flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:7px; background:#0d2b6e; color:#fff; font-size:.9rem; font-weight:800; text-decoration:none; transition:background .18s,transform .15s; border:none; cursor:pointer; }
.evp-up-pg-btn:hover { background:#071840; transform:scale(1.08); }
.evp-up-pg-disabled { background:#e0e8f5; color:#a0b4d0; cursor:default; pointer-events:none; }
.evp-up-pg-info { font-size:.75rem; font-weight:700; color:#4a6fa5; letter-spacing:.04em; }

/* ── Modal ── */
#evModal { display:none; position:fixed; inset:0; z-index:9999; background:rgba(7,24,64,.75); backdrop-filter:blur(6px); align-items:center; justify-content:center; padding:1rem; }
#evModal.show { display:flex; }
#evModalBox { background:#fff; border-radius:20px; width:100%; max-width:480px; box-shadow:0 28px 80px rgba(7,24,64,.35); overflow:hidden; animation:evIn .22s cubic-bezier(.34,1.36,.64,1); border:1px solid #c5d8f5; }
@keyframes evIn { from{opacity:0;transform:scale(.92) translateY(12px);} to{opacity:1;transform:scale(1) translateY(0);} }
.ev-modal-top { background:linear-gradient(135deg,#071840 0%,#0d2b6e 100%); padding:1.75rem 1.75rem 1.4rem; border-bottom:3px solid #c8a415; position:relative; overflow:hidden; }
.ev-modal-top::before { content:''; position:absolute; top:-20px; right:-20px; width:100px; height:100px; border-radius:50%; background:radial-gradient(circle,rgba(200,164,21,.2) 0%,transparent 70%); pointer-events:none; }
.ev-modal-cat { display:inline-flex; align-items:center; gap:.4rem; font-size:.65rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; padding:.22rem .8rem; border-radius:100px; background:rgba(200,164,21,.2); color:#c8a415; margin-bottom:.75rem; position:relative; z-index:1; }
.ev-modal-title { font-family:'Poppins',Arial,sans-serif; font-size:1.25rem; font-weight:700; color:#fff; line-height:1.3; position:relative; z-index:1; }
.ev-modal-body { padding:1.5rem 1.75rem; }
.ev-modal-row { display:flex; align-items:flex-start; gap:12px; font-size:.9rem; color:#374151; margin-bottom:.9rem; line-height:1.6; }
.ev-modal-ico { width:32px; height:32px; flex-shrink:0; background:#eef3fb; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:.95rem; border:1px solid #c5d8f5; color:#0d2b6e; }
.ev-modal-foot { padding:.9rem 1.75rem 1.4rem; background:#f0f6ff; border-top:1px solid #dce8f7; }
#evModalClose { width:100%; padding:.7rem; background:#0d2b6e; color:#fff; border:none; border-radius:10px; font-size:.9rem; font-weight:700; cursor:pointer; font-family:inherit; letter-spacing:.03em; transition:background .2s; display:flex; align-items:center; justify-content:center; gap:.5rem; }
#evModalClose:hover { background:#071840; }

/* ── Responsive ── */
@media(max-width:1100px) { .evp-layout{grid-template-columns:1fr;} .evp-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;} .evp-upcoming{grid-column:1/-1;} }
@media(max-width:860px)  { .big-cal-cell{min-height:100px;padding:.45rem .5rem;} .big-ev-chip{font-size:.68rem;padding:3px 6px 3px 8px;} }
@media(max-width:640px)  { .evp-sidebar{grid-template-columns:1fr;} .evp-container{padding:0 1rem;} .big-cal-cell{min-height:76px;padding:.35rem .35rem;} .big-cal-nav{padding:1.1rem 1rem;} .big-cal-nav-month{font-size:1.3rem;} .big-ev-chip{font-size:.62rem;padding:2px 5px 2px 7px;line-height:1.4;} .big-cal-dow span{font-size:.6rem;padding:.6rem 0;} }

/* ── Mobile: show big dots instead of text chips ── */
.mob-dot { display:none; }

@media(max-width:640px) {
  /* Hide text chips, show dot row instead */
  .big-ev-chip { display:none !important; }
  .big-cal-more { display:none !important; }

  /* Dot row sits below the day number */
  .mob-dot {
    display:flex;
    flex-wrap:wrap;
    gap:3px;
    justify-content:center;
    margin-top:4px;
  }
  .mob-dot span {
    width:10px; height:10px;
    border-radius:50%;
    display:block;
    flex-shrink:0;
    box-shadow:0 1px 3px rgba(0,0,0,.2);
    cursor:pointer;
  }
  /* Color map — matches chip colors */
  .mob-dot .md-navy  { background:#16a34a; }  /* green  — general    */
  .mob-dot .md-amber { background:#eab308; }  /* yellow — important  */
  .mob-dot .md-green { background:#2563eb; }  /* blue   — assessment */
  .mob-dot .md-red   { background:#dc2626; }  /* red    — no classes */

  /* Make cell a bit taller to fit dots */
  .big-cal-cell { min-height:64px; }
}

/* ==================================================== */

.page-hero { position:relative; background:linear-gradient(160deg,#0a1628 0%,#0d1f3c 55%,#071020 100%); padding:calc(0rem + 70px) 0 0; overflow:hidden; z-index:0; }
.page-hero-noise { position:absolute; inset:0; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"); background-size:200px 200px; pointer-events:none; opacity:.18; z-index:0; }
.page-hero-glow { position:absolute; top:-60px; right:-80px; width:500px; height:500px; border-radius:50%; background:radial-gradient(circle,rgba(255,255,255,0.04) 0%,transparent 70%); pointer-events:none; z-index:0; }
.page-hero-inner { position:relative; z-index:2; padding-bottom:1rem; }
.page-hero-breadcrumb { display:flex; align-items:center; gap:8px; font-size:.8rem; color:rgba(255,255,255,.45); margin-bottom:1.1rem; }
.page-hero-breadcrumb a { color:rgba(255,255,255,.65); text-decoration:none; transition:color .2s; }
.page-hero-breadcrumb a:hover { color:#fff; }
.page-hero-breadcrumb span { color:rgba(255,255,255,.28); }
.page-hero-title { font-family:'Poppins',Arial,sans-serif; font-size:clamp(2rem,4.5vw,3rem); font-weight:800; color:#fff; line-height:1.15; margin-bottom:.6rem; text-shadow:0 2px 24px rgba(0,0,80,.3); }
.page-hero-sub { font-size:1rem; color:rgba(255,255,255,.65); max-width:520px; line-height:1.65; }
.page-hero-wave { position:relative; z-index:1; display:block; margin-bottom:-2px; line-height:0; }
.page-hero-wave svg { display:block; width:100%; height:45px; }