/*
 * Raje Shahaji Polytechnic College - homepage styles
 *
 * A classic college layout, modernised: letterhead-style masthead, navy menu bar,
 * serif headings, notice board. The one drawing-sheet touch kept is the
 * measurement lines that draw around the campus photo.
 * Loaded after Bootstrap 4.1.1, which still provides the grid, collapse and modal.
 *
 * Colours come from the college's own material:
 *   --navy / --blue  letterhead lettering
 *   --maroon         the trust crest (darkened for text contrast)
 */

:root {
  --navy: #0F2A4D;
  --navy-deep: #0A1F3A;
  --blue: #1F6FC5;
  --blue-tint: #EAF1FA;
  --maroon: #9E1B24;
  --maroon-deep: #821620;
  --paper: #F4F6F9;
  --line: #D5DCE5;
  --text: #1B2433;
  --muted: #5A6577;
  --on-dark: #C9D3DF;
  --on-dark-muted: #9FB0C6;

  --f-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-sans: 'Mukta', 'Segoe UI', Roboto, Arial, sans-serif;

  --nav-h: 56px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 2000;
  padding: .6rem 1rem;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 .9rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--maroon);
}

.kicker::before {
  content: "";
  flex: none;
  width: 32px;
  height: 2px;
  background: currentColor;
}

.kicker--light {
  color: #fff;
}

.kicker--light::before {
  background: #E35A63;
}

.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section,
.admission,
.site-footer,
#notices {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

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

.section-head--center .kicker {
  justify-content: center;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  color: var(--navy);
}

.section-intro {
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.button--maroon {
  background: var(--maroon);
  color: #fff;
}

.button--maroon:hover {
  background: var(--maroon-deep);
  color: #fff;
  box-shadow: 0 12px 22px -14px rgba(158, 27, 36, .9);
}

.button--outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.button--outline:hover {
  background: var(--navy);
  color: #fff;
}

.button--light {
  background: #fff;
  color: var(--navy);
}

.button--light:hover {
  background: var(--blue-tint);
  color: var(--navy);
}

.button--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
}

.button--outline-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--navy-deep);
  color: var(--on-dark);
  font-size: .85rem;
}

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

.topbar p {
  margin: 0;
}

.topbar-approvals {
  display: none;
}

.topbar-contact {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.topbar-contact a {
  color: #fff;
}

.topbar-contact a:hover {
  color: var(--on-dark);
}

.topbar-contact a + a {
  display: none;
}

@media (min-width: 576px) {
  .topbar-contact a + a {
    display: inline;
  }
}

@media (min-width: 992px) {
  .topbar-approvals {
    display: block;
  }
}

/* ---------- Masthead (letterhead) ---------- */

.masthead {
  background: #fff;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.masthead-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}

.masthead-brand:hover {
  color: inherit;
  text-decoration: none;
}

.masthead-crest {
  flex: none;
  width: 54px;
  height: auto;
}

.masthead-trust {
  margin: 0;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--maroon);
}

.masthead-name {
  margin: .1rem 0 .15rem;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 2.15rem);
  line-height: 1.1;
  color: var(--navy);
}

.masthead-place {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
}

.masthead-district {
  display: none;
}

.masthead-codes {
  display: none;
  margin: 0;
}

@media (min-width: 576px) {
  .masthead-crest {
    width: 72px;
  }

  .masthead-trust {
    font-size: .76rem;
  }

  .masthead-district {
    display: inline;
  }
}

@media (min-width: 992px) {
  .masthead-codes {
    display: flex;
    gap: 1.25rem;
  }

  .masthead-codes div {
    padding-left: 1.25rem;
    border-left: 1px solid var(--line);
  }

  .masthead-codes dt {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .masthead-codes dd {
    margin: 0;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--navy);
  }
}

/* ---------- Main menu ---------- */

.main-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--navy);
  border-top: 3px solid var(--maroon);
  transition: box-shadow .3s;
}

.main-nav.is-stuck {
  box-shadow: 0 10px 24px -16px rgba(10, 31, 58, .8);
}

.main-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-bars span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform .25s var(--ease), opacity .2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-call {
  color: #fff;
  font-weight: 600;
}

.nav-call:hover {
  color: var(--on-dark);
}

.nav-collapse {
  flex-basis: 100%;
}

