:root {
  --brand: #0c4a3a;
  --brand-deep: #063428;
  --brand-mid: #1a6b54;
  --brand-soft: #e8f3ef;
  --accent: #c4a35a;
  --accent-soft: #f5ecd7;
  --ink: #14201c;
  --muted: #5a6b64;
  --line: rgba(12, 74, 58, 0.14);
  --paper: #f7f5f0;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(6, 52, 40, 0.12);
  --radius: 14px;
  --max: 1180px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196, 163, 90, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(26, 107, 84, 0.12), transparent 50%),
    linear-gradient(180deg, #f3f7f5 0%, var(--paper) 40%, #eef4f1 100%);
  line-height: 1.6;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

/* Top bar */
.topbar {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}

.topbar a:hover {
  color: var(--accent);
}

.topbar-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 245, 240, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(196, 163, 90, 0.55);
  background: var(--white);
}

.brand-text {
  display: grid;
  gap: 0.1rem;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 650;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a,
.nav .nav-drop > button {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
}

.nav a:hover,
.nav a.is-active,
.nav .nav-drop > button:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.nav-drop {
  position: relative;
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.45rem;
  display: none;
}

.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  display: grid;
}

.nav-drop-menu a {
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
}

.nav-cta {
  background: var(--brand) !important;
  color: var(--white) !important;
  margin-left: 0.35rem;
}

.nav-cta:hover {
  background: var(--brand-deep) !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--brand-deep);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 52, 40, 0.88) 0%, rgba(6, 52, 40, 0.55) 48%, rgba(6, 52, 40, 0.25) 100%),
    linear-gradient(180deg, transparent 35%, rgba(6, 52, 40, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vh, 7rem) 0 3.5rem;
  max-width: 40rem;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
  opacity: 0;
  animation: rise 0.8s ease forwards 0.1s;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.25s;
}

.hero-bn {
  display: block;
  margin-top: 0.45rem;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  font-weight: 500;
  opacity: 0.92;
}

.hero p {
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: rise 0.9s ease forwards 0.4s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.55s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--brand-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn-solid {
  background: var(--brand);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

/* Stats */
.stats {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.stat {
  text-align: center;
  padding: 0.85rem 0.4rem;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--brand);
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-head {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.8rem;
  max-width: 40rem;
}

.section-head .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-mid);
  font-weight: 700;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split-media {
  position: relative;
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.split-copy h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--brand-deep);
}

.split-copy p {
  color: var(--muted);
}

.split-copy .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

/* Quick links */
.quick-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.quick-link {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 1.15rem 0.7rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-deep);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.quick-link:hover {
  transform: translateY(-3px);
  border-color: var(--brand-mid);
  background: var(--white);
}

.quick-link i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-style: normal;
  font-weight: 800;
}

/* Notices */
.notice-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.notice-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.notice-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.notice-item:last-child {
  border-bottom: 0;
}

.notice-date {
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 10px;
  text-align: center;
  padding: 0.55rem 0.3rem;
  line-height: 1.15;
}

.notice-date strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.notice-date span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.notice-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  line-height: 1.35;
}

.notice-item h3 a:hover {
  color: var(--brand);
}

.notice-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.badge-new {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #ffe8e4;
  color: #b42318;
  font-size: 0.68rem;
  font-weight: 800;
  vertical-align: middle;
}

.side-panel {
  background: linear-gradient(160deg, var(--brand-deep), var(--brand-mid));
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.side-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.side-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.side-panel .btn {
  justify-self: start;
}

/* Academics / courses */
.dept-grid,
.course-grid,
.event-grid,
.info-grid {
  display: grid;
  gap: 1rem;
}

.dept-grid {
  grid-template-columns: repeat(4, 1fr);
}

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

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

.info-grid {
  grid-template-columns: repeat(3, 1fr);
}

.dept-item,
.course-item,
.event-item,
.info-item {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dept-item:hover,
.course-item:hover,
.event-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.dept-item {
  padding: 1.2rem;
}

.dept-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--brand-deep);
}

.dept-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.course-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 180px;
}

.course-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-body {
  padding: 1.25rem;
  display: grid;
  align-content: center;
  gap: 0.45rem;
}

.course-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--brand-deep);
}

.course-body p {
  margin: 0;
  color: var(--muted);
}

.event-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.event-body {
  padding: 1.1rem;
}

.event-body time {
  display: block;
  color: var(--brand-mid);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.event-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--brand-deep);
}

.info-item {
  padding: 1.25rem;
}

.info-item h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  color: var(--brand-deep);
}

.info-item p {
  margin: 0;
  color: var(--muted);
}

/* Page hero */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background:
    linear-gradient(135deg, rgba(12, 74, 58, 0.92), rgba(6, 52, 40, 0.78)),
    url("../assets/images/HomePics/college%205.png") center/cover;
  color: var(--white);
}

.page-hero h1 {
  margin: 0.35rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero .eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.prose {
  max-width: 70ch;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  color: var(--brand-deep);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  list-style: disc;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.founder-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.founder-photo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
}

.contact-card,
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.contact-card h2,
.form-card h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  color: var(--brand-deep);
}

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

.contact-list strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--brand-deep);
}

.contact-list span,
.contact-list a {
  color: var(--muted);
}

.form-card form {
  display: grid;
  gap: 0.85rem;
}

.form-card label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-card input,
.form-card textarea,
.form-card select {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fbfaf7;
}

.form-card textarea {
  min-height: 140px;
  resize: vertical;
}

.map-embed {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 180px;
  background: var(--brand-soft);
}

.map-embed img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Footer */
.site-footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.86);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
}

.footer-brand h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  color: var(--white);
}

.footer-brand p {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer h4 {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 0.45rem;
}

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

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

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Mobile */
@media (max-width: 980px) {
  .stats-grid,
  .quick-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat:nth-child(3) {
    border-right: 0;
  }

  .split,
  .notice-layout,
  .course-item,
  .founder-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .course-item img {
    height: 200px;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.2rem;
  }

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

  .nav-drop-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding-left: 0.6rem;
  }

  .nav-drop.is-open .nav-drop-menu {
    display: grid;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }
}

/* Department detail */
.dept-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
}

.dept-copy h2 {
  margin: 1.4rem 0 0.55rem;
  font-family: var(--font-display);
  color: var(--brand-deep);
  font-size: 1.35rem;
}

.dept-copy h2:first-child {
  margin-top: 0;
}

.dept-copy p,
.dept-copy li {
  color: var(--muted);
}

.dept-copy ul {
  list-style: disc;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.faculty-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.faculty-panel > h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  color: var(--brand-deep);
  font-size: 1.35rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.faculty-group {
  margin: 1rem 0 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-mid);
}

.faculty-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.faculty-card:last-child {
  border-bottom: 0;
}

.faculty-card img {
  width: 90px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--brand-soft);
  border: 1px solid var(--line);
}

.faculty-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  color: var(--brand-deep);
}

.faculty-card .degrees {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.faculty-card .designation {
  margin: 0.25rem 0 0.45rem;
  font-size: 0.9rem;
}

.faculty-card .meta-line {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .dept-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stats-grid,
  .quick-links,
  .dept-grid,
  .event-grid,
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 78vh;
  }
}
