:root {
  --navy: #071b34;
  --ink: #102033;
  --muted: #647386;
  --blue: #0b63b6;
  --cyan: #0fb7c9;
  --teal: #107a74;
  --gold: #f4b63f;
  --rose: #e85d75;
  --paper: #ffffff;
  --mist: #f4f9fc;
  --line: #d9e8f2;
  --shadow: 0 22px 60px rgba(7, 27, 52, 0.14);
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 114px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 42%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 99, 182, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 99, 182, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 72%, transparent);
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--gold);
  color: #111827;
  padding: 0.75rem 1rem;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 232, 242, 0.85);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(7, 27, 52, 0.12);
}

.topline {
  background: linear-gradient(90deg, var(--navy), #0e3d6b 62%, #0d6d80);
  color: var(--paper);
  font-size: 0.92rem;
}

.topline__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topline p {
  margin: 0;
  font-weight: 700;
}

.topline__inner > div {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.topline a {
  opacity: 0.9;
}

.topline a:hover {
  opacity: 1;
  color: #dbf7ff;
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(7, 27, 52, 0.18));
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.18;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.brand--home {
  position: relative;
  border: 1px solid rgba(11, 99, 182, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(234, 245, 255, 0.92));
  padding: 0.42rem 1rem 0.42rem 0.5rem;
  box-shadow: 0 14px 34px rgba(7, 27, 52, 0.12);
}

.brand--home::after {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(244, 182, 63, 0.7), rgba(15, 183, 201, 0.35));
  opacity: 0.75;
}

.brand--home img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--paper);
  padding: 0.25rem;
}

.brand--home strong {
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
  color: var(--navy);
}

.brand--home small {
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 900;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 850;
}

.nav-menu a {
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  color: #273b51;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a.is-current {
  color: var(--blue);
  background: #eaf5ff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0.66rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  min-height: clamp(640px, 82vh, 820px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
}

.hero__slideshow,
.hero__slide,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__slideshow {
  transform: scale(1.025);
}

.hero__slide {
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(7, 27, 52, 0.94), rgba(7, 27, 52, 0.72) 42%, rgba(7, 27, 52, 0.18)),
    url("assets/gade-patil/campus-hero.jpg") center / cover;
  transition: opacity 1.2s ease;
  will-change: opacity;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__shade {
  background:
    linear-gradient(180deg, rgba(7, 27, 52, 0.18), rgba(7, 27, 52, 0.38)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  mix-blend-mode: screen;
  opacity: 0.5;
}

.hero__content {
  position: relative;
  max-width: 840px;
  padding-block: 5rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow,
.section-heading--light .eyebrow {
  color: #aeefff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.1;
}

.hero h1 {
  max-width: 800px;
  margin-bottom: 1.2rem;
  color: var(--paper);
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.03rem, 2vw, 1.25rem);
}

.hero__actions,
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero__actions {
  margin-top: 2rem;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(7, 27, 52, 0.2);
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold), #ffe08c);
  color: #1f2530;
}

.btn--glass {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.13);
  color: var(--paper);
}

.btn--outline {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--blue);
}

.hero__badges {
  margin-top: 2.2rem;
}

.hero__badges span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.55rem 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 850;
}

.notice-ticker {
  overflow: hidden;
  background: var(--gold);
  color: #1c2530;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(7, 27, 52, 0.12);
}

.ticker-track {
  min-height: 54px;
  display: flex;
  align-items: center;
  width: max-content;
  min-width: 100%;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  white-space: nowrap;
  animation: ticker-marquee 32s linear infinite;
}

.notice-ticker:hover .ticker-content {
  animation-play-state: paused;
}

.ticker-content span {
  position: relative;
}

.ticker-content span::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
}

@keyframes ticker-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.stats-wrap {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow);
}

.stats-grid article {
  min-height: 128px;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
}