.nav-links {
  margin: 0;
  padding: 0 0 .5rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: .7rem 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

@media (min-width: 992px) {
  .nav-collapse.collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .nav-links {
    display: flex;
    padding: 0;
  }

  .nav-links a {
    position: relative;
    padding: 1rem 1.05rem;
    border-top: 0;
    transition: background-color .2s;
  }

  .nav-links li:first-child a {
    padding-left: 0;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 1.05rem;
    right: 1.05rem;
    bottom: .7rem;
    height: 2px;
    background: #9CC3F0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
  }

  .nav-links li:first-child a::after {
    left: 0;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: #fff;
  }

  .nav-links a:hover::after,
  .nav-links a:focus-visible::after {
    transform: scaleX(1);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(6rem, 10vw, 7.5rem);
  background: var(--paper);
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 5.6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--navy);
}

.hero-lede {
  max-width: 32em;
  margin: 0 0 2rem;
  font-size: clamp(1.08rem, 1.4vw, 1.2rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* load sequence: copy rises in, one line after another */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes settle {
  from {
    transform: scale(1.08);
  }
  to {
    transform: none;
  }
}

.hero-copy .kicker,
.hero-title,
.hero-lede,
.hero-actions {
  animation: rise .7s var(--ease) both;
}

.hero-title { animation-delay: .12s; }
.hero-lede { animation-delay: .26s; }
.hero-actions { animation-delay: .4s; }

/* figure leaves room on the right and bottom for the measurement lines */
.hero-figure {
  position: relative;
  margin: 3rem 0 0;
  padding: 0 40px 40px 0;
}

@media (min-width: 992px) {
  .hero-figure {
    margin-top: 0;
  }
}

.hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #dfe6ee;
  box-shadow: 0 30px 60px -32px rgba(15, 42, 77, .55);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  animation: settle 1.8s var(--ease) both;
}

/* callout: leader line from the main building to a label */
.callout {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  /* keeps the white leader line visible over white clouds */
  -webkit-filter: drop-shadow(0 0 1.5px rgba(15, 42, 77, .8));
  filter: drop-shadow(0 0 1.5px rgba(15, 42, 77, .8));
}

/* no vector-effect here: with non-scaling-stroke, Chrome measures the
   pathLength-based dash in screen pixels and the line stops short */
.callout path {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-dasharray: 1;
}

.callout circle {
  fill: var(--maroon);
  stroke: #fff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.callout-label {
  position: absolute;
  right: 4%;
  top: 32%;
  transform: translateY(-115%);
  padding: .25rem .6rem;
  border-radius: 3px;
  background: var(--navy);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}

/* measurement lines (extension lines are the borders, arrowheads are pseudo-elements) */
.dim {
  position: absolute;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}

.dim-line {
  position: absolute;
  background: currentColor;
}

.dim-line::before,
.dim-line::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.dim-label {
  position: absolute;
  padding: 0 .6rem;
  background: var(--paper);
  line-height: 1.2;
  white-space: nowrap;
}

.dim-h {
  left: 0;
  right: 40px;
  bottom: 0;
  height: 40px;
  border-left: 1px solid;
  border-right: 1px solid;
}

.dim-h .dim-line {
  left: 0;
  right: 0;
  top: 24px;
  height: 1px;
}

.dim-h .dim-line::before {
  left: 0;
  top: -4px;
  border-width: 4.5px 10px 4.5px 0;
  border-color: transparent currentColor transparent transparent;
}

.dim-h .dim-line::after {
  right: 0;
  top: -4px;
  border-width: 4.5px 0 4.5px 10px;
  border-color: transparent transparent transparent currentColor;
}

.dim-h .dim-label {
  left: 50%;
  top: 24px;
  transform: translate(-50%, -50%);
}

.dim-v {
  top: 0;
  bottom: 40px;
  right: 0;
  width: 40px;
  border-top: 1px solid;
  border-bottom: 1px solid;
}

.dim-v .dim-line {
  top: 0;
  bottom: 0;
  left: 24px;
  width: 1px;
}

.dim-v .dim-line::before {
  top: 0;
  left: -4px;
  border-width: 0 4.5px 10px 4.5px;
  border-color: transparent transparent currentColor transparent;
}

.dim-v .dim-line::after {
  bottom: 0;
  left: -4px;
  border-width: 10px 4.5px 0 4.5px;
  border-color: currentColor transparent transparent transparent;
}

.dim-v .dim-label {
  left: 24px;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
}

/*
 * Drawing sequence. With JS on, the annotations wait (hidden) until the
 * notice popup is closed, then draw in. js/home.js adds .dims-draw.
 */
.js .hero-figure:not(.dims-draw) .dim,
.js .hero-figure:not(.dims-draw) .callout,
.js .hero-figure:not(.dims-draw) .callout-label,
.js .hero-figure:not(.dims-draw) .dim-label {
  opacity: 0;
}

.js .hero-figure:not(.dims-draw) .dim-h .dim-line {
  transform: scaleX(0);
}

.js .hero-figure:not(.dims-draw) .dim-v .dim-line {
  transform: scaleY(0);
}

.js .hero-figure:not(.dims-draw) .callout path {
  stroke-dashoffset: 1;
}

.dims-draw .dim,
.dims-draw .callout {
  opacity: 1;
  transition: opacity .3s ease;
}

.dims-draw .dim-line {
  transform: none;
  transition: transform .9s var(--ease) .15s;
}

.dims-draw .dim-v .dim-line {
  transition-delay: .45s;
}

.dims-draw .dim-label {
  opacity: 1;
  transition: opacity .4s ease .95s;
}

.dims-draw .dim-v .dim-label {
  transition-delay: 1.25s;
}

.dims-draw .callout path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .8s var(--ease) 1.1s;
}

.dims-draw .callout-label {
  opacity: 1;
  transition: opacity .4s ease 1.8s;
}

/* ---------- Approvals ---------- */

.approvals-wrap {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
}

.approvals {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 48px -34px rgba(15, 42, 77, .6);
}

.approval {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
}

.approval + .approval {
  border-top: 1px solid var(--line);
}

@media (min-width: 992px) {
  .approvals {
    grid-template-columns: repeat(3, 1fr);
  }

  .approval + .approval {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

/* seal: a ring with a spaced outer ring */
.approval-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 50px;
  height: 50px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line);
}

.approval-seal svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.approval-title {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--navy);
}

