/* ═══════════════════════════════════════════════
   CUTM CDS&ML – Premium Light Theme
   ═══════════════════════════════════════════════ */

/* ── ROOT TOKENS ── */
:root {
  --bg:        #f4f7fe;
  --bg-alt:    #ffffff;
  --card:      #ffffff;
  --border:    #e2e8f8;
  --border2:   #c7d2ef;

  --primary:   #1e40af;
  --primary-d: #1635a0;
  --primary-l: #eff2ff;
  --primary-m: #bfcbf7;

  --accent:    #0369a1;
  --green:     #15803d;
  --amber:     #b45309;
  --violet:    #6d28d9;

  --text:      #111827;
  --text2:     #0a45a4;
  --muted:     #6b7280;
  --light:     #9ca3af;

  --shadow-sm: 0 1px 8px rgba(30,64,175,.07);
  --shadow:    0 4px 20px rgba(30,64,175,.10);
  --shadow-md: 0 8px 36px rgba(30,64,175,.14);
  --shadow-lg: 0 16px 56px rgba(30,64,175,.18);

  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: .28s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--primary-m); border-radius: 3px; }

/* ══════════════════════════════════
   LOADER
══════════════════════════════════ */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
.loader-inner { text-align: center; width: 260px; }
.loader-logo { width: 70px; margin: 0 auto 1.2rem; }
.loader-bar-track {
  height: 4px; background: #e5e7eb; border-radius: 2px; overflow: hidden; margin-bottom: .8rem;
}
.loader-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px; transition: width .3s ease;
}
#loaderText { font-size: 1rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

/* ══════════════════════════════════
   SCROLL-TO-TOP
══════════════════════════════════ */
#scrollTop {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  border: none; font-size: 1.1rem; cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(20px);
  transition: opacity .3s, transform .3s;
}
#scrollTop.visible { opacity: 1; transform: translateY(0); }
#scrollTop:hover { background: var(--primary-d); }

/* ══════════════════════════════════
   NAVBAR
══════════════════════════════════ */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  height: 88px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: height var(--transition), box-shadow var(--transition);
}
.navbar.scrolled { height: 58px; box-shadow: var(--shadow); }

.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-size: 1.08rem; font-weight: 800; color: var(--text); line-height: 1.3; }
.brand-sub   { font-size: .92rem; color: var(--muted); font-weight: 500; }

#mainNav { display: flex; gap: 1.5px; }
#mainNav a {
  padding: .45rem .9rem;
  font-size: 0.75rem; font-weight: 600; color: var(--text2);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
#mainNav a::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--primary); border-radius: 1px;
  transition: width var(--transition);
}
#mainNav a:hover { background: var(--primary-l); color: var(--primary); }
#mainNav a:hover::after { width: 60%; }
#mainNav a.active { color: var(--primary); }
#mainNav a.active::after { width: 60%; }

.nav-apply {
  background: var(--primary); color: #fff;
  padding: .48rem 1.2rem; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700;
  border: none; cursor: pointer; flex-shrink: 0;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 10px rgba(30,64,175,.3);
}
.nav-apply:hover { background: var(--primary-d); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(30,64,175,.4); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  transition: border-color var(--transition);
}
.nav-hamburger:hover { border-color: var(--primary); }
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  min-height: 100vh;
  background:
    url('assets/images/hero_bg.svg')
    center center / cover no-repeat;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 100px 3rem 4rem;
  text-align: center;
}

/* dark gradient overlay for readability */
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(
    160deg,
    rgba(5, 15, 60, 0.82) 0%,
    rgba(10, 30, 100, 0.75) 50%,
    rgba(2, 10, 45, 0.88) 100%
  );
  z-index: 0;
}

