/* ICAR-CIBA development theme: green primary colour group, accessible controls. */
:root {
  --key: #0f5757;
  --key-2: #2d8686;
  --key-4: #a6d9d9;
  --key-5: #d9f2f2;
  --inclusive: #fff;
  --linen: #ebeaea;
  --ink: #150202;
  --link: #0756b8;
  --grey-1: #c6c6c6;
  --grey-3: #4e4e4e;
  --warning: #ffc107;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: 'Noto Sans', Arial, sans-serif; color: var(--ink); background: var(--inclusive); line-height: 1.6; overflow-wrap: anywhere; }
/* Responsive Container System (Tailwind CSS standard responsive breakpoints) */
.wrap, .container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-inline: 1rem; /* 16px - Fluid default for mobile phones */
  box-sizing: border-box;
}

/* sm: 640px */
@media (min-width: 640px) {
  .wrap, .container {
    max-width: 640px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-inline: 1.25rem; /* 20px */
  }
}

/* md: 768px (Tablets) */
@media (min-width: 768px) {
  .wrap, .container {
    max-width: 768px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-inline: 1.5rem; /* 24px */
  }
}

/* lg: 1024px (Small Laptops & Large Tablets) */
@media (min-width: 1024px) {
  .wrap, .container {
    max-width: 1024px;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-inline: 2rem; /* 32px */
  }
}

/* xl: 1280px (Standard Laptops & Desktops) */
@media (min-width: 1280px) {
  .wrap, .container {
    max-width: 1280px;
    padding-left: 2.25rem;
    padding-right: 2.25rem;
    padding-inline: 2.25rem; /* 36px */
  }
}

/* 2xl: 1440px (Wide Desktop Monitors) */
@media (min-width: 1440px) {
  .wrap, .container {
    max-width: 1380px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    padding-inline: 2.5rem; /* 40px */
  }
}
a { color: var(--link); text-underline-offset: 3px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--warning); outline-offset: 3px; }
.skip-link { position: absolute; top: -100px; left: 10px; z-index: 1100; background: var(--key); color: var(--inclusive); padding: 8px 16px; }
.skip-link:focus { top: 10px; }
.small { font-size: 0.875rem; }
h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.25; }
h2 { font-size: 1.5rem; color: var(--key); border-bottom: 2px solid var(--key-4); padding-bottom: 4px; }
h3, h4, .card h4 { font-size: 1.25rem; line-height: 1.4; color: var(--key); }
p, li { font-size: 1rem; }
img { max-width: 100%; height: auto; }

