:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Sora", "Inter", ui-sans-serif, system-ui, sans-serif;
  --color-navy: #0a2540;
  --color-navy-dark: #06182b;
  --color-navy-mid: #1b4f82;
  --color-navy-deep: #041221;
  --color-saffron: #d4a017;
  --color-saffron-soft: #e8b84a;
  --color-gold: #c9950c;
  --color-teal: #0d9488;
  --color-surface: #f7f9fc;
  --color-surface-alt: #eef3f8;
  --color-ink: #0f172a;
  --color-muted: #5b6b7c;
  --radius-card: 14px;
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card:
    0 1px 2px rgba(10, 37, 64, 0.04),
    0 10px 28px rgba(10, 37, 64, 0.06);
  --shadow-card-hover:
    0 2px 6px rgba(10, 37, 64, 0.05),
    0 18px 44px rgba(10, 37, 64, 0.12);
  --border-subtle: 1px solid rgba(10, 37, 64, 0.08);
}

body.flex {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Soft page canvas — matches home surface language */
body.flex.min-h-screen {
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(27, 79, 130, 0.06), transparent 55%),
    linear-gradient(180deg, var(--color-surface) 0%, #ffffff 38%, var(--color-surface-alt) 100%);
}

body.flex > main {
  position: relative;
}

/* Sticky header — solid so menu never looks washed out */
body > header.sticky {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(10, 37, 64, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 10px 28px rgba(10, 37, 64, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Page helpers */
.page-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #06182b 0%, #0a2540 60%, #1b4f82 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 640px) {
  .page-title {
    font-size: 2.25rem;
  }
}

.page-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-teal);
}

.page-lead {
  margin-top: 1rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-muted);
}

/* Announcements / Archives — style old h6/p/br/font markup for the current template */
.announce-page {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-muted);
}

.announce-page > br,
.announce-page > div > br {
  display: none;
}

.announce-page div:empty {
  display: block;
  clear: both;
  height: 0;
  margin: 0;
  padding: 0;
}

.announce-page h6,
.announce-page .headline,
.announce-page p.mt-2,
.announce-page p.mt-3,
.announce-page p.mt-4 {
  clear: both;
  margin: 1.75rem 0 0.55rem !important;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(10, 37, 64, 0.08);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  text-align: left;
}

.announce-page h6:first-of-type,
.announce-page .headline:first-of-type,
.announce-page > div > h6:first-child,
.announce-page > div > .headline:first-child,
.announce-page > div > p.mt-2:first-child,
.announce-page > div > p.mt-3:first-child,
.announce-page > div > p.mt-4:first-child {
  margin-top: 1.25rem !important;
  padding-top: 0;
  border-top: 0;
}

.announce-page h6 strong,
.announce-page .headline strong,
.announce-page p.mt-2 > strong,
.announce-page p.mt-3 > strong,
.announce-page p.mt-4 > strong {
  font-weight: 700;
  color: inherit;
}

.announce-page p {
  margin: 0 0 0.55rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-muted);
  text-align: justify;
}

.announce-page p strong {
  font-weight: 600;
  color: var(--color-ink);
}

.announce-page a {
  font-weight: 600;
  color: var(--color-navy-mid);
  text-decoration: underline;
  text-decoration-color: rgba(212, 160, 23, 0.45);
  text-underline-offset: 2px;
  transition: color 0.2s var(--ease-premium), text-decoration-color 0.2s var(--ease-premium);
}

.announce-page a:hover {
  color: var(--color-saffron);
  text-decoration-color: rgba(212, 160, 23, 0.8);
}

.announce-page img {
  display: block;
  float: left;
  width: 250px;
  max-width: min(250px, 100%);
  height: auto;
  margin: 0.15rem 1.15rem 0.85rem 0;
  border-radius: 12px;
  border: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow: var(--shadow-card);
  background: #fff;
}

.announce-page > b,
.announce-page > font {
  display: block;
  clear: both;
  margin: 1.75rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

.announce-page > b font,
.announce-page font a,
.announce-page a font {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.announce-page a:has(font) {
  display: inline-block;
  margin: 0 0 1.25rem;
}

@media (max-width: 639px) {
  .announce-page img {
    float: none;
    width: 100%;
    max-width: 18rem;
    margin: 0.25rem 0 1rem;
  }
}

/* Workshop calendar — event title vs document links */
.workshop-cal-page .workshop-cal-event {
  display: inline;
  color: var(--color-ink);
  font-weight: 500;
}

.workshop-cal-page .workshop-cal-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin-left: 0.45rem;
  vertical-align: middle;
}

.workshop-cal-page .workshop-cal-sep {
  color: rgba(10, 37, 64, 0.28);
  font-weight: 500;
}

.workshop-cal-page .workshop-cal-link {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(13, 148, 136, 0.35);
  background: rgba(13, 148, 136, 0.08);
  padding: 0.2rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-teal);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(13, 148, 136, 0.08);
  transition:
    background-color 0.2s var(--ease-premium),
    border-color 0.2s var(--ease-premium),
    color 0.2s var(--ease-premium),
    transform 0.2s var(--ease-premium);
}

.workshop-cal-page .workshop-cal-link:hover {
  border-color: rgba(13, 148, 136, 0.55);
  background: rgba(13, 148, 136, 0.14);
  color: #0f766e;
  text-decoration: none;
  transform: translateY(-1px);
}

.workshop-cal-page .workshop-cal-link:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

.workshop-cal-page {
  width: 100%;
  max-width: 72rem;
  min-width: 0;
}

.workshop-cal-page .inup-table-wrap {
  max-width: 100%;
}

/* NSQF — long URLs must wrap on mobile */
.nsqf-page {
  width: 100%;
  max-width: 48rem;
  min-width: 0;
}

