/* ==========================================================================
   Jibantala Rokeya Mahavidyalaya - Modern Glass Design System
   One stylesheet for the whole public website.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  --navy: #12163a;
  --brand: #3347d1;
  --brand-2: #6d3fe0;
  --sun: #ff6a3d;
  --sun-2: #ffb347;
  --teal: #0fa3a3;
  --gold: #ffc24b;

  --bg: #f2f4fb;
  --text: #171b38;
  --muted: #5a6285;
  --link: #2f43c9;

  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .86);
  --glass-border: rgba(255, 255, 255, .75);
  --line: rgba(23, 27, 70, .09);
  --chip: rgba(51, 71, 209, .08);

  --shadow-sm: 0 4px 18px rgba(28, 36, 100, .08);
  --shadow: 0 18px 50px rgba(28, 36, 100, .13);
  --shadow-lg: 0 30px 80px rgba(28, 36, 100, .2);

  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --grad: linear-gradient(135deg, #3347d1 0%, #6d3fe0 100%);
  --grad-sun: linear-gradient(135deg, #ff6a3d 0%, #ffb347 100%);
  --grad-teal: linear-gradient(135deg, #0fa3a3 0%, #3347d1 100%);
  --nav-h: 76px;
  --blob-a: rgba(255, 106, 61, .20);
  --blob-b: rgba(51, 71, 209, .22);
  --blob-c: rgba(15, 163, 163, .20);
}

[data-theme="dark"] {
  --bg: #090d20;
  --text: #e8ebff;
  --muted: #98a2d0;
  --link: #9fb0ff;
  --glass: rgba(26, 33, 72, .55);
  --glass-strong: rgba(22, 28, 62, .88);
  --glass-border: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .09);
  --chip: rgba(159, 176, 255, .12);
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, .3);
  --shadow: 0 18px 50px rgba(0, 0, 0, .4);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .5);
  --blob-a: rgba(255, 106, 61, .16);
  --blob-b: rgba(79, 99, 255, .24);
  --blob-c: rgba(15, 163, 163, .16);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font) !important;
  color: var(--text);
  background: transparent !important;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  animation: pageIn .6s ease backwards;
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* animated aurora background (fixed, behind everything) */
body::before {
  content: "";
  position: fixed; inset: -25%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38% 38% at 12% 18%, var(--blob-a), transparent 62%),
    radial-gradient(34% 34% at 88% 12%, var(--blob-b), transparent 62%),
    radial-gradient(40% 40% at 72% 88%, var(--blob-c), transparent 62%),
    radial-gradient(30% 30% at 8% 85%, var(--blob-b), transparent 65%);
  animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -3%, 0) scale(1.06); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.02); }
}
/* subtle grain/grid texture */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(23, 27, 70, .05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
[data-theme="dark"] body::after { background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); }

::selection { background: var(--brand); color: #fff; }
a { color: var(--link); text-decoration: none; transition: color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
a:hover { color: var(--sun); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 700; letter-spacing: -.01em; color: var(--text); }
hr { border-top: 1px solid var(--line); }
:focus-visible { outline: 3px solid rgba(51, 71, 209, .45); outline-offset: 2px; border-radius: 6px; }

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(90, 100, 180, .45) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(90, 100, 180, .4); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(90, 100, 180, .7); background-clip: content-box; border: 2px solid transparent; }

/* scroll progress + back to top */
.jrm-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--sun), var(--brand), var(--teal)); z-index: 3000; transition: width .1s linear; }
.jrm-top {
  position: fixed; right: 20px; bottom: 22px; z-index: 2500;
  width: 48px; height: 48px; border: 0; border-radius: 16px; cursor: pointer;
  color: #fff; background: var(--grad); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: all .4s var(--ease);
}
.jrm-top.show { opacity: 1; transform: none; pointer-events: auto; }
.jrm-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* generic glass */
.glass, .glass-panel {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
}
.glass-panel { padding: 8px; }