.approval-body {
  margin: .15rem 0 0;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- About + notice board ---------- */

.about-text p {
  font-size: 1.06rem;
}

.about-text .kicker {
  font-size: .8rem;
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.75rem;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.about-facts dt {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-facts dd {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--navy);
}

.noticeboard {
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 40px -30px rgba(15, 42, 77, .5);
}

@media (min-width: 992px) {
  .noticeboard {
    margin-top: 0;
  }
}

.noticeboard-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  padding: .9rem 1.3rem;
  border-bottom: 3px solid var(--maroon);
  background: var(--navy);
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
}

.noticeboard-title svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice {
  padding: 1.3rem;
}

.notice + .notice {
  border-top: 1px solid var(--line);
}

.notice-date {
  margin: 0 0 .35rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--maroon);
}

.notice-heading {
  margin: 0 0 .45rem;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--navy);
}

.notice-body {
  margin: 0 0 .8rem;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--muted);
}

.notice-link {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.notice-link::after {
  content: " \2192";
}

.notice-link:hover {
  color: var(--navy);
}

/* ---------- Courses ---------- */

.courses {
  background: var(--paper);
}

.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 576px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .course-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.course-grid > li {
  display: flex;
}

.course-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 6px;
  background: #fff;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}

.course-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--maroon);
  box-shadow: 0 18px 36px -24px rgba(15, 42, 77, .5);
}

.course-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--blue-tint);
}

.course-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* gear teeth: a thick dashed ring, 12 teeth */
.course-icon .gear-teeth {
  stroke-width: 3;
  stroke-linecap: butt;
  stroke-dasharray: 2.15 2.143;
}

.course-level {
  margin: 1.1rem 0 .15rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.course-card h3 {
  margin: 0 0 1.25rem;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--navy);
}