.nsqf-page .inup-card {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.nsqf-page a,
.nsqf-page .bullet-list > li,
.nsqf-page p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Gallery albums — mobile safe */
.gallery-index {
  width: 100%;
  min-width: 0;
}

.gallery-index .inup-card {
  max-width: 100%;
  min-width: 0;
}

.gallery-index code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Industrial training mobile */
.industrial-train-page {
  min-width: 0;
  overflow-x: hidden;
}

.industrial-train-page .list-page__panel {
  min-width: 0;
}

.industrial-train-page .list-page__panel h2 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Long links / prose overflow — all pages */
.page-prose a,
.page-prose p,
.bullet-list > li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 767px) {
  .workshop-cal-page .inup-card > button {
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
  }

  .workshop-cal-page .inup-card > button > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .workshop-cal-page .inup-card > div.border-t {
    padding: 0.85rem;
  }

  /* Keep a readable table: scroll horizontally instead of crushing columns */
  .workshop-cal-page .inup-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .workshop-cal-page .inup-table {
    min-width: 40rem !important;
    width: max-content;
    max-width: none;
  }

  .workshop-cal-page .inup-table th,
  .workshop-cal-page .inup-table td {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    padding: 0.75rem 0.85rem;
    font-size: 0.8125rem;
    vertical-align: top;
  }

  .workshop-cal-page .inup-table th {
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .workshop-cal-page .inup-table th:nth-child(1),
  .workshop-cal-page .inup-table td:nth-child(1) {
    white-space: nowrap;
    width: 3.5rem;
  }

  .workshop-cal-page .inup-table th:nth-child(2),
  .workshop-cal-page .inup-table td:nth-child(2) {
    min-width: 16rem;
    max-width: 22rem;
  }

  .workshop-cal-page .inup-table th:nth-child(3),
  .workshop-cal-page .inup-table td:nth-child(3),
  .workshop-cal-page .inup-table th:nth-child(4),
  .workshop-cal-page .inup-table td:nth-child(4) {
    white-space: nowrap;
  }

  .workshop-cal-page .workshop-cal-event {
    display: block;
    margin-bottom: 0.5rem;
  }

  .workshop-cal-page .workshop-cal-links {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .workshop-cal-page .workshop-cal-link {
    white-space: nowrap;
    text-align: center;
    line-height: 1.3;
  }

  .nsqf-page .inup-card {
    padding: 1rem !important;
  }

  .nsqf-page .page-title,
  .nsqf-page h2 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .gallery-index .inup-card > div.flex {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
  }

  .gallery-index .inup-card .p-5 {
    padding: 1rem;
  }

  .gallery-index a.flex span.truncate {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .industrial-train-page .list-page__header {
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
  }

  .industrial-train-page .list-page__panel {
    padding: 0.85rem;
  }

  .industrial-train-page .inup-table-wrap--datatable {
    padding: 0.65rem 0.35rem 0.85rem;
  }

  .industrial-train-page .dataTables_filter input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .page-title {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* Collaborating institutes — keep numbered <ol> visible */
.page-prose ol {
  list-style-type: decimal;
  list-style-position: outside;
  margin: 0.75rem 0 1rem;
  padding-left: 1.5rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-ink);
}

.page-prose ol > li {
  margin: 0.55rem 0;
  padding-left: 0.35rem;
  display: list-item;
}

.page-prose ol .bullet-list {
  margin-top: 0.65rem;
  margin-bottom: 0.35rem;
}

/* Collaborating institutes — Support/Activities card layout */
.collab-page {
  width: 100%;
  max-width: 72rem;
  min-width: 0;
  overflow-x: hidden;
}

.collab-split {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.collab-split__table,
.collab-split__aside {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.collab-page .firstbox {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: #ffffff;
}

.collab-page .firstbox__title {
  margin: 0;
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(135deg, #0a2540 0%, #1b4f82 100%);
}

.collab-page .firstbox .bullet-list > li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 1100px) {
  .collab-split {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 22rem);
  }

  .collab-split__aside {
    position: sticky;
    top: 7.5rem;
  }
}

@media (max-width: 1099px) {
  .collab-split__aside {
    order: 2;
  }

  .collab-page .firstbox {
    margin-inline: 0;
  }
}

/* Industrial training — full-width list layout + clear detail links */
.industrial-train-page.list-page {
  max-width: 100%;
}

.industrial-train-page .list-page__panel {
  max-width: 100%;
}

.industrial-train-page .industrial-train-link {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(13, 148, 136, 0.35);
  background: rgba(13, 148, 136, 0.08);
  padding: 0.25rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease-premium),
    border-color 0.2s var(--ease-premium),
    color 0.2s var(--ease-premium),
    transform 0.2s var(--ease-premium);
}

.industrial-train-page .industrial-train-link:hover {
  border-color: rgba(13, 148, 136, 0.55);
  background: rgba(13, 148, 136, 0.14);
  color: #0f766e;
  text-decoration: none;
  transform: translateY(-1px);
}

.page-prose {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-muted);
}

/* Prose pages often use Tailwind `mt-*` on headings (e.g. `mt-4`, `mt-2`).
   Because `.page-prose` already uses `gap`, those margins create double-spacing.
   This block normalizes spacing/typography without changing page text/markup. */
.page-prose > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.page-prose p {
  text-align: justify;
  line-height: 1.7;
}

.page-prose a {
  font-weight: 500;
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-color: rgba(212, 160, 23, 0.4);
  text-underline-offset: 2px;
  transition: color 0.2s var(--ease-premium), text-decoration-color 0.2s var(--ease-premium);
}

.page-prose a:hover {
  color: var(--color-saffron);
  text-decoration-color: rgba(212, 160, 23, 0.75);
}

.page-prose h2,
.page-prose h3,
.page-prose h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

.page-prose h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.page-prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Force design-system sizing over Tailwind utilities like `text-2xl` / `text-xl`. */
.page-prose h2 {
  font-size: 1.35rem !important;
}

.page-prose h3 {
  font-size: 1.1rem !important;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bullet-list > li {
  display: flex;
  gap: 0.75rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-muted);
  border-radius: 0.65rem;
  padding: 0.15rem 0.2rem;
  transition: background-color 0.25s var(--ease-premium);
}

.bullet-list > li:hover {
  background: rgba(238, 243, 248, 0.9);
}

.bullet-list > li::before {
  content: "";
  margin-top: 0.55rem;
  height: 0.5rem;
  width: 0.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--color-saffron);
}

/* Tables */
.inup-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-card);
  border: 1px solid rgba(10, 37, 64, 0.08);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.inup-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.inup-table thead {
  background: linear-gradient(135deg, #06182b 0%, #0a2540 45%, #1b4f82 100%);
  color: #fff;
}

.inup-table th {
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.inup-table td {
  border-top: 1px solid rgba(10, 37, 64, 0.07);
  padding: 0.8rem 1rem;
  color: var(--color-ink);
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: background-color 0.25s var(--ease-premium);
}

.inup-table tbody tr:nth-child(even) {
  background: rgba(247, 249, 252, 0.75);
}

.inup-table tbody tr:hover {
  background: rgba(13, 148, 136, 0.05);
}

/* DataTables — top controls + bottom pagination */
.inup-table-wrap--datatable {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1rem 1.15rem;
}

.inup-table-wrap--datatable .dataTables_wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.inup-table-wrap--datatable .dataTables_scroll {
  clear: both;
  margin-top: 0.25rem;
  max-width: 100%;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.03);
}

.inup-table-wrap--datatable .dataTables_scrollHead,
.inup-table-wrap--datatable .dataTables_scrollBody {
  width: 100% !important;
  max-width: 100%;
}

.inup-table-wrap--datatable .dataTables_scrollHead {
  overflow: hidden !important;
}

.inup-table-wrap--datatable .dataTables_scrollBody {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
}

.inup-table-wrap--datatable .dataTables_scrollHeadInner,
.inup-table-wrap--datatable .dataTables_scrollHeadInner table,
.inup-table-wrap--datatable .dataTables_scrollBody table {
  max-width: none;
}

.inup-table-wrap--datatable table.dataTable {
  margin: 0 !important;
  border-collapse: collapse !important;
  font-variant-numeric: tabular-nums;
}

.inup-table-wrap--datatable table.dataTable thead th {
  background: linear-gradient(135deg, #06182b 0%, #0a2540 45%, #1b4f82 100%) !important;
  color: #fff !important;
  border-bottom: none !important;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1rem !important;
}

.inup-table-wrap--datatable table.dataTable tbody td {
  border-top: 1px solid rgba(10, 37, 64, 0.07) !important;
  padding: 0.8rem 1rem !important;
  transition: background-color 0.25s var(--ease-premium);
}

.inup-table-wrap--datatable table.dataTable tbody tr:hover td {
  background: rgba(13, 148, 136, 0.05) !important;
}

.inup-table-wrap--datatable .dt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.inup-table-wrap--datatable .dt-button {
  border: 1px solid rgba(10, 37, 64, 0.12);
  border-radius: 0.65rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--color-navy);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.04);
  transition: all 0.25s var(--ease-premium);
}

.inup-table-wrap--datatable .dt-button:hover {
  border-color: rgba(13, 148, 136, 0.45);
  background: rgba(13, 148, 136, 0.06);
  color: var(--color-teal);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
}

.inup-table-wrap--datatable th.col-sr,
.inup-table-wrap--datatable td.col-sr {
  width: 4.5rem;
  white-space: nowrap;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.inup-table-wrap--datatable .dataTables_length,
.inup-table-wrap--datatable .dataTables_filter {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.inup-table-wrap--datatable .dataTables_length label,
.inup-table-wrap--datatable .dataTables_filter label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.inup-table-wrap--datatable .dataTables_length select,
.inup-table-wrap--datatable .dataTables_filter input {
  border: 1px solid rgba(10, 37, 64, 0.14);
  border-radius: 0.55rem;
  background: #fff;
  color: var(--color-ink);
  font-size: 0.875rem;
  line-height: 1.25;
  padding: 0.45rem 0.7rem;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.inup-table-wrap--datatable .dataTables_filter input {
  min-width: min(100%, 14rem);
}

.inup-table-wrap--datatable .dataTables_length select:focus,
.inup-table-wrap--datatable .dataTables_filter input:focus {
  border-color: rgba(13, 148, 136, 0.55);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.inup-table-wrap--datatable .dataTables_info {
  padding-top: 1rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.inup-table-wrap--datatable .dataTables_paginate {
  padding-top: 0.85rem;
  text-align: right;
}

.inup-table-wrap--datatable .dataTables_paginate .paginate_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  margin-left: 0.3rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(10, 37, 64, 0.1);
  border-radius: 0.65rem;
  background: #fff;
  color: var(--color-navy) !important;
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.04);
  transition: all 0.25s var(--ease-premium);
}

.inup-table-wrap--datatable .dataTables_paginate .paginate_button:hover {
  border-color: rgba(13, 148, 136, 0.4);
  background: rgba(13, 148, 136, 0.07);
  color: var(--color-teal) !important;
  transform: translateY(-1px);
}

.inup-table-wrap--datatable .dataTables_paginate .paginate_button.current {
  border-color: transparent;
  background: linear-gradient(135deg, #0a2540 0%, #1b4f82 100%);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.22);
}

.inup-table-wrap--datatable .dataTables_paginate .paginate_button.disabled,
.inup-table-wrap--datatable .dataTables_paginate .paginate_button.disabled:hover {
  opacity: 0.45;
  cursor: default;
  background: #f8fafc;
  border-color: rgba(10, 37, 64, 0.08);
  color: var(--color-muted) !important;
  transform: none;
  box-shadow: none;
}

.inup-table-wrap--datatable .dataTables_scroll {
  width: 100% !important;
  max-width: 100%;
  clear: both;
}

.inup-table-wrap--datatable table.dataTable {
  width: max-content !important;
  min-width: 100%;
  margin: 0 !important;
  border-collapse: collapse !important;
  font-variant-numeric: tabular-nums;
}

.inup-table-wrap--datatable .dataTables_wrapper .row {
  margin: 0;
}

.inup-table-wrap--datatable td.alumni-col-ptitle {
  min-width: 12rem;
  max-width: 18rem;
  white-space: normal;
}

/* Fit table to container — no bottom horizontal scroller */
.inup-table-wrap--fit {
  overflow-x: hidden;
}

.inup-table-wrap--fit .dataTables_wrapper,
.inup-table-wrap--fit .dataTables_scroll,
.inup-table-wrap--fit .dataTables_scrollBody {
  overflow-x: hidden !important;
  max-width: 100%;
}

.inup-table-wrap--fit table.dataTable,
.inup-table-wrap--fit .inup-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  table-layout: fixed;
}

.inup-table-wrap--fit th,
.inup-table-wrap--fit td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.inup-table-wrap--fit th.col-sr,
.inup-table-wrap--fit td.col-sr {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.inup-table-wrap--fit th.phd-col-institute,
.inup-table-wrap--fit td.phd-col-institute {
  width: 24%;
  max-width: 14rem;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
  font-size: 0.8125rem;
}

.inup-table-wrap--fit th.phd-col-institute {
  white-space: nowrap !important;
  font-size: 0.72rem;
}

/* DataTables Responsive — + expand control */
.inup-table-wrap--responsive table.dataTable {
  width: 100% !important;
  min-width: 0;
}

.inup-table-wrap--responsive .dtr-control-heading {
  width: 2.75rem;
  padding: 0.75rem 0.5rem !important;
  text-align: center;
}

.inup-table-wrap--responsive td.dtr-control {
  position: relative;
  width: 2.75rem;
  cursor: pointer;
  vertical-align: middle;
  text-align: center;
}

/* Kill DataTables default ► / green control; draw a proper + / − */
.inup-table-wrap--responsive table.dataTable > tbody > tr > td.dtr-control::before,
.inup-table-wrap--responsive table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
.inup-table-wrap--responsive table.dataTable.dtr-column > tbody > tr > td.dtr-control::before,
.inup-table-wrap--responsive table.dataTable.dtr-column > tbody > tr > th.dtr-control::before {
  content: "+" !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 1.65rem !important;
  height: 1.65rem !important;
  margin: 0 auto !important;
  border-radius: 9999px !important;
  border: 1.5px solid rgba(13, 148, 136, 0.45) !important;
  background: #ecfdf8 !important;
  background-image: none !important;
  color: #0f766e !important;
  font-family: var(--font-display), ui-sans-serif, system-ui, sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
  box-shadow: 0 1px 2px rgba(13, 148, 136, 0.12) !important;
  transition:
    background-color 0.2s var(--ease-premium),
    border-color 0.2s var(--ease-premium),
    color 0.2s var(--ease-premium),
    transform 0.2s var(--ease-premium);
}

.inup-table-wrap--responsive table.dataTable > tbody > tr:hover > td.dtr-control::before {
  border-color: rgba(13, 148, 136, 0.7) !important;
  background: #d1fae5 !important;
  transform: scale(1.05);
}

.inup-table-wrap--responsive table.dataTable > tbody > tr.parent > td.dtr-control::before,
.inup-table-wrap--responsive table.dataTable > tbody > tr.dt-hasChild > td.dtr-control::before,
.inup-table-wrap--responsive table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control::before,
.inup-table-wrap--responsive table.dataTable.dtr-column > tbody > tr.parent > td.dtr-control::before {
  content: "\2212" !important; /* minus sign */
  border-color: transparent !important;
  background: var(--color-navy) !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.22) !important;
}

.inup-table-wrap--responsive .dtr-details {
  width: 100%;
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0.35rem 0;
}

.inup-table-wrap--responsive .dtr-details > li {
  display: grid;
  grid-template-columns: minmax(7rem, 34%) 1fr;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
  padding: 0.45rem 0;
}

.inup-table-wrap--responsive .dtr-details > li:last-child {
  border-bottom: 0;
}

.inup-table-wrap--responsive .dtr-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.inup-table-wrap--responsive .dtr-data {
  color: var(--color-ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.inup-table-wrap--responsive tr.child td {
  background: #f8fafc;
  padding: 0.85rem 1rem 1rem 2.75rem !important;
}

@media (max-width: 640px) {
  .inup-table-wrap--responsive .dtr-details > li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .inup-table-wrap--responsive tr.child td {
    padding-left: 1rem !important;
  }
}

@media (min-width: 768px) {
  .inup-table-wrap--datatable .dataTables_length {
    float: left;
  }

  .inup-table-wrap--datatable .dataTables_filter {
    float: right;
    text-align: right;
  }

  .inup-table-wrap--datatable .dt-buttons {
    clear: both;
  }

  .inup-table-wrap--datatable .dataTables_info {
    float: left;
    clear: both;
  }

  .inup-table-wrap--datatable .dataTables_paginate {
    float: right;
  }

  .inup-table-wrap--datatable .dataTables_wrapper::after {
    content: "";
    display: table;
    clear: both;
  }
}

@media (max-width: 767px) {
  .inup-table-wrap--datatable .dataTables_length,
  .inup-table-wrap--datatable .dataTables_filter,
  .inup-table-wrap--datatable .dataTables_info,
  .inup-table-wrap--datatable .dataTables_paginate {
    float: none;
    text-align: left;
    width: 100%;
  }

  .inup-table-wrap--datatable .dataTables_filter input {
    width: 100%;
    min-width: 0;
  }

  .inup-table-wrap--datatable .dataTables_paginate {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .inup-table-wrap--datatable td.alumni-col-ptitle {
    min-width: 10rem;
    max-width: 14rem;
  }
}

/* List pages (PhD, Alumni, etc.) */
.list-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 1rem;
  overflow-x: hidden;
}

.list-page__header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.list-page__lead {
  margin-top: 0.75rem;
  max-width: 42rem;
}

.list-page__panel {
  margin-top: 0.5rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  border-radius: var(--radius-card);
  border: 1px solid rgba(10, 37, 64, 0.08);
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .list-page__panel {
    padding: 1.5rem;
  }
}

/* Avoid double-card nesting inside list panels */
.list-page__panel .inup-table-wrap {
  border: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow: none;
  background: transparent;
}

.list-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Cards & buttons */
.inup-card {
  border-radius: var(--radius-card);
  border: 1px solid rgba(10, 37, 64, 0.08);
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.3s var(--ease-premium),
    box-shadow 0.3s var(--ease-premium),
    transform 0.3s var(--ease-premium);
}

.inup-card:hover {
  border-color: rgba(10, 37, 64, 0.12);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.inup-btn,
.inup-btn-accent,
.inup-btn-ghost {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--ease-premium);
}

.inup-btn::after,
.inup-btn-accent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease-premium);
  pointer-events: none;
}

.inup-btn:hover::after,
.inup-btn-accent:hover::after {
  transform: translateX(120%);
}

.inup-btn {
  color: #fff;
  background: linear-gradient(135deg, #0a2540 0%, #1b4f82 100%);
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.22);
}

.inup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.28);
}

.inup-btn:active,
.inup-btn-accent:active,
.inup-btn-ghost:active {
  transform: translateY(0);
}

.inup-btn-accent {
  color: var(--color-navy-deep);
  background: linear-gradient(135deg, #d4a017 0%, #e8b84a 55%, #f0c75e 100%);
  box-shadow: 0 6px 18px rgba(212, 160, 23, 0.3);
}

.inup-btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 160, 23, 0.38);
}

.inup-btn-ghost {
  border: 1px solid rgba(10, 37, 64, 0.14);
  color: var(--color-navy);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.inup-btn-ghost:hover {
  border-color: rgba(13, 148, 136, 0.45);
  color: var(--color-teal);
  background: rgba(13, 148, 136, 0.06);
  transform: translateY(-1px);
}

/* Pagination — aligned with DataTables premium pills */
.paginate,
a.paginate {
  display: inline-flex;
  align-items: center;
  border-radius: 0.65rem;
  border: 1px solid rgba(10, 37, 64, 0.1);
  background: #fff;
  padding: 0.4rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-navy);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.04);
  transition: all 0.25s var(--ease-premium);
}