/* ---------- 3. Header : top bar ---------- */
.jrm-topbar {
  position: relative; z-index: 1100;
  font-size: 13px; color: rgba(255, 255, 255, .86);
  background: linear-gradient(90deg, #0f1236 0%, #1b2370 55%, #0f1236 100%);
}
.jrm-topbar .inner { max-width: 1320px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.jrm-topbar a { color: rgba(255, 255, 255, .86); }
.jrm-topbar a:hover { color: var(--gold); }
.jrm-topbar .left, .jrm-topbar .right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.jrm-topbar i { color: var(--gold); margin-right: 6px; }
.jrm-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: 12.5px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff !important;
  transition: all .3s var(--ease);
}
.jrm-pill:hover { background: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.jrm-pill i { margin: 0 !important; }
.jrm-theme-btn { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; transition: all .3s var(--ease); display: inline-grid; place-items: center; }
.jrm-theme-btn:hover { background: var(--gold); color: #1b1b1b; transform: rotate(20deg); }
.jrm-theme-btn .fa-sun { display: none; }
[data-theme="dark"] .jrm-theme-btn .fa-sun { display: inline; }
[data-theme="dark"] .jrm-theme-btn .fa-moon { display: none; }

/* ---------- 4. Header : sticky glass nav ---------- */
.jrm-nav {
  position: sticky; top: 0; z-index: 1050;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 30px rgba(28, 36, 100, .06);
  transition: box-shadow .35s var(--ease), background .35s var(--ease);
}
.jrm-nav.scrolled { box-shadow: 0 10px 40px rgba(28, 36, 100, .16); background: var(--glass-strong); }
.jrm-nav .inner { max-width: 1320px; margin: 0 auto; padding: 0 20px; height: var(--nav-h); display: flex; align-items: center; gap: 18px; transition: height .35s var(--ease); }
.jrm-nav.scrolled .inner { height: 64px; }

.jrm-brand { display: flex; align-items: center; gap: 12px; color: var(--text) !important; flex-shrink: 0; min-width: 0; }
.jrm-brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 6px 18px rgba(18, 22, 58, .25); transition: transform .6s var(--ease); background: #fff; }
.jrm-brand:hover img { transform: rotate(360deg) scale(1.05); }
.jrm-brand .t { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.jrm-brand .t b { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.jrm-brand .t small { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.jrm-menu { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.jrm-menu > li { position: relative; }
.jrm-menu > li > a {
  display: flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 12px;
  font-weight: 600; font-size: 14px; color: var(--text); white-space: nowrap; cursor: pointer;
}
.jrm-menu > li > a .chev { font-size: 9px; opacity: .6; transition: transform .3s var(--ease); }
.jrm-menu > li:hover > a, .jrm-menu > li.open > a, .jrm-menu > li.active > a { background: var(--chip); color: var(--brand); }
[data-theme="dark"] .jrm-menu > li:hover > a, [data-theme="dark"] .jrm-menu > li.open > a, [data-theme="dark"] .jrm-menu > li.active > a { color: #fff; }
.jrm-menu > li.active > a { box-shadow: inset 0 -2px 0 var(--sun); border-radius: 12px 12px 6px 6px; }
.jrm-menu > li:hover > a .chev, .jrm-menu > li.open > a .chev { transform: rotate(180deg); }

/* dropdown / mega panel */
.jrm-drop {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px;
  padding: 14px; border-radius: 20px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transform-origin: top left;
  transition: opacity .28s var(--ease), transform .35s var(--ease), visibility .28s;
  display: grid; gap: 4px 18px;
  max-height: calc(100vh - 140px); overflow: auto;
}
.jrm-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.jrm-menu > li:hover > .jrm-drop, .jrm-menu > li.open > .jrm-drop { opacity: 1; visibility: visible; transform: none; }
.jrm-drop.cols-2 { grid-template-columns: repeat(2, minmax(220px, 1fr)); min-width: 520px; }
.jrm-drop.cols-3 { grid-template-columns: repeat(3, minmax(200px, 1fr)); min-width: 720px; }
.jrm-menu > li.right-align > .jrm-drop { left: auto; right: 0; transform-origin: top right; }
.jrm-drop .sec { min-width: 0; }
.jrm-drop h6 {
  margin: 4px 8px 6px; padding: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sun); border-bottom: 1px dashed var(--line); font-family: var(--font);
}
.jrm-drop a {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--text); line-height: 1.35;
}
.jrm-drop a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line); flex: none; transition: all .25s var(--ease); }
.jrm-drop a:hover { background: var(--chip); color: var(--brand); transform: translateX(4px); }
[data-theme="dark"] .jrm-drop a:hover { color: #fff; }
.jrm-drop a:hover::before { background: var(--sun); transform: scale(1.6); }
.jrm-drop a .ext { margin-left: auto; font-size: 10px; opacity: .45; }

.jrm-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.jrm-cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 14px; font-weight: 700; font-size: 13.5px;
  color: #fff !important; background: var(--grad-sun); box-shadow: 0 8px 22px rgba(255, 106, 61, .35);
  position: relative; overflow: hidden; white-space: nowrap;
}
.jrm-cta::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.jrm-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 106, 61, .45); color: #fff !important; }

.jrm-burger { display: none; width: 46px; height: 46px; border: 1px solid var(--glass-border); border-radius: 14px; background: var(--glass-strong); cursor: pointer; position: relative; margin-left: auto; }
.jrm-burger span { position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 3px; background: var(--text); transition: all .35s var(--ease); }
.jrm-burger span:nth-child(1) { top: 15px; } .jrm-burger span:nth-child(2) { top: 22px; } .jrm-burger span:nth-child(3) { top: 29px; }
.jrm-burger.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.jrm-burger.open span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.jrm-burger.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
.jrm-scrim { position: fixed; inset: 0; z-index: 1040; background: rgba(9, 12, 36, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: all .35s var(--ease); }
.jrm-scrim.show { opacity: 1; visibility: visible; }
.jrm-mobile-extra { display: none; }

@media (max-width: 1199.98px) {
  .jrm-burger { display: block; }
  .jrm-actions .jrm-cta { display: none; }
  .jrm-nav .inner { gap: 10px; }
  .jrm-menu {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 90vw); margin: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 84px 16px 28px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
    border-left: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
    overflow-y: auto; transform: translateX(105%); transition: transform .5s var(--ease); z-index: 1060;
  }
  .jrm-menu.open { transform: none; }
  .jrm-menu > li > a { padding: 13px 14px; font-size: 15px; justify-content: space-between; }
  .jrm-menu > li:hover > a { background: transparent; color: var(--text); }
  .jrm-menu > li.open > a { background: var(--chip); color: var(--brand); }
  .jrm-drop, .jrm-drop.cols-2, .jrm-drop.cols-3 {
    position: static; min-width: 0; grid-template-columns: 1fr; box-shadow: none; border: 0; background: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0 4px; border-radius: 0;
    opacity: 1; visibility: visible; transform: none; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease), padding .3s;
  }
  .jrm-menu > li:hover > .jrm-drop { max-height: 0; }
  .jrm-menu > li.open > .jrm-drop { max-height: 2400px; padding: 6px 4px 12px; }
  .jrm-drop::before { display: none; }
  .jrm-mobile-extra { display: grid; gap: 10px; margin-top: 14px; padding-top: 16px; border-top: 1px dashed var(--line); }
  .jrm-mobile-extra .jrm-cta { display: inline-flex; justify-content: center; }
  .jrm-mobile-extra .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .jrm-mobile-extra .jrm-pill { background: var(--chip); color: var(--text) !important; border-color: var(--line); justify-content: center; padding: 10px; border-radius: 12px; }
  body.nav-lock { overflow: hidden; }
}
@media (max-width: 767.98px) {
  .jrm-topbar .left .addr, .jrm-topbar .left .mail { display: none; }
  .jrm-topbar .inner { padding: 6px 14px; }
  .jrm-topbar .right .jrm-pill.hide-sm { display: none; }
  .jrm-nav .inner { padding: 0 14px; height: 66px; }
  .jrm-brand img { width: 44px; height: 44px; }
  .jrm-brand .t b { font-size: 15.5px; }
  .jrm-brand .t small { font-size: 9.5px; letter-spacing: .06em; }
}
@media (max-width: 380px) { .jrm-brand .t small { display: none; } .jrm-brand .t b { font-size: 14.5px; } }

/* ---------- 5. Reusable page pieces ---------- */
.container-xl-jrm, .jrm-wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
  background: var(--chip); border: 1px solid var(--line);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 106, 61, .2); }
