/* =========================================================
   Shivai Institute of Nursing — modern theme (v3)
   Nursing palette: deep navy (trust) · medical teal (care)
   · soft mint (clean wards) · rose (compassion / heartbeat)
   ========================================================= */

:root {
  --navy: #0A2540;
  --navy-2: #0F3460;
  --teal: #0E9F96;
  --teal-deep: #087C75;
  --teal-light: #5FD3C9;
  --mint: #E8F7F5;
  --mint-2: #D3F0EC;
  --rose: #E4566F;
  --rose-deep: #C93C56;
  --rose-soft: #FDEDF0;
  --sky: #F6FBFC;
  --white: #FFFFFF;
  --ink: #142B44;
  --muted: #5B6F84;
  --line: #DCE8EE;

  --f-head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 32px;
  --wrap: 1240px;
  --shadow-sm: 0 2px 6px rgba(10, 37, 64, .06);
  --shadow: 0 10px 30px -10px rgba(10, 37, 64, .18);
  --shadow-lg: 0 24px 60px -18px rgba(10, 37, 64, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sky);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.12; margin: 0 0 .5em; color: var(--navy); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px;
  font: 700 .95rem/1.2 var(--f-body); text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn::after { /* light sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .95em 1.7em; font-size: 1rem; }
.btn-rose { background: var(--rose); color: #fff; box-shadow: 0 10px 22px -8px rgba(228, 86, 111, .65); }
.btn-rose:hover { background: var(--rose-deep); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 10px 22px -8px rgba(14, 159, 150, .6); }
.btn-teal:hover { background: var(--teal-deep); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { color: var(--rose-deep); }
.btn-glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-outline { border-color: var(--teal); color: var(--teal-deep); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-link { padding-left: .4em; padding-right: .4em; color: var(--navy); }
.btn-link:hover { color: var(--rose); transform: none; }
.btn-link .ic { transition: transform .25s var(--ease); }
.btn-link:hover .ic { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #BFD3E6; font-size: .84rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar-item, .topbar-links a { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item .ic, .topbar-links .ic { color: var(--teal-light); }
.topbar-links { display: flex; gap: 22px; }
.topbar a { color: #E4EEF7; text-decoration: none; transition: color .2s; }
.topbar a:hover { color: #fff; }

/* ---------- Brand bar ---------- */
.brandbar { background: #fff; position: relative; z-index: 60; }
.brandbar-in { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-logo { position: relative; flex: none; }
.brand-logo::before { /* soft pulse ring behind the logo */
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--mint-2); animation: ring 3s ease-out infinite;
}
.brand-logo img { width: 78px; height: 78px; position: relative; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-trust { font-size: .8rem; color: var(--rose-deep); font-weight: 700; }
.brand-name { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.9rem); color: var(--navy); letter-spacing: -0.01em; }
.brand-place { font-size: .86rem; color: var(--muted); }
.brand-side { display: flex; align-items: center; gap: 18px; }
.quick { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.quick small { display: block; font-size: .76rem; color: var(--muted); }
.quick strong { font-family: var(--f-head); font-size: 1.15rem; color: var(--navy); }
.quick-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--mint); color: var(--teal-deep); display: grid; place-items: center; position: relative; }
.quick-ic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal); opacity: 0; animation: ring 2.4s ease-out infinite; }
.quick-ic .ic { width: 20px; height: 20px; }

@keyframes ring { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Navigation bar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 90;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal) 55%, #12B3A4);
  box-shadow: 0 6px 20px -10px rgba(10, 37, 64, .45);
}
.navbar-in { position: relative; }
.navbar.is-stuck { background: linear-gradient(90deg, var(--navy), var(--navy-2)); }
.drawer-head, .drawer-foot { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; justify-content: space-between; }
.nav-item { position: relative; }
.nav-item.is-mega { position: static; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 5px; height: 56px;
  padding: 0 14px; color: #fff; text-decoration: none; white-space: nowrap;
  font: 600 .95rem/1 var(--f-body); background: none; border: 0; cursor: pointer;
}
.nav-link::after { /* animated underline */
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 3px; border-radius: 3px;
  background: var(--rose); transform: scaleX(0); transform-origin: center; transition: transform .3s var(--ease);
}
.nav-item:hover > .nav-link::after, .nav-item.is-open > .nav-link::after, .nav-item.is-active > .nav-link::after { transform: scaleX(1); }
.nav-item.is-active > .nav-link::after { background: #fff; }
.nav-link:hover { color: #fff; }
.caret { width: 15px; height: 15px; transition: transform .3s var(--ease); opacity: .85; }
.nav-item:hover .caret, .nav-item.is-open .caret { transform: rotate(180deg); }

/* Dropdown panels (desktop) */
.dropdown {
  position: absolute; top: 100%; left: 0; z-index: 95;
  background: #fff; border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: perspective(900px) rotateX(-12deg) translateY(10px);
  transform-origin: top center;
  transition: opacity .28s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}
.dropdown::before { /* colour strip on top */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--rose), var(--teal-light));
}
@media (min-width: 1101px) {
  .nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown, .nav-item.is-open > .dropdown {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    transition: opacity .28s var(--ease), transform .35s var(--ease), visibility 0s;
  }
}
.drop { list-style: none; margin: 0; padding: 14px 10px 10px; min-width: 290px; }
.nav-item.flip > .drop { left: auto; right: 0; min-width: 330px; }
.drop > li { position: relative; }