.paginate:hover,
a.paginate:hover {
  border-color: rgba(13, 148, 136, 0.4);
  background: rgba(13, 148, 136, 0.06);
  color: var(--color-teal);
  transform: translateY(-1px);
}

a.current {
  display: inline-flex;
  align-items: center;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #d4a017 0%, #e8b84a 100%);
  padding: 0.4rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-navy-deep);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.28);
}

a.ncurrent {
  display: inline-flex;
  align-items: center;
  border-radius: 0.65rem;
  border: 1px solid rgba(10, 37, 64, 0.08);
  background: var(--color-surface);
  padding: 0.4rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-navy);
  text-decoration: none;
}

span.inactive {
  display: inline-flex;
  align-items: center;
  border-radius: 0.65rem;
  border: 1px solid rgba(10, 37, 64, 0.08);
  padding: 0.4rem 0.7rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* Legacy shadetabs — match year-pill / nav-tab language */
ul.shadetabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
  padding-bottom: 0.75rem;
  list-style: none;
}

ul.shadetabs li {
  list-style: none;
  background: none !important;
}

ul.shadetabs a {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid rgba(10, 37, 64, 0.1);
  background: #fff;
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.04);
  transition: all 0.25s var(--ease-premium);
}

ul.shadetabs a:hover {
  border-color: rgba(212, 160, 23, 0.55);
  background: rgba(212, 160, 23, 0.1);
  color: var(--color-navy);
  transform: translateY(-1px);
}

