/* =========================================================
   KRG UI refresh  -  presentation layer only (no logic).
   Loaded after output.css/core.css/input.css so it wins.
   ========================================================= */

:root {
  --krg-navy: #0b2a5b;
  --krg-navy-2: #12357a;
  --krg-navy-dark: #071a3a;
  --krg-gold: #38bdf8;
  --krg-gold-2: #7dd3fc;
  --krg-ink: #0f172a;
  --krg-muted: #64748b;
  --krg-bg: #f5f7fb;
  --krg-line: #e3e8f2;
  --krg-radius: 18px;
  --krg-shadow: 0 14px 34px -16px rgba(11, 42, 91, .35);
  --krg-shadow-sm: 0 6px 18px -10px rgba(11, 42, 91, .28);
  --krg-ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #1e293b;
  background: var(--krg-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: 'Poppins', 'Roboto', system-ui, sans-serif; letter-spacing: -.01em; }
img, video, iframe { max-width: 100%; }
::selection { background: var(--krg-gold-2); color: var(--krg-navy-dark); }
:focus-visible { outline: 3px solid rgba(56, 189, 248, .65); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Never let content push the page sideways on phones */
@media (max-width: 767px) {
  .content { overflow-wrap: anywhere; }
  .content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .content pre { overflow-x: auto; }
  .content iframe { max-width: 100%; }
}

/* ---------- App shell: top bar + sidebar ---------- */
:root { --krg-sb-w: 292px; --krg-rail-w: 76px; --krg-top-h: 64px; }
body { transition: padding-left .35s var(--krg-ease); }
@media (min-width: 1024px) { body { padding-left: var(--krg-rail-w); } body.krg-sb-open { padding-left: var(--krg-sb-w); } }

.krg-topbar {
  position: sticky; top: 0; z-index: 60; min-height: var(--krg-top-h); padding-top: .3rem; padding-bottom: .3rem;
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; padding: .3rem 1rem;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--krg-line); box-shadow: 0 10px 26px -22px rgba(11, 42, 91, .7);
}
.krg-topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--krg-gold), #1d4ed8 50%, var(--krg-gold)); }
.krg-topbar__toggle {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
  background: #eef3ff; color: var(--krg-navy); border: 1px solid var(--krg-line); transition: background .2s, transform .2s;
}
.krg-topbar__toggle:hover { background: #dfe9ff; }
.krg-topbar__toggle:active { transform: scale(.94); }
.krg-topbar__brand { flex: 1 1 320px; min-width: 280px; display: flex; align-items: center; gap: .7rem; }
.krg-topbar__brand img { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }
.krg-topbar__name { min-width: 0; display: block; line-height: 1.2; }
.krg-topbar__name strong { display: block; font-size: 1.14rem; font-weight: 700; color: var(--krg-navy); line-height: 1.25; }
.krg-topbar__name small { display: block; font-size: 1.14rem; font-weight: 600; color: #475569; line-height: 1.3; }
.krg-topbar__actions { display: none; align-items: center; flex-wrap: wrap; gap: .35rem; flex: 0 0 auto; }
@media (min-width: 768px) { .krg-topbar__actions { display: flex; } }
@media (min-width: 768px) { .krg-topbar__actions { flex: 0 0 100%; } }
.krg-topbar__link {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 500; color: #1e293b;
  transition: background .2s, color .2s;
}
.krg-topbar__link i { color: var(--krg-navy-2); font-size: .8rem; }
.krg-topbar__link:hover { background: #eaf0ff; color: var(--krg-navy); }
.krg-topbar__cta {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit;
  font-size: .8rem; font-weight: 600; white-space: nowrap; color: var(--krg-navy-dark); background: linear-gradient(90deg, var(--krg-gold), var(--krg-gold-2));
  box-shadow: 0 10px 20px -12px rgba(56, 189, 248, .95); transition: filter .2s, transform .2s;
}
.krg-topbar__cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
.krg-dropdown { position: absolute; right: 0; top: calc(100% + .5rem); width: 260px; z-index: 70; background: #fff; border: 1px solid var(--krg-line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(7, 26, 58, .55); }
.krg-dropdown a { display: block; padding: .75rem 1rem; font-size: .88rem; font-weight: 600; color: var(--krg-navy); transition: background .2s; }
.krg-dropdown a:hover { background: #eef3ff; }
.krg-dropdown a.is-primary { background: var(--krg-gold-2); color: var(--krg-navy-dark); }

/* NAAC badge + MP govt logo in the top bar */
.krg-topbar__naac {
  display: none; align-items: center; gap: .5rem; flex: 0 0 auto; padding: .4rem .8rem; border-radius: 999px;
  background: linear-gradient(90deg, #e0f2fe, #dbeafe); border: 1px solid #bae6fd; color: #0c4a6e;
}
.krg-topbar__naac i { color: #0284c7; font-size: 1.05rem; }
.krg-topbar__naac span { display: block; line-height: 1.15; }
.krg-topbar__naac strong { display: block; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.krg-topbar__naac small { display: block; font-size: .64rem; color: #075985; }
.krg-topbar__naac:hover { filter: brightness(.97); }
@media (min-width: 768px) { .krg-topbar__naac { display: inline-flex; margin-left: .5rem; } }
.krg-topbar__mp { flex: 0 0 auto; padding-left: .8rem; margin-left: .2rem; border-left: 1px solid var(--krg-line); }
.krg-topbar__mp { margin-left: auto; flex: 0 0 auto; }
.krg-topbar__mp img { height: 40px; width: auto; object-fit: contain; display: block; }
@media (max-width: 640px) { .krg-topbar__mp { padding-left: .5rem; } .krg-topbar__mp img { height: 32px; } }

.krg-sb-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(7, 26, 58, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.krg-sb {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 75; width: min(86vw, var(--krg-sb-w));
  display: flex; flex-direction: column; color: #dbe5fb;
  background: linear-gradient(180deg, #0b2a5b 0%, #071a3a 100%); border-right: 1px solid rgba(255, 255, 255, .06);
  transform: translateX(-102%); transition: transform .35s var(--krg-ease); box-shadow: 0 0 60px -20px rgba(0, 0, 0, .7);
}
body.krg-sb-open .krg-sb { transform: none; }
@media (max-width: 1023px) { body.krg-sb-open .krg-sb-backdrop { opacity: 1; pointer-events: auto; } body.krg-sb-open { overflow: hidden; } }
@media (min-width: 1024px) { .krg-sb { box-shadow: none; z-index: 65; } }

.krg-sb__head { flex: 0 0 auto; display: flex; align-items: center; gap: .5rem; padding: 1rem 1rem .8rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.krg-sb__brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: .7rem; }
.krg-sb__brand img { width: 46px; height: 46px; object-fit: contain; flex: 0 0 auto; background: #fff; border-radius: 50%; padding: 3px; }
.krg-sb__brand strong { display: block; color: #fff; font-size: .88rem; font-weight: 700; line-height: 1.25; }
.krg-sb__brand small { display: block; color: #7dd3fc; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.krg-sb__close { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; border: 0; cursor: pointer; background: rgba(255, 255, 255, .1); color: #fff; }
.krg-sb__close:hover { background: var(--krg-gold); color: var(--krg-navy-dark); }
@media (min-width: 1024px) { .krg-sb__close { display: none; } }

.krg-sb__search { position: relative; flex: 0 0 auto; padding: .8rem 1rem .4rem; }
.krg-sb__search i { position: absolute; left: 1.9rem; top: 50%; transform: translateY(-35%); font-size: .8rem; color: #8ea5d6; }
.krg-sb__search input {
  width: 100%; padding: .6rem .8rem .6rem 2.3rem; border-radius: 12px; font-size: .86rem; font-family: inherit;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); color: #fff;
}
.krg-sb__search input::placeholder { color: #8ea5d6; }
.krg-sb__search input:focus { background: rgba(255, 255, 255, .13); border-color: var(--krg-gold) !important; box-shadow: 0 0 0 3px rgba(56, 189, 248, .22) !important; }

.krg-sb__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .4rem .8rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.krg-sb__scroll::-webkit-scrollbar { width: 6px; }
.krg-sb__scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 999px; }

.krg-sb__quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: .4rem 0 1rem; }
.krg-sb__quick > * {
  display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem; border-radius: 12px; border: 0; cursor: pointer; font-family: inherit;
  font-size: .78rem; font-weight: 600; color: #fff; text-align: left; transition: transform .2s var(--krg-ease), filter .2s;
}
.krg-sb__quick > *:hover { transform: translateY(-2px); filter: brightness(1.08); }
.krg-sb__quick i { font-size: .85rem; }
.krg-sb__quick .is-green { background: linear-gradient(135deg, #0e7490, #06b6d4); }
.krg-sb__quick .is-red { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.krg-sb__quick .is-orange { background: linear-gradient(135deg, #312e81, #6366f1); }
.krg-sb__quick .is-blue { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }

.krg-sb__label { margin: 1.1rem .3rem .4rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7f98cf; }
.krg-sb__home { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 12px; font-size: .9rem; font-weight: 500; color: #fff; transition: background .2s; }
.krg-sb__home:hover { background: rgba(255, 255, 255, .09); }
.krg-sb__nav ul { list-style: none; margin: 0; padding: 0; }
.krg-sb__nav > ul > li { margin: 0 0 2px; }
.krg-sb__nav li > button, .krg-sb__nav li > a {
  background: transparent; color: #dbe5fb; font-size: .88rem; font-weight: 500; line-height: 1.35; text-align: left; border: 0; cursor: pointer; font-family: inherit;
  padding: .6rem .75rem !important; border-radius: 12px !important; transition: background .2s, color .2s;
}
.krg-sb__nav li > button { width: 100%; }
.krg-sb__nav li > button:hover, .krg-sb__nav li > a:hover { background: rgba(255, 255, 255, .09) !important; color: #fff; }
.krg-sb__nav li > button svg { color: #8ea5d6; flex: 0 0 auto; }
.krg-sb__nav ul ul {
  margin: 2px 0 6px 1.05rem !important; padding: .25rem 0 .25rem .55rem; background: transparent !important; border: 0 !important; border-left: 2px solid rgba(255, 255, 255, .12) !important; border-radius: 0 !important; box-shadow: none !important;
}
.krg-sb__nav ul ul li > a, .krg-sb__nav ul ul li > button { font-size: .82rem; color: #b6c6ea; padding: .45rem .7rem !important; }
.krg-sb__nav ul ul li > a { display: block; }
.krg-sb__nav ul ul li > a:hover { color: var(--krg-gold-2); }
.krg-sb__nav a.is-active { background: rgba(56, 189, 248, .16) !important; color: var(--krg-gold-2) !important; font-weight: 600; box-shadow: inset 3px 0 0 var(--krg-gold); }

.krg-sb__foot { flex: 0 0 auto; padding: .8rem 1rem 1rem; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: .35rem; font-size: .8rem; background: rgba(0, 0, 0, .12); }
.krg-sb__foot > a { color: #cbd5e1; display: flex; align-items: center; gap: .6rem; }
.krg-sb__foot > a i { color: var(--krg-gold-2); width: 16px; text-align: center; }
.krg-sb__foot > a:hover { color: #fff; }
.krg-sb__social { display: flex; gap: .5rem; margin-top: .4rem; }
.krg-sb__social a { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .09); color: #fff; transition: background .2s, color .2s; }
.krg-sb__social a:hover { background: var(--krg-gold); color: var(--krg-navy-dark); }

/* ---------- Floating YouTube buttons ---------- */
a.fixed[href*="youtube.com/@" i] { box-shadow: 0 12px 26px -10px rgba(29, 78, 216, .8) !important; }
@media (min-width: 1024px) { a.fixed.left-0[href*="youtube.com/@" i] { left: var(--krg-rail-w); transition: left .35s var(--krg-ease), width .5s !important; } body.krg-sb-open a.fixed.left-0[href*="youtube.com/@" i] { left: var(--krg-sb-w); } }
@media (max-width: 767px) {
  a.fixed[href*="youtube.com/@" i] {
    top: auto !important; bottom: 74px; left: auto !important; right: 16px; width: 42px; height: 42px; z-index: 55;
  }
}

/* ---------- Announcement bar ---------- */
.krg-announce { background: linear-gradient(90deg, #0284c7, var(--krg-gold) 50%, #0284c7) !important; border: 0 !important; box-shadow: none !important; }

/* ---------- Hero slider ---------- */
.krg-hero {
  position: relative; width: 100%; background: #0b1220; overflow: hidden;
  height: clamp(240px, 68vw, 480px);
  isolation: isolate;
}
@media (min-width: 1024px) { .krg-hero { height: min(74vh, 740px); min-height: 460px; } }
.krg-hero .swiper { width: 100%; height: 100%; }
.krg-hero .swiper-slide { overflow: hidden; background: #0b1220; }
.krg-hero .swiper-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.14);
  transition: transform 8s cubic-bezier(.25, .1, .25, 1);
  will-change: transform;
}
.krg-hero .swiper-slide-active img { transform: scale(1); }
.krg-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 26, 58, .28) 0%, rgba(7, 26, 58, 0) 28%, rgba(7, 26, 58, 0) 55%, rgba(7, 26, 58, .62) 100%);
}
.krg-hero__pagination { position: absolute !important; z-index: 5; left: 0; right: 0; bottom: 18px !important; display: flex; justify-content: center; gap: 7px; }
.krg-hero .swiper-pagination-bullet {
  width: 8px; height: 8px; margin: 0 !important; border-radius: 999px; background: #fff; opacity: .55;
  transition: width .45s var(--krg-ease), opacity .3s, background .3s;
}
.krg-hero .swiper-pagination-bullet-active { width: 30px; opacity: 1; background: var(--krg-gold-2); }
.krg-hero__nav {
  position: absolute; z-index: 5; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; display: none; place-items: center; cursor: pointer;
  transition: background .3s, transform .3s var(--krg-ease), opacity .3s; opacity: 0;
}
.krg-hero:hover .krg-hero__nav { opacity: 1; }
.krg-hero__nav:hover { background: var(--krg-gold); color: var(--krg-navy-dark); transform: translateY(-50%) scale(1.08); }
.krg-hero__nav--prev { left: 22px; }
.krg-hero__nav--next { right: 22px; }
@media (min-width: 768px) { .krg-hero__nav { display: grid; } }
.krg-hero__progress { position: absolute; z-index: 5; left: 0; bottom: 0; height: 4px; width: 100%; background: rgba(255, 255, 255, .15); }
.krg-hero__progress span { display: block; height: 100%; width: calc(var(--krg-progress, 0) * 100%); background: linear-gradient(90deg, var(--krg-gold), var(--krg-gold-2)); }

/* ---------- Section titles ---------- */
.krg-title {
  position: relative; text-align: center; font-weight: 800 !important; color: var(--krg-navy) !important;
  background: none !important; -webkit-text-fill-color: currentColor !important; padding: 0 !important; box-shadow: none !important;
  letter-spacing: -.015em; line-height: 1.2; margin-bottom: 2.4rem !important;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem) !important;
}
.krg-title::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 999px; margin: .8rem auto 0;
  background: linear-gradient(90deg, var(--krg-gold), #1d4ed8);
}
.krg-subtitle { text-align: center; color: var(--krg-muted); max-width: 640px; margin: -1.4rem auto 2.4rem; }

/* ---------- Notice board / cards ---------- */
.krg-card { background: #fff; border: 1px solid var(--krg-line); border-radius: var(--krg-radius); box-shadow: var(--krg-shadow-sm); overflow: hidden; }
.krg-noticeboard-head { background: linear-gradient(135deg, var(--krg-navy), var(--krg-navy-2)) !important; letter-spacing: .12em; font-size: 1rem !important; }
#noticeWrapper { border-radius: 14px !important; border-color: var(--krg-line) !important; }
#noticeWrapper li.bg-yellow-400 { background: #dbeafe !important; color: #1e3a8a; font-size: .78rem; letter-spacing: .04em; border-left: 4px solid var(--krg-gold); border-radius: 8px !important; }
#noticeWrapper a { transition: color .2s; }

/* ---------- Principal section legibility (dark band) ---------- */
.krg-principal p.text-gray-600 { color: #cbd5e1 !important; }
.krg-principal .principal-role { color: #e2e8f0 !important; }

/* ---------- Adviser / activity cards ---------- */
.krg-adviser { transition: transform .5s var(--krg-ease), box-shadow .5s, border-color .5s !important; }

/* ---------- Gallery swiper ---------- */
.krg-gallery .swiper { padding: 14px 6px 54px; overflow: hidden; }
.krg-gallery .swiper-slide {
  height: auto; transition: transform .6s var(--krg-ease), opacity .6s, filter .6s;
  opacity: .55; transform: scale(.92); filter: saturate(.85);
}
.krg-gallery .swiper-slide-active { opacity: 1; transform: scale(1); filter: none; }
.krg-gallery .swiper-slide > div { aspect-ratio: 4 / 3; }
.krg-gallery .swiper-pagination { bottom: 8px !important; }
.krg-gallery .swiper-pagination-bullet { width: 8px; height: 8px; background: var(--krg-navy); opacity: .25; transition: width .4s var(--krg-ease), opacity .3s; border-radius: 999px; }
.krg-gallery .swiper-pagination-bullet-active { width: 28px; opacity: 1; background: linear-gradient(90deg, var(--krg-gold), #1d4ed8); }
.krg-gallery__nav {
  position: absolute; top: calc(50% - 24px); z-index: 10; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; color: var(--krg-navy); border: 1px solid var(--krg-line); box-shadow: var(--krg-shadow);
  display: none; place-items: center; cursor: pointer; transition: background .3s, color .3s, transform .3s var(--krg-ease);
}
.krg-gallery__nav:hover { background: var(--krg-navy); color: #fff; transform: scale(1.08); }
.krg-gallery__nav--prev { left: 10px; }
.krg-gallery__nav--next { right: 10px; }
@media (min-width: 768px) { .krg-gallery__nav { display: grid; } }

/* ---------- Activities swiper ---------- */
.activityswiper { height: auto !important; padding: 8px 4px 46px; }
.activityswiper .swiper-slide { height: auto; }
.activityswiper .swiper-slide > div { border-radius: var(--krg-radius) !important; border: 1px solid var(--krg-line); }

/* Collaboration marquee: soft edges + pause on hover */
div:has(> .animate-scroll) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.animate-scroll:hover { animation-play-state: paused; }
.activityswiper .swiper-pagination-bullet-active { background: var(--krg-navy); }

/* ---------- Notice popup ---------- */
#noticePopup.hidden, #mobileStudentModal.hidden { display: none !important; }
#noticePopup, #mobileStudentModal { z-index: 80 !important; }
#noticePopup { background: rgba(7, 26, 58, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 1rem; animation: krgFade .35s ease both; }
#noticePopup > div {
  width: min(100%, 680px) !important; border-radius: 22px !important; overflow: hidden; border: 1px solid rgba(255, 255, 255, .5);
  animation: krgPop .5s var(--krg-ease) both; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75) !important;
}
#noticePopup > div > div:first-child {
  background: linear-gradient(135deg, var(--krg-navy), var(--krg-navy-2)) !important; color: #fff; border: 0 !important; border-radius: 0 !important;
}
#noticePopup > div > div:first-child h2 { padding: .25rem .5rem !important; font-size: 1.1rem; }
#noticePopup > div > div:first-child button { background: rgba(255, 255, 255, .14); width: 38px; height: 38px; padding: 0 !important; display: grid; place-items: center; }
#noticePopup > div > div:first-child button:hover { background: var(--krg-gold) !important; color: var(--krg-navy-dark); }
#noticePopup > div > div:last-child { height: min(60vh, 520px) !important; overflow-y: auto; overflow-wrap: anywhere; overscroll-behavior: contain; }
#noticePopup li.bg-gray-100 { background: #eef3ff !important; color: var(--krg-navy); border-left: 4px solid var(--krg-gold); font-size: .78rem; letter-spacing: .04em; }
@keyframes krgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes krgPop { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.krg-footer { position: relative; background: linear-gradient(180deg, #0b2a5b 0%, #071a3a 100%); color: #cbd5e1; margin-top: 3rem; }
.krg-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--krg-gold), #1d4ed8 50%, var(--krg-gold)); }
.krg-footer__grid { max-width: 1280px; margin: 0 auto; padding: 3.5rem 1.5rem 2rem; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .krg-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .krg-footer__grid { grid-template-columns: 1.2fr .9fr .9fr 1.1fr; } }
.krg-footer h3 { color: #fff; font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 1rem; position: relative; padding-bottom: .6rem; }
.krg-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 999px; background: var(--krg-gold); }
.krg-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.krg-footer a { color: #cbd5e1; font-size: .92rem; transition: color .25s, padding-left .25s; }
.krg-footer ul a:hover { color: var(--krg-gold-2); padding-left: 4px; }
.krg-footer__brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.krg-footer__brand img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.krg-footer__brand strong { color: #fff; font-size: 1rem; line-height: 1.3; display: block; }
.krg-footer__about { font-size: .88rem; line-height: 1.7; color: #aebbd3; }
.krg-footer__contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.krg-footer__contact i, .krg-footer__contact .ico { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .08); color: var(--krg-gold-2); font-size: .8rem; }
.krg-social { display: flex; gap: .6rem; margin-top: 1.1rem; flex-wrap: wrap; }
.krg-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: transform .3s var(--krg-ease), background .3s, color .3s; }
.krg-social a:hover { background: var(--krg-gold); color: var(--krg-navy-dark); transform: translateY(-3px); }
.krg-social svg { width: 18px; height: 18px; fill: currentColor; }
.krg-fb { width: 100%; max-width: 380px; border-radius: 18px; overflow: hidden; background: transparent; box-shadow: 0 20px 40px -22px rgba(0, 0, 0, .7); }
.krg-fb .fb-page, .krg-fb .fb-page span, .krg-fb .fb-page iframe { max-width: 100% !important; }
.krg-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.krg-footer__bottom-inner { max-width: 1280px; margin: 0 auto; padding: 1.1rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; align-items: center; justify-content: space-between; font-size: .85rem; color: #94a3b8; text-align: center; }
@media (min-width: 768px) { .krg-footer__bottom-inner { flex-direction: row; text-align: left; } }
.krg-footer__bottom-inner a { color: #cbd5e1; margin: 0 .5rem; font-size: .85rem; }
.krg-footer__bottom-inner a:hover { color: var(--krg-gold-2); }
.krg-totop {
  position: fixed; right: 16px; bottom: 18px; z-index: 55; width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--krg-gold), var(--krg-gold-2)); color: var(--krg-navy-dark); display: grid; place-items: center;
  box-shadow: 0 14px 26px -10px rgba(56, 189, 248, .9); opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .35s, transform .35s var(--krg-ease);
}
.krg-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.krg-totop svg { width: 22px; height: 22px; }

/* ---------- Forms (public) ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], input[type="url"], select, textarea {
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--krg-gold) !important; box-shadow: 0 0 0 4px rgba(56, 189, 248, .18) !important; outline: none; }

/* sidebar: no shadow bleed / focusable items while closed */
@media (max-width: 1023px) { body:not(.krg-sb-open) .krg-sb { box-shadow: none; visibility: hidden; transition: transform .35s var(--krg-ease), visibility 0s linear .35s; } }
@media (max-width: 640px) {
  .krg-topbar { gap: .6rem; padding: .3rem .75rem; }
}


/* =========================================================
   Desktop rail: collapsed icon rail, expands on hover.
   Pinned (body.krg-sb-open) keeps it open and pushes content.
   ========================================================= */
.krg-sb__ico { flex: 0 0 auto; width: 22px; text-align: center; font-size: .95rem; color: #8ea5d6; margin-right: .7rem; }
.krg-sb__item { display: flex !important; align-items: center; }
.krg-sb__item .krg-sb__txt { flex: 1 1 auto; text-align: left; }
.krg-sb__home .krg-sb__ico { color: var(--krg-gold-2); margin-right: .7rem; }
.krg-sb__nav a.is-active .krg-sb__ico, .krg-sb__nav li > button:hover .krg-sb__ico { color: var(--krg-gold-2); }
.krg-sb__pin { display: none; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; border: 0; cursor: pointer; background: rgba(255, 255, 255, .1); color: #b6c6ea; transition: background .2s, color .2s, transform .3s; }
.krg-sb__pin:hover { background: rgba(255, 255, 255, .2); color: #fff; }
body.krg-sb-open .krg-sb__pin { background: var(--krg-gold); color: var(--krg-navy-dark); transform: rotate(-35deg); }
.krg-sb__txt { transition: opacity .2s, max-width .3s; }

@media (min-width: 1024px) {
  .krg-sb { transform: none !important; width: var(--krg-rail-w); overflow: hidden; z-index: 66; transition: width .3s var(--krg-ease) .14s, box-shadow .3s; }
  .krg-sb:hover, .krg-sb:focus-within, body.krg-sb-open .krg-sb { width: var(--krg-sb-w); transition-delay: 0s; }
  .krg-sb:hover:not(.x), .krg-sb:focus-within { box-shadow: 18px 0 50px -24px rgba(0, 0, 0, .65); }
  body.krg-sb-open .krg-sb { box-shadow: none; }
  .krg-sb__pin { display: grid; place-items: center; }

  /* collapsed look */
  body:not(.krg-sb-open) .krg-sb:not(:hover):not(:focus-within) .krg-sb__txt { opacity: 0; max-width: 0; overflow: hidden; white-space: nowrap; }
  body:not(.krg-sb-open) .krg-sb:not(:hover):not(:focus-within) :is(.krg-sb__search, .krg-sb__label, .krg-sb__chev, .krg-sb__pin, .krg-sb__nav ul ul, .krg-sb__social) { display: none !important; }
  body:not(.krg-sb-open) .krg-sb:not(:hover):not(:focus-within) .krg-sb__head { justify-content: center; padding: 1rem .4rem .8rem; }
  body:not(.krg-sb-open) .krg-sb:not(:hover):not(:focus-within) .krg-sb__brand { flex: 0 0 auto; }
  body:not(.krg-sb-open) .krg-sb:not(:hover):not(:focus-within) .krg-sb__quick { grid-template-columns: 1fr; }
  body:not(.krg-sb-open) .krg-sb:not(:hover):not(:focus-within) .krg-sb__quick > * { justify-content: center; padding: .65rem 0; }
  body:not(.krg-sb-open) .krg-sb:not(:hover):not(:focus-within) .krg-sb__ico { margin-right: 0; }
  body:not(.krg-sb-open) .krg-sb:not(:hover):not(:focus-within) :is(.krg-sb__item, .krg-sb__home) { justify-content: center; padding-left: 0 !important; padding-right: 0 !important; }
  body:not(.krg-sb-open) .krg-sb:not(:hover):not(:focus-within) .krg-sb__foot { justify-items: center; padding: .8rem .2rem 1rem; }
  body:not(.krg-sb-open) .krg-sb:not(:hover):not(:focus-within) .krg-sb__foot > a { gap: 0; }
  body:not(.krg-sb-open) .krg-sb:not(:hover):not(:focus-within) .krg-sb__scroll { padding-left: .55rem; padding-right: .55rem; overflow-x: hidden; }
  .krg-sb__quick > * { overflow: hidden; white-space: nowrap; }
}

/* hide the open/closed tooltip-less toggle label spacing on tablets */
@media (max-width: 1023px) { .krg-sb { overflow: visible; } }

/* =========================================================
   Advisers / Testimonials / Collaborations - compact trio
   ========================================================= */
.krg-trio { padding: 2rem 1rem 2.25rem; background: linear-gradient(180deg, #f5f7fb, #eef2fa); }
.krg-trio__wrap { container-type: inline-size; max-width: 1280px; margin: 0 auto; }
.krg-trio__grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@container (min-width: 520px) { .krg-trio__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .krg-panel--collab { grid-column: 1 / -1; } .krg-panel--collab .krg-marquee__track--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (min-width: 760px) { .krg-trio__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .krg-panel--collab { grid-column: auto; } .krg-panel--collab .krg-marquee__track--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.krg-panel { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--krg-line); border-radius: var(--krg-radius); box-shadow: var(--krg-shadow-sm); overflow: hidden; }
.krg-panel__head { display: flex; align-items: center; gap: .5rem; padding: .5rem .85rem; color: #fff; background: linear-gradient(135deg, var(--krg-navy), var(--krg-navy-2)); }
.krg-panel__head i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; font-size: .7rem; color: var(--krg-navy-dark); background: linear-gradient(135deg, var(--krg-gold), var(--krg-gold-2)); }
.krg-panel__head h2 { font-size: .82rem; font-weight: 700; letter-spacing: .01em; margin: 0; color: #fff; }

.krg-marquee { position: relative; height: 190px; overflow-y: auto; padding: .4rem .9rem; scrollbar-width: thin; }
.krg-marquee.is-running { overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.krg-marquee__track { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; will-change: transform; }
.krg-marquee:hover .krg-marquee__track, .krg-marquee:focus-within .krg-marquee__track { animation-play-state: paused !important; }
@keyframes krgUp { from { transform: translateY(0); } to { transform: translateY(calc(var(--krg-shift) * -1)); } }

.krg-row { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; border-radius: 14px; background: #f8faff; border: 1px solid var(--krg-line); transition: border-color .25s, box-shadow .25s; }
.krg-row:hover { border-color: #c7d4f0; box-shadow: var(--krg-shadow-sm); }
.krg-avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--krg-gold-2); box-shadow: 0 6px 14px -8px rgba(11, 42, 91, .6); }
.krg-row__body { min-width: 0; }
.krg-row__body strong { display: block; font-size: .82rem; font-weight: 700; color: #1d4ed8; line-height: 1.25; }
.krg-row__body span { display: block; font-size: .7rem; color: #475569; line-height: 1.35; margin-top: 1px; }
.krg-row--quote .krg-row__body p { margin: 0; font-size: .74rem; line-height: 1.45; font-style: italic; color: #334155; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.krg-marquee__track--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.krg-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: .45rem .3rem; background: #fff; border: 1px solid var(--krg-line); border-radius: 14px; text-align: center; transition: transform .3s var(--krg-ease), box-shadow .3s; }
.krg-logo:hover { transform: translateY(-2px); box-shadow: var(--krg-shadow-sm); }
.krg-logo img { width: 100%; height: 40px; object-fit: contain; }
.krg-logo span { font-size: .62rem; font-weight: 600; color: #475569; line-height: 1.25; }
@media (max-width: 767px) { .krg-marquee { height: 170px; } .krg-trio { padding: 1.25rem .75rem 1.5rem; } }

@media (prefers-reduced-motion: reduce) { .krg-marquee__track { animation: none !important; } .krg-marquee { overflow-y: auto; -webkit-mask-image: none; mask-image: none; } }


/* YouTube + Facebook row */
.krg-media-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .krg-media-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.krg-media { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--krg-line); border-radius: var(--krg-radius); box-shadow: var(--krg-shadow-sm); overflow: hidden; }
.krg-media__head { display: flex; align-items: center; gap: .5rem; padding: .5rem .85rem; color: #fff; background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.krg-media__head--fb { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.krg-media__head i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: rgba(255, 255, 255, .18); font-size: .75rem; }
.krg-media__head h2 { margin: 0; font-size: .84rem; font-weight: 700; color: #fff; }
.krg-media__body { flex: 1 1 auto; display: grid; place-items: center; background: #f8faff; }
.krg-media__body--video { aspect-ratio: 16 / 9; max-height: 260px; background: #000; }
.krg-media__body--video iframe { width: 100%; height: 100%; border: 0; display: block; }
.krg-media__body--fb { min-height: 280px; padding: .4rem; overflow: hidden; }
.krg-media__body--fb .fb-page, .krg-media__body--fb .fb-page > span, .krg-media__body--fb iframe { max-width: 100% !important; }
@media (min-width: 768px) { .krg-media__body--fb { min-height: 0; } }


/* WhatsApp channel banner */
.krg-wa {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; color: #fff; border-radius: var(--krg-radius);
  background: linear-gradient(120deg, #075e54 0%, #128c7e 55%, #25d366 100%); box-shadow: 0 18px 36px -20px rgba(7, 94, 84, .9);
  transition: transform .3s var(--krg-ease), box-shadow .3s; position: relative; overflow: hidden;
}
.krg-wa::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.krg-wa:hover { transform: translateY(-2px); box-shadow: 0 24px 44px -20px rgba(7, 94, 84, 1); }
.krg-wa__icon { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.9rem; background: rgba(255, 255, 255, .18); }
.krg-wa__text { flex: 1 1 auto; min-width: 0; display: block; }
.krg-wa__text strong { display: block; font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.krg-wa__text small { display: block; margin-top: 2px; font-size: .82rem; color: #d9fdd3; line-height: 1.4; }
.krg-wa__btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.2rem; border-radius: 999px; background: #fff; color: #075e54; font-weight: 700; font-size: .88rem; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .6); }
.krg-wa__btn i { font-size: .72rem; transition: transform .25s; }
.krg-wa:hover .krg-wa__btn i { transform: translateX(4px); }
@media (max-width: 640px) {
  .krg-wa { flex-wrap: wrap; padding: .9rem; gap: .75rem; }
  .krg-wa__icon { width: 46px; height: 46px; font-size: 1.6rem; }
  .krg-wa__btn { width: 100%; justify-content: center; }
}
.krg-social i { font-size: 1.1rem; }


/* Departments strip */
.krg-depts { padding: 0 1rem 2.5rem; }
.krg-depts__inner { max-width: 1280px; margin: 0 auto; }
.krg-depts__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.krg-depts__head i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-size: .8rem; color: #fff; background: linear-gradient(135deg, var(--krg-navy), var(--krg-navy-2)); }
.krg-depts__head h2 { font-size: 1rem; font-weight: 700; color: var(--krg-navy); margin: 0; white-space: nowrap; overflow-wrap: normal; }
.krg-depts__head span { font-size: .74rem; color: var(--krg-muted); }
.krg-depts__all { margin-left: auto; font-size: .8rem; font-weight: 600; color: #1d4ed8; white-space: nowrap; }
.krg-depts__all:hover { text-decoration: underline; }
.krg-hmarquee { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: .2rem 0; }
.krg-hmarquee::-webkit-scrollbar { display: none; }
.krg-hmarquee.is-running { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); }
.krg-hmarquee__track { display: flex; flex-wrap: nowrap; gap: .6rem; width: max-content; will-change: transform; }
.krg-hmarquee:hover .krg-hmarquee__track, .krg-hmarquee:focus-within .krg-hmarquee__track { animation-play-state: paused !important; }
@keyframes krgLeft { from { transform: translateX(0); } to { transform: translateX(calc(var(--krg-shift-x) * -1)); } }
.krg-dept { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.05rem; background: #fff; border: 1px solid var(--krg-line); border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--krg-navy); white-space: nowrap; box-shadow: 0 4px 12px -8px rgba(11, 42, 91, .4); transition: transform .25s var(--krg-ease), border-color .25s, background .25s; }
.krg-dept i { color: #3b82f6; font-size: .75rem; }
.krg-dept:hover { border-color: #3b82f6; background: #eef4ff; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .krg-hmarquee__track { animation: none !important; } .krg-hmarquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } }
@media (max-width: 640px) {
  .krg-depts__head { flex-wrap: wrap; row-gap: .3rem; }
  .krg-depts__head span { display: none; }
  .krg-depts__head h2 { font-size: .92rem; }
}


/* Notice viewer attachments */
.krg-att { display: block; margin-bottom: 1.25rem; border: 1px solid var(--krg-line); border-radius: 14px; overflow: hidden; background: #fff; }
.krg-att--photo { background: #f8faff; }
.krg-att--photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 90vh; margin: 0 auto; object-fit: contain; }
.krg-att__bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem .9rem; background: #eef4ff; border-bottom: 1px solid var(--krg-line); }
.krg-att__name { min-width: 0; font-size: .85rem; font-weight: 600; color: var(--krg-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.krg-att__btn { flex: 0 0 auto; padding: .4rem .9rem; border-radius: 999px; background: #1d4ed8; color: #fff; font-size: .8rem; font-weight: 600; }
.krg-att__btn:hover { background: var(--krg-navy); }
.krg-att__frame { display: none; width: 100%; height: 80vh; border: 0; }
@media (min-width: 768px) { .krg-att__frame { display: block; } }


/* Notice lists (home board, popup, archive) */
.krg-notice__list { list-style: none; margin: 0; padding: 0; }
.krg-notice__date { margin-top: .35rem; padding: .35rem .65rem; border-radius: 8px; border-left: 4px solid var(--krg-gold); background: #dbeafe; color: #1e3a8a; font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.krg-notice__date--pinned { background: #1d4ed8; border-left-color: #7dd3fc; color: #fff; text-transform: uppercase; }
.krg-notice__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; padding: .4rem .65rem; border-bottom: 1px solid var(--krg-line); }
.krg-notice__item a { color: #1d4ed8; }
.krg-notice__item a:hover { text-decoration: underline; }
.krg-tag { padding: 1px 9px; border-radius: 999px; background: #e0f2fe; color: #075985; font-size: .68rem; font-weight: 600; white-space: nowrap; }

.krg-archive { max-width: 56rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
.krg-archive h1 { margin: 0 0 1rem; font-size: 1.7rem; font-weight: 700; color: var(--krg-navy); }
.krg-archive__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.krg-archive__filters input, .krg-archive__filters select { flex: 1 1 14rem; min-width: 0; padding: .6rem .85rem; border: 1px solid var(--krg-line); border-radius: 10px; background: #fff; font: inherit; }
.krg-archive__filters select { flex: 0 1 12rem; }
.krg-archive__filters button { padding: .6rem 1.3rem; border: 0; border-radius: 10px; background: #1d4ed8; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.krg-archive__filters button:hover { background: var(--krg-navy); }
.krg-archive__filters a { align-self: center; color: #1d4ed8; font-size: .9rem; }
.krg-archive__list { padding: .75rem; border: 1px solid var(--krg-line); border-radius: var(--krg-radius); background: #fff; list-style: none; margin: 0; }
.krg-archive__pages { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-size: .9rem; }
.krg-archive__pages a { padding: .45rem 1rem; border-radius: 999px; background: #1d4ed8; color: #fff; font-weight: 600; }
.krg-archive__empty { padding: 2rem; text-align: center; color: var(--krg-muted); }

/* Department page: complaint counts and faculty */
.krg-dept-stats { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 0 0 1.75rem; }
.krg-dept-stats__item { min-width: 9.5rem; padding: .7rem 1.1rem; border: 1px solid var(--krg-line); border-radius: 14px; background: #fff; box-shadow: var(--krg-shadow-sm); }
.krg-dept-stats__item strong { display: block; color: var(--krg-navy); font-size: 1.6rem; line-height: 1.1; }
.krg-dept-stats__item span { color: var(--krg-muted); font-size: .8rem; }
.krg-dept-stats__item--pending { border-left: 5px solid #0ea5e9; }
.krg-dept-stats__item--pending strong { color: #1d4ed8; }
.krg-dept-stats__link { margin-left: auto; padding: .55rem 1.1rem; border-radius: 999px; background: #1d4ed8; color: #fff; font-size: .85rem; font-weight: 600; }
.krg-dept-stats__link:hover { background: var(--krg-navy); }

.krg-faculty__empty { padding: 2rem; text-align: center; color: var(--krg-muted); }
@media (max-width: 640px) { .krg-dept-stats__link { margin-left: 0; width: 100%; text-align: center; } .krg-dept-stats__item { flex: 1 1 8rem; } }
@media (max-width: 640px) { .tab-btn { padding: .55rem 1.05rem !important; font-size: .85rem; white-space: nowrap; } }

.krg-dept { align-items: center; padding: .5rem 1.05rem; border-radius: 18px; }
.krg-dept__text { display: flex; flex-direction: column; line-height: 1.2; }
.krg-dept__name { font-weight: 600; }
.krg-dept small { color: var(--krg-muted); font-size: .68rem; font-weight: 500; letter-spacing: .01em; }

/* Department faculty list */
.krg-faculty-count { margin: -1rem 0 1rem; text-align: center; color: var(--krg-muted); font-size: .9rem; }
.krg-faculty-list { overflow: hidden; border: 1px solid var(--krg-line); border-radius: var(--krg-radius); background: #fff; box-shadow: var(--krg-shadow-sm); }
.krg-faculty-list table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.krg-faculty-list thead th { padding: .75rem 1rem; background: linear-gradient(90deg, var(--krg-navy), var(--krg-navy-2)); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.krg-faculty-list td, .krg-faculty-list tbody th { padding: .8rem 1rem; border-bottom: 1px solid var(--krg-line); vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.krg-faculty-list tbody tr:last-child td, .krg-faculty-list tbody tr:last-child th { border-bottom: 0; }
.krg-faculty-list tbody tr:nth-child(even) { background: #f8faff; }
.krg-faculty-list tbody th { color: var(--krg-navy); font-weight: 700; }
.krg-faculty-list td:first-child { width: 3rem; color: var(--krg-muted); }
.krg-faculty-list td b { color: #1d4ed8; font-size: .74rem; margin-right: .25rem; }
.krg-faculty-list details { margin-top: .4rem; font-weight: 400; }
.krg-faculty-list summary { cursor: pointer; color: #1d4ed8; font-size: .8rem; font-weight: 600; }
.krg-faculty-list h4 { margin: .6rem 0 .1rem; color: var(--krg-navy); font-size: .76rem; font-weight: 700; }
.krg-faculty-list details p { margin: 0; color: #1e293b; font-size: .84rem; }
.krg-faculty__empty { padding: 2rem; text-align: center; color: var(--krg-muted); }
@media (max-width: 767px) {
  .krg-faculty-list thead { display: none; }
  .krg-faculty-list tbody tr { display: block; padding: .75rem 1rem; border-bottom: 1px solid var(--krg-line); }
  .krg-faculty-list tbody tr:last-child { border-bottom: 0; }
  .krg-faculty-list td, .krg-faculty-list tbody th { display: block; padding: .15rem 0; border: 0; }
  .krg-faculty-list td:first-child { display: none; }
  .krg-faculty-list tbody th { font-size: 1rem; }
  .krg-faculty-list td[data-label]::before { content: attr(data-label) ": "; color: var(--krg-muted); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
  .krg-faculty-list td[data-label="Qualification"] div { display: inline; }
}

/* Public faculty form */
.krg-form { max-width: 52rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
.krg-form h1 { margin: 0 0 .5rem; color: var(--krg-navy); font-size: 1.8rem; font-weight: 700; text-align: center; }
.krg-form__lead { margin: 0 0 1.5rem; color: var(--krg-muted); text-align: center; font-size: .92rem; }
.krg-form__message { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 12px; font-size: .92rem; }
.krg-form__message--success { background: #dcfce7; color: #166534; }
.krg-form__message--error { background: #fee2e2; color: #991b1b; }
.krg-form fieldset { margin: 0 0 1.25rem; padding: 1.1rem 1.25rem 1.25rem; border: 1px solid var(--krg-line); border-radius: var(--krg-radius); background: #fff; box-shadow: var(--krg-shadow-sm); }
.krg-form legend { padding: 0 .5rem; color: var(--krg-navy); font-size: 1rem; font-weight: 700; }
.krg-form__grid { display: grid; gap: 0 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.krg-field { margin-top: .9rem; }
.krg-field label { display: block; margin-bottom: .3rem; color: #334155; font-size: .86rem; font-weight: 600; }
.krg-field label b { color: #dc2626; }
.krg-field input:not([type=file]), .krg-field select, .krg-field textarea { width: 100%; box-sizing: border-box; padding: .6rem .8rem; border: 1px solid var(--krg-line); border-radius: 10px; background: #fff; font: inherit; }
.krg-field.has-error input, .krg-field.has-error select, .krg-field.has-error textarea { border-color: #dc2626; background: #fef2f2; }
.krg-field.has-error label { color: #b91c1c; }
.krg-photo.has-error .krg-photo__drop { border-color: #dc2626; background: #fef2f2; }
.krg-field__error { margin: .3rem 0 0; color: #dc2626; font-size: .8rem; }
.krg-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.krg-form__submit { display: block; width: 100%; padding: .9rem; border: 0; border-radius: 999px; background: linear-gradient(90deg, #1d4ed8, #0ea5e9); color: #fff; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.krg-form__submit:hover { filter: brightness(1.06); }

/* photo picker on the public faculty form */
.krg-photo { margin-top: 1.1rem; }
.krg-photo input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.krg-photo__drop { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 2px dashed #93b4e8; border-radius: var(--krg-radius); background: #f0f6ff; cursor: pointer; transition: border-color .15s, background .15s; }
.krg-photo__drop:hover { border-color: #1d4ed8; background: #e4efff; }
.krg-photo__preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #1d4ed8; flex: 0 0 auto; }
.krg-photo__hint { color: #334155; font-size: .92rem; line-height: 1.45; }
.krg-photo__hint b { display: block; color: #0b2a5b; font-size: 1rem; }
.krg-photo__hint::before { content: "\1F4F7"; display: inline-block; margin-right: .4rem; font-size: 1.15rem; }

/* submission thank-you page */
.krg-sent { padding: 3.5rem 1rem; }
.krg-sent__card { max-width: 560px; margin: 0 auto; background: #fff; border-radius: var(--krg-radius); border: 1px solid #dbe6f8; border-top: 4px solid #15803d; padding: 2.4rem 2rem; text-align: center; box-shadow: 0 8px 24px rgba(11,42,91,.08); }
.krg-sent__tick { width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 2rem; line-height: 64px; }
.krg-sent h1 { font-size: 1.6rem; color: #0b2a5b; margin: 0 0 .8rem; }
.krg-sent p { color: #334155; line-height: 1.55; }
.krg-sent__note { font-size: .9rem; color: #64748b !important; }
.krg-sent__home { display: inline-block; margin-top: 1.4rem; padding: .7rem 1.8rem; background: #0b2a5b; color: #fff !important; border-radius: 999px; font-weight: 600; text-decoration: none; }
.krg-form__submit:disabled { opacity: .65; cursor: wait; }

/* mobile quick links row inside the sticky header */
.krg-quickstrip { display: none; }
@media (max-width: 767px) {
  .krg-topbar { row-gap: .15rem; }
  .krg-topbar__brand { flex-basis: 200px; min-width: 180px; }
  .krg-topbar__mp img { height: 34px; }
  .krg-quickstrip { display: flex; flex: 0 0 100%; align-items: center; flex-wrap: wrap; gap: .35rem; padding: .3rem 0 .1rem; }
  .krg-quickstrip a { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .75rem; border-radius: 999px; background: #eef3ff; color: var(--krg-navy); font-size: .8rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
  .krg-quickstrip a i { color: var(--krg-navy-2); font-size: .78rem; }
  .krg-qs__mp { padding: 0 !important; background: none !important; }
  .krg-qs__mp img { height: 36px; width: auto; display: block; }
}
@media (max-width: 767px) { .krg-topbar__name strong, .krg-topbar__name small { font-size: .98rem; } }

/* spread the header rows edge to edge */
@media (min-width: 768px) {
  .krg-topbar { justify-content: space-between; }
  .krg-topbar__brand { flex: 0 1 auto; }
  .krg-topbar__brand .krg-topbar__name strong { font-size: 1.22rem; }
  .krg-topbar__brand .krg-topbar__name small { font-size: 1.05rem; }
  .krg-topbar__naac { margin-left: 0; }
  .krg-topbar__mp { margin-left: 0; }
  .krg-topbar__actions { justify-content: space-between; }
}
