﻿/* ============================================================
   CCRAS Abhyudaya Darshan 2026 — colours after iist.ac.in
   White chrome · teal/orange CTAs · pastel feature cards ·
   dark teal bands · glass registration · IIST text #3b3b3b
   ============================================================ */

:root {
  /* IIST palette (iist.ac.in) */
  --primary: #31849b;
  --primary-700: #156278;
  --primary-500: #3d96ad;
  --primary-400: #6aadbd;
  --primary-100: #d6eef3;
  --primary-50: #f0f9fb;
  --violet: #fd9226;
  --purple: #e07a00;
  --purple-900: #4a2a00;
  --indigo-900: #12333c;
  --navy: #3b3b3b;
  --navy-2: #3b3b3b;
  --slate-800: #333333;
  --slate-500: #6b7280;
  --slate-400: #9ca3af;
  --slate-300: #d1d5db;
  --slate-200: #e5e7eb;
  --slate-100: #f3f4f6;
  --slate-50: #f9fafb;
  --green: #198754;
  --green-600: #146c43;
  --red: #dc3545;
  --red-700: #a71d2a;
  --amber: #fd9226;
  --pink: #fd9226;

  --grad-hero: linear-gradient(135deg, #0d4a58 0%, #156278 40%, #0f3d48 100%);
  --grad-text: linear-gradient(90deg, #fd9226 0%, #ffb66c 50%, #ffb66c 100%);
  --grad-blue: linear-gradient(90deg, #31849b, #fd9226);
  --grad-red: linear-gradient(90deg, #dc3545, #fd9226);
  --grad-cta: linear-gradient(135deg, #31849b 0%, #156278 100%);

  --bg: #ffffff;
  --bg-soft: var(--slate-50);
  --text: var(--navy);
  --text-muted: var(--slate-500);
  --border: var(--slate-200);

  --shadow-xs: 0 1px 2px rgba(26, 47, 54, .05);
  --shadow-sm: 0 1px 3px rgba(26, 47, 54, .08), 0 1px 2px rgba(26, 47, 54, .04);
  --shadow-md: 0 4px 14px rgba(26, 47, 54, .08);
  --shadow-lg: 0 12px 32px rgba(26, 47, 54, .12);
  --shadow-purple: 0 10px 28px rgba(49, 132, 155, .35);
  --shadow-green: 0 8px 22px rgba(253, 146, 38, .35);

  --radius-sm: .6rem;
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-pill: 999px;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--navy-2);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
p { margin-bottom: .85rem; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-700); }

:focus-visible { outline: 3px solid var(--primary-500); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(49, 132, 155, .25); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--primary); color: #fff;
  padding: .65rem 1.1rem; z-index: 3000;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: absolute; left: 0; bottom: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, #31849b, #fd9226);
  z-index: 10;
  transition: width .08s linear;
  pointer-events: none;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, .88);
  font-size: .78rem;
  letter-spacing: .02em;
}
.topbar a { color: rgba(255, 255, 255, .88); padding: .1rem .4rem; border-radius: var(--radius-pill); }
.topbar a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.topbar .bi { opacity: .75; margin-right: .25rem; }

/* ---------- Site header â€” white like IITD ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #fd9226, #fd9226, #31849b, #156278);
}

.brand-title {
  font-family: var(--font-body);
  color: var(--navy-2);
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.brand-sub {
  font-size: .74rem;
  color: var(--slate-500);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.logo-placeholder {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1.5px dashed var(--slate-300);
  padding: .55rem .85rem;
  font-size: .7rem;
  font-weight: 700;
  color: var(--slate-500);
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.site-header img[height] { height: 50px; width: auto; object-fit: contain; transition: transform .3s; }
.site-header img[height]:hover { transform: scale(1.04); }

/* ---------- Language switcher (EN / हिन्दी) ---------- */
.lang-switch {
  display: inline-flex;
  border: 1.5px solid var(--slate-200);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}
.lang-btn {
  padding: .35rem .95rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--slate-600);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.lang-btn + .lang-btn { border-left: 1.5px solid var(--slate-200); }
.lang-btn:hover { background: var(--slate-50); color: var(--teal, #31849b); }
.lang-btn.active { background: linear-gradient(120deg, #31849b, #f4a340); color: #fff; }
.lang-btn:focus-visible { outline: 2px solid #31849b; outline-offset: -2px; }

/* ---------- Main nav â€” white pills like IITD ---------- */
.site-chrome { position: sticky; top: 0; z-index: 1030; }

.main-nav {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(26, 47, 54, .04);
  transition: box-shadow .3s;
  position: relative;
}
.site-chrome.is-scrolled .main-nav { box-shadow: 0 8px 24px rgba(26, 47, 54, .10); }

.main-nav .navbar-nav { gap: .15rem; }

.main-nav .nav-link {
  color: var(--slate-500);
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .01em;
  padding: .55rem .8rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: all .2s ease;
  white-space: nowrap;
}
.main-nav .nav-link .bi { font-size: .95rem; opacity: .7; transition: opacity .2s, transform .25s; }
.main-nav .nav-link:hover {
  color: var(--primary-700);
  background: var(--primary-50);
}
.main-nav .nav-link:hover .bi { opacity: 1; transform: translateY(-1px); }
.main-nav .nav-link.active,
.main-nav .nav-link[aria-current="page"] {
  color: #fff;
  background: var(--grad-blue);
  box-shadow: var(--shadow-purple);
}
.main-nav .nav-link.active .bi,
.main-nav .nav-link[aria-current="page"] .bi { opacity: 1; color: #fff; }

.main-nav .navbar-toggler {
  border-color: var(--slate-300);
  padding: .4rem .65rem;
  border-radius: var(--radius-sm);
}
.main-nav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(49, 132, 155, .3); }
.main-nav .navbar-collapse { padding: .5rem 0 .75rem; }

.main-nav .btn-nav-cta {
  background: var(--grad-cta);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: .86rem;
  padding: .55rem 1.2rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-purple);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: .6rem;
  transition: transform .25s, box-shadow .25s, filter .25s;
}
.main-nav .btn-nav-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(49, 132, 155, .45);
  filter: brightness(1.05);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: var(--radius-pill);
  transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s;
}

/* Green Register â€” IITD */
.btn-gold {
  background: linear-gradient(135deg, #fd9226 0%, #e07a00 100%);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-green);
}
.btn-gold:hover, .btn-gold:focus {
  background: linear-gradient(135deg, #ffb66c 0%, #fd9226 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(253, 146, 38, .4);
}
.btn-gold:active { transform: translateY(0); }
.btn-gold .bi-arrow-right { transition: transform .25s; }
.btn-gold:hover .bi-arrow-right { transform: translateX(4px); }

/* Primary (teal) */
.btn-green {
  background: var(--grad-blue);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-purple);
}
.btn-green:hover, .btn-green:focus {
  background: linear-gradient(90deg, #156278, #31849b);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(49, 132, 155, .4);
}
.btn-green:active { transform: translateY(0); }

/* Outline secondary (locator detail) */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline:active { transform: translateY(0); }

/* Ghost on dark */
.btn-glass {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, .22);
  color: #fff;
  border-color: rgba(255, 255, 255, .75);
  transform: translateY(-2px);
}

.btn-outline-success {
  border: 1.5px solid var(--primary-400);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius);
  background: #fff;
  transition: all .25s;
}
.btn-outline-success:hover {
  background: var(--grad-blue);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

/* ---------- Hero â€” IITD photo+overlay style ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(3.2rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    linear-gradient(160deg, rgba(13, 74, 88, .92) 0%, rgba(21, 98, 120, .88) 45%, rgba(15, 61, 72, .92) 100%),
    var(--hero-img, none) center/cover no-repeat,
    var(--grad-hero);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 45% at 85% 15%, rgba(253, 146, 38, .4), transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(253, 146, 38, .25), transparent 65%),
    radial-gradient(ellipse 35% 35% at 50% 50%, rgba(49, 132, 155, .2), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; z-index: -1; }
.hero-orb-1 {
  width: 320px; height: 320px; top: -100px; right: -60px;
  background: radial-gradient(circle, rgba(253, 146, 38, .5), transparent 70%);
  animation: float 9s ease-in-out infinite;
}
.hero-orb-2 {
  width: 260px; height: 260px; bottom: -90px; left: -60px;
  background: radial-gradient(circle, rgba(253, 146, 38, .35), transparent 70%);
  animation: float 11s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 150px; height: 150px; top: 40%; right: 25%;
  background: radial-gradient(circle, rgba(253, 146, 38, .3), transparent 70%);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-inner { position: relative; max-width: 920px; margin: 0 auto; text-align: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffd9a0;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .5rem 1.15rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
  animation: fadeUp .7s ease both;
}
.hero-badge .bi { color: #fd9226; }

.hero-title {
  font-family: var(--font-body);
  color: #fff;
  font-weight: 800;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: .85rem;
  animation: fadeUp .7s .08s ease both;
}
.hero-title .grad-text {
  display: block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero .tag {
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  max-width: 640px;
  margin: 0 auto .55rem;
  animation: fadeUp .7s .16s ease both;
}

.hero-theme {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .92rem;
  font-weight: 700;
  color: #ffd9ad;
  margin-bottom: 1.5rem;
  animation: fadeUp .7s .2s ease both;
}
.hero-theme strong { color: #ffe4cc; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  margin-bottom: 2rem;
  animation: fadeUp .7s .26s ease both;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: var(--radius-pill);
}
.hero-chip .bi { color: #fd9226; }

/* IITD-style registration + countdown band under hero copy */
.hero-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto;
  animation: fadeUp .7s .34s ease both;
}

.reg-card {
  background: rgba(26, 47, 54, .55);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  text-align: left;
  box-shadow: 0 16px 40px rgba(26, 47, 54, .35);
}
.reg-card h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: .75rem;
}
.reg-card .reg-line {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  color: rgba(255, 255, 255, .85);
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: .45rem;
}
.reg-card .reg-line .bi { color: #75b798; font-size: 1rem; margin-top: .15rem; }
.reg-card .btn { margin-top: .85rem; width: 100%; }

.count-card {
  background: rgba(26, 47, 54, .55);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(26, 47, 54, .35);
}
.count-card::before {
  content: "";
  position: absolute; top: -40%; right: -20%;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(253, 146, 38, .35), transparent 70%);
  pointer-events: none;
}
.count-card h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .85rem;
  position: relative;
}
.count-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  position: relative;
}
.count-box {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  padding: .65rem .3rem;
}
.count-box strong {
  display: block;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}
.count-box span {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  max-width: 720px;
  margin: 1.75rem auto 0;
  animation: fadeUp .7s .44s ease both;
}
.hstat {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: .9rem .75rem;
  text-align: center;
  transition: transform .3s, background .3s;
}
.hstat:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .16); }
.hstat strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: .15rem;
}
.hstat span {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections ---------- */
main { display: block; }
main .container > section, main .container > .section {
  padding-top: .5rem;
  padding-bottom: 2.6rem;
}

/* Soft gradient band like IITD thematic / academic */
.section-soft {
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(214, 238, 243, .8), transparent 55%),
    radial-gradient(ellipse 50% 45% at 95% 100%, rgba(230, 244, 248, .75), transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(255, 240, 224, .35), transparent 60%),
    var(--slate-50);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2.5rem) !important;
  margin-bottom: .5rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(49, 132, 155, .1);
  border: 1px solid rgba(49, 132, 155, .2);
  padding: .35rem .9rem;
  border-radius: var(--radius-pill);
  margin-bottom: .85rem;
}