ul.shadetabs a.selected,
ul.shadetabs a[style*="76070D"] {
  border-color: transparent;
  background: linear-gradient(135deg, #0a2540 0%, #1b4f82 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.22);
}

ul.shadetabs a.selected:hover,
ul.shadetabs a[style*="76070D"]:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #0a2540 0%, #1b4f82 100%);
  color: #fff;
}

/* Nav tabs */
.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(10, 37, 64, 0.08);
  background: #ffffff;
  padding: 0.375rem;
  box-shadow: var(--shadow-card);
}

.nav-tab {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-muted);
  text-decoration: none;
  transition: all 0.25s var(--ease-premium);
}

.nav-tab:hover {
  background: var(--color-surface-alt);
  color: var(--color-navy);
}

.nav-tab.is-active {
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.22);
  background: linear-gradient(135deg, #0a2540 0%, #1b4f82 100%);
}

/* Year pills */
.year-pill {
  display: inline-flex;
  min-width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(10, 37, 64, 0.1);
  background: #ffffff;
  padding: 0.375rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-navy);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.04);
  transition: all 0.25s var(--ease-premium);
}

.year-pill:hover {
  border-color: rgba(212, 160, 23, 0.55);
  background: rgba(212, 160, 23, 0.1);
  color: var(--color-navy);
  transform: translateY(-1px);
}