.stats-grid strong {
  display: block;
  color: var(--blue);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.section--soft {
  background:
    linear-gradient(180deg, #f4f9fc, #ffffff);
}

.section--dark {
  background:
    linear-gradient(135deg, var(--navy), #0e3d6b 58%, #0c6574);
  color: rgba(255, 255, 255, 0.82);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2.25rem;
}

.section-heading h2,
.section-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.section-heading--light h2,
.section--dark h3 {
  color: var(--paper);
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.about-layout,
.lab-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.media-stack {
  position: relative;
  padding: 0 0 2.2rem 2.2rem;
}

.media-stack::before {
  content: "";
  position: absolute;
  inset: 2.2rem 2.2rem 0 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.media-stack img {
  position: relative;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-note {
  position: absolute;
  right: 0;
  bottom: 0.6rem;
  max-width: 270px;
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.media-note strong,
.media-note span {
  display: block;
}

.media-note strong {
  color: var(--navy);
}

.media-note span {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-list article,
.contact-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 34px rgba(7, 27, 52, 0.08);
}

.feature-list article {
  padding: 1.2rem;
}

.feature-list span {
  color: var(--rose);
  font-weight: 950;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.program-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 34px rgba(7, 27, 52, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 55px rgba(7, 27, 52, 0.16);
}

.program-card img {
  aspect-ratio: 1.12 / 1;
  object-fit: cover;
}

.program-card div {
  padding: 1.2rem;
}

.program-card span {
  display: inline-flex;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: #eaf5ff;
  color: var(--blue);
  padding: 0.32rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 950;
}

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

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  color: var(--blue);
  font-weight: 950;
}

.read-more::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.program-card:hover .read-more::after {
  transform: translateX(4px) rotate(-45deg);
}

.lab-layout {
  grid-template-columns: 1.05fr 0.95fr;
}

.lab-image {
  min-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.facility-grid article {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 0.95rem;
}

.facility-grid span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--paper);
  font-weight: 950;
}

.facility-grid h3 {
  margin: 0;
  font-size: 1rem;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.event-grid article {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  transition: transform 0.24s ease, background 0.24s ease;
}

.event-grid article:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.14);
}

.event-grid img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.event-grid h3,
.event-grid p {
  margin-inline: 1.1rem;
}

.event-grid h3 {
  margin-top: 1rem;
}

.event-grid p {
  color: rgba(255, 255, 255, 0.74);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 170px;
  gap: 0.9rem;
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(7, 27, 52, 0.08);
}

.gallery-grid figure:nth-child(1),
.gallery-grid figure:nth-child(4) {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery-grid figure:nth-child(2),
.gallery-grid figure:nth-child(3),
.gallery-grid figure:nth-child(5),
.gallery-grid figure:nth-child(6) {
  grid-column: span 3;
}

.gallery-grid img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.02);
}

.contact-layout {
  align-items: stretch;
}

.contact-panel,
.contact-form {
  padding: clamp(1.25rem, 4vw, 2rem);
}

address {
  margin-top: 1.4rem;
  color: #33475d;
  font-style: normal;
}

address a {
  color: var(--blue);
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.42rem;
  color: #26384c;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--ink);
  padding: 0.9rem 1rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(15, 183, 201, 0.2);
  border-color: var(--cyan);
}

.page-hero {
  position: relative;
  min-height: 390px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
  padding: 7rem 0 4rem;
  background:
    linear-gradient(90deg, rgba(7, 27, 52, 0.9), rgba(7, 27, 52, 0.66), rgba(7, 27, 52, 0.24)),
    var(--navy);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  opacity: 0.45;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero--anm {
  background:
    linear-gradient(90deg, rgba(7, 27, 52, 0.92), rgba(7, 27, 52, 0.68), rgba(7, 27, 52, 0.24)),
    url("assets/gade-patil/anm.jpg") center / cover;
}

.page-hero--gnm {
  background:
    linear-gradient(90deg, rgba(7, 27, 52, 0.92), rgba(7, 27, 52, 0.68), rgba(7, 27, 52, 0.24)),
    url("assets/gade-patil/gnm.jpg") center / cover;
}

.page-hero--bsc,
.page-hero--pbbsc {
  background:
    linear-gradient(90deg, rgba(7, 27, 52, 0.92), rgba(7, 27, 52, 0.68), rgba(7, 27, 52, 0.24)),
    url("assets/gade-patil/bsc.jpg") center / cover;
}

.page-hero--mandate {
  background:
    linear-gradient(90deg, rgba(7, 27, 52, 0.92), rgba(7, 27, 52, 0.68), rgba(7, 27, 52, 0.2)),
    url("assets/gade-patil/lab.jpg") center / cover;
}

.page-hero--about {
  background:
    linear-gradient(90deg, rgba(7, 27, 52, 0.92), rgba(7, 27, 52, 0.66), rgba(7, 27, 52, 0.22)),
    url("assets/gade-patil/about-event.jpg") center / cover;
}

.page-hero--contact {
  background:
    linear-gradient(90deg, rgba(7, 27, 52, 0.92), rgba(7, 27, 52, 0.66), rgba(7, 27, 52, 0.22)),
    url("assets/gade-patil/campus-hero.jpg") center / cover;
}

.page-hero h1 {
  max-width: 850px;
  margin-bottom: 0.8rem;
  color: var(--paper);
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.course-sidebar {
  position: sticky;
  top: 125px;
  display: grid;
  gap: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1rem;
  box-shadow: 0 16px 34px rgba(7, 27, 52, 0.08);
}

.course-sidebar img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.sidebar-link {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--navy);
  font-weight: 900;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.sidebar-link:hover {
  border-color: #9ed5ef;
  background: #edf8ff;
  color: var(--blue);
}

.course-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: 0 16px 34px rgba(7, 27, 52, 0.08);
}

.course-detail h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.course-detail h2:first-child {
  margin-top: 0;
}

.course-detail p {
  color: #43556a;
}

.checked-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checked-list li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 0.95rem 1rem 0.95rem 3rem;
  color: #43556a;
}

.checked-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.16rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 0 0 4px rgba(15, 183, 201, 0.13);
}

.about-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.about-card-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.25rem;
  box-shadow: 0 16px 34px rgba(7, 27, 52, 0.08);
}

.about-card-grid span {
  display: inline-flex;
  margin-bottom: 1.1rem;
  color: var(--rose);
  font-weight: 950;
}

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

.contact-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.map-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 480px;
  border: 0;
}

.mandate-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.mandate-layout--full {
  display: block;
}

.mandate-year {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(7, 27, 52, 0.08);
}

.mandate-sections {
  display: grid;
  gap: 1.2rem;
}

.mandate-year {
  overflow: hidden;
}

.mandate-year__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f5fbff, #ffffff);
  padding: 1.25rem;
  cursor: pointer;
  text-align: left;
  list-style: none;
}