.section-title {
  font-family: var(--font-body);
  color: var(--navy-2);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  position: relative;
  padding-bottom: .75rem;
  margin-bottom: 1.4rem;
  letter-spacing: -.02em;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 72px; height: 4px;
  background: var(--grad-blue);
  border-radius: 2px;
}
.section-title.no-center::after { left: 0; transform: none; }

.section-lead {
  color: var(--slate-500);
  font-size: 1.05rem;
  max-width: 700px;
  margin: -.5rem auto 1.75rem;
  text-align: center;
}
.section-title + .section-lead { text-align: center; }

/* ---------- IITD pastel feature cards ---------- */
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  height: 100%;
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent-line, var(--grad-blue));
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--icon-bg, var(--primary-100));
  color: var(--icon-color, var(--primary));
}
.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: .45rem;
  color: var(--navy-2);
}
.feature-card p {
  color: var(--slate-500);
  font-size: .92rem;
  margin-bottom: 0;
}
.feature-card.tone-blue { --accent-line: linear-gradient(90deg, #3d96ad, #6aadbd); --icon-bg: #d6eef3; --icon-color: #31849b; }
.feature-card.tone-purple { --accent-line: linear-gradient(90deg, #31849b, #ffb66c); --icon-bg: #e6f4f8; --icon-color: #31849b; }
.feature-card.tone-green { --accent-line: linear-gradient(90deg, #198754, #75b798); --icon-bg: #d1e7dd; --icon-color: #146c43; }
.feature-card.tone-amber { --accent-line: linear-gradient(90deg, #fd9226, #fd9226); --icon-bg: #fff0e0; --icon-color: #c46a00; }
.feature-card.tone-pink { --accent-line: linear-gradient(90deg, #fd9226, #ffb66c); --icon-bg: #fff0e0; --icon-color: #e07a00; }
.feature-card.tone-red { --accent-line: linear-gradient(90deg, #dc3545, #f1aeb5); --icon-bg: #f8d7da; --icon-color: #dc3545; }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.card.hov {
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s, border-color .35s;
  box-shadow: var(--shadow-xs);
  position: relative;
}
.card.hov::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
  z-index: 2;
}
.card.hov:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(49, 132, 155, .35);
}
.card.hov:hover::after { transform: scaleX(1); }
.card.hov .card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card.hov .card-title, .card.hov .h5 {
  font-weight: 800;
  color: var(--navy-2);
  font-size: 1.1rem;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.card.hov .stretched-link::after { inset: 0; }

.card-img-top {
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-100), #e6f4f8);
  transition: transform .5s;
}
.card.hov:hover .card-img-top { transform: scale(1.04); }

.img-ph {
  height: 180px;
  background:
    radial-gradient(circle at 30% 30%, rgba(49, 132, 155, .15), transparent 50%),
    linear-gradient(135deg, var(--primary-100), #e6f4f8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(49, 132, 155, .45);
}

.badge {
  font-weight: 700;
  letter-spacing: .04em;
  padding: .4em .8em;
  border-radius: var(--radius-pill);
  font-size: .7em;
  text-transform: uppercase;
}
.badge.text-bg-success { background: linear-gradient(90deg, #31849b, #fd9226) !important; color: #fff !important; }
.badge.text-bg-warning { background: linear-gradient(90deg, #fd9226, #fd9226) !important; color: #1c1917 !important; }
.badge.text-bg-info { background: linear-gradient(90deg, #31849b, #ffb66c) !important; color: #fff !important; }
.badge.text-bg-danger { background: linear-gradient(90deg, #dc3545, #dc3545) !important; color: #fff !important; }
.badge.text-bg-secondary { background: linear-gradient(90deg, #5c6b70, #727272) !important; color: #fff !important; }

/* ---------- Research category external links ---------- */
.research-cat-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.research-cat-links__label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-500); margin-right: .25rem; }
.research-cat-links .badge { display: inline-flex; align-items: center; gap: .35em; font-size: .74em; text-transform: none; letter-spacing: .01em; padding: .5em .9em; transition: transform .2s, filter .2s; }
.research-cat-links .badge:hover, .research-cat-links .badge:focus { transform: translateY(-2px); filter: brightness(1.08); }
.badge .bi-box-arrow-up-right { font-size: .85em; opacity: .85; }

/* ---------- Research activity boxes (CCRAS-style) ---------- */
.ra-filter-label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: .35rem;
}
.ra-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .85rem;
  height: 100%;
  padding: 1.4rem 1.35rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s, border-color .3s;
}
.ra-box::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent-line, var(--grad-blue));
}
.ra-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.ra-box__icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--icon-bg, var(--primary-100));
  color: var(--icon-color, var(--primary));
}
.ra-box__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-2);
  margin: 0;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.ra-box__title a { color: inherit; text-decoration: none; }
.ra-box__title a:hover, .ra-box__title a:focus { color: var(--primary-700); }
.ra-box .stretched-link::after { inset: 0; }
.ra-box__go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
}
.ra-box:hover .ra-box__go .bi-box-arrow-up-right { transform: translate(3px, -3px); transition: transform .25s; }
.ra-box__ext {
  position: absolute;
  top: 1.05rem; right: 1.15rem;
  z-index: 3;
  color: var(--slate-400);
  font-size: 1.05rem;
  transition: color .2s, transform .2s;
}
.ra-box:hover .ra-box__ext { color: var(--primary); transform: translateY(-2px); }
.ra-box.is-active {
  border-color: rgba(49, 132, 155, .55);
  background: linear-gradient(180deg, rgba(49, 132, 155, .06), #fff 55%);
  box-shadow: var(--shadow-md);
}
.ra-box.is-active::before { background: var(--grad-blue); }
.ra-box.tone-blue { --accent-line: linear-gradient(90deg, #3d96ad, #6aadbd); --icon-bg: #d6eef3; --icon-color: #31849b; }
.ra-box.tone-purple { --accent-line: linear-gradient(90deg, #31849b, #ffb66c); --icon-bg: #e6f4f8; --icon-color: #31849b; }
.ra-box.tone-green { --accent-line: linear-gradient(90deg, #198754, #75b798); --icon-bg: #d1e7dd; --icon-color: #146c43; }
.ra-box.tone-amber { --accent-line: linear-gradient(90deg, #fd9226, #fd9226); --icon-bg: #fff0e0; --icon-color: #c46a00; }
.ra-box.tone-pink { --accent-line: linear-gradient(90deg, #fd9226, #ffb66c); --icon-bg: #fff0e0; --icon-color: #e07a00; }
.ra-box.tone-red { --accent-line: linear-gradient(90deg, #dc3545, #f1aeb5); --icon-bg: #f8d7da; --icon-color: #dc3545; }

/* Selected activity detail band */
.ra-detail {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-xs);
}
.ra-detail__icon {
  width: 56px; height: 56px;
  flex: 0 0 auto;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--icon-bg, var(--primary-100));
  color: var(--icon-color, var(--primary));
}
.ra-detail__body { flex: 1 1 300px; min-width: 0; }
.ra-detail__label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.ra-detail__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-2);
  margin: .15rem 0 .3rem;
}
.ra-detail__meta { color: var(--slate-500); font-size: .92rem; }
.ra-detail__meta a { font-weight: 700; }
.ra-detail.tone-blue { --icon-bg: #d6eef3; --icon-color: #31849b; border-left-color: #31849b; }
.ra-detail.tone-purple { --icon-bg: #e6f4f8; --icon-color: #31849b; border-left-color: #31849b; }
.ra-detail.tone-green { --icon-bg: #d1e7dd; --icon-color: #146c43; border-left-color: #198754; }
.ra-detail.tone-amber { --icon-bg: #fff0e0; --icon-color: #c46a00; border-left-color: #fd9226; }
.ra-detail.tone-pink { --icon-bg: #fff0e0; --icon-color: #e07a00; border-left-color: #fd9226; }
.ra-detail.tone-red { --icon-bg: #f8d7da; --icon-color: #dc3545; border-left-color: #dc3545; }

/* ---------- Lists ---------- */
.list-group { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.list-group-item {
  background: #fff;
  border-color: var(--border);
  padding: 1rem 1.2rem;
  transition: background .2s, padding-left .25s;
}
.list-group-item:hover { background: var(--primary-50); padding-left: 1.45rem; }
.list-group-item strong { color: var(--navy-2); font-weight: 700; }

/* ---------- Institute / dept grid (IITD academic cards) ---------- */
.inst-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--navy-2);
  font-weight: 700;
  font-size: .9rem;
  padding: 1rem .85rem;
  min-height: 100%;
  text-align: center;
  transition: all .3s;
  box-shadow: var(--shadow-xs);
}
.inst-chip .bi { color: var(--red); font-size: 1.15rem; }
.inst-chip:hover {
  background: linear-gradient(135deg, #fff5f5, #fff8f0);
  border-color: rgba(220, 53, 69, .35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--red-700);
}
.inst-chip:hover .bi { color: var(--red); }

/* ---------- Zone cards ---------- */
.zone-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.45rem 1.35rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  box-shadow: var(--shadow-xs);
}
.zone-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #fd9226, #fd9226, #fd9226);
}
.zone-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(253, 146, 38, .4);
}
.zone-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 14px;
  background: var(--grad-blue);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: .85rem;
  box-shadow: 0 6px 16px rgba(49, 132, 155, .35);
}
.zone-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--navy-2); margin-bottom: .35rem; letter-spacing: -.01em; }
.zone-card .zone-hi {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: .04em;
  margin-bottom: .5rem;
}
.zone-card p { font-size: .9rem; color: var(--slate-500); margin-bottom: 0; }
.zone-tag {
  display: inline-block;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .28em .75em;
  border-radius: var(--radius-pill);
  margin-top: .85rem;
}
.zone-tag.mandatory { background: #fff0e0; color: #7a3e00; }
.zone-tag.optional { background: var(--primary-100); color: #0f4c5c; }

/* ---------- Schedule timeline (IITD dark section) ---------- */
.schedule-band {
  background:
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(49, 132, 155, .35), transparent 55%),
    radial-gradient(ellipse 40% 50% at 5% 90%, rgba(253, 146, 38, .25), transparent 55%),
    linear-gradient(180deg, #1a2f36 0%, #12333c 100%);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2.5rem);
  color: #fff;
  margin-bottom: .5rem;
  position: relative;
  overflow: hidden;
}
.schedule-band .section-title { color: #fff; }
.schedule-band .section-title::after { background: linear-gradient(90deg, #fd9226, #fd9226); }
.schedule-band .section-lead { color: rgba(255, 255, 255, .75); }
.schedule-band .section-eyebrow {
  color: #ffd9a0;
  background: rgba(253, 146, 38, .12);
  border-color: rgba(253, 146, 38, .3);
}

.sched-day-card {
  background: linear-gradient(135deg, #31849b, #fd9226);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 32px rgba(49, 132, 155, .4);
  position: relative;
  overflow: hidden;
}
.sched-day-card::after {
  content: "";
  position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 70%);
  border-radius: 50%;
}
.sched-day-card h3 { color: #fff; font-size: 1.35rem; font-weight: 800; margin: 0; }
.sched-day-card .sched-day-meta { color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .9rem; }
.sched-day-card .badge-live {
  background: var(--amber);
  color: #1c1917;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4em .9em;
  border-radius: var(--radius-pill);
}

.sched-group {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}
.sched-group > h3 {
  color: #ffd9ad;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sched-group > h3::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ffb66c;
  box-shadow: 0 0 10px #ffb66c;
}

.sched-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: .85rem;
  background: #fff;
  border-radius: var(--radius);
  padding: .85rem 1rem;
  margin-bottom: .6rem;
  color: var(--navy-2);
  transition: transform .25s, box-shadow .25s;
}
.sched-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.sched-time {
  font-size: .78rem;
  font-weight: 800;
  color: var(--primary-700);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-sm);
  padding: .4rem .5rem;
  text-align: center;
  height: fit-content;
  line-height: 1.3;
}
.sched-item h4 { font-size: .98rem; font-weight: 800; margin: 0 0 .2rem; color: var(--navy-2); }
.sched-item p { font-size: .85rem; color: var(--slate-500); margin: 0; }
.sched-item .sched-venue {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--purple);
  margin-top: .35rem;
}

/* ---------- Institute locator map (ICMR SHINE-style, CCRAS palette) ---------- */
.locator-section { margin-bottom: .5rem; }
.locator-layout {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}
.locator-map {
  position: relative;
  width: 100%;
  max-width: 460px;
  flex: 1 1 460px;
}
.locator-map__bg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  background: var(--primary-50);
  box-shadow: var(--shadow-sm);
}
.locator-map .map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 6px;
  margin: -6px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 0;
  z-index: 2;
}
.locator-map .map-pin__dot {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(49, 132, 155, .2);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.locator-map .map-pin:hover .map-pin__dot,
.locator-map .map-pin:focus-visible .map-pin__dot,
.locator-map .map-pin.is-active .map-pin__dot {
  background: #fd9226;
  transform: scale(1.35);
  box-shadow: 0 0 0 5px rgba(253, 146, 38, .25);
}
.locator-panel {
  flex: 1 1 620px;
  width: 100%;
  max-width: 660px;
  height: 540px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.locator-list-view {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.15rem 1.15rem;
  min-height: 0;
}
.locator-search {
  position: relative;
  margin-bottom: .85rem;
  flex: none;
}
.locator-search .bi {
  position: absolute;
  left: .95rem; top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  pointer-events: none;
}
.locator-search__input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: .7rem 1.1rem .7rem 2.5rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy-2);
  background: var(--slate-50);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.locator-search__input:focus {
  outline: none;
  background: #fff;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(49, 132, 155, .15);
}
.locator-cards {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-height: 0;
  padding-right: .15rem;
  flex: 1;
}
.locator-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  padding: .85rem 1rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, background .2s, transform .2s;
}
.locator-card:hover,
.locator-card:focus-visible,
.locator-card.is-active {
  border-color: rgba(49, 132, 155, .45);
  background: var(--primary-50);
}
.locator-card.is-active { transform: translateX(3px); }
.locator-card__text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.locator-card__name {
  font-size: .92rem;
  font-weight: 800;
  color: var(--navy-2);
  line-height: 1.35;
}
.locator-card__loc {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.locator-card .bi-chevron-right { color: var(--slate-400); flex: none; }
.locator-empty {
  text-align: center;
  color: var(--slate-500);
  font-weight: 600;
  padding: 2rem 1rem;
  margin: 0;
}
.locator-detail-view {
  height: 100%;
  overflow-y: auto;
  padding: 1.15rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.locator-detail-view[hidden],
.locator-list-view[hidden] { display: none !important; }
.locator-back {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0 0 .85rem;
  font-size: .88rem;
  font-weight: 800;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.locator-back:hover { color: var(--primary-700); }
.locator-detail-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-2);
  margin: 0 0 .4rem;
  line-height: 1.3;
}
.locator-detail-loc {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(49, 132, 155, .1);
  border: 1px solid rgba(49, 132, 155, .2);
  border-radius: var(--radius-pill);
  padding: .3rem .8rem;
  margin-bottom: .85rem;
}
.locator-detail-body p {
  color: var(--slate-500);
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: .75rem;
}
.locator-detail-body .locator-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .5rem;
}
.locator-no-geo {
  display: none;
}

/* ---------- Tables ---------- */
.table { --bs-table-bg: #fff; border-radius: var(--radius); overflow: hidden; }
.table thead th {
  background: linear-gradient(90deg, #12333c, #0f3d48);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  border: none;
  padding: .9rem 1rem;
}
.table tbody td { padding: .85rem 1rem; border-color: var(--border); vertical-align: middle; }
.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-striped-bg: rgba(49, 132, 155, .04); }
.table-hover > tbody > tr:hover > * { --bs-table-hover-bg: rgba(49, 132, 155, .07); }
.table-responsive { border-radius: var(--radius); }

/* ---------- Accordion ---------- */
.accordion { --bs-accordion-border-radius: var(--radius); --bs-accordion-border-color: var(--border); }
.accordion-item {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  overflow: hidden;
  margin-bottom: .75rem;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .25s, border-color .25s;
}
.accordion-item:focus-within,
.accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: rgba(49, 132, 155, .4) !important;
  box-shadow: var(--shadow-sm);
}
.accordion-button { font-weight: 700; color: var(--navy-2); padding: 1.1rem 1.3rem; font-size: 1rem; }
.accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, rgba(49, 132, 155, .1), rgba(49, 132, 155, .04));
  color: var(--primary-700);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(49, 132, 155, .25); }
.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23156278'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-body { padding: .45rem 1.3rem 1.3rem; color: var(--text); }

/* ---------- Pagination ---------- */
.page-link {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm) !important;
  color: var(--primary);
  font-weight: 700;
  font-size: .9rem;
  padding: .5rem .9rem;
  background: #fff;
  transition: all .2s;
  margin: 0 !important;
}
.page-link:hover { background: var(--primary-50); border-color: var(--primary-400); color: var(--primary-700); }
.page-item.active > .page-link { background: var(--grad-blue); border-color: transparent; color: #fff; box-shadow: var(--shadow-purple); }
.page-item.disabled > .page-link { opacity: .45; }

/* ---------- Forms ---------- */
.form-label { font-weight: 700; font-size: .86rem; color: var(--primary-700); margin-bottom: .4rem; }
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .72rem 1rem;
  font-size: .97rem;
  background-color: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:hover, .form-select:hover { border-color: var(--slate-300); }
.form-control:focus, .form-select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 .25rem rgba(49, 132, 155, .15);
}
.form-control::placeholder { color: var(--slate-400); }
.form-control.is-invalid, .form-select.is-invalid { border-color: #dc3545; }
.invalid-feedback { font-size: .82rem; font-weight: 600; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23156278'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
  padding-right: 2.6rem;
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #31849b, #fd9226);
}

/* ---------- Contact map ---------- */
.contact-map {
  display: block;
  width: 100%;
  height: clamp(300px, 45vw, 430px);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--slate-100, #f1f5f9);
}

/* ---------- Alerts ---------- */
.alert { border: none; border-radius: var(--radius); font-weight: 600; padding: 1rem 1.25rem; box-shadow: var(--shadow-sm); }
.alert-success { background: linear-gradient(135deg, #f0f9fb, #d6eef3); color: #0d3d4a; border-left: 4px solid #31849b; }
.alert-danger { background: linear-gradient(135deg, #fff5f5, #f8d7da); color: #842029; border-left: 4px solid #dc3545; }
.alert-warning { background: linear-gradient(135deg, #fff8f0, #fff0e0); color: #664d03; border-left: 4px solid #fd9226; }
.alert-info { background: linear-gradient(135deg, #f0f9fb, #e6f4f8); color: #0d4a58; border-left: 4px solid #31849b; }

/* ---------- Gallery ---------- */
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  border-radius: var(--radius);
  border: 3px solid transparent;
  box-shadow: var(--shadow-xs);
  transition: transform .35s, box-shadow .35s, border-color .35s;
  background: linear-gradient(135deg, var(--primary-100), #fff0e0);
}
.gallery-grid img:hover, .gallery-grid img:focus {
  transform: translateY(-5px) scale(1.015);
  box-shadow: var(--shadow-lg);
  border-color: #fd9226;
}

/* ---------- Link lists ---------- */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.link-list li a {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .95rem 1.2rem;
  color: var(--navy-2);
  font-weight: 700;
  box-shadow: var(--shadow-xs);
  transition: all .25s;
}
.link-list li a:hover {
  transform: translateX(6px);
  border-color: rgba(49, 132, 155, .4);
  box-shadow: var(--shadow-sm);
  color: var(--primary-700);
}
.link-list li a .bi { color: var(--violet); font-size: 1.2rem; }
.link-list li a small { margin-left: auto; color: var(--slate-500); font-weight: 600; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.link-list li .link-list__text {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: .95rem 1.2rem;
  color: var(--slate-500);
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 80% at 90% 20%, rgba(253, 146, 38, .5), transparent 55%),
    radial-gradient(ellipse 40% 70% at 5% 90%, rgba(49, 132, 155, .55), transparent 60%),
    radial-gradient(ellipse 35% 50% at 60% 10%, rgba(253, 146, 38, .3), transparent 55%),
    linear-gradient(135deg, #0d4a58 0%, #0f3d48 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(2.4rem, 5vw, 3.4rem) clamp(1.5rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-lg);
  margin: 1rem 0 0;
}
.cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ffd9a0;
  margin-bottom: .6rem;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.15rem); font-weight: 800; margin-bottom: .5rem; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-bottom: 0; max-width: 540px; }
.cta-band .btn { padding: .9rem 2rem; font-size: 1.02rem; white-space: nowrap; }

/* ---------- Footer â€” dark navy like IITD ---------- */
.site-footer {
  background:
    radial-gradient(ellipse 50% 55% at 85% 0%, rgba(49, 132, 155, .28), transparent 55%),
    radial-gradient(ellipse 40% 45% at 10% 100%, rgba(253, 146, 38, .18), transparent 55%),
    linear-gradient(180deg, #1a2f36 0%, #12333c 100%);
  color: rgba(255, 255, 255, .82);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #fd9226, #fd9226, #fd9226, #fd9226) 1;
  margin-top: 3.5rem;
  position: relative;
}
.site-footer h2.h6, .site-footer h2 {
  color: #fd9226;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer p { color: rgba(255, 255, 255, .72); }
.site-footer a { color: rgba(255, 255, 255, .78); font-weight: 600; transition: color .2s, padding-left .2s; }
.site-footer a:hover { color: #fd9226; }
.site-footer .list-unstyled li { margin-bottom: .5rem; }
.site-footer .list-unstyled a { display: inline-flex; align-items: center; gap: .45rem; }
.site-footer .list-unstyled a::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(90deg, #fd9226, #fd9226);
  transition: transform .2s;
}
.site-footer .list-unstyled a:hover::before { transform: scale(1.5); }
.site-footer hr { border-color: rgba(255, 255, 255, .14); opacity: 1; }
.site-footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff !important;
  font-size: 1.15rem;
  margin-right: .55rem;
  transition: all .25s;
}
.site-footer .social-link:hover {
  background: linear-gradient(135deg, #31849b, #156278);
  color: #fff !important;
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-green);
}
.footer-brand .brand-title { color: #fff; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, .6); }

.richtext { white-space: pre-line; line-height: 1.75; }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--grad-blue);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-purple);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .3s;
  z-index: 1080;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(49, 132, 155, .5); }

/* ---------- Scroll reveal ---------- */
.reveal-init {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}
.reveal-init.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Admin ---------- */
.sidebar { background: linear-gradient(180deg, #1a2f36 0%, #12333c 100%); min-height: 100vh; }
.sidebar a {
  color: #e0e0e0;
  display: block;
  padding: .6rem 1.1rem;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  border-radius: var(--radius-sm);
  margin: .12rem .55rem;
  transition: background .2s, color .2s, transform .2s;
}
.sidebar a:hover, .sidebar a.active {
  background: linear-gradient(90deg, rgba(49, 132, 155, .4), rgba(49, 132, 155, .25));
  color: #fff;
  transform: translateX(4px);
}
.stat-card {
  border: 1px solid var(--border);
  border-left: 5px solid #fd9226;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ---------- Utilities ---------- */
.text-success { color: var(--primary) !important; }
.bg-success { background-color: var(--primary) !important; }
main h2.h3.text-success, main h2.text-success { color: var(--navy-2) !important; font-weight: 800; }

.detail-hero-img { max-height: 400px; width: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.filter-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.6rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--slate-500);
  background: #fff;
  border: 1.5px dashed rgba(49, 132, 155, .3);
  border-radius: var(--radius);
}
.empty-state .bi { font-size: 2.5rem; color: rgba(49, 132, 155, .3); display: block; margin-bottom: .75rem; }

/* ---------- Reduced motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal-init { opacity: 1; transform: none; }
  .hero-badge, .hero-title, .hero .tag, .hero-theme, .hero-meta, .hero-panel, .hero-stats { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .main-nav, .site-chrome, .site-footer, .cta-band,
  .back-top, .scroll-progress, .no-print, .sidebar, .hero-panel, .hero-stats { display: none !important; }
  body { background: #fff; }
  .hero, .schedule-band { background: #12333c !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .locator-layout { flex-direction: column; }
  .locator-map { max-width: 100%; margin: 0 auto; }
  .locator-panel { max-width: 100%; height: 420px; }
  .main-nav .nav-link { padding: .6rem .75rem; font-size: .88rem; }
  .main-nav .nav-link .bi { display: inline; }
  .main-nav .navbar-collapse {
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: .5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    border-top: none;
  }
  .main-nav .btn-nav-cta { margin-left: 0; margin-top: .5rem; width: 100%; }
}

@media (max-width: 767.98px) {
  .hero-panel { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .brand-sub { display: none; }
  .site-header img[height] { height: 42px; }
  .sched-item { grid-template-columns: 1fr; }
  .count-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 575.98px) {
  .topbar .container { font-size: .72rem; }
  .hero { padding-top: 2.5rem; }
  .gallery-grid img { height: 150px; }
  .count-box strong { font-size: 1.15rem; }
}









/* ---------- Registration: searchable institute select (Choices.js) ---------- */
.institute-select + .choices { margin-bottom: .35rem; }
.institute-select + .choices .choices__inner {
  min-height: 48px;
  padding: .55rem .75rem .45rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #fff;
  font-size: .97rem;
}
.institute-select + .choices .choices__inner:focus { border-color: var(--primary-500); box-shadow: 0 0 0 .25rem rgba(49, 132, 155, .15); }
.institute-select + .choices .choices__item--selectable {
  white-space: normal;
  line-height: 1.35;
  padding: .55rem .75rem;
  font-size: .93rem;
}
.institute-select + .choices .choices__item--selectable.is-highlighted { background: var(--primary-500); }
.institute-select + .choices .choices__input {
  font-size: .95rem;
  padding: .35rem .5rem;
  margin-bottom: .25rem;
}
.institute-select + .choices .choices__list--dropdown {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 1050;
}
.institute-select + .choices .choices__list--selectable .choices__item--selectable {
  white-space: normal;
  line-height: 1.35;
}
.choices__list--dropdown .choices__item--selectable {
  white-space: normal !important;
  line-height: 1.35 !important;
}
