/* BhaVIL Lab — ModelAI-inspired clean SaaS UI */

:root {
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-soft: #f0f1f3;
  --paper: #ffffff;
  --band: #f6f7f9;
  --surface: #ffffff;
  --black: #111111;
  --shadow: 0 8px 30px rgba(17, 17, 17, 0.06);
  --shadow-hover: 0 16px 40px rgba(17, 17, 17, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 72px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --max: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#app{

    flex:1;

}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

a:hover {
  color: #000;
}

.container {
  width: min(100% - 2.5rem, 980px);
  margin-inline: auto;
}

/* ===== NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: none;
  backdrop-filter: blur(12px);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--nav-h);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  color: var(--ink);
}

.brand-logos {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: transparent;
  transition: none;
  pointer-events: none;
}

.brand-logo-mnit {
  border-radius: 50%;
}

.brand-logo-bhavil {
  height: 48px;
  width: auto;
  max-height: 48px;
  border-radius: 8px;
}

.brand:hover .brand-logo {
  transform: none;
  filter: none;
}

.brand-text {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.2rem;
  margin-left: auto;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #000;
  background: #f3f4f6;
}

.nav-links a.active {
  font-weight: 600;
}

.nav-links a.nav-cta {
  margin-left: 0.35rem;
  color: #fff !important;
  background: var(--black) !important;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.18);
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active {
  color: #fff !important;
  background: #000 !important;
}

.nav-links a::after {
  display: none;
}

.nav-login {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-login:hover {
  color: #000;
  background: #f3f4f6;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.nav-aside {
  display: none;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle:hover {
  background: var(--band);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 10px;
  background: var(--ink);
  transition: 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */

.hero-wrap {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  border-bottom: 1px solid var(--line-soft);
  min-height:min(760px, 82vh);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-wrap::before {
  content: "";
  position: absolute;
  inset: 18% -10% -30% 35%;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.059) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.059) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(700px) rotateX(58deg);
  transform-origin: top center;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 85%);
}

.hero {

  max-width:980px;
  margin:0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: center;
  padding: clamp(10px,2vh,20px) 0 clamp(10px,1.5vh,15px);
  position: relative;
  z-index: 1;
  flex: 1;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--band);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 0.75rem;
  max-width: 14ch;
}

.hero .subtitle {
  display: none;
}

.hero-copy > p {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  max-width: 34rem;
  margin-bottom: 1.15rem;
  line-height: 1.65;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 0;
}

.hero-panel {
  width: min(100%, 440px);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.hero-panel img {
  width: 100%;
  max-height: min(420px, 46vh);
  margin-inline: auto;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  pointer-events: none;
}

.trust-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.75rem 0 1.35rem;
  border-top: 1px solid transparent;
  margin-top: auto;
}

.trust-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.trust-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.25s ease;
}

.trust-logo img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.trust-logo:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-color: var(--line);
  background: #fff;
}

.cta-row {
  margin-top:18px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
}

.btn-primary {
  background: var(--black);
  color: #fff;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.18);
}

.btn-primary:hover {
  background: #000;
  color: #fff;
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--band);
  color: var(--ink);
}

.btn-ghost {
  background: var(--band);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-weight: 600;
}

.btn-ghost:hover {
  background: #eceef2;
  color: var(--ink);
}

/* ===== SECTIONS ===== */
.section {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}

.section-soft {
  background: var(--band);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-head h2,
.page-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.7rem;
  color: var(--ink);
}

.section-head p,
.page-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-hero {
  padding-bottom:10px;
  padding: clamp(2rem, 5vw, 3.25rem) 0 0.5rem;
}

.page-hero + .section{

    padding-top:15px;

}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.mission-stack {
  display: grid;
  gap: 1rem;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mission-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.mission-card h3 {
  font-size: 1.1rem;
  font-weight: 750;
  margin-bottom: 0.55rem;
  letter-spacing: -0.015em;
}

.mission-card p {
  color: var(--muted);
}

.checklist {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--ink-soft);
}