/* subtle dot grid on top of overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(150,180,255,0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  z-index: 0;
}

#heroCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.hero-content { position: relative; z-index: 1; max-width: 860px; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color: #e0eaff;
  backdrop-filter: blur(8px);
  font-size: .75rem; font-weight: 700;
  padding: .38rem 1rem; border-radius: 20px;
  margin-bottom: 1.4rem;
  box-shadow: 0 2px 14px rgba(0,0,100,.25);
  animation: fadeUp .7s ease both;
  letter-spacing: .05em;
}

.hero-heading {
  font-size: 3.8rem; font-weight: 800; line-height: 1.18;
  color: #ffffff; margin-bottom: 1.1rem;
  animation: fadeUp .7s .1s ease both;
  min-height: 2.2em;
  text-shadow: 0 2px 20px rgba(0,0,80,0.5);
}
.cursor-blink {
  display: inline-block; color: #7eb3ff;
  animation: blink .7s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: 1.18rem; color: rgba(210,225,255,0.92); max-width: 640px;
  margin: 0 auto 1.4rem; line-height: 1.75;
  animation: fadeUp .7s .2s ease both;
  text-shadow: 0 1px 8px rgba(0,0,50,0.4);
}

.hero-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  margin-bottom: 1.8rem;
  animation: fadeUp .7s .3s ease both;
}
.hero-pills span {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.28);
  color: #d0e4ff; font-size: .74rem; font-weight: 600;
  padding: .3rem .85rem; border-radius: 20px;
  box-shadow: 0 1px 8px rgba(0,0,80,.2);
  transition: background var(--transition), border-color var(--transition);
}
.hero-pills span:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
}

.hero-actions {
  display: flex; justify-content: center; gap: .85rem; flex-wrap: wrap;
  animation: fadeUp .7s .4s ease both;
}
.btn-primary-hero {
  background: #2355d4; color: #fff;
  padding: .72rem 1.9rem; border-radius: var(--radius-sm);
  font-size: 1.08rem; font-weight: 700;
  box-shadow: 0 4px 22px rgba(30,64,175,.55);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary-hero:hover { background: #1a42ba; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(30,64,175,.65); }
.btn-outline-hero {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.45);
  padding: .7rem 1.7rem; border-radius: var(--radius-sm);
  font-size: 1.08rem; font-weight: 700;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,60,.2);
}
.btn-outline-hero:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.75); box-shadow: 0 4px 20px rgba(0,0,80,.3); }

.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fadeUp .7s .8s ease both;
  z-index: 1;
}
.scroll-mouse {
  width: 22px; height: 34px; border: 2px solid rgba(255,255,255,0.45); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 5px;
}
.scroll-dot {
  width: 4px; height: 8px; background: rgba(255,255,255,0.7); border-radius: 2px;
  animation: scrollDown 1.6s ease-in-out infinite;
}
@keyframes scrollDown { 0%,100%{transform:translateY(0);opacity:1} 80%{transform:translateY(10px);opacity:0} }
.hero-scroll-hint span { font-size: .65rem; color: rgba(200,220,255,0.7); letter-spacing: .1em; font-family:'JetBrains Mono',monospace; }
/* ══════════════════════════════════
   ABOUT RESEARCH CENTER
══════════════════════════════════ */

.about-center-wrapper{

  display:grid;

  grid-template-columns:1.1fr 1fr;

  gap:3rem;

  align-items:stretch;
}

@media (max-width: 1100px){

  .about-center-wrapper{

    grid-template-columns:1fr;
  }
}

/* LEFT CONTENT */

.about-center-left{

  display:flex;

  flex-direction:column;

  justify-content:center;
}

.about-center-text{

  font-size:0.95rem;

  line-height:1.75;

  color:var(--text2);

  margin-bottom:1.2rem;

  text-align:justify;
}

/* HIGHLIGHT CARDS */

.about-highlights{

  display:grid;

  grid-template-columns:1fr 1fr;

  gap:1rem;

  margin-top:1rem;
}

.about-highlight-card{

  background:#ffffff;

  border:1px solid var(--border);

  border-radius:16px;

  padding:1.2rem;

  box-shadow:var(--shadow-sm);

  transition:all .3s ease;
}

.about-highlight-card:hover{

  transform:translateY(-4px);

  box-shadow:var(--shadow-md);
}

.about-highlight-card h3{

  font-size:.95rem;

  margin-bottom:.6rem;

  color:var(--primary);

  font-weight:700;
}

.about-highlight-card p{

  font-size:.8rem;

  line-height:1.7;

  color:var(--muted);
}

/* RIGHT IMAGE SECTION */

.about-center-right{

  width:100%;

  height:100%;

  display:flex;
}

/* FULL SIZE IMAGE */