.course-meta {
  display: flex;
  gap: 2rem;
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.course-meta dt {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.course-meta dd {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  color: var(--text);
}

.course-meta div + div dd {
  color: var(--blue);
}

/* phones: icon beside the title so six cards don't become a long scroll */
@media (max-width: 575px) {
  .course-card {
    display: grid;
    grid-template-columns: 50px 1fr;
    column-gap: 1rem;
    align-items: center;
    padding: 1.2rem 1.25rem 1.1rem;
  }

  .course-icon {
    grid-row: span 2;
  }

  .course-level {
    align-self: end;
    margin: 0;
  }

  .course-card h3 {
    align-self: start;
    margin: 0;
    font-size: 1.2rem;
  }

  .course-meta {
    grid-column: 1 / -1;
    margin-top: 1rem;
    padding-top: .85rem;
  }
}

/* ---------- Highlights ---------- */

.highlight-figure {
  position: relative;
  margin: 0 0 3rem;
}

@media (min-width: 992px) {
  .highlight-figure {
    margin: 0 1.5rem 0 0;
  }
}

.highlight-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.highlight-figure figcaption,
.g figcaption {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  padding: .2rem .65rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, .94);
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
}

.highlight-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.highlight-list li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--blue-tint);
}

.highlight-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.highlight-list h3 {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

/* ---------- Gallery ---------- */

.gallery-section {
  background: var(--paper);
}

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

.g {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #dfe6ee;
}

.g img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.g:hover img {
  transform: scale(1.04);
}

.g-tall {
  grid-row: span 2;
}

.g-last {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
  }

  .g-wide {
    grid-column: span 2;
  }

  .g-last {
    grid-column: auto;
  }
}

/* ---------- Admission band ---------- */

.admission {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background: var(--navy);
  color: #fff;
}

/* the crest as a faint white watermark */
.admission::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -3rem;
  width: 320px;
  height: 354px;
  background: url("../images/crest.png") center / contain no-repeat;
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1);
  opacity: .07;
  transform: translateY(-50%);
  pointer-events: none;
}

.admission-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.admission .section-title {
  color: #fff;
}

.admission .section-intro {
  color: var(--on-dark);
}

.admission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 4rem 0 2rem;
  background: var(--navy-deep);
  color: var(--on-dark);
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1.2fr 1.1fr 1fr;
  }
}

.crest-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: #fff;
}

.crest-badge img {
  width: 54px;
  height: auto;
}

.footer-trust {
  margin: 0;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.footer-name {
  margin: .15rem 0 .5rem;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #fff;
}

.footer-codes {
  margin: 0;
  font-size: .88rem;
  color: var(--on-dark-muted);
}

.footer-heading {
  position: relative;
  margin: 0 0 1.1rem;
  padding-bottom: .6rem;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: #E35A63;
}

.footer-address {
  margin: 0 0 .75rem;
  font-style: normal;
}

.footer-link,
.footer-phone {
  color: #fff;
  overflow-wrap: anywhere;
}

.footer-link:hover,
.footer-phone:hover {
  color: #9CC3F0;
}

.footer-phone {
  display: block;
  padding: .1rem 0;
  font-variant-numeric: tabular-nums;
}

.footer-email {
  display: inline-block;
  margin-top: .6rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: .35rem;
}

.footer-links a {
  color: var(--on-dark);
}

.footer-links a:hover {
  color: #fff;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .88rem;
  color: var(--on-dark-muted);
}

/* ---------- Admission notice popup ---------- */

.notice-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 6px;
}

.notice-modal .modal-header {
  align-items: center;
  border-bottom: 3px solid var(--maroon);
  background: var(--navy);
  color: #fff;
}

.notice-modal .modal-title {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 1.2rem;
}

.notice-modal .close {
  color: #fff;
  text-shadow: none;
  opacity: .8;
}

/* matches Bootstrap's own hover selector so this one wins */
.notice-modal .close:not(:disabled):not(.disabled):hover,
.notice-modal .close:not(:disabled):not(.disabled):focus {
  color: #fff;
  opacity: 1;
}

/* ---------- Scroll reveal (enabled by js/home.js) ---------- */

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Small screens ---------- */

@media (max-width: 420px) {
  .kicker {
    letter-spacing: .1em;
  }

  .hero-figure {
    padding: 0 34px 34px 0;
  }

  .dim-h {
    right: 34px;
    height: 34px;
  }

  .dim-v {
    bottom: 34px;
    width: 34px;
  }

  .dim-h .dim-line,
  .dim-h .dim-label {
    top: 20px;
  }

  .dim-v .dim-line,
  .dim-v .dim-label {
    left: 20px;
  }
}

/* ---------- Reduced motion: everything visible, nothing moves ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
