/* =========================================================
   RMMC SSO — homepage
   Brand: navy → bright-blue gradient · Tinos (Times New Roman
   metrics) for institutional type · Montserrat for UI text
   ========================================================= */
:root{
  --navy-deep:#0D1147;
  --navy:#151B6B;
  --navy-mid:#232C94;
  --blue:#3B4FD6;
  --blue-bright:#3B4FD6;
  --accent:#5AB0FF;
  --sky:#EEF0FB;
  --paper:#F3F4FB;
  --white:#FFFFFF;
  --ink:#151B6B;
  --muted:#6A6F94;
  --line:#E2E4F3;

  --serif:'Times New Roman','Tinos',Times,serif;
  --sans:'Montserrat',system-ui,sans-serif;
  --brand-gradient:linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 38%, var(--navy-mid) 68%, var(--blue-bright) 100%);

  --seal-rmmc:url('seal-rmmc.png');
  --seal-sso:url('seal-sso.png');
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ margin:0; padding:0; overflow-anchor:none; }
body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; }
:focus-visible{ outline:3px solid var(--blue-bright); outline-offset:3px; }

/* ---- Seals (stored once, reused everywhere) ---- */
.seal-rmmc, .seal-sso{
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;
}
.seal-rmmc{ background-image:var(--seal-rmmc); }
.seal-sso{ background-image:var(--seal-sso); }

/* =========================================================
   Announcement ticker
   ========================================================= */
.announce{
  position:relative;
  width:100%; height:26px;
  overflow:hidden;
  display:flex; align-items:center;
  background:linear-gradient(90deg, var(--navy-deep), var(--navy-mid) 55%, var(--blue-bright));
  border-bottom:1px solid rgba(90,176,255,0.35);
}
.announce[hidden]{ display:none; }
.announce-track{
  display:flex; align-items:center;
  white-space:nowrap;
  will-change:transform;
  animation:marquee linear infinite;
  animation-play-state:paused;
}
.announce-track.running{ animation-play-state:running; }
.announce-item{
  display:inline-flex; align-items:center; gap:5px;
  padding-right:26px;
  font-size:9.5px !important;
  font-weight:500 !important;
  line-height:1;
  color:#F1F2FC;
}
.announce-item *{ font:inherit !important; color:inherit !important; }
.announce-item .announce-dot{
  width:4px; height:4px; border-radius:50%;
  background:var(--accent); box-shadow:0 0 8px rgba(90,176,255,0.8);
  flex-shrink:0;
}
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* =========================================================
   Fixed top bar (ticker + header) — stays on screen while scrolling
   ========================================================= */