.year-pill.is-active {
  border-color: transparent;
  color: var(--color-navy-deep);
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.28);
  background: linear-gradient(135deg, #d4a017 0%, #e8b84a 100%);
}

/* Stat cards */
.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid rgba(10, 37, 64, 0.08);
  background: rgba(255, 255, 255, 0.95);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease-premium);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 37, 64, 0.12);
  box-shadow: var(--shadow-card-hover);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 0.28rem;
  background: linear-gradient(90deg, #0a2540 0%, #0d9488 50%, #d4a017 100%);
}

.stat-card .stat-value,
.stat-card [data-stat],
.stat-card strong,
.stat-card .text-3xl,
.stat-card .text-2xl,
.stat-card .text-4xl {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Workshop glance stats */
.glance-section {
  margin-top: 2rem;
}

.glance-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-card);
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0a2540 0%, #0f3558 55%, #1b4f82 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 14px 32px rgba(10, 37, 64, 0.18);
}

.glance-banner--alt {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 55%, #115e59 100%);
}

.glance-banner__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.glance-banner__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.glance-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.15rem;
}

.glance-grid--3 {
  grid-template-columns: 1fr;
}

.glance-grid--manpower {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .glance-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .glance-grid--manpower {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .glance-grid--manpower {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .glance-grid--manpower {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.glance-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.45rem;
  min-height: 7.5rem;
  padding: 1.25rem 1.2rem 1.15rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(10, 37, 64, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.3s var(--ease-premium);
}

.glance-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 37, 64, 0.12);
  box-shadow: var(--shadow-card-hover);
}

.glance-stat::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 0.28rem;
}

.glance-stat--navy::before {
  background: linear-gradient(90deg, #0a2540, #1b4f82);
}

.glance-stat--teal::before {
  background: linear-gradient(90deg, #0d9488, #14b8a6);
}

.glance-stat--gold::before {
  background: linear-gradient(90deg, #c9950c, #e8b84a);
}

.glance-stat__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-navy);
  font-variant-numeric: tabular-nums;
}

.glance-stat--teal .glance-stat__value {
  color: #0f766e;
}

.glance-stat--gold .glance-stat__value {
  color: #a16207;
}

.glance-stat__label {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-muted);
}

/* Map / charts */
#map-canvas {
  width: 100%;
  height: min(52vh, 420px);
  min-height: 280px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15, 45, 107, 0.08);
}

.map-shell {
  width: 100%;
  height: min(72vh, 720px);
  min-height: 420px;
}

.scrollable-div {
  width: auto;
  height: 130px;
  overflow: auto;
  white-space: pre-wrap;
}

.charts_ind {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .charts_ind {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .charts_ind {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.chart_title_ind {
  position: relative;
  margin: 1.75rem 0 1.15rem;
  background: linear-gradient(135deg, #0a2540 0%, #0f3558 55%, #1b4f82 100%);
  color: #fff !important;
  padding: 0.95rem 1.35rem;
  border-radius: var(--radius-card);
  border-left: 4px solid var(--color-saffron);
  box-shadow: 0 10px 28px rgba(10, 37, 64, 0.16);
}

.chart_title_ind h5 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff !important;
}

.pie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid rgba(10, 37, 64, 0.08);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition:
    box-shadow 0.3s var(--ease-premium),
    transform 0.3s var(--ease-premium);
}

.pie-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.pie-card__chart {
  min-width: 0;
}

.charts_ind .pie {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: clamp(280px, 52vw, 360px) !important;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0.35rem 0.5rem 0;
}

.charts_ind .pie > div,
.charts_ind .pie svg {
  max-width: 100% !important;
}

@media (min-width: 1024px) {
  .charts_ind .pie {
    height: 420px !important;
  }
}

.pie-card__legend {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid rgba(10, 37, 64, 0.08);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 0.75rem 0.85rem 0.9rem;
}

.pie-card__legend-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 9.5rem;
}

.pie-card__legend-item {
  display: grid;
  grid-template-columns: 0.7rem minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.55rem;
}

.pie-card__swatch {
  margin-top: 0.28rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.pie-card__legend-text {
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pie-card__legend-value {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-navy);
}

.pie-card__legend-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.2rem;
}

.pie-card__nav-btn {
  border-radius: 999px;
  border: 1px solid rgba(10, 37, 64, 0.12);
  background: #fff;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  transition: all 0.25s var(--ease-premium);
}

.pie-card__nav-btn:hover:not(:disabled) {
  border-color: rgba(13, 148, 136, 0.4);
  color: var(--color-teal);
  background: rgba(13, 148, 136, 0.06);
}

.pie-card__nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pie-card__page {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
}

/* Photo gallery slider */
.gallery-slider.inup-card:hover {
  transform: none;
  box-shadow: var(--shadow-card);
  border-color: rgba(10, 37, 64, 0.08);
}

.gallery-slider__stage {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 360px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-surface);
  aspect-ratio: 16 / 10;
  max-height: min(72vh, 820px);
}

.gallery-slider__image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 1rem 2.75rem;
  pointer-events: none;
}

.gallery-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 37, 64, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-navy);
  box-shadow: var(--shadow-card);
  transform: translateY(-50%);
  transition:
    background-color 0.25s var(--ease-premium),
    color 0.25s var(--ease-premium),
    border-color 0.25s var(--ease-premium);
}

.gallery-slider__nav:hover {
  background: var(--color-navy);
  color: #fff;
  border-color: transparent;
  transform: translateY(-50%);
}