/* staggered entrance of menu links */
@media (min-width: 1101px) {
  .dropdown .m-link { opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s, color .2s, padding .25s var(--ease); }
  .nav-item:hover .m-link, .nav-item:focus-within .m-link, .nav-item.is-open .m-link { opacity: 1; transform: none; }
  .drop > li:nth-child(2) .m-link, .mega-col:nth-child(2) .m-link { transition-delay: .04s; }
  .drop > li:nth-child(3) .m-link, .mega-col:nth-child(3) .m-link { transition-delay: .08s; }
  .drop > li:nth-child(4) .m-link, .mega-col:nth-child(4) .m-link { transition-delay: .12s; }
  .drop > li:nth-child(5) .m-link, .mega-col:nth-child(5) .m-link { transition-delay: .16s; }
  .nav-item .m-link:hover { transition-delay: 0s; }
}

.m-link {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 10px; border: 0; background: none; cursor: pointer;
  color: var(--ink); text-decoration: none; font: 600 .92rem/1.35 var(--f-body); text-align: left;
}
.m-text { flex: 1; }
.mi-wrap { width: 34px; height: 34px; border-radius: 10px; background: var(--mint); color: var(--teal-deep); display: grid; place-items: center; flex: none; transition: background-color .2s, color .2s, transform .3s var(--ease); }
.mi { width: 17px; height: 17px; }
.m-link:hover, .m-link:focus-visible, .has-fly:hover > .m-link { background: var(--sky); color: var(--teal-deep); padding-left: 16px; }
.m-link:hover .mi-wrap, .has-fly:hover > .m-link .mi-wrap { background: var(--teal); color: #fff; transform: rotate(-8deg) scale(1.05); }
.m-link[aria-current="page"] { background: var(--rose-soft); color: var(--rose-deep); }
.m-link[aria-current="page"] .mi-wrap { background: var(--rose); color: #fff; }
.m-link em { font-style: normal; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #EEF2F6; color: var(--muted); }
.m-link em.pdf { background: var(--rose-soft); color: var(--rose-deep); }
.m-link.is-soon { cursor: default; color: #8A9AAB; }
.m-link.is-soon:hover { background: none; padding-left: 12px; color: #8A9AAB; }
.m-link.is-soon .mi-wrap { background: #F1F4F7; color: #9AAABB; transform: none; }
.fly-caret { width: 16px; height: 16px; color: var(--muted); transition: transform .25s var(--ease); }
.has-fly:hover .fly-caret { transform: translateX(3px); color: var(--teal); }

/* fly-out sub menus */
.fly {
  list-style: none; margin: 0; padding: 10px; min-width: 410px;
  position: absolute; top: -10px; left: calc(100% + 10px);
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--teal);
  opacity: 0; visibility: hidden; transform: translateX(-10px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.fly::before { content: ""; position: absolute; top: 0; bottom: 0; left: -16px; width: 16px; } /* hover bridge */
.nav-item.flip .fly { left: auto; right: calc(100% + 10px); transform: translateX(10px); border-left: 0; border-right: 4px solid var(--teal); }
.nav-item.flip .fly::before { left: auto; right: -16px; }
@media (min-width: 1101px) {
  .has-fly:hover > .fly, .has-fly:focus-within > .fly, .has-fly.is-open > .fly {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .fly .m-link { opacity: 1 !important; transform: none !important; }
}

/* Mega menu */
.mega { left: 22px; right: 22px; display: grid; grid-template-columns: 1fr 270px; gap: 0; overflow: hidden; }
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; gap: 6px 10px; padding: 26px 22px 20px; }
.mega-title { font: 700 .8rem/1 var(--f-body); color: var(--rose-deep); margin: 0 0 8px 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); letter-spacing: .02em; }
.mega-card {
  position: relative; overflow: hidden; margin: 18px; border-radius: var(--r-md);
  background: radial-gradient(circle at 100% 0%, rgba(95,211,201,.45), transparent 55%), linear-gradient(150deg, var(--navy), var(--teal-deep));
  color: #fff; padding: 24px 22px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px;
}
.mc-small { font-size: .85rem; color: #BFE7E3; margin: 0 0 4px; position: relative; }
.mc-big { font: 700 1.3rem/1.2 var(--f-head); margin: 0 0 16px; position: relative; }
.mega-card .btn { align-self: flex-start; position: relative; }
.mc-ecg { position: absolute; left: 0; right: 0; top: 24px; height: 60px; width: 100%; opacity: .5; }

/* Menu button */
.menu-btn { display: none; width: 50px; height: 50px; border-radius: 14px; border: 0; background: var(--mint); cursor: pointer; flex: none; position: relative; z-index: 120; }
.bars { display: grid; gap: 5px; width: 22px; margin: 0 auto; }
.bars span { display: block; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Mobile / tablet navigation ---------- */
@media (max-width: 1100px) {
  .topbar-item { display: none; }
  .topbar-in { justify-content: center; }
  .brand-side { display: none; }
  .menu-btn { display: block; }
  .brandbar { position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 16px -8px rgba(10,37,64,.25); }
  .brand-logo img { width: 56px; height: 56px; }
  .brand-place { display: none; }
  .navbar {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(390px, 90vw); z-index: 110;
    background: #fff; box-shadow: -20px 0 50px rgba(10,37,64,.25);
    transform: translateX(105%); transition: transform .4s var(--ease);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .navbar.is-stuck { background: #fff; }
  .navbar.is-open { transform: none; }
  .navbar-in { padding: 0 18px 28px; }
  .drawer-head { display: flex; align-items: center; gap: 12px; padding: 20px 4px 16px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
  .drawer-head strong { font-family: var(--f-head); font-size: 1.3rem; color: var(--navy); }
  .nav-list { flex-direction: column; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; height: auto; padding: 15px 6px; color: var(--navy); justify-content: space-between; font-size: 1.02rem; }
  .nav-link:hover, .nav-item.is-open > .nav-link { color: var(--teal-deep); }
  .nav-link::after { display: none; }
  .nav-item.is-active > .nav-link { color: var(--rose-deep); }
  .caret { opacity: 1; }
  .nav-item:hover .caret { transform: none; }
  .nav-item.is-open .caret { transform: rotate(180deg); }
  .dropdown, .fly {
    position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    box-shadow: none; border-radius: 0; min-width: 0; display: none; transition: none;
  }
  .dropdown::before { display: none; }
  .nav-item.is-open > .dropdown { display: block; animation: drop-in .35s var(--ease); }
  .drop { padding: 0 0 12px; }
  .mega { display: none; padding-bottom: 10px; }
  .nav-item.is-open > .mega { display: block; }
  .mega-cols { display: block; padding: 0; }
  .mega-col + .mega-col { margin-top: 10px; }
  .mega-title { margin-left: 6px; }
  .mega-card { display: none; }
  .fly { border: 0; padding: 4px 0 6px 22px; }
  .nav-item.flip .fly { border: 0; }
  .has-fly.is-open > .fly { display: block; animation: drop-in .3s var(--ease); }
  .has-fly.is-open .fly-caret { transform: rotate(90deg); }
  .drawer-foot { display: grid; gap: 10px; margin-top: 22px; }
  .nav-overlay { position: fixed; inset: 0; z-index: 105; background: rgba(10,37,64,.5); backdrop-filter: blur(2px); animation: fade .3s; }
  body.nav-open { overflow: hidden; }
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@media (max-width: 560px) {
  .topbar .hide-sm { display: none; }
  .brand { gap: 10px; }
  .brand-logo img { width: 48px; height: 48px; }
  .brand-name { font-size: 1.12rem; }
  .brand-trust { font-size: .7rem; }
  .brandbar-in { padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .menu-btn { width: 46px; height: 46px; }
}

/* ---------- Load animation ---------- */
.anim { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Scroll reveal (activated by JS) */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- ECG line ---------- */
.ecg { display: block; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ecg path { stroke-dasharray: 1700; stroke-dashoffset: 1700; animation: ecg 4.5s linear infinite; }
@keyframes ecg { 0% { stroke-dashoffset: 1700; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.mc-ecg path { stroke: rgba(255,255,255,.7); stroke-width: 2.5; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 90% -10%, rgba(95,211,201,.35), transparent 60%),
              linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 45%, var(--teal-deep) 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 16s ease-in-out infinite alternate; }
.b1 { width: 420px; height: 420px; background: #13B3A5; left: -120px; bottom: -160px; }
.b2 { width: 320px; height: 320px; background: var(--rose); right: 8%; top: -140px; opacity: .3; animation-duration: 20s; }
.b3 { width: 260px; height: 260px; background: #3A6FD8; left: 40%; top: 30%; opacity: .25; animation-duration: 24s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(60px,-40px) scale(1.15); } }
.plus { position: absolute; width: 26px; height: 26px; opacity: .25; animation: floaty 7s ease-in-out infinite; }
.plus::before, .plus::after { content: ""; position: absolute; background: #fff; border-radius: 2px; }
.plus::before { left: 38%; width: 24%; top: 0; bottom: 0; }
.plus::after { top: 38%; height: 24%; left: 0; right: 0; }
.p1 { left: 6%; top: 18%; } .p2 { left: 46%; top: 12%; width: 18px; height: 18px; animation-delay: -2s; }
.p3 { right: 5%; bottom: 26%; width: 34px; height: 34px; animation-delay: -4s; } .p4 { left: 38%; bottom: 18%; width: 16px; height: 16px; animation-delay: -1s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(45deg); } }

.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; padding-top: 70px; padding-bottom: 140px; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-weight: 600; font-size: .9rem; color: #D7F3F0; margin-bottom: 20px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 0 rgba(228,86,111,.7); animation: beat 1.6s infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(228,86,111,.7); } 70% { box-shadow: 0 0 0 12px rgba(228,86,111,0); } 100% { box-shadow: 0 0 0 0 rgba(228,86,111,0); } }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.8vw, 4.6rem); line-height: 1; margin-bottom: 22px; }
.h1-line { display: block; background: linear-gradient(90deg, #7FF0E4, #FFB3C0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.12rem; color: #D2E3F2; max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 30px; }
.hero-trustlist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: #CFE6EE; }
.hero-trustlist li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trustlist .ic { color: var(--teal-light); width: 18px; height: 18px; }

.hero-media { position: relative; padding: 24px; }
.hero-ring { position: absolute; inset: 0; border-radius: 44% 56% 52% 48% / 46% 44% 56% 54%; border: 2px dashed rgba(255,255,255,.25); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-frame { position: relative; aspect-ratio: 4 / 3.3; border-radius: 40% 60% 46% 54% / 52% 42% 58% 48%; overflow: hidden; border: 6px solid rgba(255,255,255,.9); box-shadow: var(--shadow-lg); animation: morph 14s ease-in-out infinite alternate; background: var(--navy-2); }
@keyframes morph { 0% { border-radius: 40% 60% 46% 54% / 52% 42% 58% 48%; } 100% { border-radius: 56% 44% 58% 42% / 44% 56% 44% 56%; } }
.hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease, transform 6s ease; }
.hero-frame img.is-on { opacity: 1; transform: scale(1); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  background: rgba(255,255,255,.96); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg);
  animation: bob 5s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--f-head); font-size: 1.05rem; color: var(--navy); line-height: 1.2; }
.float-card small { color: var(--muted); font-size: .8rem; }
.fc1 { left: -18px; top: 16%; }
.fc2 { right: -10px; bottom: 12%; animation-delay: -2.5s; }
.fc-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--teal-deep); }
.fc-ic.rose { background: var(--rose-soft); color: var(--rose); }
.fc-ic .ic { width: 22px; height: 22px; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-dots { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.hero-dots button.is-on { width: 30px; background: #fff; }

.hero-ecg { position: absolute; left: 0; right: 0; bottom: 56px; width: 100%; height: 90px; }
.hero-ecg path { stroke: rgba(255,179,192,.75); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(228,86,111,.8)); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; display: block; }
.wave path { fill: var(--sky); }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 30px; padding-top: 34px; padding-bottom: 120px; }
  .hero-media { order: -1; max-width: 520px; margin: 0 auto; width: 100%; }
  .fc1 { left: -4px; top: 6%; } .fc2 { right: -4px; bottom: 4%; }
  .float-card { padding: 9px 14px 9px 9px; border-radius: 14px; }
  .fc-ic { width: 36px; height: 36px; }
  .float-card strong { font-size: .92rem; }
}

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 3; margin-top: -78px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: #fff; border-radius: var(--r-lg); padding: 24px 22px; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat strong { display: block; font: 800 2.2rem/1.1 var(--f-head); color: var(--navy); margin-top: 12px; }
.stat p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.stat-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--mint); color: var(--teal-deep); }
.stat-ic.rose { background: var(--rose-soft); color: var(--rose); }
.stat-ic .ic { width: 24px; height: 24px; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .stat { padding: 18px 16px; } .stat strong { font-size: 1.7rem; } }

/* ---------- Notice ticker ---------- */
.ticker { margin-top: 36px; }
.ticker-in { display: flex; align-items: center; gap: 0; }
.ticker-in > * { min-height: 54px; }
.ticker-tag { display: inline-flex; align-items: center; gap: 10px; padding: 0 20px; background: var(--rose); color: #fff; font-weight: 700; border-radius: 999px 0 0 999px; white-space: nowrap; }
.live { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.ticker-track { flex: 1; overflow: hidden; background: #fff; border: 1px solid var(--line); border-left: 0; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: flex; gap: 46px; white-space: nowrap; animation: marquee 32s linear infinite; padding-left: 20px; }
.ticker-track:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.ticker-move a .ic { color: var(--rose); }
.ticker-move a:hover { color: var(--teal-deep); text-decoration: underline; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-all { display: inline-flex; align-items: center; padding: 0 22px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; border-radius: 0 999px 999px 0; white-space: nowrap; }
.ticker-all:hover { background: var(--teal-deep); color: #fff; }
@media (max-width: 600px) { .ticker-all { display: none; } .ticker-track { border-radius: 0 999px 999px 0; border-left: 0; } .ticker-tag { padding: 0 14px; font-size: .85rem; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-mint { background: linear-gradient(180deg, var(--mint), #F2FBFA); }
.section-head { max-width: 680px; margin-bottom: 46px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p:last-child { color: var(--muted); font-size: 1.06rem; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--rose-deep); background: var(--rose-soft); padding: 6px 14px; border-radius: 999px; font-size: .88rem; margin-bottom: 14px; }
.kicker .ic { width: 16px; height: 16px; }
@media (max-width: 700px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center; }
.about-media { position: relative; padding: 0 30px 30px 0; }
.about-media::before { content: ""; position: absolute; right: 0; bottom: 0; width: 70%; height: 70%; border-radius: var(--r-xl); background: repeating-linear-gradient(45deg, var(--mint-2) 0 2px, transparent 2px 12px); z-index: 0; }
.about-photo { position: relative; z-index: 1; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-media:hover .about-photo img { transform: scale(1.05); }
.about-badge { position: absolute; z-index: 2; left: -10px; bottom: 6px; display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); animation: bob 6s ease-in-out infinite; }
.about-badge strong { display: block; font: 800 1.3rem/1 var(--f-head); color: var(--navy); }
.about-badge small { color: var(--muted); font-size: .8rem; }
.about-text p { color: #3E546B; }
.tick-grid { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.tick-grid li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tick-grid .ic { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--teal); color: #fff; stroke-width: 3; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } .tick-grid { grid-template-columns: 1fr; } }

/* Course */
.course { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.course-main { padding: 42px; }
.course-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.course-chips span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--mint); color: var(--teal-deep); font-weight: 700; font-size: .88rem; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.course-years { background: linear-gradient(160deg, var(--navy), var(--navy-2) 60%, var(--teal-deep)); color: #fff; padding: 42px 36px; position: relative; overflow: hidden; }
.cy-title { font: 700 1.25rem var(--f-head); margin-bottom: 22px; }
.journey { list-style: none; margin: 0; padding: 0; position: relative; }
.journey::before { content: ""; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--teal-light), var(--rose)); }
.journey li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 0 0 22px; }
.journey li:last-child { padding-bottom: 0; }
.journey span { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 30px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 800; font-size: .8rem; }
.journey p { margin: 2px 0 0; color: #CFE1F0; font-size: .95rem; line-height: 1.5; }
@media (max-width: 900px) { .course { grid-template-columns: 1fr; } .course-main, .course-years { padding: 30px 22px; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { position: relative; background: #fff; border-radius: var(--r-lg); padding: 30px 28px; border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.feature::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--rose)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.f-ic { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: var(--mint); color: var(--teal-deep); margin-bottom: 18px; transition: transform .5s var(--ease), background-color .3s, color .3s; }
.f-ic.rose { background: var(--rose-soft); color: var(--rose); }
.f-ic .ic { width: 30px; height: 30px; }
.feature:hover .f-ic { transform: rotate(-10deg) scale(1.08); background: var(--teal); color: #fff; }
.feature:hover .f-ic.rose { background: var(--rose); }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; gap: 14px; } .feature { padding: 22px 18px; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Vision */
.vision { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--teal-deep), var(--teal) 60%, #16B9AA); }
.vision-ecg { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); width: 100%; height: 140px; }
.vision-ecg path { stroke: rgba(255,255,255,.25); stroke-width: 3; }
.vision-in { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 80px; padding-bottom: 80px; }
.v-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-lg); padding: 36px; color: #fff; backdrop-filter: blur(8px); }
.v-card h2 { color: #fff; font-size: 1.6rem; }
.v-card p { font-size: 1.12rem; color: #E9FBF8; margin: 0; line-height: 1.6; }
.v-ic { width: 54px; height: 54px; border-radius: 16px; background: #fff; color: var(--rose); display: grid; place-items: center; margin-bottom: 18px; }
.v-ic .ic { width: 26px; height: 26px; }
@media (max-width: 800px) { .vision-in { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; } .v-card { padding: 26px; } }

/* Campus life tiles */
.life { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.life-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  min-height: 170px; padding: 24px; border-radius: var(--r-lg); color: #fff; text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.life-tile::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.12); transition: transform .6s var(--ease); }
.life-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: #fff; }
.life-tile:hover::after { transform: scale(1.6); }
.life-tile .ic { position: absolute; top: 22px; left: 24px; width: 34px; height: 34px; transition: transform .5s var(--ease); }
.life-tile:hover .ic { transform: scale(1.15) rotate(-8deg); }
.life-tile strong { font: 700 1.25rem/1.2 var(--f-head); position: relative; }
.life-tile span { font-size: .9rem; opacity: .85; position: relative; }
.t1 { background: linear-gradient(140deg, #0E9F96, #0A6E8A); }
.t2 { background: linear-gradient(140deg, #E4566F, #B83A6F); }
.t3 { background: linear-gradient(140deg, #0F3460, #1F5FA8); }
.t4 { background: linear-gradient(140deg, #13A89E, #2CB67D); }
.t5 { background: linear-gradient(140deg, #F08A5D, #E4566F); }
.t6 { background: linear-gradient(140deg, #0A2540, #087C75); }
.home-gallery { margin-top: 30px; }
@media (max-width: 860px) { .life { grid-template-columns: 1fr 1fr; gap: 12px; } .life-tile { min-height: 150px; padding: 18px; } .life-tile .ic { left: 18px; top: 18px; } }

/* Disclosure */
.disclose { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.disclose > div > p { color: var(--muted); }
.year-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.year-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.year-card > .ic { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--mint); color: var(--teal-deep); }
.year-card small { display: block; color: var(--muted); font-size: .8rem; }
.year-card strong { font: 700 1.15rem var(--f-head); color: var(--navy); }
.year-card span { flex: 1; }
.yc-arrow { color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.year-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); color: var(--ink); }
.year-card:hover .yc-arrow { transform: translateX(4px); color: var(--teal); }
.year-card.is-new { background: linear-gradient(135deg, var(--navy), var(--teal-deep)); border-color: transparent; grid-column: span 2; }
.year-card.is-new small { color: #BFE7E3; } .year-card.is-new strong { color: #fff; } .year-card.is-new .yc-arrow { color: #fff; }
.year-card.is-new > .ic { background: rgba(255,255,255,.15); color: #fff; }
.disclose > *, .year-card { min-width: 0; }
@media (max-width: 860px) { .disclose { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 480px) { .year-cards { grid-template-columns: 1fr; } .year-card.is-new { grid-column: auto; } }

/* CTA */
.cta { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--rose-deep), var(--rose) 50%, #F07A8D); color: #fff; }
.cta-ecg { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); width: 100%; height: 120px; }
.cta-ecg path { stroke: rgba(255,255,255,.3); stroke-width: 3; }
.cta-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-top: 60px; padding-bottom: 60px; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; color: #FFE5EA; font-size: 1.06rem; }
.cta .btn-white { color: var(--rose-deep); }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1.2fr; border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.visit-info { padding: 44px; }
.visit-row { display: flex; gap: 14px; margin-bottom: 20px; }
.v-dot { width: 42px; height: 42px; border-radius: 12px; background: var(--mint); color: var(--teal-deep); display: grid; place-items: center; flex: none; }
.v-dot .ic { width: 20px; height: 20px; }
.visit-row strong { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; }
.visit-row a { color: var(--ink); text-decoration: none; font-weight: 700; }
.visit-row a:hover { color: var(--rose); }
.map { min-height: 380px; border: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .visit-info { padding: 28px 22px; } .map { min-height: 300px; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(800px 400px at 85% 0%, rgba(95,211,201,.35), transparent 60%), linear-gradient(130deg, var(--navy), var(--navy-2) 50%, var(--teal-deep)); }
.ph-bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero .b1 { width: 300px; height: 300px; left: -100px; bottom: -150px; }
.page-hero .b2 { width: 240px; height: 240px; right: 6%; top: -120px; }
.ph-in { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 96px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 0; animation: rise .8s var(--ease) both; }
.page-intro { color: #D2E3F2; margin: 12px 0 0; max-width: 42em; font-size: 1.05rem; animation: rise .8s var(--ease) .12s both; }
.crumbs { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: #BFD3E6; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); animation: rise .8s var(--ease) both; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .ic { width: 14px; height: 14px; }
.ph-ecg { position: absolute; left: 0; right: 0; bottom: 34px; width: 100%; height: 70px; }
.ph-ecg path { stroke: rgba(255,179,192,.6); stroke-width: 2.2; }

.page-body { padding: 40px 0 90px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 24px; }
.panel h2 { font-size: 1.5rem; position: relative; padding-left: 16px; }
.panel h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; border-radius: 5px; background: linear-gradient(var(--teal), var(--rose)); }
.panel h3 { margin-top: 1.4em; }
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }
@media (max-width: 600px) { .panel { padding: 24px 18px; border-radius: var(--r-md); } .page-body { padding: 24px 0 60px; } .ph-in { padding-top: 36px; padding-bottom: 80px; } }

.prose { max-width: 74ch; }
.prose li { margin-bottom: .55em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.panel ul:not([class]) li::marker { color: var(--teal); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two-col .panel + .panel { margin-top: 0; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; margin: 0 0 24px; }
.spec dt { font-size: .84rem; color: var(--muted); }
.spec dd { margin: 0; font-weight: 700; font-size: 1.08rem; color: var(--navy); }

.fact-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.fact-row div { background: #fff; padding: 20px 22px; border-radius: var(--r-md); border: 1px solid var(--line); border-top: 4px solid var(--teal); box-shadow: var(--shadow-sm); }
.fact-row div:nth-child(even) { border-top-color: var(--rose); }
.fact-row span { display: block; font-size: .82rem; color: var(--muted); }
.fact-row strong { font-family: var(--f-head); font-size: 1.35rem; color: var(--navy); }
@media (max-width: 760px) { .fact-row { grid-template-columns: 1fr 1fr; gap: 10px; } }

.numbered { counter-reset: n; list-style: none; padding: 0; margin: 0; }
.numbered li { counter-increment: n; position: relative; padding: 16px 0 16px 58px; border-bottom: 1px dashed var(--line); margin: 0; }
.numbered li:last-child { border-bottom: 0; }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: 12px; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff; font-weight: 800; display: grid; place-items: center; }

.callout { background: var(--rose-soft); border-left: 5px solid var(--rose); padding: 18px 22px; border-radius: var(--r-sm); margin-top: 24px; }
.callout p:last-child { margin: 0; }

/* Features reused on inner pages */
.panel .why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-item { background: var(--sky); border-radius: var(--r-md); padding: 22px; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-item .ic { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--mint); color: var(--teal-deep); margin-bottom: 12px; }
.why-item:nth-child(even) .ic { background: var(--rose-soft); color: var(--rose); }
.why-item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 860px) { .panel .why { grid-template-columns: 1fr; } }

/* People */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.person { position: relative; display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.person::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--teal), var(--rose)); }
.person:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.person-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: var(--mint); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--mint-2); }
.person-initial { display: grid; place-items: center; font: 800 1.6rem var(--f-head); color: #fff; background: linear-gradient(135deg, var(--teal), var(--navy-2)); }
.person-info { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.person-info strong { font-size: 1.02rem; color: var(--navy); }
.person-role { color: var(--rose-deep); font-weight: 700; font-size: .9rem; }
.person-qual { color: var(--muted); font-size: .86rem; }

/* Documents */
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.doc:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--teal); }
.doc-ic { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--rose-soft); color: var(--rose); }
.doc-title { flex: 1; font-weight: 700; color: var(--navy); }
.doc-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--teal); color: #fff; white-space: nowrap; transition: background-color .2s; }
.doc-link:hover { background: var(--navy); color: #fff; }
.doc-missing { opacity: .7; }
.doc-missing:hover { transform: none; box-shadow: none; border-color: var(--line); }
.doc-missing .doc-ic { background: #F0F3F6; color: #98A8B8; }
.doc-status { font-size: .82rem; color: var(--muted); white-space: nowrap; background: #F0F3F6; padding: 6px 12px; border-radius: 999px; }
.doc-group + .doc-group { margin-top: 36px; }
.doc-group h2 { font-size: 1.3rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.tabs a { padding: 9px 18px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; transition: background-color .2s, color .2s; }
.tabs a:hover { background: var(--mint); color: var(--teal-deep); }
.tabs a[aria-current="page"] { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff; }
@media (max-width: 600px) { .tabs { border-radius: var(--r-md); } }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { background: linear-gradient(90deg, var(--navy), var(--navy-2)); color: #fff; font-weight: 600; font-size: .86rem; }
.tbl td:not(:first-child), .tbl th:not(:first-child) { text-align: center; }
.tbl tbody tr { transition: background-color .2s; }
.tbl tbody tr:hover { background: var(--mint); }
.tbl tr.total td { font-weight: 800; background: var(--rose-soft); color: var(--rose-deep); }
.tbl caption { caption-side: bottom; text-align: left; padding: 10px 14px; font-size: .85rem; color: var(--muted); }
.year-block + .year-block { margin-top: 34px; }
@media (max-width: 600px) { .tbl { min-width: 0; font-size: .86rem; } .tbl th, .tbl td { padding: 9px 8px; } }

/* Photos */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); background: var(--mint); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.photo::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font: 300 3rem var(--f-head); color: #fff; background: linear-gradient(180deg, transparent, rgba(10,37,64,.65)); opacity: 0; transition: opacity .35s; }
.photo:hover img { transform: scale(1.08); }
.photo:hover::after { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(6,20,36,.94); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .3s; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: var(--r-sm); animation: rise .4s var(--ease); }
.lightbox figcaption { color: #D8ECE8; margin-top: 12px; }
.lb-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.14); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb-close .ic { width: 24px; height: 24px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); color: #fff; border: 0; font-size: 2.2rem; width: 52px; height: 66px; border-radius: 12px; cursor: pointer; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }

/* Message pages */
.message { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.message-card { text-align: center; background: linear-gradient(160deg, var(--mint), #fff); border-radius: var(--r-lg); padding: 28px 20px; border: 1px solid var(--line); }
.message-card img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 5px solid #fff; box-shadow: var(--shadow); }
@media (max-width: 760px) { .message { grid-template-columns: 1fr; } }

.empty { display: flex; align-items: center; gap: 14px; padding: 26px; border: 2px dashed var(--mint-2); border-radius: var(--r-md); background: #fff; color: var(--muted); }
.empty .ic { width: 30px; height: 30px; color: var(--teal); }
.empty p { margin: 0; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.contact-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; transition: transform .35s var(--ease), box-shadow .35s; }
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.contact-card > .ic { width: 54px; height: 54px; padding: 13px; border-radius: 16px; background: var(--mint); color: var(--teal-deep); margin-bottom: 14px; }
.contact-card:nth-child(2) > .ic { background: var(--rose-soft); color: var(--rose); }
.contact-card h2 { font-size: 1.15rem; margin-bottom: 8px; }
.contact-card a { display: block; font-weight: 700; text-decoration: none; color: var(--navy); padding: 3px 0; word-break: break-word; }
.contact-card a:hover { color: var(--rose); }
.map-box { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-box iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: linear-gradient(160deg, var(--navy), #071A2E); color: #B5C8DB; font-size: .94rem; margin-top: 70px; }
.f-wave { position: absolute; left: 0; right: 0; top: -69px; width: 100%; height: 70px; display: block; }
.f-wave path { fill: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 50px; padding-bottom: 36px; }
.f-logo { display: inline-block; background: #fff; border-radius: 50%; padding: 5px; margin-bottom: 14px; box-shadow: 0 0 0 6px rgba(255,255,255,.08); }
.f-logo img { width: 80px; height: 80px; }
.f-name { font: 700 1.25rem var(--f-head); color: #fff; margin-bottom: 6px; }
.f-name span { color: #FFB3C0; }
.f-muted { color: #93A9BF; }
.f-head { font: 700 1.05rem var(--f-head); color: #fff; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.f-head::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--rose); }
.f-line { display: flex; gap: 10px; color: #D3E0EC; text-decoration: none; margin-bottom: 10px; }
a.f-line:hover { color: #fff; }
.f-line .ic { margin-top: 4px; color: var(--teal-light); }
.f-mail { word-break: break-all; }
.f-links { list-style: none; margin: 0; padding: 0; }
.f-links li { margin-bottom: 9px; }
.f-links a { color: #D3E0EC; text-decoration: none; display: inline-block; transition: transform .25s var(--ease), color .2s; }
.f-links a::before { content: "›"; color: var(--rose); margin-right: 8px; font-weight: 700; }
.f-links a:hover { color: #fff; transform: translateX(4px); }
.f-note p { display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; margin: 0; font-size: .86rem; color: #93A9BF; }
.f-note .ic { color: var(--teal-light); margin-top: 3px; }
.f-bottom { background: rgba(0,0,0,.25); font-size: .85rem; }
.f-bottom-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 16px; }
.f-bottom a { color: #FFB3C0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } .f-bottom-in { flex-direction: column; } .f-wave { height: 40px; top: -39px; } .site-footer { margin-top: 40px; } }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 22px; z-index: 80; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--rose); color: #fff; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.to-top .ic { transform: rotate(180deg); width: 22px; height: 22px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--teal); color: #fff; }

/* Mobile bottom bar */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 85; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(10,37,64,.25); margin-bottom: env(safe-area-inset-bottom); }
  .callbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; font-weight: 700; font-size: .78rem; text-decoration: none; color: var(--navy); }
  .callbar a .ic { width: 20px; height: 20px; color: var(--teal); }
  .callbar a:first-child { background: var(--rose); color: #fff; }
  .callbar a:first-child .ic { color: #fff; }
  .to-top { bottom: 86px; right: 14px; width: 42px; height: 42px; }
  body { padding-bottom: 78px; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim, .js .reveal { opacity: 1 !important; transform: none !important; }
  .ecg path { stroke-dashoffset: 0; }
}

@media print {
  .topbar, .navbar, .callbar, .site-footer, .hero-media, .to-top, .brand-side { display: none !important; }
  body { background: #fff; }
}