.utility-bar { background: #f1f2f2; border-bottom: 1px solid #e0e0e0; padding: 6px 0; font-size: 0.8125rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.utility-left { display: flex; align-items: center; gap: 8px; }
.utility-right { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-left: auto; }
.top-nav-link { text-decoration: none; font-size: 0.8125rem; font-weight: 500; }
.top-nav-link:hover, .top-nav-link:focus-visible { text-decoration: underline; }
.top-nav-link.emp-corner { color: #0b5c04; font-weight: 700; }
.top-nav-link.skip-main { color: #254ab0; }
.top-nav-link.screen-reader { color: #5a595e; }
.a11y-font-group { display: inline-flex; align-items: center; gap: 8px; }
.btn-text-size { background: none; border: none; padding: 2px 4px; color: #5a595e; font-size: 0.8125rem; font-weight: 600; cursor: pointer; line-height: 1; border-radius: 3px; min-width: 24px; min-height: 24px; }
.btn-text-size:hover, .btn-text-size:focus-visible { color: #111111; background: #e2e8f0; text-decoration: none; }
.contrast-switch { display: inline-flex; align-items: center; gap: 4px; }
.contrast-box { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; font-size: 11px; font-weight: 700; cursor: pointer; border-radius: 3px; line-height: 1; padding: 0; }
.contrast-box.contrast-light { background: #ffffff; color: #111111; border: 1px solid #777777; }
.contrast-box.contrast-dark { background: #222222; color: #ffffff; border: 1px solid #222222; }
.contrast-box:focus-visible, .contrast-box.active { outline: 2px solid var(--key); outline-offset: 1px; }
.lang-switch { display: inline-flex; align-items: center; gap: 10px; }
.lang-btn { background: none; border: 1px solid transparent; border-radius: 3px; padding: 2px 6px; color: #5a595e; font-size: 0.8125rem; font-weight: 500; cursor: pointer; min-height: 24px; }
.lang-btn:hover, .lang-btn:focus-visible { color: #111111; background: #e2e8f0; }
.lang-btn.active { font-weight: 700; color: #111111; background: #e2e8f0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.brand-bar { background: #ffffff; padding: 12px 0; border-bottom: 1px solid #e0e0e0; }
.brand-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 16px; flex: 1 1 360px; min-width: 0; }
.brand-logos { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo { max-height: 68px; width: auto; object-fit: contain; }
.brand-titles { display: flex; flex-direction: column; min-width: 0; }
.brand-name { margin: 0; font-size: clamp(1.05rem, 2.2vw, 1.65rem); line-height: 1.25; font-weight: 700; color: var(--key); word-break: break-word; }
.brand-ministry { margin: 4px 0 0; font-size: clamp(0.75rem, 1.2vw, 0.875rem); color: var(--grey-3); word-break: break-word; }
.brand-actions { flex: 0 1 320px; min-width: 220px; }
.header-search { width: 100%; max-width: 100%; }
.search-input-wrapper { display: flex; align-items: center; border: 1px solid #718096; border-radius: 4px; background: #ffffff; overflow: hidden; }
.search-input-wrapper:focus-within { border-color: var(--key); box-shadow: 0 0 0 2px var(--key-4); }
.search-input-wrapper input[type="search"] { border: none; outline: none; padding: 8px 12px; width: 100%; font-size: 0.875rem; background: transparent; color: var(--ink); }
.search-submit-btn { background: transparent; border: none; padding: 8px 12px; color: var(--key); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.search-submit-btn:hover { background: #f1f2f2; color: var(--key-2); }

.main-nav { background: var(--key); position: relative; z-index: 50; }
.menu-list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.menu-list > li { position: relative; }
.menu-list a, .nav-group summary { display: block; padding: 12px 14px; color: var(--inclusive); text-decoration: none; font-weight: 600; }
.nav-group summary { cursor: pointer; }
.menu-list a:hover, .menu-list a:focus-visible, .nav-group summary:hover, .nav-group summary:focus-visible, .nav-group[open] > summary { background: var(--key-2); }
.sub {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  background: var(--key);
  list-style: none;
  min-width: min(300px, 92vw);
  max-width: 360px;
  max-height: 82vh;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  border-radius: 0 0 6px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}
.sub::-webkit-scrollbar {
  width: 6px;
}
.sub::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
}
.sub::-webkit-scrollbar-track {
  background: transparent;
}
.sub a { font-weight: 400; }
.sub .nested { position: static; min-width: 0; max-height: none; padding-left: 14px; box-shadow: none; }
.nav-label { display: block; padding: 12px 14px; color: var(--inclusive); }
.nav-toggle {
  display: none;
  background: var(--key);
  color: #ffffff;
  border: none;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.5px;
}
.nav-toggle::after {
  content: "☰";
  font-size: 1.35rem;
  font-weight: normal;
  line-height: 1;
}
.nav-toggle[aria-expanded="true"]::after {
  content: "✕";
}

/* Desktop Navigation Hover & Side Flyout Submenu Styling */
@media (min-width: 769px) {
  /* Top-level dropdown panel */
  .menu-list > li > .nav-group > .sub {
    min-width: 280px;
    max-width: 340px;
    max-height: 85vh;
    overflow: visible !important; /* Visible allows side flyout submenus */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 6px 6px;
    padding: 6px 0;
  }
  /* Invisible hover bridge to eliminate gap when moving cursor from tab to dropdown */
  .menu-list > li > .nav-group > .sub::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 16px;
    pointer-events: auto;
  }
  .menu-list > li:hover,
  .menu-list > li:focus-within,
  .menu-list > li > .nav-group[open] {
    z-index: 150 !important;
  }
  .sub > li {
    position: relative;
    width: 100%;
  }
  .sub li:hover,
  .sub li:focus-within,
  .sub details.nav-group[open] {
    z-index: 160 !important;
  }
  .menu-list > li:hover > .nav-group > summary,
  .menu-list > li:focus-within > .nav-group > summary,
  .menu-list > li > .nav-group[open] > summary {
    background: var(--key-2);
  }
  .menu-list > li:hover > .nav-group > .sub,
  .menu-list > li:focus-within > .nav-group > .sub,
  .menu-list > li > .nav-group[open] > .sub {
    display: block !important;
  }
  .sub a, .sub .nav-label {
    padding: 10px 16px;
    display: block;
    color: var(--inclusive);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
  }
  .sub a:hover, .sub a:focus-visible {
    background: var(--key-2);
    color: #ffffff;
    padding-left: 20px;
  }

  /* Submenu Trigger (e.g. Scientific Staff) */
  .sub details.nav-group {
    position: relative;
    width: 100%;
  }
  .sub details.nav-group > summary {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 16px !important;
    cursor: pointer !important;
    user-select: none !important;
    font-weight: 600 !important;
    color: var(--inclusive) !important;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .sub details.nav-group > summary::after {
    content: "▸" !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin-left: 10px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
  }
  .sub li:hover > .nav-group > summary,
  .sub li:focus-within > .nav-group > summary,
  .sub .nav-group[open] > summary {
    background: var(--key-2) !important;
    color: #ffffff !important;
  }
  .sub li:hover > .nav-group > summary::after,
  .sub li:focus-within > .nav-group > summary::after,
  .sub .nav-group[open] > summary::after {
    transform: translateX(3px) !important;
    color: #ffffff !important;
  }

  /* Side Flyout Submenu Panel */
  .sub .sub.nested {
    position: absolute !important;
    top: 0 !important;
    left: calc(100% - 2px) !important;
    right: auto !important;
    display: none;
    list-style: none !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    background: var(--key) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 0 6px 6px 6px !important;
    box-shadow: 6px 8px 24px rgba(0, 0, 0, 0.35) !important;
    min-width: 290px !important;
    max-width: 380px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 120 !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  }
  /* Invisible hover bridge to prevent hover loss during diagonal mouse motion */
  .sub .sub.nested::before {
    content: "";
    position: absolute;
    top: -14px;
    bottom: -14px;
    left: -32px;
    width: 36px;
    pointer-events: auto;
  }
  /* Show flyout on hover, focus-within, or open */
  .sub li:hover > details.nav-group > .sub.nested,
  .sub li:focus-within > details.nav-group > .sub.nested,
  .sub details.nav-group:hover > .sub.nested,
  .sub details.nav-group[open] > .sub.nested {
    display: block !important;
  }
  /* Left-side flyout fallback when near right screen edge */
  .sub .sub.nested.flyout-left {
    left: auto !important;
    right: calc(100% - 2px) !important;
    border-left: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 6px 0 6px 6px !important;
    box-shadow: -6px 8px 24px rgba(0, 0, 0, 0.35) !important;
  }
  .sub .sub.nested.flyout-left::before {
    left: auto !important;
    right: -32px !important;
    width: 36px !important;
  }

  /* Flyout Menu Items */
  .sub .nested li {
    width: 100% !important;
  }
  .sub .nested li a {
    padding: 9px 16px !important;
    font-size: 0.92rem !important;
    color: rgba(255, 255, 255, 0.92) !important;
    display: block !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: background 0.15s ease, padding-left 0.15s ease, color 0.15s ease !important;
  }
  .sub .nested li:last-child a {
    border-bottom: none !important;
  }
  .sub .nested li a:hover,
  .sub .nested li a:focus-visible {
    background: var(--key-2) !important;
    color: #ffffff !important;
    padding-left: 20px !important;
  }
}

/* Google Translate Styling Integration */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}
body {
  top: 0px !important;
  position: static !important;
}
#google_translate_element {
  display: none !important;
}
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.skiptranslate iframe {
  display: none !important;
}

.site-intro { padding: 30px 0; background: var(--key-5); border-bottom: 4px solid var(--key); }
.site-intro h1 { color: var(--key); margin: 0 0 8px; }
.site-intro p { max-width: 75ch; margin: 0 0 8px; }
.main-content { padding-block: 20px; min-height: 40vh; }
.breadcrumbs { margin-bottom: 16px; font-size: 0.875rem; }
.breadcrumbs a { margin-right: 6px; }
.ticker-bar { display: flex; align-items: flex-start; gap: 20px; padding: 10px max(20px, calc((100% - 1160px) / 2)); background: var(--linen); border-bottom: 1px solid var(--grey-1); }
.ticker-label { flex: 0 0 auto; margin: 0; padding: 0; font-size: 1rem; border: 0; }
.ticker-list { display: flex; gap: 24px; overflow-x: auto; list-style: none; padding: 0 0 4px; margin: 0; }
.ticker-list li { flex: 0 0 auto; max-width: min(80vw, 650px); }

.split-row { display: flex; gap: 24px; align-items: stretch; margin-bottom: 30px; }
.split-about { flex: 1 1 32%; padding: 16px; }
.split-about h2 { margin-top: 0; }
.split-events { flex: 1 1 68%; min-width: 0; }
@media (max-width: 900px) {
  .split-row { flex-direction: column; }
  .split-about, .split-events { flex: 1 1 100%; width: 100%; }
}
.events-carousel { display: flex; align-items: center; gap: 10px; }
.events-track { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; flex: 1; -webkit-overflow-scrolling: touch; }
.event-card { flex: 0 0 calc(33.333% - 11px); min-width: 220px; }
@media (max-width: 768px) {
  .event-card { flex: 0 0 85%; }
}
.event-card img, .card img { width: 100%; height: 180px; object-fit: cover; display: block; background: var(--linen); }
.card h4 { margin: 8px; }
.carousel-arrow { background: var(--key); color: var(--inclusive); border: none; width: 42px; height: 42px; font-size: 1.25rem; border-radius: 50%; flex: 0 0 auto; cursor: pointer; }
.carousel-arrow:hover { background: var(--key-2); }
/* ==========================================================================
   Modern Infinite Running Cards "Research Areas" Marquee
   ========================================================================== */

.research-infinite-section {
  position: relative;
  margin: 36px 0 44px;
  padding: 28px 0 34px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px -4px rgba(15, 87, 87, 0.06);
  box-sizing: border-box;
}

/* Header: Just 'Research Areas' title alone */
.research-infinite-header {
  padding: 0 32px 18px;
}

.infinite-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--key, #0f5757);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* ==========================================================================
   Infinite Running Marquee Track & Animation
   ========================================================================== */
.research-infinite-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0 16px;
  /* Smooth vignette edge fade on left and right */
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.research-infinite-track {
  display: flex;
  gap: 22px;
  width: max-content;
  user-select: none;
  -webkit-user-select: none;
}

.research-loop-group {
  display: flex;
  gap: 22px;
  flex-shrink: 0;
  animation: continuousCardsMarquee 32s linear infinite;
  will-change: transform;
}

/* Smooth Pause on Hover / Focus */
.research-infinite-wrapper:hover .research-loop-group,
.research-infinite-wrapper:focus-within .research-loop-group {
  animation-play-state: paused;
}

@keyframes continuousCardsMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(-100% - 22px), 0, 0);
  }
}

/* ==========================================================================
   Infinite Card Aesthetics (Clean title-only photo card)
   ========================================================================== */
.infinite-card {
  position: relative;
  flex: 0 0 290px;
  width: 290px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #081726;
  box-shadow: 0 6px 18px -2px rgba(15, 23, 42, 0.14), 0 2px 6px -1px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  display: block;
  color: inherit;
  box-sizing: border-box;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.infinite-card:hover,
.infinite-card:focus-visible {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 36px -8px rgba(10, 37, 64, 0.4), 0 0 0 1.5px rgba(45, 212, 191, 0.55);
  border-color: rgba(45, 212, 191, 0.6);
  z-index: 10;
  outline: none;
}

/* Background Media & Gradients */
.infinite-card .card-media-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.infinite-card .card-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.infinite-card:hover .card-bg-img {
  transform: scale(1.08);
}

.infinite-card .card-bg-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #092032 0%, #0f5757 100%);
}

.infinite-card .card-overlay-oceanic {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 23, 38, 0.05) 0%,
    rgba(8, 23, 38, 0.2) 35%,
    rgba(7, 24, 42, 0.8) 72%,
    rgba(4, 15, 27, 0.96) 100%
  );
  pointer-events: none;
  transition: background 0.35s ease;
}

.infinite-card:hover .card-overlay-oceanic {
  background: linear-gradient(
    180deg,
    rgba(8, 23, 38, 0) 0%,
    rgba(8, 23, 38, 0.12) 30%,
    rgba(7, 24, 42, 0.86) 68%,
    rgba(4, 15, 27, 0.98) 100%
  );
}

/* Card Inner Frame & Main Title Alone */
.infinite-card .card-inner-frame {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
  box-sizing: border-box;
}

.infinite-card .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  transition: color 0.25s ease, transform 0.25s ease;
}

.infinite-card:hover .card-title {
  color: #38bdf8;
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive & Accessibility
   ========================================================================== */
@media (max-width: 768px) {
  .research-infinite-section {
    margin: 28px 0 36px;
    padding: 20px 0 24px;
    border-radius: 16px;
  }
  .research-infinite-header {
    padding: 0 18px 14px;
  }
  .infinite-title {
    font-size: 1.45rem;
  }
  .infinite-card {
    flex: 0 0 250px;
    width: 250px;
    height: 185px;
  }
  .infinite-card .card-title {
    font-size: 1.1rem;
  }
}

/* High Contrast Accessibility Mode Support */
html.high-contrast .research-infinite-section {
  background: #000000 !important;
  border: 2px solid #ffff00 !important;
}
html.high-contrast .infinite-title {
  color: #ffff00 !important;
}
html.high-contrast .infinite-card {
  border: 2px solid #ffff00 !important;
  background-color: #000000 !important;
}
html.high-contrast .infinite-card .card-title {
  color: #ffff00 !important;
}

.card { border: 1px solid var(--linen); margin-bottom: 15px; background: var(--inclusive); }

/* Responsive Grid & Column Utilities */
.cols-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .cols-two {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cols-three {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .cols-three {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .cols-three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cols-four {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 560px) {
  .cols-four {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .cols-four {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}
.col {
  width: 100%;
  min-width: 0;
}
.social-grid { gap: 16px; }
.slider img { width: 100%; height: auto; display: block; }
.sitemap ul, .page-index { columns: 2; }
.sitemap li, .page-index li { break-inside: avoid; }
@media (max-width: 600px) {
  .sitemap ul, .page-index { columns: 1; }
}
address { font-style: normal; line-height: 1.8; }
.detail-image { max-width: 100%; height: auto; }
.imported-content { max-width: 100%; overflow-wrap: anywhere; }
.imported-content iframe, .imported-content video { max-width: 100%; }
.imported-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.document-list li { margin-bottom: 14px; }
.document-list li > span, .document-list li > a { margin-right: 8px; }
.pagination { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: 16px; border-radius: 6px; }
.table-scroll table { width: 100%; min-width: 500px; border-collapse: collapse; background: #ffffff; }
.table-scroll caption { text-align: left; font-weight: 700; font-size: 1.15rem; color: var(--key); padding: 10px 4px; border-bottom: 2px solid var(--key-4); }
.table-scroll th { background: #f8fafc; font-weight: 600; color: #1e293b; border: 1px solid #cbd5e1; padding: 10px 12px; text-align: left; }
.table-scroll td { border: 1px solid #cbd5e1; padding: 10px 12px; text-align: left; vertical-align: top; }
.table-scroll tr:nth-child(even) td { background: #f8fafc; }

.staff-category-nav { margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.staff-cat-link { text-decoration: none; padding: 7px 16px; border-radius: 4px; border: 1px solid var(--key); background: #ffffff; color: var(--key); font-size: 0.9375rem; transition: all 0.2s; }
.staff-cat-link:hover { background: var(--key-5); }
.staff-cat-link.active { background: var(--key); color: #ffffff; font-weight: 600; }

form textarea, form input[type="text"], form input[type="email"], form select {
  display: block;
  width: 100%;
  max-width: 650px;
  box-sizing: border-box;
}
form label { display: block; font-weight: 600; margin-bottom: 4px; }
form button[type=submit] { margin-top: 12px; }

/* ==========================================================================
   Government Initiatives / Portals Scrolling Banner (Referenced from icar.org.in)
   ========================================================================== */
.gov-partner-banner {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
  padding: 12px 0 16px;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}
.gov-partner-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.gov-partner-banner-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--grey-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gov-ticker-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 0.75rem;
  color: var(--grey-3);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gov-ticker-ctrl-btn:hover,
.gov-ticker-ctrl-btn:focus-visible {
  color: var(--key);
  border-color: var(--key);
  background: #f1f5f9;
}
.gov-partner-banner-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}
.gov-ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: govTickerScroll 32s linear infinite;
}
.gov-ticker-track.paused,
.gov-partner-banner:hover .gov-ticker-track,
.gov-partner-banner:focus-within .gov-ticker-track {
  animation-play-state: paused;
}
.gov-ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 32px;
  padding-right: 32px;
}
.gov-ticker-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
}
.gov-ticker-item:hover,
.gov-ticker-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15, 87, 87, 0.15);
  border-color: var(--key-2);
}
.gov-ticker-item img {
  height: 44px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}
@keyframes govTickerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gov-ticker-track {
    animation: none;
  }
  .gov-partner-banner-inner {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* ==========================================================================
   CIBA Site Footer (Referenced from ciba.res.in, styled with Topbar Green #0f5757)
   ========================================================================== */
.ciba-site-footer {
  background: var(--key);
  color: #ffffff;
  margin-top: 0;
  border-top: 3px solid var(--key-2);
  font-family: inherit;
}
.ciba-footer-inner {
  padding: 38px 0 30px;
}
.ciba-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
}
@media (min-width: 640px) {
  .ciba-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .ciba-footer-col.ciba-footer-location {
    grid-column: span 2;
  }
}
@media (min-width: 1024px) {
  .ciba-footer-grid {
    grid-template-columns: 1fr 1.15fr 1.35fr;
    gap: 36px;
  }
  .ciba-footer-col.ciba-footer-location {
    grid-column: span 1;
  }
}
.ciba-footer-col {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
.ciba-footer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
  padding: 0 0 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  letter-spacing: -0.2px;
}
.ciba-footer-links {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}
.ciba-footer-links li {
  margin-bottom: 7px;
  line-height: 1.45;
  color: var(--key-4);
  font-size: 0.875rem;
}
.ciba-footer-links li a {
  color: #f0fdfa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s, text-decoration 0.15s;
}
.ciba-footer-links li a:hover,
.ciba-footer-links li a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}
.ciba-footer-visitor-block {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
}
.ciba-footer-visitor-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}
.visitor-counter-wrapper {
  display: inline-block;
  padding: 4px 6px;
  background: #ffffff;
  border: 1px solid var(--key-4);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.visitor-counter-img {
  display: block;
  height: 32px;
  max-width: 100%;
}
.ciba-footer-location .footer-map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.1);
}
.ciba-footer-location iframe {
  display: block;
  width: 100%;
  height: 180px;
}
.ciba-footer-address {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #f0fdfa;
}
.ciba-footer-address .inst-name {
  margin: 0 0 10px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.45;
}
.ciba-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ciba-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  color: #f0fdfa;
  line-height: 1.4;
}
.ciba-contact-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--key-4);
}
.ciba-contact-list li a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
}
.ciba-contact-list li a:hover,
.ciba-contact-list li a:focus-visible {
  color: var(--key-5);
}
.ciba-footer-bottom {
  background: #093737;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 0;
}
.ciba-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
}
.ciba-footer-bottom-inner .copyright-text {
  margin: 0;
  font-weight: 500;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-bottom-links a:hover,
.footer-bottom-links a:focus-visible {
  color: var(--key-4);
  text-decoration: underline;
}
.footer-cookie-btn,
.footer-back-to-top {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer-cookie-btn:hover,
.footer-cookie-btn:focus-visible,
.footer-back-to-top:hover,
.footer-back-to-top:focus-visible {
  background: #ffffff;
  color: var(--key);
  border-color: #ffffff;
}
.floating-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--key);
  color: #ffffff;
  border: 2px solid var(--key-4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}
.floating-top-btn[hidden] {
  display: none !important;
}
.floating-top-btn:hover {
  background: var(--key-2);
  transform: translateY(-3px);
}

.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--inclusive); border-top: 3px solid var(--key); box-shadow: 0 -2px 8px rgba(0,0,0,.2); }
.cookie-banner[hidden], #cookie-customize[hidden] { display: none; }
.cookie-banner p { margin: 0 0 8px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }

@media (max-width: 800px) {
  .brand-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .brand { flex-wrap: wrap; }
  .brand-actions, .header-search { width: 100%; max-width: none; }
  .utility-inner { justify-content: center; }
  .utility-right { justify-content: center; gap: 12px; }
  .logo { max-height: 56px; }
  html.js .nav-toggle { display: block; width: 100%; text-align: left; }
  html.js .menu-list { display: none; }
  html.js .menu-list.open { display: flex; }
  .menu-list { flex-direction: column; }
  .sub { position: static; max-height: none; box-shadow: none; min-width: 0; padding-left: 16px; }
  .sub details.nav-group > summary::after { content: "▾" !important; margin-left: 8px !important; }
  .sub details.nav-group[open] > summary::after { transform: rotate(180deg) !important; }
  .sub .sub.nested {
    position: static !important;
    display: none;
    box-shadow: none !important;
    border: none !important;
    border-left: 3px solid var(--key-2) !important;
    border-radius: 0 4px 4px 0 !important;
    margin: 4px 10px 8px 14px !important;
    padding: 4px 0 4px 6px !important;
    background: rgba(0, 0, 0, 0.18) !important;
    max-height: none !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
  .sub details.nav-group[open] > .sub.nested {
    display: block !important;
  }
  .sub .nested li a {
    padding: 7px 12px !important;
    font-size: 0.92rem !important;
    color: rgba(255, 255, 255, 0.92) !important;
  }
  .split-row { flex-direction: column; }
  .event-card { flex-basis: 80%; }
  .area-card { flex-basis: 55%; }
  .ticker-bar { flex-direction: column; gap: 4px; }
  .sitemap ul, .page-index { columns: 1; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* High Contrast Mode (WCAG 2.1 AA / GIGW 3.0) */
html.high-contrast,
html.high-contrast body {
  background: #000000 !important;
  color: #ffffff !important;
}
html.high-contrast a {
  color: #ffff00 !important;
}
html.high-contrast .utility-bar {
  background: #111111 !important;
  border-bottom-color: #444444 !important;
}
html.high-contrast .top-nav-link.emp-corner {
  color: #55ff55 !important;
}
html.high-contrast .top-nav-link.skip-main {
  color: #66b3ff !important;
}
html.high-contrast .top-nav-link.screen-reader,
html.high-contrast .btn-text-size,
html.high-contrast .lang-btn {
  color: #ffffff !important;
}
html.high-contrast .contrast-box:focus-visible,
html.high-contrast .contrast-box.active {
  outline-color: #ffff00 !important;
}
html.high-contrast .brand-bar {
  background: #000000 !important;
  border-bottom-color: #333333 !important;
}
html.high-contrast .brand-name {
  color: #ffffff !important;
}
html.high-contrast .brand-ministry {
  color: #cccccc !important;
}
html.high-contrast .search-input-wrapper {
  background: #000000 !important;
  border-color: #ffffff !important;
}
html.high-contrast .search-input-wrapper input {
  color: #ffffff !important;
}
html.high-contrast .search-submit-btn {
  color: #ffff00 !important;
}
html.high-contrast .main-nav {
  background: #000000 !important;
  border-top: 2px solid #ffffff !important;
  border-bottom: 2px solid #ffffff !important;
}
html.high-contrast .menu-list a,
html.high-contrast .nav-group summary {
  color: #ffffff !important;
}
html.high-contrast .menu-list a:hover,
html.high-contrast .menu-list a:focus-visible,
html.high-contrast .nav-group summary:hover,
html.high-contrast .nav-group summary:focus-visible {
  background: #222222 !important;
  color: #ffff00 !important;
}
html.high-contrast .sub {
  background: #000000 !important;
  border: 1px solid #ffffff !important;
}
html.high-contrast .sub .nested li a {
  color: #ffffff !important;
}
html.high-contrast .sub .nested li a:hover,
html.high-contrast .sub .nested li a:focus-visible {
  background: #222222 !important;
  color: #ffff00 !important;
}
html.high-contrast .site-intro {
  background: #111111 !important;
  border-bottom-color: #ffffff !important;
  color: #ffffff !important;
}
html.high-contrast .site-intro h1 {
  color: #ffff00 !important;
}
html.high-contrast .ciba-site-footer {
  background: #000000 !important;
  color: #ffffff !important;
  border-top-color: #ffffff !important;
}
html.high-contrast .ciba-footer-title,
html.high-contrast .ciba-footer-visitor-title {
  color: #ffff00 !important;
  border-bottom-color: #ffffff !important;
}
html.high-contrast .ciba-footer-links li {
  color: #ffffff !important;
}
html.high-contrast .ciba-footer-links li a {
  color: #ffffff !important;
  text-decoration: underline !important;
}
html.high-contrast .ciba-footer-links li a:hover {
  color: #ffff00 !important;
}
html.high-contrast .ciba-footer-visitor-block {
  border-top-color: #ffffff !important;
}
html.high-contrast .visitor-counter-wrapper {
  background: #000000 !important;
  border-color: #ffffff !important;
}
html.high-contrast .ciba-footer-location .footer-map-wrapper {
  border-color: #ffffff !important;
}
html.high-contrast .ciba-footer-address,
html.high-contrast .ciba-footer-address .inst-name,
html.high-contrast .ciba-contact-list li {
  color: #ffffff !important;
}
html.high-contrast .ciba-contact-list li svg {
  color: #ffff00 !important;
}
html.high-contrast .ciba-contact-list li a {
  color: #ffffff !important;
  text-decoration: underline !important;
}
html.high-contrast .ciba-contact-list li a:hover {
  color: #ffff00 !important;
}
html.high-contrast .ciba-footer-bottom {
  background: #111111 !important;
  border-top-color: #ffffff !important;
}
html.high-contrast .ciba-footer-bottom-inner .copyright-text {
  color: #ffffff !important;
}
html.high-contrast .footer-bottom-links a,
html.high-contrast .footer-cookie-btn,
html.high-contrast .footer-back-to-top {
  color: #ffffff !important;
  border-color: #ffffff !important;
}
html.high-contrast .footer-bottom-links a:hover,
html.high-contrast .footer-cookie-btn:hover,
html.high-contrast .footer-back-to-top:hover {
  color: #ffff00 !important;
}
html.high-contrast .floating-top-btn {
  background: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}
html.high-contrast .gov-partner-banner {
  background: #000000 !important;
  border-color: #ffffff !important;
}
html.high-contrast .gov-partner-banner-label,
html.high-contrast .gov-ticker-ctrl-btn {
  color: #ffff00 !important;
  background: #000000 !important;
  border-color: #ffffff !important;
}
html.high-contrast .gov-ticker-item {
  background: #ffffff !important;
  border: 2px solid #ffffff !important;
}
html.high-contrast .gov-ticker-item:hover,
html.high-contrast .gov-ticker-item:focus-visible {
  border-color: #ffff00 !important;
  outline: 2px solid #ffff00 !important;
}
html.high-contrast .home-research-card,
html.high-contrast .home-leadership-card,
html.high-contrast .research-update-row,
html.high-contrast .dignitary-card {
  background: #000000 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}
html.high-contrast .card-main-title,
html.high-contrast .update-row-title,
html.high-contrast .dignitary-name,
html.high-contrast .leadership-tier-badge {
  color: #ffff00 !important;
  border-color: #ffffff !important;
  background: #000000 !important;
}
html.high-contrast .dignitary-photo-box {
  border-color: #ffff00 !important;
}
html.high-contrast .update-row-excerpt,
html.high-contrast .dignitary-designation,
html.high-contrast .meta-date {
  color: #ffffff !important;
}
html.high-contrast .card {
  background: #111111 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}
html.high-contrast h2,
html.high-contrast h3,
html.high-contrast h4 {
  color: #ffff00 !important;
  border-bottom-color: #ffffff !important;
}
html.high-contrast .table-scroll th,
html.high-contrast .table-scroll td {
  border-color: #ffffff !important;
  color: #ffffff !important;
}

/* ==========================================================================
   About the Institute - 2-Card Layout (Left Text, Right Photo)
   ========================================================================== */
.about-institute-section {
  margin-bottom: 36px;
}
.about-two-card-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}
.about-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 87, 87, 0.08);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 0;
}
.about-card:hover {
  box-shadow: 0 8px 24px rgba(15, 87, 87, 0.14);
}
.about-card-text {
  padding: 30px 32px;
  background: #ffffff;
  justify-content: space-between;
}
.about-badge-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--key-5);
  color: var(--key);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.about-heading {
  margin: 0 0 16px;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--key);
  border-bottom: 3px solid var(--key-4);
  padding-bottom: 8px;
  line-height: 1.3;
}
.about-card-body {
  flex: 1 1 auto;
}
.about-card-body p {
  color: #334155;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 20px;
}
.about-card-action {
  margin-top: auto;
}
.btn-about-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--key);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(15, 87, 87, 0.2);
  transition: background 0.2s, transform 0.2s;
}
.btn-about-readmore:hover, .btn-about-readmore:focus-visible {
  background: var(--key-2);
  transform: translateX(3px);
  text-decoration: none;
}
.about-card-photo {
  background: #0f2c2c;
  position: relative;
  min-height: 320px;
}
.about-photo-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ciba-building-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
  transition: transform 0.4s ease;
}
.about-card-photo:hover .ciba-building-img {
  transform: scale(1.03);
}
.about-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  color: #ffffff;
  padding: 24px 20px 16px;
}
.photo-caption-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}
.photo-caption-sub {
  font-size: 0.8125rem;
  color: #e2e8f0;
  margin-top: 2px;
}