.about-center-image{

  width:100%;

  height:100%;

  min-height:620px;

  object-fit:cover;

  border-radius:24px;

  box-shadow:var(--shadow-lg);

  border:1px solid var(--border);
}
/* ══════════════════════════════════
   SECTIONS
══════════════════════════════════ */
.section-white { background: #fff; padding: 80px 3rem; }
.section-alt   { background: var(--bg); padding: 80px 3rem; }

.section-header { text-align: center; margin-bottom: 2.8rem; }
.section-tag {
  display: inline-block;
  background: var(--primary-l); border: 1px solid var(--primary-m);
  color: var(--primary); font-size: 0.65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 20px; margin-bottom: .6rem;
  font-family: 'JetBrains Mono', monospace;
}
.section-title {
  font-size: 2.5rem; font-weight: 800; color: var(--text); margin-bottom: .5rem;
}
.section-sub { font-size: .9rem; color: var(--muted); max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════
   STATS
══════════════════════════════════ */
.stats-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; margin-bottom: 2.5rem;
}
.stat-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1.2rem;
  text-align: center; cursor: default;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: attr(data-color);
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* colour top bar via data attribute workaround using JS */
.stat-card .stat-top-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: var(--radius) var(--radius) 0 0;
}
.stat-icon-wrap {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin: 0 auto .8rem;
}
.stat-num {
  font-size: 2.2rem; font-weight: 800; color: var(--text);
  line-height: 1; font-family: 'JetBrains Mono', monospace;
  margin-bottom: .3rem;
}
.stat-label { font-size: .92rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

/* ── CHARTS ── */
.chart-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.chart-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.chart-card:hover { box-shadow: var(--shadow); }
.chart-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.chart-card-header h3 { font-size: .95rem; font-weight: 700; color: var(--text); }
.live-badge {
  font-size: .68rem; background: #f0fdf4; color: #16a34a;
  border: 1px solid #bbf7d0; padding: 2px 10px; border-radius: 20px;
  font-family: 'JetBrains Mono', monospace; font-weight: 600;
}
.chart-body { height: 340px; position: relative; }
.chart-body canvas { width: 100% !important; height: 100% !important; }
/* ══════════════════════════════════
   3D REVENUE BAR CHART
══════════════════════════════════ */

.revenue-card-wrapper{

  width:100%;

  display:flex;

  justify-content:center;

  align-items:center;

  margin-top:2rem;
}

.revenue-chart-card{

  width:100%;

  max-width:1350px;

  padding:1.5rem;
}

#revenue3DPlot{

  width:100%;

  height:850px;

  border-radius:20px;

  overflow:hidden;
}
/* ══════════════════════════════════
   FACULTY
══════════════════════════════════ */
.faculty-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.2rem;
}
.faculty-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: fadeUp .5s ease both;
}
.faculty-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-m); }
.faculty-card-top { height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.faculty-card img {
  width: 90px; height: 90px; border-radius: 50%; object-fit: cover; object-position: top;
  margin: 1.2rem auto .8rem;
  border: 3px solid var(--primary-l);
}
.faculty-initials {
  width: 90px; height: 90px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 1.2rem auto .8rem;
  font-size: 1.4rem; font-weight: 800; color: var(--primary);
  background: linear-gradient(135deg, var(--primary-l), #e0e7ff);
  border: 3px solid var(--primary-l);
  font-family: 'JetBrains Mono', monospace;
}
.faculty-card h3 {
  font-size: 1rem; font-weight: 700; color: var(--text);
  padding: 0 .8rem; line-height: 1.4; margin-bottom: .25rem;
}
.faculty-card h3 a { color: inherit; }
.faculty-card h3 a:hover { color: var(--primary); }
.faculty-card .desig { font-size: .7rem; color: var(--primary); font-weight: 600; margin-bottom: .2rem; }
.faculty-card .campus { font-size: .68rem; color: var(--muted); margin-bottom: 1rem; }

/* ══════════════════════════════════
   PUBLICATIONS
══════════════════════════════════ */
.pub-controls { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.8rem; }
.search-box {
  display: flex; align-items: center; gap: .7rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .6rem 1rem;
  box-shadow: var(--shadow-sm);
}
.search-box span { font-size: 1rem; }
.search-box input {
  border: none; outline: none; font-size: .85rem; color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif; flex: 1; background: transparent;
}
.search-box input::placeholder { color: var(--light); }

.filter-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-btn {
  background: #fff; border: 1px solid var(--border);
  color: var(--text2); padding: .38rem 1rem;
  border-radius: 20px; font-size: .76rem; font-weight: 600;
  cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

.pub-list { display: flex; flex-direction: column; gap: .75rem; }
.pub-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.1rem 1.4rem;
  display: flex; gap: 1.1rem; align-items: flex-start;
  transition: border-color var(--transition), box-shadow var(--transition);
  animation: fadeUp .4s ease both;
}
.pub-item:hover { border-color: var(--primary-m); box-shadow: var(--shadow-sm); }
.pub-year {
  font-family: 'JetBrains Mono', monospace; font-size: .92rem;
  color: var(--primary); font-weight: 600; min-width: 36px; padding-top: 2px;
}
.pub-body { flex: 1; }
.pub-title { font-size: .84rem; font-weight: 700; color: var(--text); line-height: 1.5; margin-bottom: .25rem; }
.pub-meta  { font-size: .74rem; color: var(--muted); font-style: italic; margin-bottom: .35rem; }
.pub-type  {
  display: inline-block; font-size: .65rem; padding: 2px 9px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace; font-weight: 600;
}
.pub-type.journal    { background: var(--primary-l); color: var(--primary); border: 1px solid var(--primary-m); }
.pub-type.conference { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }

.load-more-wrap { text-align: center; margin-top: 1.5rem; }
.load-more-btn {
  background: #fff; border: 1.5px solid var(--border2);
  color: var(--text2); padding: .6rem 2rem;
  border-radius: var(--radius-sm); font-size: .82rem; font-weight: 700;
  cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.load-more-btn:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }

/* ══════════════════════════════════
   CONTENT GRID (patents, events, projects, courses)
══════════════════════════════════ */
.content-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.3rem;
}
.content-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: fadeUp .5s ease both;
  position: relative; overflow: hidden;
}
.content-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.content-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-m); }
.content-card:hover::after { transform: scaleX(1); }