[data-theme="dark"] .eyebrow { color: #cdd6ff; }
.section { padding: clamp(38px, 6vw, 80px) 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(26px, 4vw, 48px); }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 44px); margin: 14px 0 10px; letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 16.5px; margin: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.grad-text-sun { background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

.btn-jrm {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: 16px; border: 0;
  font-weight: 700; font-size: 15px; color: #fff !important; background: var(--grad); cursor: pointer;
  box-shadow: 0 10px 26px rgba(51, 71, 209, .32); position: relative; overflow: hidden;
}
.btn-jrm:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(51, 71, 209, .42); color: #fff !important; }
.btn-jrm.sun { background: var(--grad-sun); box-shadow: 0 10px 26px rgba(255, 106, 61, .35); }
.btn-jrm.sun:hover { box-shadow: 0 16px 34px rgba(255, 106, 61, .45); }
.btn-jrm.ghost { background: var(--glass); color: var(--text) !important; border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-jrm.ghost:hover { background: var(--glass-strong); }
.btn-jrm.light { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); box-shadow: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-jrm.light:hover { background: rgba(255, 255, 255, .3); }

/* ---------- 6. Home : ticker ---------- */
.jrm-ticker { max-width: 1320px; margin: 18px auto 0; padding: 0 20px; }
.jrm-ticker .bar {
  display: flex; align-items: center; overflow: hidden; border-radius: 18px; height: 52px;
  background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm);
}
.jrm-ticker .label {
  flex: none; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 20px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--grad-sun); position: relative; z-index: 2;
}
.jrm-ticker .label::after { content: ""; position: absolute; right: -14px; top: 0; bottom: 0; width: 28px; background: inherit; transform: skewX(-18deg); z-index: -1; }
.jrm-ticker .label i { animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 8%, 24% { transform: rotate(16deg); } 16%, 32% { transform: rotate(-14deg); } 40% { transform: rotate(0); } }
.jrm-ticker .track { flex: 1; overflow: hidden; position: relative; margin-left: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.jrm-ticker .move { display: inline-flex; white-space: nowrap; animation: marquee 70s linear infinite; will-change: transform; }
.jrm-ticker .track:hover .move { animation-play-state: paused; }
.jrm-ticker .move span { display: inline-flex; align-items: center; gap: 10px; padding-right: 46px; font-weight: 500; font-size: 14.5px; }
.jrm-ticker .move span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); flex: none; }
.jrm-ticker .move img { height: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 7. Home : hero ---------- */
.jrm-hero { max-width: 1320px; margin: 22px auto 0; padding: 0 20px; }
.hero-card { position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--glass-border); background: var(--navy); isolation: isolate; }
.hero-slides { position: relative; height: clamp(420px, 62vh, 640px); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero-slide.active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero-card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(10, 13, 44, .92) 0%, rgba(10, 13, 44, .66) 40%, rgba(10, 13, 44, .15) 75%, rgba(10, 13, 44, .05) 100%),
              linear-gradient(0deg, rgba(10, 13, 44, .7) 0%, transparent 45%); }