/* ==========================================================================
   Research Updates & Ministers/Leadership - 2-Card Split Layout (ICAR Standard)
   ========================================================================== */
.research-leadership-section {
  margin-bottom: 40px;
}
.research-leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px;
  align-items: stretch;
}
.home-research-card,
.home-leadership-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 87, 87, 0.08);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 0;
}
.home-research-card:hover,
.home-leadership-card:hover {
  box-shadow: 0 6px 20px rgba(15, 87, 87, 0.12);
}
.card-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--key-4);
}
.card-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--key-2);
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.card-main-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--key);
  line-height: 1.25;
}
.card-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--key);
  background: var(--key-5);
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}
.card-action-link:hover,
.card-action-link:focus-visible {
  background: var(--key);
  color: #ffffff !important;
}

/* Left Card: Research Updates List */
.research-updates-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}
.research-update-row {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  transition: all 0.2s ease;
}
.research-update-row:hover {
  background: #ffffff;
  border-color: var(--key-4);
  box-shadow: 0 2px 8px rgba(15, 87, 87, 0.08);
  transform: translateY(-2px);
}
.update-row-title {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--key);
}
.update-row-title a {
  color: inherit;
  text-decoration: none;
}
.update-row-title a:hover {
  text-decoration: underline;
}
.update-row-excerpt {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  color: #4b5563;
  line-height: 1.45;
}
.update-row-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}
.meta-date {
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.meta-readmore {
  font-weight: 600;
  color: var(--key);
  text-decoration: none;
}
.meta-readmore:hover {
  text-decoration: underline;
}

/* Right Card: Leadership & Dignitaries */
.leadership-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  justify-content: space-between;
}
.leadership-row-block {
  display: flex;
  flex-direction: column;
}
.leadership-tier-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--key);
  background: #f0fdfa;
  border: 1px solid var(--key-4);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.leadership-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}