.gallery-slider__nav--prev { left: 0.75rem; }
.gallery-slider__nav--next { right: 0.75rem; }

.gallery-slider__thumbs-wrap {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(10, 37, 64, 0.08);
  background: #fff;
  padding: 0.85rem 1rem 0.65rem;
}

.gallery-slider__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.45rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 37, 64, 0.28) transparent;
}

.gallery-slider__thumbs::-webkit-scrollbar {
  height: 6px;
}

.gallery-slider__thumbs::-webkit-scrollbar-track {
  background: transparent;
  margin-inline: 0.15rem;
}

.gallery-slider__thumbs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(10, 37, 64, 0.28);
}

.gallery-slider__thumbs::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 37, 64, 0.42);
}

.gallery-slider__thumb {
  flex: 0 0 auto;
  width: 4.25rem;
  height: 3.25rem;
  overflow: hidden;
  border-radius: 0.65rem;
  border: 2px solid transparent;
  background: var(--color-surface);
  opacity: 0.72;
  transition:
    opacity 0.25s var(--ease-premium),
    border-color 0.25s var(--ease-premium),
    box-shadow 0.25s var(--ease-premium);
}

.gallery-slider__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-slider__thumb:hover {
  opacity: 1;
}

.gallery-slider__thumb.is-active {
  opacity: 1;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-slider__nav,
  .gallery-slider__thumb,
  .charts_ind .pie,
  .pie-card {
    transition: none !important;
    transform: none !important;
  }
}

@media (min-width: 640px) {
  .gallery-slider__stage {
    min-height: 480px;
    max-height: min(78vh, 900px);
  }

  .gallery-slider__image {
    padding: 1.25rem 3.5rem;
  }

  .gallery-slider__thumb {
    width: 5.25rem;
    height: 3.9rem;
  }
}

@media (min-width: 1024px) {
  .gallery-slider__stage {
    min-height: 560px;
    max-height: min(82vh, 980px);
    aspect-ratio: 16 / 9;
  }

  .gallery-slider__image {
    padding: 1.5rem 4rem;
  }

  .gallery-slider__thumb {
    width: 5.75rem;
    height: 4.25rem;
  }
}

@media (max-width: 639px) {
  .gallery-slider__stage {
    min-height: 280px;
    max-height: min(62vh, 560px);
    aspect-ratio: 4 / 3;
  }

  .gallery-slider__image {
    padding: 0.75rem 2.4rem;
  }

  .gallery-slider__nav {
    width: 2.35rem;
    height: 2.35rem;
  }

  .gallery-slider__nav--prev { left: 0.4rem; }
  .gallery-slider__nav--next { right: 0.4rem; }
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }
[data-reveal-delay="3"] { transition-delay: 0.36s; }

/* News ticker */
.news-track {
  animation: news-scroll 80s linear infinite;
  will-change: transform;
}

.news-track:hover,
.news-track.is-paused {
  animation-play-state: paused;
}

@keyframes news-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Focus */
:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 3px;
}

/* Hero helpers (kept for compatibility) */
.hero-mesh {
  background:
    radial-gradient(ellipse 90% 70% at 10% 80%, rgba(240, 180, 41, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 15%, rgba(26, 77, 179, 0.45), transparent 50%),
    radial-gradient(ellipse 40% 35% at 70% 70%, rgba(255, 140, 66, 0.15), transparent 45%),
    linear-gradient(135deg, #050d1a 0%, #0a1628 25%, #0f2d6b 55%, #1a4db3 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: orb-float 14s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb--1 {
  width: 28rem;
  height: 28rem;
  top: -8rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.5), transparent 70%);
}

.hero-orb--2 {
  width: 22rem;
  height: 22rem;
  bottom: -4rem;
  left: -4rem;
  background: radial-gradient(circle, rgba(26, 77, 179, 0.6), transparent 70%);
  animation-delay: -5s;
}

.hero-orb--3 {
  width: 14rem;
  height: 14rem;
  top: 40%;
  left: 45%;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.35), transparent 70%);
  animation-delay: -9s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(1.5rem, -1rem) scale(1.05); }
  66% { transform: translate(-1rem, 1.25rem) scale(0.95); }
}

.hero-shimmer {
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(255, 255, 255, 0.08) 45%,
    transparent 65%
  );
  background-size: 200% 100%;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Glass / effects */
.glass-card {
  border-radius: var(--radius-card);
  background: #ffffff;
  border: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.3s var(--ease-premium),
    box-shadow 0.3s var(--ease-premium),
    transform 0.3s var(--ease-premium);
}