.content-card h3 { font-size: .92rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; line-height: 1.45; }
.content-card p  { font-size: 1rem; color: var(--muted); line-height: 1.65; }

.card-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .65rem; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  margin-bottom: .7rem; font-family: 'JetBrains Mono', monospace;
}
.card-badge.granted   { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.card-badge.published { background: #eff6ff; color: var(--primary); border: 1px solid var(--primary-m); }
.card-badge.active    { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.card-badge.active::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; animation: blink 1.5s infinite; }
.card-badge.completed { background: #eff6ff; color: var(--primary); border: 1px solid var(--primary-m); }

.content-card img.card-img {
  width: 100%; height: 180px; object-fit: cover;
  border-radius: var(--radius-sm); margin-top: .8rem;
  border: 1px solid var(--border);
}
.card-meta { font-size: .73rem; color: var(--muted); margin-top: .4rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.card-meta span { display: flex; align-items: center; gap: 4px; }

.video-links { margin-top: .7rem; }
.video-links h4 { font-size: .75rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.video-links a {
  display: inline-block; font-size: .75rem; color: var(--primary);
  word-break: break-all; margin-bottom: .2rem;
}
.video-links a:hover { text-decoration: underline; }

/* ══════════════════════════════════
   CTA STRIP
══════════════════════════════════ */
.cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
  padding: 3.5rem 3rem;
}
.cta-strip-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-strip h3 { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: .35rem; }
.cta-strip p  { font-size: 1.08rem; color: rgba(255,255,255,.8); }
.cta-strip-btn {
  background: #fff; color: var(--primary);
  padding: .72rem 2rem; border-radius: var(--radius-sm);
  font-size: 1.08rem; font-weight: 800; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cta-strip-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.2); }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer { background: #0f172a; color: rgba(255,255,255,.75); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem;
  padding: 3rem 3rem 2rem;
}
.footer-about { display: flex; flex-direction: column; gap: .5rem; }
.footer-logo  { width: 52px; margin-bottom: .5rem; }
.footer-about p { font-size: 1rem; line-height: 1.6; }
.footer-about strong { color: #fff; }
.footer-contact { color: rgba(255,255,255,.5); font-size: .75rem !important; margin-top: .4rem; }

.footer-links-col h4 { font-size: .78rem; font-weight: 700; color: #fff; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-links-col a,
.footer-links-col span { display: block; font-size: .78rem; color: rgba(255,255,255,.6); margin-bottom: .45rem; transition: color var(--transition); }
.footer-links-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.2rem 3rem; text-align: center;
}
.footer-bottom p { font-size: .73rem; color: rgba(255,255,255,.35); }

/* ══════════════════════════════════
   KEYFRAMES
══════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .navbar { flex-wrap: wrap; height: auto; padding: .75rem 1.5rem; gap: .5rem; }
  #mainNav { order: 3; width: 100%; justify-content: center; padding: .3rem 0; flex-wrap: wrap; }
  .chart-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero { padding: 90px 1.5rem 3rem; }
  .hero-heading { font-size: 1.9rem; }
  .section-white, .section-alt { padding: 60px 1.5rem; }
  .section-title { font-size: 1.45rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .cta-strip-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem 1.5rem; }
  .footer-bottom { padding: 1rem 1.5rem; }
  .nav-hamburger { display: flex; }
  #mainNav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(255,255,255,.98);
    border-top: 1px solid var(--border);
    padding: .5rem 0 .75rem;
    gap: 2px;
    order: 3;
  }
  #mainNav.open { display: flex; }
  #mainNav a { width: 100%; text-align: left; padding: .55rem 1rem; }
  .navbar { flex-wrap: wrap; align-items: center; }
  .about-center-wrapper{
    grid-template-columns:1fr;
  }
  .about-highlights{
    grid-template-columns:1fr;
  }
  .about-center-image{

  min-height:350px;
}
}
/* ══════════════════════════════════
   AWARDS SECTION
══════════════════════════════════ */

.awardee-name{
  margin-top: .35rem;
  margin-bottom: .55rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .02em;
}

.awards-highlight{
  border-left: 4px solid var(--primary);
}

.awards-meta{
  margin-top:.4rem;
  margin-bottom:.5rem;
}

/* Event Date Enhancement */

.card-meta span{
  display:flex;
  align-items:center;
  gap:4px;
}
/* ══════════════════════════════════
   IMAGE LIGHTBOX
══════════════════════════════════ */

.zoomable-img{
  cursor:pointer;
  transition:transform .35s ease;
}

.zoomable-img:hover{
  transform:scale(1.02);
}

.image-modal{
  display:none;
  position:fixed;
  z-index:99999;
  inset:0;
  background:rgba(0,0,0,.92);
  backdrop-filter:blur(5px);
  justify-content:center;
  align-items:center;
  padding:2rem;
}

.image-modal.active{
  display:flex;
}

.image-modal-content{
  max-width:92%;
  max-height:92%;
  border-radius:14px;
  box-shadow:0 10px 40px rgba(0,0,0,.45);
  animation:zoomIn .28s ease;
}

.image-modal-close{
  position:absolute;
  top:18px;
  right:28px;
  font-size:3rem;
  color:#fff;
  cursor:pointer;
  z-index:100000;
  transition:.25s;
}

.image-modal-close:hover{
  transform:scale(1.12);
  color:#93c5fd;
}

@keyframes zoomIn{
  from{
    opacity:0;
    transform:scale(.85);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}
/* ══════════════════════════════════
   ISRO-IIRS SECTION
══════════════════════════════════ */

.isro-section{
  margin-bottom:4rem;
  padding:2rem;
  background:#fff;
  border-radius:22px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.isro-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:2rem;
  flex-wrap:wrap;
  margin-bottom:2rem;
}

.isro-title-area{
  flex:1;
  text-align:center;
}

.isro-title-area h2{
  font-size:2rem;
  font-weight:600;
  margin-bottom:.7rem;
}

.isro-title-area h3{
  color:#1e40af;
  margin-bottom:.45rem;
}

.isro-logo{
  width:110px;
}

.isro-right-logos{
  display:flex;
  gap:1rem;
}

.isro-logo-small{
  width:110px;
}

.table-wrapper{
  overflow-x:auto;
}

.isro-table{
  width:75%;
  border-collapse:collapse;
  min-width:750px;
  margin:0 auto;
}

.isro-table th{
  background:#1e40af;
  color:#fff;
  padding:1rem;
  text-align:center;
}

.isro-table td{
  padding:.9rem;
  border:1px solid #e5e7eb;
  text-align:center;
}

.isro-table tbody tr:nth-child(even){
  background:#f8fafc;
}

.isro-table tbody tr:hover{
  background:#eff6ff;
}

/* ===== RESPONSIVE FONT & CARD ENHANCEMENTS ===== */

body{
  font-size: 1rem;
}

.section-title{
  font-size: 2rem !important;
  line-height: 1.3;
}

.section-sub,
.about-center-text,
.content-card p,
.pub-meta,
.pub-title,
.card-meta,
.faculty-card h3,
.faculty-card .desig,
.faculty-card .campus{
  font-size: 0.9rem !important;
  line-height: 1.7 !important;
}

.hero-sub{
  font-size: 1rem !important;
}

.stats-grid{
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 1.8rem;
}

.stat-card{
  padding: 1.5rem 1.2rem;
  min-height: auto;
}

.stat-num{
  font-size: 2rem;
}

.stat-label{
  font-size: 0.78rem;
}

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

.chart-card{
  padding: 2rem;
}

.faculty-grid{
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
}

.faculty-card{
  padding-bottom: 1rem;
}

.faculty-card img,
.faculty-initials{
  width: 90px;
  height: 90px;
}

.content-grid{
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.3rem;
}

.content-card{
  padding: 1.4rem;
  min-height: auto;
}

.content-card h3{
  font-size: 0.95rem !important;
  line-height: 1.5;
}

.pub-item{
  padding: 1rem 1.2rem;
}

.pub-title{
  font-size: 0.88rem !important;
}

.about-highlight-card{
  padding: 1.2rem;
}

.about-highlight-card h3{
  font-size: 0.95rem;
}

.about-highlight-card p{
  font-size: 0.82rem;
}

.about-center-image{
  width: 100%;
  height: auto;
  min-height: auto;
  max-height: 100%;
  object-fit: contain;
}

.card-img{
  width: 100%;
  height: auto !important;
  max-height: 420px;
  object-fit: contain !important;
}

table,
th,
td{
  font-size: 0.85rem !important;
}

@media (max-width: 992px){

  html{
    font-size: 15px;
  }

  .navbar{
    padding: 1rem;
    height: auto;
    flex-wrap: wrap;
    gap: .5rem;
  }

  #mainNav{
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero{
    padding: 140px 1.5rem 4rem;
  }

  .hero-heading{
    font-size: 2.2rem !important;
  }

  .section-white,
  .section-alt{
    padding: 60px 1.5rem;
  }

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

  .faculty-grid{
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

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

@media (max-width: 640px){

  html{
    font-size: 14px;
  }

  .hero-heading{
    font-size: 1.7rem !important;
  }

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

  .section-title{
    font-size: 1.5rem !important;
  }

  .about-highlights{
    grid-template-columns: 1fr;
  }
}


/* ===== HERO TITLE SINGLE LINE FIX ===== */

.hero-heading{
  white-space: nowrap;
  font-size: clamp(2.2rem, 5vw, 5rem) !important;
  line-height: 1.15;
  width: 100%;
}

@media (max-width: 1200px){
  .hero-heading{
    white-space: normal;
  }
}


/* ===== HERO TWO-LINE TYPEWRITER ===== */

.hero-heading{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.1;
  white-space:normal !important;
}

.hero-line-1{
  display:block;
  font-size:clamp(2.8rem,5vw,5rem);
  font-weight:800;
  margin-bottom:0.15em;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0,0,80,0.5);
}

.hero-line-2{
  display:block;
  font-size:clamp(2.8rem,5vw,5rem);
  font-weight:800;
  min-height:1.2em;
  color: #7eb3ff;
  text-shadow: 0 2px 20px rgba(0,0,80,0.5);
}

@media (max-width:768px){

  .hero-line-1,
  .hero-line-2{
    font-size:clamp(2rem,8vw,3rem);
  }
}


/* ===== SINGLE PUBLICATION CHART ===== */

.publication-chart-full{
  width:100%;
  max-width:100%;
}

.publication-year-chart{
  height:480px !important;
  padding:1rem;
}

.publication-year-chart canvas{
  width:100% !important;
  height:100% !important;
}


.chart-card-header h3{
  font-size:1rem !important;
  font-weight:700;
  line-height:1.4;
}


/* ===== TWO-LINE TYPEWRITER HERO ===== */

.hero-heading{

  display:flex;

  flex-direction:column;

  align-items:center;

  justify-content:center;

  text-align:center;

  width:100%;
}

#heroTyped{

  display:block;

  width:100%;

  text-align:center;

  font-size:clamp(2.2rem,4vw,4.8rem);

  font-weight:800;

  line-height:1.15;

  white-space:normal;

  color:#ffffff;              /* White on dark hero background */


}

.cursor-blink{

  font-size:clamp(2.2rem,4vw,4.8rem);

  font-weight:800;
}

.cursor-blink{

  font-size:clamp(2.5rem,5vw,5rem);
  font-weight:800;
}
.hero-heading{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}


/* =====================================================
   PHOTO GALLERY
===================================================== */

.photo-gallery-grid{

  display:grid;

  grid-template-columns:
    repeat(auto-fill,minmax(320px,1fr));

  gap:1.5rem;

  margin-top:2rem;
}

.gallery-item{

  overflow:hidden;

  border-radius:18px;

  background:#ffffff;

  border:1px solid var(--border);

  box-shadow:var(--shadow-sm);

  transition:all .35s ease;
}

.gallery-item:hover{

  transform:translateY(-6px);

  box-shadow:var(--shadow-md);
}

.gallery-item img{

  width:100%;

  height:260px;

  object-fit:cover;

  display:block;

  transition:transform .5s ease;
}

.gallery-item:hover img{

  transform:scale(1.05);
}


/* =====================================================
   GALLERY MODAL + NAVIGATION
   – Keyboard arrows (desktop) & touch swipe (mobile)
===================================================== */

.gallery-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: rgba(0, 0, 0, .93);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Image wrapper keeps the image centred */
.gallery-modal-content {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(0, 0, 0, .6);
  object-fit: contain;
  /* Base transition for smooth appear */
  transition: opacity .22s ease, transform .22s ease;
  will-change: transform, opacity;
}

/* ── Slide-out animations ── */
.gallery-modal-content.slide-exit-left {
  animation: slideExitLeft .22s ease forwards;
}
.gallery-modal-content.slide-exit-right {
  animation: slideExitRight .22s ease forwards;
}

/* ── Slide-in animations ── */
.gallery-modal-content.slide-enter-right {
  animation: slideEnterRight .22s ease forwards;
}
.gallery-modal-content.slide-enter-left {
  animation: slideEnterLeft .22s ease forwards;
}

@keyframes slideExitLeft {
  from { opacity: 1; transform: translateX(0);     }
  to   { opacity: 0; transform: translateX(-60px); }
}
@keyframes slideExitRight {
  from { opacity: 1; transform: translateX(0);    }
  to   { opacity: 0; transform: translateX(60px); }
}
@keyframes slideEnterRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0);    }
}
@keyframes slideEnterLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0);     }
}