.dignitary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.dignitary-card:hover {
  transform: translateY(-3px);
  border-color: var(--key-4);
  box-shadow: 0 4px 10px rgba(15, 87, 87, 0.1);
  background: #f8fafc;
}
.dignitary-photo-box {
  width: 76px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--key-4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
  background: #f1f5f9;
  flex-shrink: 0;
}
.dignitary-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.dignitary-name {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.dignitary-designation {
  margin: 0;
  font-size: 0.7rem;
  color: #4b5563;
  line-height: 1.35;
}
.leadership-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 2px 0;
}

@media (max-width: 991px) {
  .research-leadership-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .leadership-grid-three {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .dignitary-card {
    flex-direction: row;
    text-align: left;
    gap: 12px;
    padding: 10px;
  }
  .dignitary-photo-box {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   Latest Updates - 4 Cards Grid
   ========================================================================== */
.latest-updates-section {
  margin-bottom: 40px;
}
.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}
.section-kicker {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--key-2);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.section-main-title {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--key);
}
.btn-view-all-updates {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--key);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--key-4);
  border-radius: 6px;
  background: #ffffff;
  transition: all 0.2s;
}
.btn-view-all-updates:hover, .btn-view-all-updates:focus-visible {
  background: var(--key-5);
  border-color: var(--key);
  text-decoration: none;
}
.updates-four-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.update-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 0;
}
.update-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(15, 87, 87, 0.15);
  border-color: var(--key-4);
}
.update-card-media {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f1f5f9;
}
.update-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.update-card:hover .update-card-media img {
  transform: scale(1.05);
}
.update-placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: #e2e8f0;
}
.update-date-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 87, 87, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.update-card-content {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.update-card-title {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.4;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.update-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s;
}
.update-card-title a:hover, .update-card-title a:focus-visible {
  color: var(--key);
  text-decoration: underline;
}
.update-card-excerpt {
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.update-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.update-readmore-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--key);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}
.update-readmore-link:hover, .update-readmore-link:focus-visible {
  color: var(--key-2);
  gap: 10px;
  text-decoration: underline;
}