.checklist li i {
  color: var(--ink);
  margin-top: 0.25rem;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

/* ===== SHARED INTERACTIVE HOVER ===== */
.card,
.person-row,
.pub-card,
.mission-card,
.sponsor-card,
.news-item,
.role-card,
.milestone-item,
.contact-card,
.btn,
.socials a,
.trust-logo {
  transition: all 0.25s ease;
}

.card:hover,
.person-row:hover,
.pub-card:hover,
.mission-card:hover,
.sponsor-card:hover,
.news-item:hover,
.role-card:hover,
.milestone-item:hover,
.contact-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card:hover,
.person-row:hover,
.pub-card:hover,
.mission-card:hover,
.sponsor-card:hover,
.news-item:hover,
.role-card:hover,
.milestone-item:hover,
.contact-card:hover {
  border-color: #d1d5db;
}

.btn:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: #000;
  color: #fff;
}

.btn-secondary:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

.socials a:hover {
  transform: scale(1.08);
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 1.3rem 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.card-body h3 {
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.card-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-thumb {
  aspect-ratio: 16 / 10;
  background: var(--band);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.icon-chip {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--band);
  color: var(--ink);
  border: 1px solid var(--line);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--band);
  color: var(--muted);
  border: 1px solid var(--line);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.link-row a {
  font-weight: 700;
  font-size: 0.88rem;
}

/* ===== PEOPLE ===== */
.people-group {
  margin-bottom: 2.25rem;
}

.people-group h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.people-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.person-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.25s ease;
}

.person-photo {
  flex: 0 0 240px;
  width: 240px;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  background: var(--band);
}

.person-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 18%;
}

.person-body {
  flex: 1;
  min-width: 0;
  padding: 1.35rem 1.5rem;
}

.person-body h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.person-role {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.3rem 0 0.75rem;
}

.person-intro {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.person-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem 1.2rem;
}

.person-body h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.person-body ul {
  margin-left: 1.05rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--band);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: all 0.25s ease;
}

/* ===== PUBLICATIONS ===== */
.pub-card{

    display:grid;

    grid-template-columns:45% 55%;

    width:100%;

    background:var(--surface);

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

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    overflow:hidden;

    margin-bottom:1rem;

}

.pub-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 320px;
  padding: 10px;
  background: var(--band);
  overflow: hidden;
}

.pub-cover img {
  width: 100%;
  height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  object-position: center;
}

.pub-content {
  padding: 1.2rem 1.35rem 1.35rem;
  min-width: 0;
}

.pub-content h3 {
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
}

.pub-authors,
.pub-venue {
  font-size: 0.9rem;
  color: var(--muted);
}

.pub-venue {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.pub-desc {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 0.65rem;
}

/* ===== SPONSORS ===== */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.sponsor-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 300px));
  justify-content: center;
}

.sponsor-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  text-align: center;
  box-shadow: var(--shadow);
  color: inherit;
  transition: all 0.25s ease;
}

.sponsor-card img {
  height: 64px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 0.85rem;
  object-fit: contain;
}

.sponsor-card h3 {
  font-size: 1.05rem;
  font-weight: 750;
}

.sponsor-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ===== MILESTONES / CAREERS / CONTACT ===== */
.timeline {
  display: grid;
  gap: 0.9rem;
}

.news-item,
.role-card,
.milestone-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
  transition: all 0.25s ease;
}