.hero-content { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(22px, 5vw, 70px); max-width: 780px; color: #fff; }
.hero-content .eyebrow { align-self: flex-start; background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-content h1 { font-family: var(--font-display); color: #fff; font-size: clamp(34px, 5.4vw, 68px); line-height: 1.04; font-weight: 700; letter-spacing: -.025em; margin: 18px 0 14px; }
.hero-content h1 em { font-style: italic; background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero-content p { color: rgba(255, 255, 255, .86); font-size: clamp(15px, 1.5vw, 18.5px); max-width: 600px; margin-bottom: 26px; }
.hero-content .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-content > * { animation: rise .9s var(--ease) both; }
.hero-content > *:nth-child(2) { animation-delay: .12s; } .hero-content > *:nth-child(3) { animation-delay: .24s; } .hero-content > *:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-dots { position: absolute; z-index: 3; left: clamp(22px, 5vw, 70px); bottom: 22px; display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: all .5s var(--ease); }
.hero-dots button.active { width: 38px; background: #fff; }
.hero-badges { position: absolute; z-index: 3; right: 22px; bottom: 22px; display: flex; gap: 10px; align-items: stretch; }
.hero-badge { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 18px; color: #fff; font-size: 12px; line-height: 1.25; font-weight: 600;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
.hero-badge img { width: 40px; height: 46px; object-fit: cover; border-radius: 10px; background: #fff; }
.hero-badge b { display: block; font-size: 13px; }
.hero-arrows { position: absolute; z-index: 3; right: 22px; top: 22px; display: flex; gap: 8px; }
.hero-arrows button { width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: all .3s var(--ease); }
.hero-arrows button:hover { background: #fff; color: var(--navy); transform: scale(1.08); }
@media (max-width: 767.98px) {
  .jrm-hero { padding: 0 12px; margin-top: 14px; }
  .jrm-ticker { padding: 0 12px; }
  .hero-card { border-radius: 24px; }
  .hero-slides { height: auto; min-height: 520px; }
  .hero-slide img { height: 100%; }
  .hero-card::after { background: linear-gradient(0deg, rgba(10, 13, 44, .92) 0%, rgba(10, 13, 44, .7) 55%, rgba(10, 13, 44, .25) 100%); }
  .hero-content { justify-content: flex-end; padding: 22px 20px 64px; }
  .hero-badges { display: none; }
  .hero-arrows { display: none; }
  .hero-dots { left: 20px; bottom: 24px; }
  .jrm-ticker .label span { display: none; }
  .jrm-ticker .label { padding: 0 16px; }
}

/* ---------- 8. Home : quick access tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px; min-height: 150px; border-radius: var(--radius);
  color: var(--text) !important; background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.tile::before { content: ""; position: absolute; inset: 0; background: var(--tg, var(--grad)); opacity: 0; transition: opacity .45s var(--ease); z-index: 0; }
.tile > * { position: relative; z-index: 1; }
.tile .ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 20px; color: #fff; background: var(--tg, var(--grad)); box-shadow: 0 10px 22px rgba(28, 36, 100, .2); transition: all .45s var(--ease); }
.tile b { font-size: 14.5px; line-height: 1.35; font-weight: 700; transition: color .35s; }
.tile .go { position: absolute; right: 16px; bottom: 14px; z-index: 1; opacity: 0; transform: translateX(-8px); transition: all .4s var(--ease); color: #fff; }
.tile:hover { transform: translateY(-8px); box-shadow: var(--shadow); color: #fff !important; }
.tile:hover::before { opacity: 1; }
.tile:hover b { color: #fff; }
.tile:hover .ic { background: rgba(255, 255, 255, .22); transform: scale(1.1) rotate(-6deg); box-shadow: none; }
.tile:hover .go { opacity: 1; transform: none; }
.tg1 { --tg: linear-gradient(135deg, #3347d1, #6d3fe0); } .tg2 { --tg: linear-gradient(135deg, #ff6a3d, #ffb347); }
.tg3 { --tg: linear-gradient(135deg, #0fa3a3, #2b6fe0); } .tg4 { --tg: linear-gradient(135deg, #e0407a, #ff8a5c); }
.tg5 { --tg: linear-gradient(135deg, #7a3fe0, #e0407a); } .tg6 { --tg: linear-gradient(135deg, #12a36b, #0fa3a3); }
@media (max-width: 1199.98px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .tile { padding: 16px 14px; min-height: 128px; } .tile b { font-size: 13px; } }

/* ---------- 9. Home : notice boards ---------- */
.board-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.board { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.board:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.board-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; position: relative; }
.board-head .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 18px; background: var(--bg-g); box-shadow: 0 8px 20px rgba(28, 36, 100, .2); }
.board-head h3 { font-size: 17px; margin: 0; font-weight: 800; }
.board-head small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.board-head::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; border-radius: 2px; background: var(--bg-g); opacity: .75; }
.board-list { list-style: none; margin: 0; padding: 8px 10px; height: 340px; overflow-y: auto; }
.board-list li { margin: 0; }
.board-list a { display: block; padding: 12px 12px; border-radius: 14px; color: var(--text); transition: all .3s var(--ease); }
.board-list a:hover { background: var(--chip); transform: translateX(4px); color: var(--brand); }
[data-theme="dark"] .board-list a:hover { color: #fff; }
.board-list .tt { display: block; font-weight: 600; font-size: 14px; line-height: 1.4; }
.board-list .meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.board-list .meta i { color: var(--sun); }
.board-foot { padding: 12px 18px 18px; }
.board-foot a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 14px; font-weight: 700; font-size: 14px; color: #fff !important; background: var(--bg-g); transition: all .35s var(--ease); }
.board-foot a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(28, 36, 100, .25); }
.board-foot a i { transition: transform .35s var(--ease); } .board-foot a:hover i { transform: translateX(5px); }
.b-general { --bg-g: linear-gradient(135deg, #3347d1, #6d3fe0); } .b-admission { --bg-g: linear-gradient(135deg, #12a36b, #0fa3a3); }
.b-tender { --bg-g: linear-gradient(135deg, #e0407a, #ff8a5c); } .b-exam { --bg-g: linear-gradient(135deg, #ff6a3d, #ffb347); }
.badge-new { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--grad-sun); animation: pulse 1.8s ease-in-out infinite; vertical-align: middle; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 61, .5); } 50% { box-shadow: 0 0 0 6px rgba(255, 106, 61, 0); } }
.type-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; background: var(--bg-g, var(--grad)); }
.t-general { --bg-g: linear-gradient(135deg, #3347d1, #6d3fe0); } .t-admission { --bg-g: linear-gradient(135deg, #12a36b, #0fa3a3); }
.t-tender { --bg-g: linear-gradient(135deg, #e0407a, #ff8a5c); } .t-exam { --bg-g: linear-gradient(135deg, #ff6a3d, #ffb347); }
@media (max-width: 1199.98px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767.98px) { .board-grid { grid-template-columns: 1fr; } .board-list { height: 300px; } }

/* ---------- 10. Home : principal / about / campus ---------- */
.principal { display: grid; grid-template-columns: 380px 1fr; gap: clamp(22px, 4vw, 56px); align-items: center; padding: clamp(18px, 3vw, 40px); border-radius: 32px; }
.principal .photo { position: relative; }
.principal .photo::before { content: ""; position: absolute; inset: -14px; border-radius: 40px; background: var(--grad); opacity: .18; transform: rotate(-4deg); }
.principal .photo img { position: relative; width: 100%; border-radius: 30px; box-shadow: var(--shadow); aspect-ratio: 4 / 4.6; object-fit: cover; object-position: top; }
.principal .photo .tag { position: absolute; left: 16px; right: 16px; bottom: -18px; padding: 14px 18px; border-radius: 18px; background: var(--glass-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.principal .photo .tag b { display: block; font-size: 17px; } .principal .photo .tag span { color: var(--muted); font-size: 13px; font-weight: 600; }
.principal h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 42px); margin: 14px 0 16px; }
.principal .quote { position: relative; color: var(--muted); font-size: 16px; text-align: justify; }
.principal .quote::before { content: "\201C"; position: absolute; left: -6px; top: -50px; font-family: var(--font-display); font-size: 110px; line-height: 1; color: var(--sun); opacity: .25; }
@media (max-width: 991.98px) { .principal { grid-template-columns: 1fr; } .principal .photo { max-width: 340px; margin: 0 auto 20px; } }

.about-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(22px, 4vw, 50px); align-items: center; }
.about-split h2 { font-family: var(--font-display); font-size: clamp(28px, 3.8vw, 44px); margin: 14px 0 16px; }
.about-split p { color: var(--muted); font-size: 16.5px; }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fact { padding: 22px; border-radius: var(--radius); text-align: left; }
.fact i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--tg, var(--grad)); margin-bottom: 12px; font-size: 18px; }
.fact b { display: block; font-size: 18px; } .fact span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 991.98px) { .about-split { grid-template-columns: 1fr; } }

.campus-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.campus-grid figure { margin: 0; border-radius: 22px; overflow: hidden; position: relative; box-shadow: var(--shadow-sm); border: 1px solid var(--glass-border); background: var(--glass); aspect-ratio: 3 / 4; }
.campus-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.campus-grid figure:hover img { transform: scale(1.1); }
.campus-grid figure:hover { box-shadow: var(--shadow); }
@media (max-width: 991.98px) { .campus-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .campus-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---------- 11. Footer ---------- */
.jrm-footer { position: relative; margin-top: clamp(40px, 6vw, 90px); color: rgba(255, 255, 255, .78); background: linear-gradient(180deg, #121647 0%, #0a0d2c 100%); overflow: hidden; }
.jrm-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 60% at 8% 0%, rgba(255, 106, 61, .22), transparent 60%), radial-gradient(40% 55% at 95% 10%, rgba(51, 71, 209, .45), transparent 60%); pointer-events: none; }
.jrm-footer .wave { position: absolute; left: 0; right: 0; top: -1px; line-height: 0; color: var(--bg); }
.jrm-footer .wave svg { width: 100%; height: 46px; display: block; }
.jrm-footer .in { position: relative; max-width: 1320px; margin: 0 auto; padding: 84px 20px 26px; }
.f-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 36px; }
.jrm-footer h5 { color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; position: relative; padding-bottom: 12px; }
.jrm-footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--grad-sun); }
.jrm-footer a { color: rgba(255, 255, 255, .78); }
.jrm-footer a:hover { color: var(--gold); }
.f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.f-brand img { width: 56px; height: 56px; border-radius: 50%; background: #fff; }
.f-brand b { color: #fff; font-family: var(--font-display); font-size: 20px; line-height: 1.15; }
.f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.f-links a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14.5px; }
.f-links a::before { content: "\f054"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 9px; color: var(--sun); transition: transform .3s var(--ease); }
.f-links a:hover::before { transform: translateX(4px); }
.f-contact { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; font-size: 14.5px; }
.f-contact li { display: flex; gap: 12px; align-items: flex-start; }
.f-contact i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 255, 255, .09); color: var(--gold); }
.f-social { display: flex; gap: 10px; flex-wrap: wrap; }
.f-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-size: 17px; transition: all .35s var(--ease); }
.f-social a:hover { background: var(--grad-sun); color: #fff; transform: translateY(-5px) rotate(-6deg); border-color: transparent; }
.f-map { margin-top: 16px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); height: 150px; }
.f-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }
.f-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; font-size: 13.5px; }
.f-bottom strong { color: #fff; }
@media (max-width: 1099.98px) { .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .f-grid { grid-template-columns: 1fr; gap: 28px; } .f-bottom { justify-content: center; text-align: center; } }

/* ---------- 12. Notice list pages ---------- */
.jrm-page { padding: 34px 0 10px; }
.jrm-page .container { max-width: 1180px; }
.page-hero { text-align: center; margin-bottom: 26px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 50px); margin: 14px 0 8px; letter-spacing: -.02em; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.notice-filter { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.notice-filter .chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text); background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.notice-filter .chip:hover { transform: translateY(-2px); color: var(--brand); }
.notice-filter .chip.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 10px 24px rgba(51, 71, 209, .35); }
.notice-filter .count { margin-left: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.notice-table { margin: 0 !important; }
.notice-link { font-weight: 600; color: var(--text) !important; }
.notice-link i { color: #e5484d; margin-right: 6px; }
.notice-link:hover { color: var(--brand) !important; }
.jrm-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.jrm-pager .pg { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 14px; font-weight: 700; color: var(--text); background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); }
.jrm-pager a.pg:hover { transform: translateY(-3px); color: var(--brand); }
.jrm-pager .pg.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 24px rgba(51, 71, 209, .35); }
.jrm-pager .pg.disabled, .jrm-pager .pg.dots { opacity: .45; }