.topbar{
  position:fixed;
  top:0; left:0; right:0;
  z-index:60;
  padding-top:env(safe-area-inset-top);
  color:var(--white);
  transition:background 0.3s ease, box-shadow 0.3s ease;
}
.topbar :focus-visible{ outline-color:#C9CDF2; }
.topbar.scrolled{
  background:linear-gradient(90deg, rgba(13,17,71,0.96), rgba(21,27,107,0.96) 55%, rgba(35,44,148,0.96));
  -webkit-backdrop-filter:blur(10px);
          backdrop-filter:blur(10px);
  box-shadow:0 10px 30px -12px rgba(13,17,71,0.55);
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:min(88svh, 820px);
  display:flex;
  flex-direction:column;
  padding-top:var(--topbar-h, 104px);
  color:var(--white);
  background:var(--navy-deep);
}
.hero-photo{
  position:absolute; inset:0; z-index:-3;
  background-image:url('hero-photo.jpg');
  background-size:cover;
  background-position:center 35%;
  filter:grayscale(100%) contrast(1.1);
}
.hero-tint{
  position:absolute; inset:0; z-index:-2;
  background:
    linear-gradient(180deg, rgba(13,17,71,0.35) 0%, transparent 30%, transparent 70%, rgba(13,17,71,0.55) 100%),
    linear-gradient(110deg, rgba(13,17,71,0.94) 0%, rgba(21,27,107,0.82) 32%, rgba(35,44,148,0.5) 62%, rgba(59,79,214,0.28) 100%);
}
.hero-tint::after{
  /* duotone: pushes the grey photo into the brand blue */
  content:"";
  position:absolute; inset:0;
  background:var(--blue-bright);
  mix-blend-mode:color;
  opacity:0.7;
}
.hero-watermark{
  position:absolute; z-index:-1;
  right:clamp(-160px,-8vw,-40px);
  top:50%;
  width:clamp(320px,44vw,600px);
  aspect-ratio:1;
  transform:translateY(-46%);
  filter:grayscale(1) brightness(3.2);
  opacity:0.07;
}

.site-header{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:14px clamp(18px,5vw,40px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
  min-width:0;
}
.brand-seal{
  width:44px; height:44px;
  flex:0 0 auto;
  filter:drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}
.brand-text{
  display:flex; flex-direction:column;
  margin-left:4px;
  padding-left:12px;
  border-left:1px solid rgba(255,255,255,0.28);
  line-height:1.2;
}
.brand-text strong{
  font-family:var(--serif);
  font-size:17px;
  font-weight:700;
  letter-spacing:0.08em;
}
.brand-text span{
  font-size:11.5px;
  font-weight:500;
  color:rgba(238,240,251,0.78);
}
.login-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.35);
  background:rgba(255,255,255,0.08);
  backdrop-filter:blur(6px);
  color:var(--white);
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  transition:background 0.2s ease, border-color 0.2s ease;
  flex:0 0 auto;
}
.login-btn svg{ width:16px; height:16px; }
.login-btn:hover{ background:rgba(255,255,255,0.18); border-color:rgba(255,255,255,0.6); }