.glass-card:hover {
  border-color: rgba(10, 37, 64, 0.12);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.glass-card-dark {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.text-gradient-gold {
  background: linear-gradient(135deg, #d4a017 0%, #e8b84a 50%, #d4a017 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 37, 64, 0.14), transparent);
}

.stat-pill {
  border: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.3s var(--ease-premium),
    box-shadow 0.3s var(--ease-premium),
    border-color 0.3s var(--ease-premium);
}

.stat-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 37, 64, 0.12);
  box-shadow: var(--shadow-card-hover);
}

.gallery-lightbox {
  backdrop-filter: blur(8px);
}

.nav-dropdown-panel {
  max-height: min(70vh, 520px);
  overflow-y: auto;
  background: #ffffff !important;
  border: 1px solid rgba(10, 37, 64, 0.12) !important;
  box-shadow:
    0 4px 6px rgba(10, 37, 64, 0.04),
    0 18px 40px rgba(10, 37, 64, 0.14) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-dropdown-panel a {
  color: var(--color-ink);
  transition: background-color 0.2s var(--ease-premium), color 0.2s var(--ease-premium);
}

.nav-dropdown-panel a:hover {
  background: #eef3f8 !important;
  color: var(--color-navy) !important;
}

.nav-dropdown-bridge {
  padding-top: 0.25rem;
}

.nav-dropdown-bridge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.25rem;
}

.gradient-border {
  position: relative;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #0f2d6b, #f0b429, #1a4db3) border-box;
  border: 2px solid transparent;
}

.pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.nav-gradient {
  background: linear-gradient(90deg, #041221 0%, #0a2540 42%, #06182b 100%);
}

.footer-gradient {
  background: linear-gradient(180deg, #0a2540 0%, #06182b 100%);
}

.footer-gradient a {
  transition: color 0.2s var(--ease-premium), opacity 0.2s var(--ease-premium), transform 0.25s var(--ease-premium);
}

.footer-gradient ul a:hover {
  color: var(--color-saffron-soft);
}

.footer-gradient a[aria-label]:hover {
  transform: translateY(-2px) scale(1.06);
}

[x-cloak] {
  display: none !important;
}

/* ═══════════════════════════════════════════
   Homepage — clean academic / government portal
   ═══════════════════════════════════════════ */

.home-body {
  background:
    linear-gradient(180deg, #f4f7fb 0%, #fafbfd 42%, #f3f6fa 100%);
}

.home-page {
  position: relative;
  max-width: 100%;
}

.home-shell {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding: 1.25rem 1rem 0.75rem;
}

@media (min-width: 640px) {
  .home-shell {
    padding: 1.5rem 1.25rem 1rem;
  }
}

@media (min-width: 1280px) {
  .home-shell {
    padding: 1.75rem 1.5rem 1.15rem;
  }
}

.home-shell--secondary {
  padding-top: 1.75rem;
  padding-bottom: 2.25rem;
}

@media (min-width: 1024px) {
  .home-shell--secondary {
    padding-top: 2.25rem;
    padding-bottom: 3rem;
  }
}

.home-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

@media (min-width: 900px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 1.25rem;
  }

  .home-panel--news {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  .home-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr) minmax(0, 0.95fr);
    gap: 1.25rem;
  }

  .home-panel--news {
    grid-column: auto;
  }
}

@media (max-width: 899px) {
  .home-shell {
    padding: 1rem 0.75rem 0.5rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  .home-grid {
    gap: 1rem;
    width: 100%;
  }

  .home-panel--content,
  .home-panel--map,
  .home-panel--news {
    padding: 1.25rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .home-panel--content,
  .home-panel--news {
    overflow: hidden;
  }

  .home-panel--map {
    overflow: visible;
  }

  .home-prose {
    overflow-y: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .home-heading {
    overflow-wrap: anywhere;
  }

  .home-media img {
    max-height: 200px;
  }

  .home-map-frame {
    flex: none;
    min-height: 260px;
    height: 320px;
    max-height: 55vh;
    width: 100%;
    max-width: 100%;
  }

  .home-map-frame #map-canvas,
  .home-map-frame #map-canvas > * {
    width: 100% !important;
    max-width: 100% !important;
  }

  .home-news-viewport {
    flex: none;
    min-height: 260px;
    height: 360px;
    max-height: 55vh;
    width: 100%;
  }

  .home-news-track {
    padding: 0.85rem 0.85rem 1rem;
  }

  .home-news-body,
  .home-news-track > article .space-y-2,
  .home-news-track > article p,
  .home-news-track > article ul {
    font-size: 0.875rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .home-carousel,
  .home-carousel-stage {
    width: 100%;
    max-width: 100%;
  }

  .home-carousel-stage {
    min-height: 160px;
  }

  .charts_ind {
    grid-template-columns: 1fr;
  }

  .charts_ind .pie {
    height: 300px !important;
    width: 100% !important;
    max-width: 100%;
    padding: 0.35rem 0.5rem 0;
  }

  .gallery-slider__nav {
    width: 2.35rem;
    height: 2.35rem;
  }

  .gallery-slider__nav--prev { left: 0.4rem; }
  .gallery-slider__nav--next { right: 0.4rem; }
}

.home-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease-premium);
}

.home-panel::before,
.home-panel::after {
  display: none;
}

.home-panel:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(10, 37, 64, 0.12);
  transform: translateY(-1px);
}

.home-panel--map:hover {
  transform: none;
}

.home-panel--content,
.home-panel--map,
.home-panel--news {
  padding: 1.5rem;
  z-index: 0;
}

@media (min-width: 640px) {
  .home-panel--content,
  .home-panel--map,
  .home-panel--news {
    padding: 1.75rem;
  }
}

@media (min-width: 1200px) {
  .home-panel--content,
  .home-panel--map,
  .home-panel--news {
    min-height: 0;
  }
}

.home-heading {
  position: relative;
  margin-top: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 0.75vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--color-navy);
  text-wrap: balance;
}

.home-prose {
  position: relative;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 0 0 auto;
  overflow: visible;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.home-prose p {
  text-align: justify;
  hyphens: auto;
}

.home-media {
  position: relative;
  margin-top: 1.25rem;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(10, 37, 64, 0.1);
  box-shadow: 0 10px 24px rgba(10, 37, 64, 0.1);
  flex-shrink: 0;
}

.home-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-media:hover img {
  transform: scale(1.03);
}

.home-panel-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.home-panel-title {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

.home-panel-title--lg {
  font-size: clamp(1.4rem, 1.25rem + 0.55vw, 1.85rem);
  letter-spacing: -0.025em;
}

.home-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 37, 64, 0.1);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.4rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-navy);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s var(--ease-premium);
}

.home-link-chip:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
  background: rgba(13, 148, 136, 0.06);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
  transform: translateY(-1px);
}

.home-map-frame {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 360px;
  border-radius: 12px;
  overflow: visible;
  background: #eef3f8;
  border: 1px solid rgba(10, 37, 64, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 8px 20px rgba(10, 37, 64, 0.06);
}

.home-map-frame #map-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 12px;
  overflow: visible !important;
}

/* Marker popups must stay readable and scrollable */
.home-map-frame .map-popup-content,
.map-popup-content {
  display: block !important;
  position: static !important;
  width: auto !important;
  max-width: 280px;
  height: auto !important;
  max-height: 220px;
  overflow: auto !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  white-space: normal;
  font-size: 12px;
  line-height: 1.45;
  color: #0f172a;
  padding: 0.15rem 0.1rem;
}

.home-map-frame .mappls-popup,
.home-map-frame .maplibregl-popup,
.home-map-frame .mapboxgl-popup {
  z-index: 5;
  max-width: 300px !important;
}

.home-map-frame .mappls-popup-content,
.home-map-frame .maplibregl-popup-content,
.home-map-frame .mapboxgl-popup-content {
  max-height: 260px;
  overflow: auto;
  padding: 0.75rem 0.85rem;
}

.home-news-viewport {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 320px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid rgba(10, 37, 64, 0.08);
}

.home-news-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.75rem;
}

.home-news-footer .home-link-chip {
  margin-left: auto;
}

@media (min-width: 900px) and (max-width: 1199px) {
  .home-panel--content,
  .home-panel--map {
    align-self: stretch;
  }

  .home-map-frame {
    min-height: 0;
  }

  .home-news-viewport {
    flex: none;
    min-height: 360px;
    height: 420px;
  }
}

@media (min-width: 1200px) {
  .home-grid {
    align-items: start;
  }

  .home-panel--content {
    height: auto;
  }

  .home-panel--map {
    overflow: visible;
    min-height: 0;
  }

  .home-panel--news {
    overflow: hidden;
    min-height: 0;
  }

  .home-map-frame,
  .home-news-viewport {
    min-height: 0;
  }
}

.home-news-fade {
  position: absolute;
  inset-inline: 0;
  z-index: 2;
  height: 2.75rem;
  pointer-events: none;
}

.home-news-fade--top {
  top: 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0.55) 55%, transparent 100%);
}

.home-news-fade--bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.55) 55%, transparent 100%);
}

.home-news-track {
  padding: 1rem 1rem 1.15rem;
}