/* ==========================================================================
   Events / Latest Updates Page Styling
   ========================================================================== */
.events-page-header {
  margin-bottom: 28px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.events-page-header .section-main-title {
  font-size: 2rem;
  line-height: 1.25;
  margin-top: 4px;
}
.events-page-header .section-sub-desc {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  max-width: 800px;
}
.events-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--key-5);
  color: var(--key);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid var(--key-4);
  white-space: nowrap;
  margin-bottom: 4px;
}
.events-page-grid {
  margin-bottom: 36px;
}
.empty-updates {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: #64748b;
  font-size: 1.05rem;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
}

/* ==========================================================================
   Notices Portal Styling
   ========================================================================== */
.notice-header-block {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--key-4);
}
.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--key);
  margin: 0 0 8px;
}
.page-subtitle {
  color: #475569;
  font-size: 1rem;
  margin: 0;
}
.notice-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.notice-cat-tab {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid var(--key-4);
  background: #ffffff;
  color: var(--key);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.notice-cat-tab:hover, .notice-cat-tab:focus-visible {
  background: var(--key-5);
  border-color: var(--key);
  text-decoration: none;
}
.notice-cat-tab.active {
  background: var(--key);
  color: #ffffff !important;
  border-color: var(--key);
  box-shadow: 0 2px 6px rgba(15, 87, 87, 0.25);
}
.notices-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.notice-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 0;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  gap: 20px;
}
.notice-item-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(15, 87, 87, 0.1);
  border-color: var(--key-4);
}
.notice-card-main {
  flex: 1 1 auto;
}
.notice-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.notice-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #f1f5f9;
  color: #334155;
}
.notice-badge.badge-tender {
  background: #fef3c7;
  color: #92400e;
}
.notice-badge.badge-recruitment {
  background: #dbeafe;
  color: #1e40af;
}
.notice-badge.badge-supply_order {
  background: #dcfce7;
  color: #166534;
}
.notice-badge.badge-eoi {
  background: #f3e8ff;
  color: #6b21a8;
}
.notice-date {
  font-size: 0.8125rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.notice-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: #0f172a;
}
.notice-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s;
}
.notice-card-title a:hover, .notice-card-title a:focus-visible {
  color: var(--key);
  text-decoration: underline;
}
.notice-card-action {
  flex: 0 0 auto;
}
.btn-notice-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--key-5);
  color: var(--key) !important;
  border: 1px solid var(--key-4);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-notice-action:hover, .btn-notice-action:focus-visible {
  background: var(--key);
  color: #ffffff !important;
  border-color: var(--key);
  text-decoration: none;
}
.notice-meta-tag {
  font-size: 0.75rem;
  opacity: 0.85;
}
.notice-status-tag {
  font-size: 0.8125rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 6px;
}
.empty-notices {
  padding: 30px;
  text-align: center;
  color: #64748b;
}
.modern-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 32px 0;
}
.modern-pagination .page-link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--key);
  font-size: 0.9375rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}