.hero-content{
  flex:1;
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:clamp(28px,6vh,72px) clamp(18px,5vw,40px) clamp(150px,18vh,190px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
}
.hero-lead{
  margin:0 0 10px;
  font-family:var(--serif);
  font-style:italic;
  font-size:clamp(17px,2vw,21px);
  color:#C9CDF2;
}
.hero-title{
  margin:0;
  max-width:20ch;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(34px,6vw,70px);
  line-height:1.04;
  letter-spacing:-0.005em;
  text-wrap:balance;
  text-shadow:0 2px 30px rgba(13,17,71,0.45);
}
.hero-rule{
  display:block;
  width:72px; height:3px;
  margin:clamp(18px,3vw,26px) 0 clamp(14px,2.4vw,20px);
  border-radius:3px;
  background:linear-gradient(90deg, var(--accent), var(--blue-bright));
}
.hero-office{
  margin:0;
  font-family:var(--serif);
  font-size:clamp(15px,2vw,21px);
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--sky);
}
.hero-sub{
  margin:clamp(16px,2.6vw,22px) 0 0;
  max-width:56ch;
  font-size:clamp(14px,1.6vw,16px);
  line-height:1.65;
  color:rgba(238,240,251,0.84);
}
.hero-actions{
  display:flex; flex-wrap:wrap; gap:12px;
  margin-top:clamp(22px,3.4vw,32px);
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:46px;
  padding:0 24px;
  border-radius:999px;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  transition:transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn-light{
  background:var(--white);
  color:var(--navy);
  box-shadow:0 10px 28px -10px rgba(0,0,0,0.5);
}
.btn-light:hover{ transform:translateY(-2px); background:var(--sky); }
.btn-ghost{
  border:1px solid rgba(255,255,255,0.45);
  color:var(--white);
}
.btn-ghost:hover{ background:rgba(255,255,255,0.1); border-color:var(--white); }
.hero :focus-visible{ outline-color:#C9CDF2; }

/* one orchestrated entrance, hero only */
.hero-lead, .hero-title, .hero-rule, .hero-office, .hero-sub, .hero-actions{
  opacity:0;
  animation:rise 0.8s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-title{ animation-delay:0.08s; }
.hero-rule{ animation-delay:0.22s; }
.hero-office{ animation-delay:0.3s; }
.hero-sub{ animation-delay:0.38s; }
.hero-actions{ animation-delay:0.46s; }
@keyframes rise{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:none; } }

/* =========================================================
   Services (cards overlap the hero)
   ========================================================= */
.services{
  position:relative;
  z-index:2;
  max-width:1180px;
  margin:calc(-1 * clamp(96px,12vh,120px)) auto 0;
  padding:0 clamp(18px,5vw,40px) clamp(56px,8vw,88px);
  scroll-margin-top:calc(var(--topbar-h, 104px) + 16px);
}
.services-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:clamp(14px,2vw,22px);
}
.card{
  position:relative;
  overflow:hidden;
  display:flex; flex-direction:column; align-items:flex-start;
  gap:10px;
  padding:26px 24px 22px;
  border-radius:16px;
  background:var(--white);
  border:1px solid var(--line);
  box-shadow:0 22px 44px -24px rgba(13,17,71,0.45);
  color:var(--ink);
  text-decoration:none;
  -webkit-tap-highlight-color:transparent;
  transition:transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::before{
  content:"";
  position:absolute; left:0; right:0; top:0;
  height:4px;
  background:var(--brand-gradient);
}
.card:hover{
  transform:translateY(-4px);
  border-color:rgba(59,79,214,0.4);
  box-shadow:0 28px 50px -22px rgba(13,17,71,0.5);
}
.card-icon{
  width:46px; height:46px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--blue-bright), var(--navy-mid));
  box-shadow:0 8px 18px -6px rgba(59,79,214,0.55);
}
.card-icon svg{ width:22px; height:22px; stroke:#fff; }
.card-title{
  margin-top:6px;
  font-size:17px;
  font-weight:700;
  letter-spacing:-0.01em;
  color:var(--navy);
}
.card-desc{
  font-size:13.5px;
  line-height:1.55;
  color:var(--muted);
}
.card-go{
  margin-top:auto;
  padding-top:10px;
  display:inline-flex; align-items:center; gap:6px;
  font-size:13px;
  font-weight:700;
  color:var(--blue-bright);
  transition:gap 0.2s ease;
}
.card-go svg{ width:14px; height:14px; }
.card:hover .card-go{ gap:10px; }

/* =========================================================
   Campus life (carousel)
   ========================================================= */
.campus{
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(18px,5vw,40px) clamp(56px,8vw,88px);
}
.campus[hidden]{ display:none; }
.section-head{ margin-bottom:clamp(18px,3vw,26px); }
.section-title{
  margin:0;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(26px,3.6vw,38px);
  line-height:1.1;
  color:var(--navy);
}
.section-sub{
  margin:8px 0 0;
  font-size:14.5px;
  color:var(--muted);
}
.carousel{
  position:relative;
  width:100%;
  aspect-ratio:21/9;
  border-radius:18px;
  overflow:hidden;
  background:var(--navy-deep);
  box-shadow:0 24px 50px -24px rgba(13,17,71,0.5);
}
.carousel-track{
  display:flex;
  width:100%; height:100%;
  transition:transform 0.55s cubic-bezier(0.65,0,0.35,1);
}
.carousel-slide{
  flex:0 0 100%;
  width:100%; height:100%;
  position:relative;
}
.carousel-slide img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.carousel-slide .caption{
  position:absolute; left:0; right:0; bottom:0;
  padding:40px 22px 34px;
  background:linear-gradient(0deg, rgba(13,17,71,0.85), transparent);
  color:#fff;
  font-size:14px;
  font-weight:600;
}
.carousel-nav{
  position:absolute; left:0; right:0; bottom:12px;
  display:flex; justify-content:center; gap:6px;
  z-index:2;
}
.carousel-nav button{
  width:8px; height:8px;
  border-radius:999px;
  border:none; padding:0;
  background:rgba(255,255,255,0.45);
  cursor:pointer;
  transition:width 0.25s ease, background 0.25s ease;
}
.carousel-nav button.active{ width:22px; background:#fff; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  position:relative;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(59,79,214,0.28), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  color:var(--sky);
}
.site-footer::before{
  content:"";
  position:absolute; left:0; right:0; top:0;
  height:4px;
  background:linear-gradient(90deg, var(--navy-mid), var(--blue-bright), var(--accent));
}
.site-footer :focus-visible{ outline-color:#C9CDF2; }
.footer-inner{
  max-width:1180px;
  margin:0 auto;
  padding:clamp(44px,7vw,72px) clamp(18px,5vw,40px) calc(28px + env(safe-area-inset-bottom));
}
.footer-brand{
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  padding-bottom:clamp(24px,4vw,32px);
  margin-bottom:clamp(24px,4vw,32px);
  border-bottom:1px solid rgba(255,255,255,0.12);
}
.footer-seals{ display:flex; gap:8px; flex:0 0 auto; }
.footer-seals .brand-seal{ width:56px; height:56px; }
.footer-name{
  margin:0;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(20px,2.8vw,28px);
  line-height:1.15;
  color:var(--white);
}
.footer-tagline{
  margin:0;
  font-family:var(--serif);
  font-style:italic;
  font-size:clamp(20px,3vw,30px);
  line-height:1.3;
  color:#C9CDF2;
  text-wrap:balance;
}

#visit{ scroll-margin-top:calc(var(--topbar-h, 104px) + 16px); }
.footer-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:clamp(14px,2.4vw,22px);
}
.footer-panel{
  min-width:0;
  padding:clamp(18px,3vw,24px);
  border-radius:16px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.12);
}
.footer-sdg{ grid-column:1 / -1; }
.footer-heading{
  margin:0;
  font-family:var(--serif);
  font-weight:700;
  font-size:20px;
  color:var(--white);
}
.footer-note{
  margin:4px 0 0;
  font-size:13px;
  line-height:1.5;
  color:rgba(238,240,251,0.72);
}