.home-news-item,
.home-news-track > article {
  border-bottom: 1px solid rgba(10, 37, 64, 0.07);
  padding: 1.15rem 0.65rem 1.2rem;
  border-radius: 10px;
  margin-bottom: 0.35rem;
  transition: background-color 0.25s var(--ease-premium), box-shadow 0.25s var(--ease-premium);
}

.home-news-item:hover,
.home-news-track > article:hover {
  background-color: rgba(248, 250, 252, 0.95);
  box-shadow: inset 3px 0 0 rgba(13, 148, 136, 0.55);
}

.home-news-item h3,
.home-news-track > article h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--color-navy);
}

.home-news-body,
.home-news-track > article .space-y-2,
.home-news-track > article p,
.home-news-track > article ul {
  margin-top: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.home-news-track > article a {
  font-weight: 500;
  color: var(--color-navy-mid);
  text-decoration: underline;
  text-decoration-color: rgba(13, 148, 136, 0.4);
  text-underline-offset: 2px;
  transition: color 0.2s var(--ease-premium);
}

.home-news-track > article a:hover {
  color: var(--color-teal);
}

.home-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow: var(--shadow-card);
}

.home-carousel-stage {
  position: relative;
  aspect-ratio: 21 / 8;
  min-height: 220px;
  background: rgba(10, 37, 64, 0.04);
}

@media (max-width: 767px) {
  .home-carousel-stage {
    aspect-ratio: 16 / 10;
  }
}

.home-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 37, 64, 0.78);
  color: #fff;
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.25);
}

.home-carousel-nav:hover {
  background: rgba(10, 37, 64, 0.95);
  transform: translateY(-50%) scale(1.06);
}

.home-carousel-nav--prev { left: 1rem; }
.home-carousel-nav--next { right: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .home-panel,
  .home-media img,
  .home-link-chip,
  .home-carousel-nav,
  .inup-card,
  .glass-card,
  .inup-btn,
  .inup-btn-accent,
  .inup-btn-ghost,
  .stat-card,
  .stat-pill,
  .glance-stat,
  .nav-tab,
  .year-pill,
  .paginate,
  a.paginate,
  ul.shadetabs a,
  .footer-gradient a,
  .inup-table tbody tr td {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }

  .inup-btn::after,
  .inup-btn-accent::after {
    display: none;
  }

  .news-track,
  .pulse-dot,
  .hero-orb,
  .hero-shimmer {
    animation: none !important;
  }
}

/* Touch / coarse pointer — keep polish, reduce lift jitter */
@media (hover: none) {
  .inup-card:hover,
  .glass-card:hover,
  .stat-card:hover,
  .stat-pill:hover,
  .glance-stat:hover,
  .home-panel:hover {
    transform: none;
  }

  .inup-btn:hover,
  .inup-btn-accent:hover,
  .inup-btn-ghost:hover,
  .paginate:hover,
  a.paginate:hover,
  ul.shadetabs a:hover {
    transform: none;
  }
}

/* IITB / IISc phase impact page */
.inup-phase-page .inup-phase-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-navy) 50%),
    linear-gradient(135deg, var(--color-navy) 50%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  background-position:
    calc(100% - 1.35rem) calc(50% - 0.18rem),
    calc(100% - 0.95rem) calc(50% - 0.18rem),
    0 0;
  background-size: 0.4rem 0.4rem, 0.4rem 0.4rem, 100% 100%;
  background-repeat: no-repeat;
  transition: border-color 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium), transform 0.3s var(--ease-premium);
}

.inup-phase-page .inup-phase-select:hover,
.inup-phase-page .inup-phase-select:focus {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
  transform: translateY(-1px);
}

.inup-phase-page #inup-phase-display-title {
  letter-spacing: -0.02em;
  transition: opacity 0.28s var(--ease-premium), transform 0.28s var(--ease-premium);
}

.inup-phase-page #inup-phase-display-title.is-swapping {
  opacity: 0;
  transform: translateY(8px);
}

.inup-phase-page .inup-iitb-phase-events-timeline {
  position: relative;
}

.inup-phase-page .inup-iitb-phase-events-timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 1.15rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.55), rgba(212, 160, 23, 0.45), rgba(10, 37, 64, 0.12));
  opacity: 0.55;
}

@media (min-width: 640px) {
  .inup-phase-page .inup-iitb-phase-events-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.inup-phase-page .inup-iitb-phase-event {
  position: relative;
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  border: 1px solid rgba(10, 37, 64, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
  transition:
    opacity 0.55s var(--ease-premium),
    transform 0.55s var(--ease-premium),
    box-shadow 0.35s var(--ease-premium),
    border-color 0.35s var(--ease-premium);
}

.inup-phase-page .inup-iitb-phase-event.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.inup-phase-page .inup-iitb-phase-event:hover {
  border-color: rgba(13, 148, 136, 0.28);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.inup-phase-page .inup-iitb-phase-event::after {
  content: "";
  position: absolute;
  top: 1.55rem;
  left: 0.95rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d9488, #d4a017);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
  animation: inup-phase-pulse 2.4s ease-in-out infinite;
}

@media (min-width: 640px) {
  .inup-phase-page .inup-iitb-phase-event::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

.inup-phase-page .inup-iitb-phase-event-img img {
  transition: transform 0.55s var(--ease-premium), filter 0.55s var(--ease-premium);
  filter: drop-shadow(0 8px 16px rgba(10, 37, 64, 0.1));
}

.inup-phase-page .inup-iitb-phase-event:hover .inup-iitb-phase-event-img img {
  transform: scale(1.06) rotate(-2deg);
}

.inup-phase-page .inup-iitb-phase-icon {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    opacity 0.5s var(--ease-premium),
    transform 0.5s var(--ease-premium),
    box-shadow 0.35s var(--ease-premium),
    border-color 0.35s var(--ease-premium);
}

.inup-phase-page .inup-iitb-phase-icon.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.inup-phase-page .inup-iitb-phase-icon:hover {
  border-color: rgba(212, 160, 23, 0.35);
  transform: translateY(-3px);
}

.inup-phase-page .inup-iitb-phase-icon-img img {
  transition: transform 0.45s var(--ease-premium);
}

.inup-phase-page .inup-iitb-phase-icon:hover .inup-iitb-phase-icon-img img {
  transform: scale(1.1);
}

.inup-phase-page .inup-phase-count {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.inup-phase-page .inup-phase-panel-out {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s var(--ease-premium), transform 0.22s var(--ease-premium);
}

@keyframes inup-phase-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(212, 160, 23, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .inup-phase-page .inup-iitb-phase-event,
  .inup-phase-page .inup-iitb-phase-icon,
  .inup-phase-page #inup-phase-display-title,
  .inup-phase-page .inup-phase-select {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .inup-phase-page .inup-iitb-phase-event::after {
    animation: none;
  }
}