.mandate-year__head::-webkit-details-marker {
  display: none;
}

.mandate-year__head::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-right: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

details[open] > .mandate-year__head::after {
  transform: rotate(225deg);
}

.mandate-year__title {
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 950;
  line-height: 1.1;
}

.mandate-year__head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.mandate-year__count {
  margin-left: auto;
  border-radius: 999px;
  background: #eaf5ff;
  color: var(--blue);
  padding: 0.35rem 0.75rem;
  font-weight: 950;
  white-space: nowrap;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 1.25rem;
}

.mandate-note {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem;
  color: var(--muted);
}

.document-grid a,
.document-grid span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 0.8rem 0.95rem 0.8rem 2.85rem;
  color: var(--navy);
  font-weight: 900;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.document-grid a::before,
.document-grid span::before {
  content: "PDF";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--rose), #ff8d6b);
  color: var(--paper);
  padding: 0.18rem 0.28rem;
  font-size: 0.66rem;
  font-weight: 950;
  transform: translateY(-50%);
}

.document-grid--pending span {
  border-style: dashed;
  background: #f6f8fb;
  color: #758396;
}

.document-grid--pending span::before {
  content: "Soon";
  background: #9aa7b7;
}

.document-grid a:hover {
  border-color: #9ed5ef;
  background: #edf8ff;
  color: var(--blue);
  transform: translateY(-2px);
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--teal);
  font-weight: 900;
}

.site-footer {
  background: #06172b;
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr 0.7fr;
  gap: 2rem;
}

.brand--footer strong,
.site-footer h2 {
  color: var(--paper);
}

.brand--footer small {
  color: rgba(255, 255, 255, 0.64);
}

.site-footer h2 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.site-footer a:not(.brand) {
  display: block;
  margin-bottom: 0.42rem;
}

.site-footer p {
  margin-bottom: 0.42rem;
}

.site-footer a:hover {
  color: var(--paper);
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: grid !important;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-weight: 950;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1040px) {
  .topline__inner {
    justify-content: center;
    text-align: center;
  }

  .topline__inner > div {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

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

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

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

  .nav-menu {
    position: absolute;
    inset: calc(100% + 1px) 1rem auto;
    display: grid;
    gap: 0.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    padding: 0.65rem;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .stats-grid,
  .program-grid,
  .event-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-layout,
  .lab-layout,
  .contact-layout,
  .detail-layout,
  .mandate-layout {
    grid-template-columns: 1fr;
  }

  .course-sidebar {
    position: static;
  }

  .document-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 78px;
  }

  .container {
    width: min(100% - 1.2rem, var(--max-width));
  }

  .topline {
    display: none;
  }

  .navbar {
    min-height: 74px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand--home {
    max-width: calc(100% - 58px);
    padding: 0.35rem 0.7rem 0.35rem 0.42rem;
  }

  .brand--home img {
    width: 54px;
    height: 54px;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .brand--home strong {
    font-size: 0.92rem;
  }

  .brand small {
    font-size: 0.78rem;
  }

  .hero {
    min-height: 650px;
  }

  .hero__slide {
    background:
      linear-gradient(90deg, rgba(7, 27, 52, 0.93), rgba(7, 27, 52, 0.76)),
      url("assets/gade-patil/campus-hero.jpg") center / cover;
  }

  .hero__actions,
  .btn {
    width: 100%;
  }

  .stats-wrap {
    margin-top: 0;
  }

  .stats-grid,
  .program-grid,
  .event-grid,
  .about-card-grid,
  .feature-list,
  .facility-grid,
  .contact-page-layout,
  .footer-grid,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .media-stack {
    padding: 0 0 1.5rem 1rem;
  }

  .media-note {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -2.4rem 0 0 auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .gallery-grid figure:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-bottom {
    display: grid;
  }
}