.map-frame{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  margin-top:16px;
  border-radius:12px;
  overflow:hidden;
  background:var(--navy-mid);
  border:1px solid rgba(255,255,255,0.14);
}
.map-frame iframe{
  position:absolute; inset:0;
  width:100%; height:100%;
  border:0;
}
.map-open{
  display:inline-flex; align-items:center; gap:7px;
  margin-top:14px;
  font-size:13px;
  font-weight:600;
  color:#C9CDF2;
  text-decoration:none;
}
.map-open svg{ width:16px; height:16px; }
.map-open:hover{ color:var(--white); text-decoration:underline; text-underline-offset:3px; }

.contact-list{
  list-style:none;
  margin:14px 0 0;
  padding:0;
}
.contact-list li + li{ border-top:1px solid rgba(255,255,255,0.1); }
.contact-list a{
  display:flex; align-items:center; gap:12px;
  padding:13px 2px;
  font-size:14px;
  font-weight:500;
  color:var(--sky);
  text-decoration:none;
  word-break:break-word;
}
.contact-list svg{
  width:34px; height:34px;
  padding:8px;
  flex:0 0 auto;
  border-radius:10px;
  background:linear-gradient(135deg, var(--blue-bright), var(--navy-mid));
  color:#fff;
}
.footer-support{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  gap:12px;
  margin-top:16px;
  padding:14px 16px;
  border-radius:12px;
  background:rgba(59,79,214,0.18);
  border:1px solid rgba(90,176,255,0.25);
  font-size:13px;
  line-height:1.5;
  color:rgba(238,240,251,0.85);
}
.footer-support p{ margin:0; flex:1 1 180px; }
.footer-support a{
  display:inline-flex; align-items:center;
  padding:8px 14px;
  border-radius:999px;
  background:var(--white);
  color:var(--navy);
  font-size:12.5px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
}
.footer-support a:hover{ background:var(--sky); }
.contact-list a:hover span{ color:var(--white); text-decoration:underline; text-underline-offset:3px; }