.modern-pagination .page-link:hover:not(.disabled):not(.current-page) {
  background: var(--key-5);
  border-color: var(--key);
}
.modern-pagination .current-page {
  background: var(--key);
  color: #ffffff;
  border-color: var(--key);
  font-weight: 700;
}
.modern-pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8fafc;
}

/* ==========================================================================
   Responsive Breakpoints & Layout Adaptations
   ========================================================================== */

/* Laptops & Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .research-leadership-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-two-card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ciba-building-img {
    max-height: 360px;
    min-height: 240px;
  }
  .updates-four-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .staff-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .staff-sidebar-card {
    position: static;
  }
}

/* Tablets & Large Phones (max-width: 768px) */
@media (max-width: 768px) {
  .split-row {
    flex-direction: column;
  }
  .split-about, .split-events {
    width: 100%;
  }
  .brand-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .brand {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .brand-actions {
    width: 100%;
  }
  .header-search {
    width: 100%;
    max-width: 100%;
  }
  .contact-page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .notice-item-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .notice-card-action {
    width: 100%;
  }
  .btn-notice-action {
    width: 100%;
    justify-content: center;
  }
  .ciba-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .faculty-profile-card {
    padding: 20px 16px;
  }
}

/* Mobile Phones (max-width: 576px) */
@media (max-width: 576px) {
  .about-card-text {
    padding: 22px 18px;
  }
  .about-heading {
    font-size: 1.35rem;
  }
  .updates-four-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .leadership-grid-three {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dignitary-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
    padding: 10px 12px;
  }
  .dignitary-photo-box {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .section-title-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .btn-view-all-updates {
    width: 100%;
    justify-content: center;
  }
  .events-page-header .section-main-title {
    font-size: 1.4rem;
  }
  .events-count-pill {
    font-size: 0.8125rem;
    padding: 4px 10px;
  }
  .brand {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .brand-logos {
    justify-content: center;
  }
  .logo {
    max-height: 52px;
  }
  .utility-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .utility-right {
    justify-content: center;
    gap: 10px;
    margin-left: 0;
  }
  .faculty-title {
    font-size: 1.45rem;
  }
  .faculty-photo-wrap img.faculty-photo {
    max-height: 190px;
    max-width: 190px;
  }
  .faculty-details-body table td,
  .faculty-profile-table td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  .faculty-details-body table td:first-child,
  .faculty-profile-table td:first-child {
    width: 38%;
  }
  .faculty-tabs-nav {
    flex-direction: column;
    gap: 2px;
  }
  .faculty-tab-btn {
    width: 100%;
    text-align: left;
    border-radius: 4px;
    border-bottom: 1px solid #cbd5e1;
  }
  .faculty-tab-pane {
    padding: 16px 12px;
  }
}


/* ==========================================================================
   High Contrast Mode Adaptations
   ========================================================================== */
html.high-contrast .about-card,
html.high-contrast .update-card,
html.high-contrast .notice-item-card {
  background: #111111 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}
html.high-contrast .about-heading,
html.high-contrast .section-main-title,
html.high-contrast .page-title {
  color: #ffff00 !important;
  border-bottom-color: #ffffff !important;
}
html.high-contrast .about-badge-pill {
  background: #222222 !important;
  color: #ffff00 !important;
  border: 1px solid #ffffff !important;
}
html.high-contrast .about-card-body p,
html.high-contrast .update-card-excerpt,
html.high-contrast .page-subtitle {
  color: #dddddd !important;
}
html.high-contrast .btn-about-readmore {
  background: #ffff00 !important;
  color: #000000 !important;
}
html.high-contrast .btn-about-readmore:hover {
  background: #ffffff !important;
}
html.high-contrast .section-kicker {
  color: #ffff00 !important;
}
html.high-contrast .section-title-bar {
  border-bottom-color: #ffffff !important;
}
html.high-contrast .btn-view-all-updates {
  background: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffffff !important;
}
html.high-contrast .update-card-title a,
html.high-contrast .notice-card-title a,
html.high-contrast .notice-card-title span {
  color: #ffffff !important;
}
html.high-contrast .update-card-title a:hover,
html.high-contrast .notice-card-title a:hover {
  color: #ffff00 !important;
}
html.high-contrast .update-readmore-link {
  color: #ffff00 !important;
}
html.high-contrast .events-count-pill {
  background: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffffff !important;
}
html.high-contrast .empty-updates {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}
html.high-contrast .events-page-header .section-sub-desc {
  color: #dddddd !important;
}
html.high-contrast .notice-cat-tab {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}
html.high-contrast .notice-cat-tab.active {
  background: #ffff00 !important;
  color: #000000 !important;
  border-color: #ffff00 !important;
}
html.high-contrast .btn-notice-action {
  background: #222222 !important;
  color: #ffff00 !important;
  border-color: #ffffff !important;
}
html.high-contrast .btn-notice-action:hover {
  background: #ffff00 !important;
  color: #000000 !important;
}
html.high-contrast .modern-pagination .page-link {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}
html.high-contrast .modern-pagination .current-page {
  background: #ffff00 !important;
  color: #000000 !important;
}

/* ==========================================================================
   Full-Website Justified Content Alignment
   ========================================================================== */
p,
.about-card-body,
.about-card-body p,
.update-card-excerpt,
.imported-content,
.imported-content p,
.imported-content div,
.imported-content span,
.imported-content li,
.imported-content blockquote,
.card p,
.notice-item-card p,
.notice-meta-desc,
.site-intro p,
.page-content,
.page-content p,
.page-content div,
.article-body,
.article-body p,
.event-detail,
.event-detail p,
.research-detail,
.research-detail p,
.staff-card p,
.staff-bio,
.content-area,
.content-area p,
main p,
main article p,
main section p {
  text-align: justify;
  text-justify: inter-word;
}

/* ==========================================================================
   Fixed Floating Social Media Sidebar (Bottom-Left Corner)
   ========================================================================== */
.fixed-social-dock {
  position: fixed;
  left: 0;
  bottom: 80px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.35);
  border-radius: 0 4px 4px 0;
  overflow: hidden;
}

.fixed-social-dock .dock-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 32px;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.fixed-social-dock .dock-link:hover,
.fixed-social-dock .dock-link:focus-visible {
  transform: translateX(4px);
  filter: brightness(1.18);
  outline: none;
}

.fixed-social-dock .dock-fb {
  background-color: #3b5998;
}

.fixed-social-dock .dock-yt {
  background-color: #a80600;
}

.fixed-social-dock .dock-x {
  background-color: #1157a6;
}

.fixed-social-dock .dock-insta {
  background-color: #a80600;
}

@media (max-width: 600px) {
  .fixed-social-dock {
    bottom: 50px;
  }
  .fixed-social-dock .dock-link {
    width: 32px;
    height: 28px;
  }
  .fixed-social-dock .dock-link svg {
    transform: scale(0.85);
  }
}

html.high-contrast .fixed-social-dock {
  border: 1px solid #ffffff;
  border-left: none;
}
html.high-contrast .fixed-social-dock .dock-link {
  border-bottom: 1px solid #ffffff;
}
html.high-contrast .fixed-social-dock .dock-link:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Director's Message Page Layout & Banner
   ========================================================================== */
.directors-message-container {
  margin: 1.5rem 0 3.5rem 0;
  max-width: 1000px;
}

.directors-desk-banner {
  margin-bottom: 2.25rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.directors-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.directors-message-body p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #1e293b;
  margin-bottom: 1.5rem;
  text-align: justify;
  text-justify: inter-word;
}

.directors-signoff {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid #e2e8f0;
}

.directors-signoff .director-name {
  font-size: 1.25rem;
  color: var(--key, #004d40);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.directors-signoff .director-designation {
  font-size: 1.05rem;
  font-weight: 600;
  color: #475569;
}

html.high-contrast .directors-desk-banner {
  border: 2px solid #ffffff !important;
}

html.high-contrast .directors-message-body p {
  color: #ffffff !important;
}

html.high-contrast .directors-signoff {
  border-top-color: #ffffff !important;
}

html.high-contrast .directors-signoff .director-name {
  color: #ffff00 !important;
}

html.high-contrast .directors-signoff .director-designation {
  color: #ffffff !important;
}

/* ==========================================================================
   CIBA Facilities & Interactive Components (DBIM 3.0 Standard)
   ========================================================================== */

/* 1. Accommodation Photo Gallery Alignment */
.accommodation-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin: 28px 0 36px;
}
.accommodation-item {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.accommodation-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.accommodation-img-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #f1f5f9;
}
.accommodation-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.accommodation-item:hover .accommodation-img-wrap img {
  transform: scale(1.03);
}
.accommodation-caption {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--key, #004d40);
  background: #f8fafc;
  border-top: 1px solid #edf2f7;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.4;
}

/* 2. Responsive Metaslider Component */
.ciba-slider-wrapper {
  max-width: 900px;
  margin: 28px auto 36px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: #1a202c;
}
.ciba-slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  overflow: hidden;
}
.ciba-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.ciba-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
}
.ciba-slide.active {
  opacity: 1;
  visibility: visible;
}
.ciba-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ciba-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #ffffff;
  padding: 24px 24px 32px;
  font-size: 1rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.ciba-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 5;
  user-select: none;
}
.ciba-slider-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-50%) scale(1.08);
}
.ciba-slider-btn.prev { left: 16px; }
.ciba-slider-btn.next { right: 16px; }
.ciba-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 6;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
}
.ciba-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.ciba-slider-dot.active {
  background: #ffffff;
  transform: scale(1.25);
}