/* ── Close button ── */
.gallery-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: #ffffff;
  cursor: pointer;
  z-index: 100000;
  line-height: 1;
  transition: color .2s, transform .2s;
  user-select: none;
}
.gallery-close:hover {
  color: #93c5fd;
  transform: scale(1.15);
}

/* ── Prev / Next nav buttons ── */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .14);
  border: 1.5px solid rgba(255, 255, 255, .25);
  color: #ffffff;
  font-size: 2.2rem;
  padding: .65rem 1.1rem;
  cursor: pointer;
  border-radius: 14px;
  transition: background .25s, opacity .25s, transform .2s;
  z-index: 100000;
  user-select: none;
}
.gallery-nav:hover {
  background: rgba(255, 255, 255, .3);
  transform: translateY(-50%) scale(1.08);
}
.gallery-prev { left: 22px;  }
.gallery-next { right: 22px; }

/* ── Image counter badge ── */
.gallery-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .55);
  color: #e0e7ff;
  font-size: .8rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  padding: .3rem .9rem;
  border-radius: 20px;
  letter-spacing: .08em;
  z-index: 100000;
  pointer-events: none;
}

/* ── Keyboard hint (desktop only) ── */
.gallery-keyboard-hint {
  position: absolute;
  bottom: 22px;
  right: 28px;
  color: rgba(255, 255, 255, .38);
  font-size: .68rem;
  font-family: 'JetBrains Mono', monospace;
  pointer-events: none;
  z-index: 100000;
}

@media (max-width: 768px) {
  .gallery-nav {
    font-size: 1.7rem;
    padding: .5rem .8rem;
  }
  .gallery-close {
    font-size: 2.3rem;
    top: 14px;
    right: 18px;
  }
  .gallery-keyboard-hint {
    display: none;
  }
}