.sdg-head{ display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.sdg-wheel{
  width:46px;
  aspect-ratio:1;
  flex:0 0 auto;
  border-radius:50%;
  background:conic-gradient(#E5243B 0 5.88%, #DDA63A 0 11.76%, #4C9F38 0 17.65%, #C5192D 0 23.53%, #FF3A21 0 29.41%, #26BDE2 0 35.29%, #FCC30B 0 41.18%, #A21942 0 47.06%, #FD6925 0 52.94%, #DD1367 0 58.82%, #FD9D24 0 64.71%, #BF8B2E 0 70.59%, #3F7E44 0 76.47%, #0A97D9 0 82.35%, #56C02B 0 88.24%, #00689D 0 94.12%, #19486A 0);
  -webkit-mask:radial-gradient(farthest-side, transparent 55%, #000 56%);
          mask:radial-gradient(farthest-side, transparent 55%, #000 56%);
}
.sdg-grid{
  display:grid;
  grid-template-columns:repeat(9, 1fr);
  gap:8px;
}
.sdg-tile{
  aspect-ratio:1;
  min-width:0;
  display:flex; flex-direction:column; gap:4px;
  padding:8px;
  border-radius:8px;
  overflow:hidden;
  background:var(--c);
  color:#fff;
  text-decoration:none;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}
.sdg-tile:hover, .sdg-tile:focus-visible{
  transform:translateY(-3px);
  box-shadow:0 10px 20px -8px rgba(0,0,0,0.5);
}
.sdg-num{
  font-size:clamp(16px,1.9vw,22px);
  font-weight:800;
  line-height:1;
}
.sdg-name{
  font-size:clamp(7px,0.8vw,9px);
  font-weight:700;
  line-height:1.15;
  letter-spacing:0.02em;
  text-transform:uppercase;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.sdg-tile.sdg-all{
  align-items:center; justify-content:center;
  background:var(--white);
}
.sdg-tile.sdg-all .sdg-wheel{ width:64%; }

.footer-bottom{
  display:flex; flex-wrap:wrap;
  align-items:center; justify-content:space-between;
  gap:10px 20px;
  margin-top:clamp(28px,4vw,40px);
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,0.12);
  font-size:12.5px;
  color:rgba(238,240,251,0.65);
}
.footer-bottom p{ margin:0; }
.footer-bottom a{ color:#C9CDF2; font-weight:600; text-decoration:none; }
.footer-bottom a:hover{ color:var(--white); text-decoration:underline; }
.footer-legal{ display:flex; flex-wrap:wrap; gap:6px 20px; }

/* =========================================================
   Floating support button + ripple
   ========================================================= */
.support-fab{
  position:fixed;
  right:20px; bottom:calc(20px + env(safe-area-inset-bottom));
  z-index:50;
  display:flex; align-items:center; gap:9px;
  padding:13px 16px;
  border-radius:999px;
  overflow:hidden;
  background:linear-gradient(135deg, var(--blue-bright), var(--navy-mid));
  color:var(--white);
  text-decoration:none;
  font-weight:700; font-size:13px;
  box-shadow:0 12px 28px -8px rgba(13,17,71,0.55), 0 0 0 1px rgba(255,255,255,0.15) inset;
  transition:transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease;
}
.support-fab svg{ width:20px; height:20px; flex:0 0 auto; }
.support-fab:hover{ transform:translateY(-3px); }
.support-fab-label{ white-space:nowrap; }

.ripple{
  position:absolute;
  border-radius:50%;
  background:radial-gradient(circle, rgba(59,79,214,0.28), transparent 70%);
  transform:scale(0);
  pointer-events:none;
  animation:ripple-expand 0.6s ease-out forwards;
}
.support-fab .ripple{ background:radial-gradient(circle, rgba(255,255,255,0.5), transparent 70%); }
@keyframes ripple-expand{ to{ transform:scale(1); opacity:0; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:900px){
  .services-grid{ grid-template-columns:1fr; max-width:560px; margin:0 auto; }
  .footer-grid{ grid-template-columns:1fr; }
  .sdg-grid{ grid-template-columns:repeat(6, 1fr); }
  .sdg-name{ font-size:8.5px; }
  .carousel{ aspect-ratio:16/9; }
}

@media (max-width:640px){
  .hero{ min-height:auto; }
  .hero-content{ padding-top:24px; padding-bottom:130px; }
  .hero-title{ font-size:clamp(30px,9vw,40px); max-width:none; }
  .hero-office{ letter-spacing:0.16em; }
  .hero-actions{ width:100%; }
  .btn{ flex:1 1 auto; min-height:44px; padding:0 18px; font-size:13.5px; }
  .hero-watermark{ width:340px; right:-120px; top:58%; opacity:0.08; }

  .brand-seal{ width:38px; height:38px; }
  .brand-text strong{ font-size:15px; }
  .brand-text span{ font-size:10.5px; }

  .services{ margin-top:-96px; }
  .card{ padding:20px 18px 18px; gap:8px; }
  .card-icon{ width:40px; height:40px; border-radius:11px; }
  .card-icon svg{ width:19px; height:19px; }
  .card-title{ font-size:16px; margin-top:4px; }
  .card-desc{ font-size:13px; }

  .carousel{ border-radius:14px; aspect-ratio:4/3; }
  .carousel-slide .caption{ font-size:12.5px; padding:30px 16px 28px; }

  .footer-brand{ flex-direction:column; align-items:center; }
  .footer-seals .brand-seal{ width:48px; height:48px; }
  .footer-inner{ padding-bottom:calc(96px + env(safe-area-inset-bottom)); }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
}

@media (max-width:520px){
  .sdg-grid{ gap:6px; }
  .sdg-name{ display:none; }
  .sdg-tile{ align-items:center; justify-content:center; padding:4px; border-radius:6px; }
  .sdg-num{ font-size:16px; }
}

@media (max-width:420px){
  .brand-text span{ display:none; }
  .login-btn{ padding:9px 13px; font-size:12.5px; }
  .support-fab{ right:14px; bottom:calc(14px + env(safe-area-inset-bottom)); padding:11px 14px; font-size:12px; }
  .support-fab svg{ width:18px; height:18px; }
}

@media (max-width:360px){
  .brand-seal.seal-sso{ display:none; }
  .brand-text{ margin-left:0; }
}

/* =========================================================
   Partner logos (scrolling strip above the footer)
   ========================================================= */
.partners{
  background:var(--white);
  border-top:1px solid var(--line);
  padding:clamp(28px,4vw,44px) 0;
  overflow:hidden;
}
.partners[hidden]{ display:none; }
.partners-title{
  position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.partners-viewport{
  max-width:1180px;
  margin:0 auto;
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.partners-track{
  display:flex;
  width:max-content;
  animation:partners-scroll var(--partners-duration, 40s) linear infinite;
  will-change:transform;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
.partners-track.is-static{ animation:none; margin:0 auto; }
.partners-viewport:hover .partners-track,
.partners-track:focus-within{ animation-play-state:paused; }
.partner-card{
  flex:0 0 auto;
  width:clamp(128px,15vw,176px);
  height:clamp(92px,10vw,120px);
  margin-right:clamp(12px,2vw,22px);
  display:flex; align-items:center; justify-content:center;
  padding:clamp(6px,1vw,10px);
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  transition:border-color 0.2s ease, box-shadow 0.2s ease;
}
.partner-card img{ width:100%; height:100%; object-fit:contain; display:block; }
a.partner-card:hover,
a.partner-card:focus-visible{ border-color:rgba(59,79,214,0.4); box-shadow:0 14px 30px -20px rgba(13,17,71,0.45); outline:none; }
@keyframes partners-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .partners-track{ animation:none !important; flex-wrap:wrap; justify-content:center; width:auto; row-gap:14px; }
  .partners-viewport{ -webkit-mask-image:none; mask-image:none; padding:0 clamp(18px,5vw,40px); }
  .partner-card.is-copy{ display:none; }
  *, *::before, *::after{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
  .announce-track{ animation:none; }
  .announce{ overflow-x:auto; }
  .ripple{ display:none; }
}


/* =========================================================
   News & updates (homepage section + news.html)
   ========================================================= */
.news{
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(18px,5vw,40px) clamp(56px,8vw,88px);
}
.news[hidden]{ display:none; }
.news-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.news-all{
  font-size:14px; font-weight:700; color:var(--blue); text-decoration:none; white-space:nowrap;
}
.news-all:hover{ text-decoration:underline; text-underline-offset:3px; }
.news-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:clamp(14px,2vw,22px);
}
.news-card{
  display:flex; flex-direction:column;
  border-radius:16px; overflow:hidden;
  background:var(--white);
  border:1px solid var(--line);
  box-shadow:0 22px 44px -28px rgba(13,17,71,0.45);
  color:var(--ink); text-decoration:none;
  transition:transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.news-card:hover{ transform:translateY(-4px); border-color:rgba(59,79,214,0.4); box-shadow:0 28px 50px -24px rgba(13,17,71,0.5); }
.news-card-img{
  position:relative; aspect-ratio:16 / 9; overflow:hidden;
  background:var(--brand-gradient);
  display:flex; align-items:center; justify-content:center;
}
.news-card-img img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.4s ease; }
.news-card:hover .news-card-img img{ transform:scale(1.05); }
.news-card-seal{ width:64px; height:64px; opacity:0.9; background-size:contain; background-repeat:no-repeat; background-position:center; }
.news-card-pin{
  position:absolute; top:10px; left:10px;
  font-size:11px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--navy); background:#fff; border-radius:999px; padding:4px 10px;
}
.news-card-body{ display:flex; flex-direction:column; gap:8px; padding:18px 20px 20px; flex:1 1 auto; }
.news-card-date{ font-size:12px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:var(--blue); }
.news-card-title{ margin:0; font-size:17px; font-weight:800; line-height:1.3; color:var(--navy); }
.news-card-text{
  margin:0; font-size:14px; line-height:1.55; color:var(--muted);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.news-card-more{ margin-top:auto; padding-top:6px; display:inline-flex; align-items:center; gap:6px; font-size:13.5px; font-weight:700; color:var(--blue); }
.news-card-more svg{ width:14px; height:14px; }

/* news.html */
.news-body{ background:var(--paper); min-height:100vh; display:flex; flex-direction:column; }
.news-topbar{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:14px clamp(18px,5vw,40px);
  background:var(--brand-gradient); color:#fff;
  position:sticky; top:0; z-index:10;
}
.news-home{ color:#fff; font-size:14px; font-weight:700; text-decoration:none; white-space:nowrap; }
.news-home:hover{ text-decoration:underline; text-underline-offset:3px; }
.news-page{ width:100%; max-width:1180px; margin:0 auto; padding:clamp(28px,5vw,48px) clamp(18px,5vw,40px) clamp(48px,7vw,72px); flex:1 0 auto; }
.news-article{ max-width:760px; margin:0 auto; background:var(--white); border:1px solid var(--line); border-radius:18px; padding:clamp(22px,4vw,44px); box-shadow:0 22px 44px -30px rgba(13,17,71,0.4); }
.news-article .news-card-date{ display:block; }
.news-back{ display:inline-block; margin-bottom:18px; font-size:14px; font-weight:700; color:var(--blue); text-decoration:none; }
.news-back:hover{ text-decoration:underline; text-underline-offset:3px; }
.news-article-title{ margin:8px 0 18px; font-family:var(--serif); font-size:clamp(26px,4vw,38px); line-height:1.15; color:var(--navy); }
.news-article-cover{ width:100%; height:auto; border-radius:12px; margin:0 0 22px; display:block; }
.news-article-body{ font-size:16px; line-height:1.75; color:#2A2F55; overflow-wrap:break-word; }
.news-article-body h2, .news-article-body h3{ font-family:var(--serif); color:var(--navy); line-height:1.25; margin:26px 0 10px; }
.news-article-body p{ margin:0 0 14px; }
.news-article-body img{ max-width:100%; height:auto; border-radius:10px; margin:10px 0; }
.news-article-body a{ color:var(--blue); }
.news-article-body ul, .news-article-body ol{ padding-left:22px; margin:0 0 14px; }
.news-empty{ max-width:640px; margin:0 auto; text-align:center; }
.news-footer{ text-align:center; font-size:12.5px; color:var(--muted); padding:22px 16px 28px; }

@media (max-width:900px){
  .news-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:640px){
  .news-grid{ grid-template-columns:1fr; }
  .news .news-card:nth-child(n+5){ display:none; }   /* homepage: 4 posts on phones */
  .news-topbar .brand-text{ display:none; }
}

/* ---- Login chooser (student vs staff) ---- */
.login-chooser{
  width:min(460px, calc(100% - 32px));
  border:none; border-radius:20px; padding:30px 26px 22px;
  background:var(--white); color:var(--ink); font-family:var(--sans);
  box-shadow:0 24px 70px rgba(13,17,71,0.35);
}
.login-chooser::backdrop{ background:rgba(13,17,71,0.55); backdrop-filter:blur(3px); }
.login-chooser[open]{ animation:lcIn .22s ease-out; }
@keyframes lcIn{ from{ opacity:0; transform:translateY(12px) scale(.97); } to{ opacity:1; transform:none; } }
.lc-close{
  position:absolute; top:14px; right:14px; width:34px; height:34px; border-radius:50%;
  border:none; background:var(--sky); color:var(--navy); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.lc-close svg{ width:16px; height:16px; }
.lc-close:hover{ background:var(--line); }
.lc-title{ margin:0 0 6px; font-size:22px; font-weight:800; color:var(--navy); text-align:center; }
.lc-sub{ margin:0 0 20px; font-size:14px; color:var(--muted); text-align:center; }
.lc-options{ display:flex; flex-direction:column; gap:12px; }
.lc-option{
  display:flex; align-items:center; gap:14px; padding:16px;
  border:1.5px solid var(--line); border-radius:14px; text-decoration:none; color:var(--ink);
  transition:border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.lc-option:hover, .lc-option:focus-visible{
  border-color:var(--blue); background:var(--sky); transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(21,27,107,0.10); outline:none;
}
.lc-icon{
  flex:0 0 auto; width:44px; height:44px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; background:var(--brand-gradient);
}
.lc-staff .lc-icon{ background:var(--navy-deep); }
.lc-icon svg{ width:22px; height:22px; stroke:#fff; }
.lc-text{ display:flex; flex-direction:column; gap:3px; min-width:0; flex:1; }
.lc-text strong{ font-size:15px; font-weight:700; color:var(--navy); }
.lc-text span{ font-size:12.5px; color:var(--muted); line-height:1.4; }
.lc-arrow{ flex:0 0 auto; width:18px; height:18px; color:var(--blue); }
.lc-note{ margin:18px 0 0; font-size:12px; color:var(--muted); text-align:center; line-height:1.5; }
@media (max-width:420px){
  .login-chooser{ padding:26px 18px 18px; }
  .lc-title{ font-size:20px; }
  .lc-option{ padding:14px 12px; gap:12px; }
}