/* 3. Research Division Link Badge for Laboratories */
.division-nav-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 5px solid #16a34a;
  padding: 14px 20px;
  border-radius: 6px;
  margin-bottom: 28px;
}
.division-nav-badge {
  background: #16a34a;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
}
.division-nav-text {
  font-size: 0.98rem;
  color: #14532d;
  flex: 1 1 auto;
}
.division-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #16a34a !important;
  border: 1.5px solid #16a34a;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}
.division-nav-link:hover {
  background: #16a34a;
  color: #ffffff !important;
}

/* 4. Divi Toggle Replacements (details.ciba-toggle) */
details.ciba-toggle {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  margin-bottom: 16px;
  overflow: hidden;
}
details.ciba-toggle summary {
  background: #e2e8f0;
  color: var(--key, #004d40);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.2s;
}
details.ciba-toggle summary:hover {
  background: #cbd5e1;
}
details.ciba-toggle summary::-webkit-details-marker {
  display: none;
}
details.ciba-toggle summary::after {
  content: "▾";
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}
details.ciba-toggle[open] summary::after {
  transform: rotate(180deg);
}
details.ciba-toggle .ciba-toggle-body {
  padding: 20px;
  background: #ffffff;
}

/* 5. Ninja Tables Styling */
.table-scroll table.ninja-rendered-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.95rem;
}
.table-scroll table.ninja-rendered-table th {
  background: var(--key, #004d40);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #00362c;
}
.table-scroll table.ninja-rendered-table td {
  padding: 10px 16px;
  border: 1px solid #e2e8f0;
  line-height: 1.5;
}
.table-scroll table.ninja-rendered-table tbody tr:nth-child(even) {
  background: #f8fafc;
}
.table-scroll table.ninja-rendered-table tbody tr:hover {
  background: #f1f5f9;
}
.table-scroll table.ninja-rendered-table a {
  color: var(--key, #004d40);
  font-weight: 500;
  text-decoration: underline;
}

/* 6. Contact Us Two-Column Aligned Layout */
.contact-page-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin: 28px 0 40px;
  align-items: start;
}
.contact-info-card,
.contact-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 28px 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.contact-card-title {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--key, #004d40);
  font-size: 1.35rem;
  font-weight: 700;
  border-bottom: 2px solid var(--key-2, #00796b);
  padding-bottom: 10px;
}
.contact-card-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.45;
}
.contact-director-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.contact-director-box .director-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #14532d;
}
.contact-director-box .director-role {
  font-size: 0.9rem;
  color: #166534;
}
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.contact-item:last-child {
  margin-bottom: 0;
}
.contact-icon {
  font-size: 1.25rem;
  line-height: 1.3;
  flex-shrink: 0;
}
.contact-item-text strong {
  display: block;
  font-size: 0.92rem;
  color: #334155;
  margin-bottom: 2px;
}
.contact-item-text p {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.45;
}
.contact-item.vigilance-box {
  background: #fefce8;
  border: 1px solid #fef08a;
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 16px;
}
.ciba-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ciba-contact-form .form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ciba-contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ciba-contact-form label {
  font-weight: 600;
  font-size: 0.92rem;
  color: #334155;
}
.ciba-contact-form .form-input,
.ciba-contact-form .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.ciba-contact-form .form-input:focus,
.ciba-contact-form .form-textarea:focus {
  outline: none;
  border-color: var(--key-2, #00796b);
  box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.15);
}
.ciba-contact-form .contact-submit-btn {
  background: var(--key, #004d40);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.ciba-contact-form .contact-submit-btn:hover {
  background: var(--key-2, #00796b);
}
.ciba-contact-form .contact-submit-btn:active {
  transform: scale(0.98);
}

@media (max-width: 860px) {
  .contact-page-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ciba-contact-form .form-row-2col {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Scientist Lists & Faculty Profiles (Matching original CIBA website)
-------------------------------------------------------------------------- */
.staff-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
  margin-top: 15px;
  margin-bottom: 40px;
}
@media (max-width: 991px) {
  .staff-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.staff-content-col {
  min-width: 0;
}
.staff-content-col h1 {
  text-align: center;
  color: #0b5394;
  font-size: 2rem;
  font-weight: 700;
  margin: 10px 0 25px 0;
}

.table-scroll table.ninja-rendered-table th {
  background: #dbe6f0 !important;
  color: #102a43 !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  border-bottom: 2px solid #cbd5e1 !important;
  padding: 12px 14px !important;
}
.table-scroll table.ninja-rendered-table td {
  padding: 11px 14px !important;
  vertical-align: middle;
}

.table-scroll table.ninja-rendered-table a.scientist-name-link {
  color: #0b69a3 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}
.table-scroll table.ninja-rendered-table a.scientist-name-link:hover {
  color: #004085 !important;
  text-decoration: underline !important;
}

/* Staff Sidebar */
.staff-sidebar-col {
  width: 100%;
}
.staff-sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 90px;
}
.staff-sidebar-heading {
  display: flex;
  align-items: center;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
  margin: 20px 0 12px;
}
.staff-sidebar-heading::before,
.staff-sidebar-heading::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}
.staff-sidebar-heading:not(:empty)::before {
  margin-right: 0.75em;
}
.staff-sidebar-heading:not(:empty)::after {
  margin-left: 0.75em;
}
.staff-sidebar-heading:first-child {
  margin-top: 0;
}
.staff-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}
.staff-sidebar-list li {
  margin-bottom: 3px;
}
.staff-sidebar-list a {
  display: block;
  padding: 7px 10px;
  color: #0b69a3;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.staff-sidebar-list a:hover {
  background: #f0f7ff;
  color: #004085;
  padding-left: 14px;
}
.staff-sidebar-list li.active a {
  background: #0b5394;
  color: #ffffff !important;
  font-weight: 600;
}

/* Faculty Profile Card & Details Table */
.faculty-profile-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.faculty-profile-header {
  text-align: center;
  margin-bottom: 25px;
}
.faculty-profile-header h1.faculty-title {
  color: #0b5394;
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0 0 18px 0;
  text-align: center;
}
.faculty-photo-wrap {
  text-align: center;
  margin: 10px auto 25px;
}
.faculty-photo-wrap img.faculty-photo {
  max-height: 250px;
  max-width: 250px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border: 3px solid #ffffff;
  outline: 1px solid #cbd5e1;
}
.faculty-details-body {
  margin-bottom: 20px;
}
.faculty-details-body table,
.faculty-profile-table {
  width: 100%;
  margin-bottom: 25px;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}
.faculty-details-body table tr:nth-child(even),
.faculty-profile-table tr:nth-child(even) {
  background: #f8fafc;
}
.faculty-details-body table td,
.faculty-profile-table td {
  padding: 11px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.5;
}
.faculty-details-body table td:first-child,
.faculty-profile-table td:first-child {
  width: 28%;
  font-weight: 700;
  color: var(--key, #004d40);
  background: #f1f5f9;
  border-right: 1px solid #e2e8f0;
}
.faculty-details-body a,
.faculty-profile-table a {
  color: #0b69a3;
  text-decoration: none;
  font-weight: 600;
}
.faculty-details-body a:hover,
.faculty-profile-table a:hover {
  text-decoration: underline;
  color: #004085;
}

/* Faculty Profile Interactive Tabs */
.faculty-tabs-container {
  margin-top: 30px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.faculty-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  padding: 8px 10px 0;
  gap: 4px;
}
.faculty-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.faculty-tab-btn:hover {
  color: var(--key, #004d40);
  background: rgba(255, 255, 255, 0.7);
}
.faculty-tab-btn.active {
  background: #ffffff;
  color: var(--key, #004d40);
  border-color: #cbd5e1 #cbd5e1 #ffffff;
  margin-bottom: -1px;
  border-top: 3px solid var(--key-2, #00796b);
  box-shadow: 0 -2px 0 var(--key-2, #00796b);
}
.faculty-tabs-content {
  background: #ffffff;
}
.faculty-tab-pane {
  display: none;
  padding: 24px;
  line-height: 1.65;
  color: #334155;
  font-size: 0.95rem;
}
.faculty-tab-pane.active {
  display: block;
}
.faculty-tab-pane table {
  width: 100%;
  margin-top: 12px;
  margin-bottom: 18px;
  border-collapse: collapse;
}
.faculty-tab-pane table th,
.faculty-tab-pane table td {
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
}
.faculty-tab-pane table thead {
  background: #f1f5f9;
  font-weight: 600;
}
.faculty-tab-pane ul {
  margin-left: 22px;
  margin-bottom: 16px;
}
.faculty-tab-pane li {
  margin-bottom: 6px;
}



