:root {
  --cassiopeia-color-primary: #d4131d;
  --cassiopeia-color-link: #b20f18;
  --cassiopeia-color-hover: #8f0c13;
  --school-ink: #262626;
  --school-muted: #666;
  --school-green: #d4131d;
  --school-green-dark: #a70e16;
  --school-red: #d4131d;
  --school-gold: #d4131d;
  --school-line: #dedede;
  --school-surface: #f7f7f7;
  --school-content-width: 73.125rem;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  background: #fff;
  color: var(--school-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
}

.site-grid,
.site-grid > *,
.grid-child,
main,
section {
  min-width: 0;
}

img,
video,
iframe,
object {
  height: auto;
  max-width: 100%;
}

a {
  color: var(--school-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--school-red);
}

:focus-visible {
  outline: 3px solid var(--school-gold);
  outline-offset: 3px;
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
  color: var(--school-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

h1,
.h1 {
  font-size: 2.2rem;
}

h2,
.h2 {
  font-size: 1.65rem;
}

h3,
.h3 {
  font-size: 1.3rem;
}

.page-header h1,
.page-header h2,
.card-header,
.home-section__title,
.home-news__header h2,
.news-blog__header h1 {
  color: var(--school-red);
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-align: center;
  text-transform: uppercase;
}

.container-topbar {
  background: #fff;
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
  color: var(--school-ink);
  max-width: none;
  padding-block: 0;
}

.container-header {
  background-color: #fff;
  background-image: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.14);
}

.container-header .grid-child {
  max-width: 1320px;
}

.container-header .navbar-brand {
  align-items: flex-start;
  margin: 0;
  padding-block: 1.1rem 0.9rem;
}

.container-header .navbar-brand .brand-logo,
.container-header .navbar-brand .brand-logo span {
  color: var(--school-red);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  max-width: 44rem;
  overflow-wrap: anywhere;
  text-decoration: none;
  white-space: normal;
}

.container-header .site-description {
  color: var(--school-muted);
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
  margin-top: 0.3rem;
}

.contact-module {
  background: #fff;
  border-bottom: 1px solid var(--school-line);
  color: var(--school-ink);
  width: 100%;
}

.contact-strip {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  justify-content: flex-end;
  min-height: 2.65rem;
  padding: 0.45rem max(1rem, calc((100% - 1320px) / 2));
}

.contact-strip a {
  color: var(--school-ink);
  font-size: 0.9rem;
  white-space: nowrap;
}

.container-header .container-topbar a {
  color: var(--school-ink);
}

.container-header .container-topbar a:hover,
.container-header .container-topbar a:focus-visible {
  color: var(--school-red);
}

.container-header .container-nav {
  border-bottom: 1px solid var(--school-line);
  border-top: 1px solid var(--school-line);
  padding-block: 0;
}

.container-header .mod-menu {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > button,
.container-header .mod-menu > li > .mod-menu__heading {
  align-items: center;
  color: var(--school-ink);
  display: flex;
  font-size: 1rem;
  font-weight: 400;
  min-height: 3.2rem;
  padding: 0.65rem 0.72rem;
  text-decoration: none;
}

.container-header .mod-menu > li.active > a {
  background: transparent;
  color: var(--school-red);
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus-visible {
  background: transparent;
  color: var(--school-red);
}

.container-header .metismenu.mod-menu .mm-collapse {
  background: #fff;
  border: 1px solid var(--school-line);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 8px 20px rgba(22, 33, 29, 0.16);
  min-width: 18rem;
  padding: 0.35rem;
}

.container-header .metismenu.mod-menu .mm-collapse a {
  color: var(--school-ink);
  font-size: 0.9rem;
  line-height: 1.35;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
}

.container-header .metismenu.mod-menu .mm-collapse .metismenu-item > a,
.container-header .metismenu.mod-menu .mm-collapse .metismenu-item > span {
  max-width: none;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  width: 100%;
}

.container-header .metismenu.mod-menu .mm-collapse a:hover,
.container-header .metismenu.mod-menu .mm-collapse a:focus-visible {
  background: var(--school-surface);
  color: var(--school-red);
}

.container-component,
.container-sidebar-right,
.container-sidebar-left {
  min-width: 0;
}

.site-grid {
  row-gap: 1.5rem;
}

.container-main {
  padding-block: 1.5rem 3rem;
}

.breadcrumb {
  background: transparent;
  color: var(--school-muted);
  font-size: 0.88rem;
  margin-bottom: 0;
  padding-inline: 0;
}

.school-intro-module {
  border-bottom: 1px solid var(--school-line);
  background: var(--school-surface);
}

.top-a.card.school-intro-module,
.main-bottom.card.service-links-module {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.school-intro-module .card-body {
  padding: 0;
}

.service-links-module .card-body {
  padding: 0;
}

.service-links-module .card-header {
  background: transparent;
  border: 0;
  padding-inline: 0;
}

.school-intro {
  margin-inline: auto;
  max-width: 1320px;
  padding: 2.3rem 1rem 2.5rem;
}

.school-intro__eyebrow {
  color: var(--school-red);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.school-intro h2 {
  margin-bottom: 1rem;
  max-width: 50rem;
}

.school-intro p:not(.school-intro__eyebrow) {
  max-width: 64rem;
}

.school-intro .btn-primary {
  background: var(--school-green);
  border-color: var(--school-green);
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 1rem;
  text-decoration: none;
}

.school-intro .btn-primary:hover,
.school-intro .btn-primary:focus-visible {
  background: var(--school-red);
  border-color: var(--school-red);
}

.school-intro__partner {
  background: var(--school-green-dark);
  display: block;
  height: auto;
  margin-top: 1.5rem;
  max-width: min(100%, 630px);
  padding: 0.7rem;
}

.blog-items .blog-item,
.items-leading > div {
  border-bottom: 1px solid var(--school-line);
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
}

.article-info {
  color: var(--school-muted);
  font-size: 0.86rem;
}

.readmore .btn,
.pager a {
  border: 1px solid var(--school-green);
  border-radius: 4px;
  color: var(--school-green);
  font-weight: 700;
  text-decoration: none;
}

.service-links-module {
  border-top: 1px solid var(--school-line);
  margin-top: 2rem;
  padding-top: 1.8rem;
}

.itemid-101 .service-links-module {
  border: 0;
  margin: 0;
  padding: 0;
}

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

.service-link {
  background: #fff;
  border: 1px solid var(--school-line);
  border-radius: 6px;
  color: var(--school-ink);
  display: grid;
  grid-template-rows: 11rem auto;
  overflow: hidden;
  text-decoration: none;
}

.service-link img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.service-link span {
  border-top: 4px solid var(--school-gold);
  font-weight: 700;
  padding: 0.9rem 1rem;
}

.service-link:hover,
.service-link:focus-visible {
  border-color: var(--school-red);
  color: var(--school-red);
  transform: translateY(-2px);
}

.brand-header-module {
  background: #fff;
  width: 100%;
}

.container-header .container-below-top,
.container-header #mod-custom111 {
  width: 100%;
}

.brand-header {
  align-items: center;
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: minmax(15rem, 1fr) minmax(18rem, auto);
  margin-inline: auto;
  max-width: 1320px;
  padding: 1rem;
  width: 100%;
}

.brand-header__home {
  display: block;
}

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

.brand-header__home img {
  width: 28.8125rem;
}

.brand-header__contacts {
  color: var(--school-muted);
  display: grid;
  font-size: 0.88rem;
  gap: 0.25rem;
  justify-self: end;
  justify-items: end;
  line-height: 1.35;
  text-align: right;
}

.brand-header__contacts a {
  color: var(--school-ink);
}

.home-slider-module {
  display: block;
}

.hero-slider {
  background: #eee;
  height: min(26vw, 31.25rem);
  min-height: 20rem;
  overflow: hidden;
  position: relative;
}

.hero-slider__slide {
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 500ms ease;
  visibility: hidden;
}

.hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slider__slide img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.itemid-101 .container-top-a {
  display: grid;
  gap: 0;
}

.itemid-101 .container-top-a > .card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  max-width: 100%;
  min-width: 0;
}

.itemid-101 .container-top-a > .card > .card-body {
  padding: 0;
}

.itemid-101 .container-component {
  display: none;
}

.home-section {
  padding-block: 2.7rem;
}

.directions-section,
.home-notice,
.weekend-program,
.home-news,
.school-history {
  margin-inline: auto;
  max-width: var(--school-content-width);
  width: calc(100% - 2rem);
}

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

.home-section__title {
  font-size: 1.75rem;
  margin: 0 0 1.4rem;
}

.home-notice {
  margin-inline: auto;
  max-width: 68rem;
}

.home-notice__lead {
  font-size: 1.2rem;
  text-align: center;
}

.home-notice__specialty {
  border-left: 4px solid var(--school-red);
  margin-block: 1.5rem;
  padding-left: 1rem;
}

.home-notice__specialty h3 {
  color: var(--school-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
  text-transform: none;
}

.home-notice__meta {
  color: var(--school-muted);
  margin: 0 0 0.65rem;
}

.weekend-program {
  text-align: center;
}

.weekend-program__details {
  font-size: 1.05rem;
  margin-inline: auto;
  max-width: 60rem;
}

.weekend-program__image {
  display: block;
  height: auto;
  margin: 1.5rem auto 0;
  max-height: 38rem;
  max-width: 100%;
  object-fit: contain;
}

.graduates-showcase,
.applicant-showcase {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-inline: calc(50% - 50vw);
  max-width: 100vw;
  padding: 3.4rem max(1rem, calc((100vw - 1320px) / 2));
  position: relative;
  width: 100vw;
}

.graduates-showcase {
  background-image: url("/images/university/page-banners/xccd.jpg");
}

.graduates-showcase .home-section__title,
.applicant-showcase .home-section__title,
.applicant-showcase__link {
  text-shadow: 0 1px 4px #fff, 0 0 8px #fff;
}

.graduates-showcase__intro {
  margin: 0 auto 1.6rem;
  max-width: 70rem;
  text-align: center;
  text-shadow: 0 1px 3px #fff;
}

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

.graduate-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 4px;
  color: var(--school-ink);
  display: grid;
  grid-template-rows: 13rem auto;
  overflow: hidden;
  text-decoration: none;
}

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

.graduate-item__text {
  background: #fff;
  padding: 0.9rem 1rem 1rem;
}

.graduate-item__text strong {
  color: var(--school-red);
  display: block;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.graduate-item__text span {
  color: var(--school-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  text-shadow: 0 1px 3px #fff;
}

.graduate-item:hover,
.graduate-item:focus-visible {
  border-color: var(--school-red);
  color: var(--school-ink);
}

.applicant-showcase {
  background-image: url("/images/university/page-banners/bout2-min-min-min.jpg");
  min-height: 25rem;
  place-content: center;
  text-align: center;
}

.applicant-showcase__content {
  margin-inline: auto;
  max-width: 58rem;
  padding-block: 2rem;
}

.applicant-showcase__link {
  color: var(--school-red);
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.applicant-showcase__text {
  color: #fff;
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  text-shadow: 0 1px 4px #262626, 0 0 8px #262626;
}

.history-module {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.history-module .card-body {
  padding: 0;
}

.school-history {
  border-top: 1px solid var(--school-line);
  padding-block: 2.7rem 3.2rem;
}

.school-history__content {
  margin-inline: auto;
  max-width: 68rem;
}

.school-history__full[hidden] {
  display: none;
}

.school-history__full {
  animation: history-reveal 240ms ease-out;
}

.school-history__figure {
  margin: 1.75rem auto;
  max-width: 600px;
  text-align: center;
}

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

.school-history__figure figcaption {
  color: #5c5c5c;
  font-size: 0.9rem;
  margin-top: 0.45rem;
}

.school-history__footer {
  text-align: center;
}

.school-history__partner-link {
  display: block;
  margin: 1.5rem auto 0;
  max-width: 100%;
  width: 46rem;
}

.school-history__partner {
  background: #fff;
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.school-history__toggle {
  background: var(--school-red);
  border: 1px solid var(--school-red);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.25rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.4rem;
}

.school-history__toggle:hover,
.school-history__toggle:focus-visible {
  background: #fff;
  color: var(--school-red);
}

@keyframes history-reveal {
  from {
    opacity: 0;
    transform: translateY(-0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .school-history__full {
    animation: none;
  }
}

.bottom-a.card.home-news-module {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin-top: 1rem;
}

.home-news-module .card-body {
  padding: 0;
}

.home-news {
  border-top: 1px solid var(--school-line);
  max-width: 68rem;
  padding-block: 2rem 3rem;
}

.home-news__header {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.home-news__header h2,
.news-blog__header h1 {
  margin: 0;
}

.home-news__header a {
  color: var(--school-ink);
  text-decoration-color: var(--school-gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.24em;
}

.home-news__header a:hover,
.home-news__header a:focus-visible {
  color: var(--school-red);
}

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

.news-preview {
  background: #fff;
  border: 1px solid var(--school-line);
  border-radius: 4px;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr) 15rem;
  min-height: 12rem;
  overflow: hidden;
  padding: 1.2rem;
}

.news-preview:not(.news-preview--with-image) {
  grid-template-columns: minmax(0, 1fr);
}

.news-preview__content {
  min-width: 0;
}

.news-preview__date {
  color: var(--school-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.news-preview__title {
  font-size: 1.22rem;
  margin: 0 0 0.65rem;
}

.news-preview__title a {
  color: var(--school-ink);
  text-decoration: none;
}

.news-preview__title a:hover,
.news-preview__title a:focus-visible {
  color: var(--school-red);
  text-decoration: underline;
  text-decoration-color: var(--school-gold);
  text-underline-offset: 0.18em;
}

.news-preview__excerpt {
  color: var(--school-muted);
  line-height: 1.55;
  margin: 0;
}

.news-preview__media {
  align-self: stretch;
  background: var(--school-surface);
  border-radius: 3px;
  display: block;
  min-height: 9.5rem;
  overflow: hidden;
}

.news-preview__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
  width: 100%;
}

.news-preview__media:hover img,
.news-preview__media:focus-visible img {
  transform: scale(1.025);
}

/* Full article lead image: compact on desktop, stacked on small screens. */
.com-content-article.item-page > figure.item-image {
  aspect-ratio: 3 / 2;
  float: left !important;
  margin: 0.25rem 1.5rem 0.85rem 0 !important;
  max-width: 15rem;
  overflow: hidden;
  width: min(15rem, 38%);
}

.com-content-article.item-page > figure.item-image img {
  border-radius: 3px;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.com-content-article.item-page > .com-content-article__body > p:has(> img:first-child:not(.emoji)),
.com-content-article.item-page > .com-content-article__body > figure {
  clear: both;
}

.com-content-article.item-page > .com-content-article__body > p > img:first-child:not(.emoji),
.com-content-article.item-page > .com-content-article__body > figure > img {
  display: block;
  height: auto;
  margin: 1rem auto !important;
  max-width: 100%;
}

/* Preserve readable spacing for legacy article images with inline text wrapping. */
.com-content-article.item-page > .com-content-article__body > p > img:first-child:not(.emoji)[style*="float: left"],
.com-content-article.item-page > .com-content-article__body > p > img:first-child:not(.emoji)[style*="float:left"],
.com-content-article.item-page > .com-content-article__body a > img[style*="float: left"],
.com-content-article.item-page > .com-content-article__body a > img[style*="float:left"] {
  margin: 0.5rem 1.25rem 0.75rem 0 !important;
}

.com-content-article.item-page > .com-content-article__body > p > img:first-child:not(.emoji)[style*="float: right"],
.com-content-article.item-page > .com-content-article__body > p > img:first-child:not(.emoji)[style*="float:right"],
.com-content-article.item-page > .com-content-article__body a > img[style*="float: right"],
.com-content-article.item-page > .com-content-article__body a > img[style*="float:right"] {
  margin: 0.5rem 0 0.75rem 1.25rem !important;
}

.com-content-article.item-page > .com-content-article__body::after {
  clear: both;
  content: "";
  display: block;
}

.news-blog__header {
  border-bottom: 3px solid var(--school-gold);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
}

.news-preview-list--archive .news-preview {
  min-height: 13rem;
}

.news-blog__pagination {
  margin-top: 1.5rem;
}

.container-sidebar-right .card,
.container-sidebar-right .moduletable {
  border: 0;
  border-left: 3px solid var(--school-gold);
  border-radius: 0;
  box-shadow: none;
  padding-left: 1rem;
}

.container-sidebar-right .card-header,
.container-sidebar-right .moduletable > h3 {
  background: transparent;
  border: 0;
  color: var(--school-ink);
  font-size: 1.05rem;
  padding: 0 0 0.65rem;
}

.section-menu .mod-menu {
  display: block;
}

.section-menu .mod-menu a {
  border-bottom: 1px solid var(--school-line);
  color: var(--school-ink);
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
  padding: 0.6rem 0;
  text-decoration: none;
}

.section-menu .mod-menu .active > a,
.section-menu .mod-menu a:hover,
.section-menu .mod-menu a:focus-visible {
  color: var(--school-red);
}

.media-gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-summary {
  margin-bottom: 1.25rem;
  max-width: 28rem;
}

.gallery-summary img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--school-line);
  border-radius: 4px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.gallery-summary p {
  color: var(--school-muted);
  font-size: 0.9rem;
  margin: 0.45rem 0 0;
}

.media-gallery__item {
  aspect-ratio: 4 / 3;
  background: var(--school-surface);
  border: 1px solid var(--school-line);
  border-radius: 4px;
  display: block;
  overflow: hidden;
}

.media-gallery__item img {
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
  width: 100%;
}

.media-gallery__item:hover img,
.media-gallery__item:focus-visible img {
  transform: scale(1.025);
}

iframe.video-embed,
.video-embed iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.pdf-embed object {
  border: 1px solid var(--school-line);
  height: 70vh;
  min-height: 32rem;
  width: 100%;
}

img,
video {
  height: auto;
  max-width: 100%;
}

.table-responsive,
.contact-page {
  overflow-wrap: anywhere;
}

table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.container-footer {
  background: var(--school-green-dark);
  background-image: none;
  border-top: 5px solid var(--school-gold);
  color: #fff;
  margin-top: 0;
  position: relative;
}

.container-footer a {
  color: #fff;
}

.container-footer .mod-custom {
  position: static;
}

.site-footer-layout {
  display: block;
  width: 100%;
}

.site-footer-info {
  display: grid;
  gap: 0.25rem;
  line-height: 1.45;
  padding-block: 0.5rem;
}

.site-footer-metrika {
  margin-top: 0.75rem;
  width: max-content;
}

.site-footer-metrika__link,
.site-footer-metrika__image {
  display: block;
}

.site-footer-metrika__link {
  background: #fff;
  border: 2px solid #fff;
  border-radius: 2px;
  line-height: 0;
}

.site-footer-metrika__image {
  border: 0;
  height: 31px;
  width: 88px;
}

@media (min-width: 992px) {
  .site-footer-metrika {
    margin: 0;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    z-index: 1;
  }
}

.back-to-top-link {
  background: var(--school-green);
  border-color: #fff;
  border-radius: 4px;
}

@media (max-width: 1199.98px) {
  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > button,
  .container-header .mod-menu > li > .mod-menu__heading {
    font-size: 0.98rem;
    padding-inline: 0.55rem;
  }

  .media-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) and (max-width: 1279.98px) {
  .container-header .navbar-expand-lg {
    flex-wrap: wrap;
  }

  .container-header .navbar-expand-lg .navbar-toggler {
    border: 1px solid var(--school-red);
    border-radius: 4px;
    color: var(--school-red);
    display: block;
    height: 2.75rem;
    width: 2.75rem;
  }

  .container-header .navbar-expand-lg .navbar-collapse {
    display: none !important;
    flex-basis: 100%;
  }

  .container-header .navbar-expand-lg .navbar-collapse.show {
    display: block !important;
  }

  .container-header .navbar-expand-lg .mod-menu {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

@media (min-width: 1280px) {
  .container-header .mod-menu {
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
  }

  .container-header .mod-menu > li,
  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > button,
  .container-header .mod-menu > li > .mod-menu__heading {
    min-width: 0;
    white-space: nowrap;
  }

  .container-header .metismenu.mod-menu > li.level-1.deeper > .mm-toggler {
    display: none;
  }

  .container-header .metismenu.mod-menu > li.level-1.deeper:hover > .mm-collapse,
  .container-header .metismenu.mod-menu > li.level-1.deeper:focus-within > .mm-collapse {
    display: block;
  }

  .container-header .metismenu.mod-menu > li.item-101 > .mm-collapse {
    max-width: calc(100vw - 2rem);
    padding: 0.65rem 1.1rem;
    width: 28rem;
  }

  .container-header .metismenu.mod-menu > li.item-101 > .mm-collapse > li {
    border-bottom: 1px solid var(--school-line);
    width: 100%;
  }

  .container-header .metismenu.mod-menu > li.item-101 > .mm-collapse > li > a {
    overflow-wrap: normal;
    white-space: nowrap;
  }

  .container-header .metismenu.mod-menu > li.item-101 > .mm-collapse > li:last-child {
    border-bottom: 0;
  }

  .container-header .mod-menu > li.active > a {
    transform: scale(1.1);
    transform-origin: center;
  }
}

@media (max-width: 991.98px) {
  h1,
  .h1 {
    font-size: 1.85rem;
  }

  h2,
  .h2 {
    font-size: 1.45rem;
  }

  .contact-strip {
    justify-content: flex-start;
  }

  .container-header .navbar-brand {
    max-width: calc(100% - 4.5rem);
  }

  .container-header .navbar-brand .brand-logo,
  .container-header .navbar-brand .brand-logo span {
    font-size: 1.25rem;
  }

  .container-header .navbar-toggler {
    border: 1px solid var(--school-red);
    border-radius: 4px;
    color: var(--school-red);
    height: 2.75rem;
    width: 2.75rem;
  }

  .container-header .navbar-collapse {
    padding-bottom: 0.75rem;
  }

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > button,
  .container-header .mod-menu > li > .mod-menu__heading {
    font-size: 0.92rem;
    min-height: 2.8rem;
    padding-inline: 0.75rem;
  }

  .container-header .mod-menu > li.active > a {
    font-size: 1.012rem;
  }

  .container-header .metismenu.mod-menu .mm-collapse {
    border: 0;
    border-left: 2px solid var(--school-gold);
    border-radius: 0;
    box-shadow: none;
    margin-left: 0.75rem;
    min-width: 0;
  }

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

  .hero-slider {
    height: 23rem;
  }

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

@media (max-width: 767.98px) {
  .site-footer-metrika {
    margin-top: 0.75rem;
  }

  .com-content-article.item-page > figure.item-image {
    float: none !important;
    margin: 0 0 1rem !important;
    max-width: 100%;
    width: 100%;
  }

  .com-content-article.item-page > .com-content-article__body > p > img:first-child:not(.emoji)[style*="float"],
  .com-content-article.item-page > .com-content-article__body a > img[style*="float"] {
    float: none !important;
    margin: 1rem auto !important;
  }

  .home-section__title,
  .home-news__header h2,
  .news-blog__header h1 {
    font-size: 1.3rem;
    max-width: 100%;
    padding-inline: 1rem;
  }

  .contact-strip {
    align-items: flex-start;
    display: grid;
    gap: 0.25rem;
    padding-block: 0.65rem;
  }

  .brand-header {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-block: 0.85rem;
  }

  .brand-header__home img {
    width: min(100%, 28.8125rem);
  }

  .brand-header__contacts {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    justify-items: end;
    justify-self: stretch;
    text-align: right;
    width: 100%;
  }

  .hero-slider {
    height: 20rem;
    min-height: 0;
  }

  .hero-slider__slide img {
    object-position: center;
  }

  .home-section {
    padding-block: 2rem;
  }

  .graduates-showcase,
  .applicant-showcase {
    background-attachment: scroll;
    padding-block: 2.5rem;
  }

  .graduate-item {
    grid-template-rows: 11rem auto;
  }

  .contact-strip a {
    white-space: normal;
  }

  .school-intro {
    padding-block: 1.6rem 1.8rem;
  }

  .service-links,
  .media-gallery {
    grid-template-columns: 1fr;
  }

  .brand-header__contacts,
  .graduate-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    height: 15rem;
  }

  .service-link {
    grid-template-rows: 8rem auto;
  }

  .pdf-embed object {
    min-height: 24rem;
  }

  .news-preview {
    gap: 0.9rem;
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .news-preview__media {
    aspect-ratio: 16 / 9;
    grid-row: 1;
    min-height: 0;
  }
}

@media (max-width: 479.98px) {
  .container-header .navbar-brand .brand-logo,
  .container-header .navbar-brand .brand-logo span {
    font-size: 1.08rem;
  }

  .container-header .site-description {
    font-size: 0.82rem;
  }

  .service-links,
  .media-gallery {
    grid-template-columns: 1fr;
  }

  .media-gallery__item {
    aspect-ratio: 3 / 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