/* ---------- 13. LEGACY PAGE OVERRIDES (every old inner page) ---------- */
/* content width: every direct child of <body> that is page content */
body:not(.native) > :not(.jrm-topbar):not(.jrm-nav):not(.jrm-footer):not(.jrm-scrim):not(.jrm-progress):not(.jrm-top):not(script):not(style):not(link):not(noscript):not(.jrm-page):not(main):not(hr) {
  width: calc(100% - 32px) !important; max-width: 1240px; margin-left: auto !important; margin-right: auto !important;
}
body:not(.native) > .container, body:not(.native) > .container-fluid { padding-left: 0; padding-right: 0; }
body > hr { display: none; }
body:not(.native) > :first-child { }
.container .container-fluid, .container-fluid .container-fluid { padding-left: 0; padding-right: 0; }

/* page title bar */
h1.text-white.text-center, h2.text-white.text-center, h2[style*="07658a"], h1[style*="07658a"] {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 34px 0 20px !important; padding: clamp(20px, 3.4vw, 34px) clamp(16px, 3vw, 30px) !important;
  border-radius: 26px !important; background: var(--grad) !important; color: #fff !important;
  font-family: var(--font-display) !important; font-weight: 700; font-size: clamp(24px, 3.6vw, 40px); letter-spacing: -.015em; line-height: 1.2;
  box-shadow: 0 22px 50px rgba(51, 71, 209, .32);
  animation: rise .8s var(--ease) both;
}
h1.text-white.text-center::before, h2.text-white.text-center::before, h2[style*="07658a"]::before {
  content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; right: -90px; top: -150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 71, .65), transparent 68%);
}
h1.text-white.text-center::after, h2.text-white.text-center::after, h2[style*="07658a"]::after {
  content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; left: -80px; bottom: -170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 163, 163, .6), transparent 68%);
}