.news-date,
.role-type {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.news-item h3,
.role-card h3 {
  font-size: 1.15rem;
  font-weight: 750;
  margin: 0.35rem 0 0.5rem;
  letter-spacing: -0.015em;
}

.news-item p,
.role-card p {
  color: var(--muted);
}

.role-card ul {
  margin-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.contact-card p {
  color: var(--muted);
}

.contact-card iframe {
  width: 100%;
  height: min(340px, 50vw);
  min-height: 220px;
  border: 0;
  border-radius: 12px;
  margin-top: 1rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0f0f0f;
  color: rgba(255, 255, 255, 0.72);

}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.nav-links a.mobile-cta,
.nav-links a.mobile-cta-outline {
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .nav-links {
    gap: 0.15rem 0.8rem;
  }

  .nav-links a {
    font-size: 0.84rem;
  }

  .nav-links a.nav-cta {
    font-size: 0.82rem;
  }
}

@media (max-width: 980px) {

    .hero-wrap {
        min-height: 0;
    }

    .hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        max-width: 100%;
        padding: 1.25rem 0 2rem;
    }

    .hero-header {
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .hero-header h1 {
        max-width: 100%;
        margin: 0 auto;
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        line-height: 1.12;
    }

    .hero-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-copy > p {
        max-width: 100%;
        margin-bottom: 0;
    }

    .cta-row {
        margin-top: 22px;
    }

    .cta-row .btn-secondary {
        width: auto;
        align-self: flex-start;
    }

    .news-card {
        width: 100%;
        margin-top: 28px;
    }

    .hero-media {
        width: 100%;
        min-height: 0;
        margin-top: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-panel {
        width: min(100%, 320px);
    }

    .hero-panel img {
        width: 100%;
        max-height: none;
        height: auto;
        object-fit: contain;
    }

  .person-row {
    flex-direction: column;
  }
  .contact-grid {
    grid-template-columns: 1fr;
}
  .person-photo {
    flex: 0 0 auto;
    width: min(100%, 260px);
    height: 260px;
    min-height: 220px;
    margin: 1.2rem auto 0;
    border-radius: 14px;
    align-self: center;
  }

  .person-body {
    padding: 1.15rem 1.25rem 1.35rem;
  }

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

  .pub-card {
    grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 0.85rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: var(--shadow);
    max-height: min(70vh, 480px);
    overflow-y: auto;
  }

  .nav-links a {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links.open::after {
    content: none;
  }

  .nav-links a.nav-cta {
    margin: 0.45rem 0 0;
    text-align: center;
    border-bottom: 0 !important;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.4rem, var(--max));
  }

  .contact-grid,
  .card-grid,
  .sponsor-grid,
  .sponsor-grid-2,
  .pub-card {
    grid-template-columns: 1fr;
  }

  .pub-content {
    padding: 0 1.15rem 1.2rem;
  }

  .pub-cover {
    aspect-ratio: 16 / 10;
    min-height: 160px;
  }

  .cta-row .btn-primary,
  .cta-row .btn-secondary {
    width: 100%;
  }

  .hero-float {
    position: static;
    margin-top: 0.85rem;
    max-width: none;
  }

  .hero-media {
    min-height: 0;
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .brand-text span {
    display: none;
  }

  .brand-logo,
  .brand-logo-bhavil {
    height: 40px;
    max-height: 40px;
  }

  .brand-logo-mnit {
    width: 40px;
  }

  .person-details {
    grid-template-columns: 1fr;
  }
}

.hero-header{

    text-align:center;

    margin-top:35px;      /* pushes everything down */

    margin-bottom:15px;   /* reduces space before two columns */

}

.hero-header h1{

max-width:900px;

margin:15px auto 0;

}

.hero-left{

display:flex;

flex-direction:column;

justify-content:center;

}

.news-card{

margin-top:35px;

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

border-radius:18px;

overflow:hidden;

background:white;

box-shadow:var(--shadow);

}

.news-title{

background:#111;

color:white;

padding:16px;

font-weight:700;

text-align:center;

font-size:1rem;

}

.news-slider{

position:relative;

height:130px;

overflow:hidden;

}

.news-slide{

position:absolute;

left:0;

top:0;

width:100%;

height:100%;

padding:18px 22px;

display:flex;

flex-direction:column;

justify-content:center;

opacity:0;

transform:translateY(20px);

transition:.6s;

color:#222;

}

.news-slide.active{

opacity:1;

transform:translateY(0);

}

.news-slide h4{

margin-bottom:12px;

font-size:1.15rem;

}

.news-slide:hover{

background:#fafafa;

}

.news-dots{

display:flex;

justify-content:center;

gap:8px;

padding:10px;

}

.dot{

width:10px;

height:10px;

border-radius:50%;

background:#ccc;

}

.dot.active{

background:#111;

}

.container.projects-container{

    width:min(100% - 2.5rem,1200px);

}