/* the bordered content wrapper */
div[style*="border: 2px solid #07658a"], div[style*="border:2px solid #07658a"] {
  border: 1px solid var(--glass-border) !important; border-radius: var(--radius) !important;
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-sm); padding: clamp(14px, 2.6vw, 30px) !important; margin-bottom: 24px;
}
div[style*="border: 2px solid #07658a"] div[style*="border: 2px solid #07658a"] { border: 0 !important; background: transparent; box-shadow: none; padding: 0 !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
.card-body[style*="justify"] { padding: 0 !important; font-size: 16.5px !important; }
.card-body { padding: 0; }
body:not(.native) p { color: var(--text); }
.text-justify { text-align: justify; }
@media (max-width: 575.98px) { .text-justify, p[align="justify"] { text-align: left; } }
body:not(.native) p, body:not(.native) li { line-height: 1.75; }
body:not(.native) li { margin-bottom: 3px; }
body:not(.native) div[style*="border: 2px solid #07658a"] a:not(.btn) { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(51, 71, 209, .3); text-underline-offset: 3px; }
body:not(.native) div[style*="border: 2px solid #07658a"] a:not(.btn):hover { text-decoration-color: var(--sun); }

/* tables */
.table-scroll { width: 100%; overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--glass-strong); margin: 6px 0 16px; -webkit-overflow-scrolling: touch; }
.table { color: var(--text) !important; background: transparent; margin: 0; border-collapse: separate !important; border-spacing: 0; width: 100%; font-size: 15px; }
.table-bordered, .table-bordered td, .table-bordered th { border: 0 !important; }
.table td, .table th { padding: 13px 16px !important; vertical-align: middle !important; border-top: 0 !important; border-bottom: 1px solid var(--line) !important; }
.table tbody tr:last-child td { border-bottom: 0 !important; }
.table thead th, .table thead.bg-primary th, tr.bg-primary th, tr.bg-primary td, .table thead.bg-primary, thead.bg-primary tr {
  background: var(--grad) !important; color: #fff !important; font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; border: 0 !important;
}
.table thead.bg-primary, tr.bg-primary { background: transparent !important; }
.table-striped tbody tr:nth-of-type(odd), .table-striped tbody tr:nth-of-type(odd) > td { background: rgba(51, 71, 209, .04) !important; }
[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd), [data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) > td { background: rgba(255, 255, 255, .04) !important; }
.table tbody tr { transition: background-color .25s var(--ease); }
.table tbody tr:hover > td { background: var(--chip) !important; }
.table tr.bg-primary:hover > th { background: var(--grad) !important; }
.table .btn { padding: 6px 14px; }
.table td strong { font-weight: 700; }
.table-dark, .thead-dark th { background: var(--navy) !important; color: #fff !important; }
.notice-table thead th { text-transform: uppercase; }

/* buttons */
.btn { font-family: var(--font); font-weight: 700; border-radius: 14px !important; padding: 9px 18px; border: 0 !important; transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease) !important; }
.btn:hover { transform: translateY(-2px); filter: saturate(1.1); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary { background: var(--grad) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(51, 71, 209, .3); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(51, 71, 209, .42); }
.btn-dark, .btn-secondary { background: linear-gradient(135deg, #232a66, #12163a) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(18, 22, 58, .3); }
.btn-success { background: linear-gradient(135deg, #12a36b, #0fa3a3) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(18, 163, 107, .28); }
.btn-danger { background: linear-gradient(135deg, #e0407a, #ff6a3d) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(224, 64, 122, .28); }
.btn-warning { background: var(--grad-sun) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(255, 106, 61, .3); }
.btn-info { background: var(--grad-teal) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(15, 163, 163, .3); }
.btn-light { background: var(--glass-strong) !important; color: var(--text) !important; }
.btn-outline-primary { border: 2px solid var(--brand) !important; color: var(--brand) !important; } .btn-outline-primary:hover { background: var(--brand); color: #fff !important; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; }
.bg-primary { background: var(--grad) !important; } .bg-dark { background: linear-gradient(135deg, #232a66, #12163a) !important; } .bg-success { background: linear-gradient(135deg, #12a36b, #0fa3a3) !important; } .bg-info { background: var(--grad-teal) !important; }
.bg-danger { background: linear-gradient(135deg, #e0407a, #ff6a3d) !important; } .bg-warning { background: var(--grad-sun) !important; }
p.bg-dark, p.bg-info, p.bg-primary { padding: 10px 18px; border-radius: 14px; }

/* cards, alerts, lists, forms */
.card { background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--glass-border) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow-sm); color: var(--text); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { box-shadow: var(--shadow); }
.card-header { background: var(--grad) !important; color: #fff !important; border: 0 !important; font-weight: 700; }
.card-header h5, .card-header h4, .card-header h3 { color: #fff; margin: 0; }
.card-title { font-weight: 800; }
.alert { border: 0 !important; border-radius: 16px !important; box-shadow: var(--shadow-sm); font-weight: 500; }
.list-group { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--glass-border); }
.list-group-item { background: var(--glass-strong) !important; color: var(--text) !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; padding: 15px 20px; font-weight: 500; }
.list-group-item:last-child { border-bottom: 0 !important; }
.list-group-item-action:hover { background: var(--chip) !important; color: var(--brand) !important; padding-left: 26px; }
.list-group-item-action { transition: all .3s var(--ease); }
.form-control, .custom-select, select.form-control, textarea.form-control {
  height: auto; padding: 13px 16px; border-radius: 14px !important; border: 1px solid var(--line) !important; background: var(--glass-strong) !important; color: var(--text) !important; font-family: var(--font);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.form-control:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 4px rgba(51, 71, 209, .18) !important; transform: translateY(-1px); }
label { font-weight: 600; font-size: 14px; color: var(--text); }
.pagination .page-link { border: 0; border-radius: 12px !important; margin: 0 3px; color: var(--text); background: var(--glass-strong); font-weight: 700; }
.pagination .page-item.active .page-link { background: var(--grad); color: #fff; }
.modal-content { border-radius: 24px; border: 1px solid var(--glass-border); background: var(--glass-strong); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
img.img-fluid, .card img, .container img:not(.site-logo2) { border-radius: 14px; }
.rounded { border-radius: 16px !important; }
iframe { max-width: 100%; border: 0; border-radius: 18px; }
.border, .border-secondary { border-color: var(--line) !important; }
blockquote { border-left: 4px solid var(--sun); padding: 10px 18px; background: var(--chip); border-radius: 0 14px 14px 0; }
.text-danger { color: #e0407a !important; }
.dropdown-menu { border-radius: 16px; border: 1px solid var(--glass-border); background: var(--glass-strong); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.dropdown-item { color: var(--text); border-radius: 10px; margin: 2px 6px; width: auto; }
.dropdown-item:hover { background: var(--chip); color: var(--brand); }
.member-role { color: var(--sun); font-weight: 700; }
.site-logo2 { height: 80px; border-radius: 12px; }

/* gallery page legacy bits */
.gallery-item, .gallery img { border-radius: 18px; overflow: hidden; }
.gallery-item img { transition: transform .6s var(--ease); } .gallery-item:hover img { transform: scale(1.08); }

/* ---------- 14. Dark-mode fixes for legacy inline colours ---------- */
[data-theme="dark"] .card-body, [data-theme="dark"] p, [data-theme="dark"] li, [data-theme="dark"] td { color: var(--text); }
[data-theme="dark"] .jrm-brand img, [data-theme="dark"] .principal .photo img { box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
[data-theme="dark"] .jrm-menu > li > a { color: var(--text); }
[data-theme="dark"] .text-muted { color: var(--muted) !important; }

/* ---------- 15. Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 440px; padding: clamp(24px, 4vw, 40px); border-radius: 30px; text-align: center; }
.auth-card img.logo { width: 82px; height: 82px; border-radius: 50%; box-shadow: var(--shadow); margin-bottom: 14px; background: #fff; }
.auth-card h1 { font-family: var(--font-display); font-size: 28px; margin: 0 0 4px; }
.auth-card p.sub { color: var(--muted); margin-bottom: 24px; }
.auth-card .field { position: relative; margin-bottom: 16px; text-align: left; }
.auth-card .field i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.auth-card .field input { padding-left: 46px; width: 100%; }
.auth-card .btn-jrm { width: 100%; }
.auth-card .err { margin-bottom: 16px; padding: 12px 16px; border-radius: 14px; background: rgba(224, 64, 122, .12); color: #e0407a; font-weight: 600; }
.auth-card a.back { display: inline-block; margin-top: 18px; color: var(--muted); font-weight: 600; font-size: 14px; }

/* ---------- 16. Reveal / accessibility ---------- */
[data-aos] { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .jrm-topbar, .jrm-nav, .jrm-footer, .jrm-top, .jrm-progress { display: none !important; }
  body::before, body::after { display: none; }
}

/* ---------- 17. patches ---------- */
.jrm-menu > li.jrm-mobile-extra > a.jrm-cta { display: inline-flex; justify-content: center; padding: 13px 18px; color: #fff !important; background: var(--grad-sun); border-radius: 14px; }
.jrm-menu > li.jrm-mobile-extra:hover > a.jrm-cta { background: var(--grad-sun); color: #fff !important; }
body.leaving { opacity: 0; transition: opacity .2s ease; }

/* nav fit on 1200-1500px screens */
.jrm-menu { margin: 0 auto 0 8px; }
.jrm-menu > li > a { padding: 10px 10px; font-size: 13.5px; }
.jrm-brand .t b { font-size: 17.5px; }
.jrm-nav .inner { gap: 12px; }
.jrm-cta .lg { display: inline; }
@media (max-width: 1499.98px) { .jrm-brand .t small { display: none; } .jrm-cta { padding: 10px 14px; } .jrm-cta .lg { display: none; } }

.jrm-pill.reg { background: var(--grad-sun); border-color: transparent; animation: pulse 2s ease-in-out infinite; }
@media (max-width: 1499.98px) { .jrm-actions { display: none; } }
@media (min-width: 1500px) { .jrm-pill.reg { display: none; } }

.jrm-topbar .left, .jrm-topbar .right { flex-wrap: nowrap; white-space: nowrap; }
.jrm-topbar .right { gap: 10px; }
@media (max-width: 1599.98px) { .jrm-topbar .left .addr { display: none; } }
.table thead th, tr.bg-primary th { white-space: nowrap; }

@media (max-width: 767.98px) {
  .jrm-topbar .right .jrm-pill:not(.reg) { display: none; }
  .jrm-topbar .inner { justify-content: space-between; }
  .hero-content h1 { line-height: 1.12; }
}

.jrm-burger { flex: none; }
@media (max-width: 1199.98px) { .jrm-brand { flex: 1 1 auto; } }
@media (max-width: 767.98px) {
  .jrm-brand .t b { white-space: normal; font-size: 15px; line-height: 1.15; }
}
@media (max-width: 575.98px) {
  [style*="text-align:justify"], [style*="text-align: justify"], p[align="justify"], .principal .quote { text-align: left !important; }
}

/* a backdrop-filter on the nav would trap the fixed drawer inside it -> disable on small screens */
@media (max-width: 1199.98px) {
  .jrm-nav, .jrm-nav.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-strong); }
}
.jrm-burger { z-index: 1070; }
section[style*="radial-gradient"], section[style*="gradient"] { background: transparent !important; }

/* ---- mobile hero: nothing is clipped, NAAC + ISO badges stay visible ---- */
@media (max-width: 767.98px) {
  .hero-card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; }
  .hero-slides { position: absolute; inset: 0; height: auto; min-height: 0; }
  .hero-content { position: relative; inset: auto; max-width: none; padding: 56px 20px 18px; }
  .hero-badges { display: flex !important; position: relative; right: auto; bottom: auto; padding: 0 20px 52px; gap: 8px; z-index: 3; }
  .hero-badge { padding: 6px 12px 6px 6px; font-size: 11px; border-radius: 14px; flex: 1; }
  .hero-badge img { width: 32px; height: 37px; }
  .hero-badge b { font-size: 12px; }
  .hero-dots { left: 20px; bottom: 22px; }
  .hero-content .eyebrow { white-space: normal; }
}

/* ---- no sideways scrolling on phones, drawer never widens the page ---- */
html { overflow-x: hidden; max-width: 100%; }
body { overflow-x: clip; max-width: 100%; }
@media (max-width: 1199.98px) {
  .jrm-menu {
    transform: none !important;
    clip-path: inset(0 0 0 100%); visibility: hidden; pointer-events: none;
    transition: clip-path .5s var(--ease), visibility 0s linear .5s;
  }
  .jrm-menu.open { clip-path: inset(0 0 0 0); visibility: visible; pointer-events: auto; transition: clip-path .5s var(--ease), visibility 0s; }
}
