/* CSS section: design tokens and reset */
:root {
  --color-primary-900: #0b3558;
  --color-primary-800: #0d4670;
  --color-primary-700: #075f86;
  --color-primary-500: #0096cf;
  --color-primary-100: #d9f1fa;
  --color-primary-050: #eaf7fc;
  --color-accent-500: #f4b400;
  --color-accent-100: #fff3c4;
  --color-canvas: #f6fafc;
  --color-surface: #ffffff;
  --color-text: #142231;
  --color-text-muted: #526476;
  --color-border: #c9dce7;
  --color-focus: #075f86;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(11, 53, 88, 0.08);
  --shadow-md: 0 12px 30px rgba(11, 53, 88, 0.12);
  --shadow-lg: 0 24px 64px rgba(11, 53, 88, 0.16);
  --shadow-layered: 0 2px 6px rgba(11, 53, 88, 0.08), 0 18px 44px rgba(11, 53, 88, 0.14);
  --gradient-brand: linear-gradient(135deg, #0b3558 0%, #075f86 58%, #0096cf 100%);
  --gradient-soft: linear-gradient(180deg, #ffffff 0%, #eaf7fc 100%);
  --motion-fast: 180ms ease;
  --motion-base: 260ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body.home-v2 {
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text);
  background:
    radial-gradient(circle at 8% 10%, rgba(0, 150, 207, 0.16), transparent 28%),
    radial-gradient(circle at 92% 34%, rgba(244, 180, 0, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fcfe 0%, #edf8fc 52%, #f8fcfe 100%);
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.home-v2.is-locked {
  overflow: hidden;
}

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

.home-v2 a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.home-v2 button,
.home-v2 input {
  font: inherit;
}

.home-v2 button,
.home-v2 a {
  touch-action: manipulation;
}

.home-v2 button {
  cursor: pointer;
}

.home-v2 :focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.home-v2 [hidden] {
  display: none !important;
}

/* CSS section: shared layout helpers */
.section-shell {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--color-primary-900);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform var(--motion-fast);
}

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

/* CSS section: utility contact bar */
.utility-bar {
  color: #ffffff;
  background-color: #078fc6;
  background-image: url('/share/images/site/bgr1.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 1920px auto;
  box-shadow: 0 8px 22px rgba(11, 53, 88, 0.16);
}

.utility-bar__inner {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  min-height: 44px;
  margin-inline: auto;
}

.utility-contact,
.utility-contact table,
.utility-contact tbody,
.utility-contact tr {
  width: 100% !important;
  min-height: 44px;
}

.utility-contact table {
  border-collapse: collapse;
}

.utility-contact tr {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(18px, 4vw, 44px);
}

.utility-contact td {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: 0.86rem !important;
  text-shadow: 0 1px 2px rgba(0, 49, 88, 0.55);
  white-space: nowrap;
}

.utility-contact td:last-child {
  display: none;
}

.utility-contact img {
  width: 20px !important;
  height: 20px !important;
  margin-right: 8px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.utility-contact a {
  color: #ffffff !important;
  text-decoration: none;
}

.utility-contact a:hover {
  text-decoration: underline;
}

/* CSS section: institutional header */
.site-header {
  position: relative;
  z-index: 30;
  width: 100%;
  margin: -1px auto 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  border-bottom: 1px solid rgba(201, 220, 231, 0.82);
  border-radius: 0;
  box-shadow: var(--shadow-layered);
}

.site-header__brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 126px;
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  padding: 18px 0 12px;
  margin-inline: auto;
  gap: 22px;
}

.school-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 26px);
  min-width: 0;
  color: var(--color-primary-900) !important;
  text-decoration: none;
}

.school-brand__crest {
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(11, 53, 88, 0.14));
}

.school-brand__name {
  display: grid;
  max-width: 900px;
  font-family: Georgia, serif;
  font-size: clamp(1.2rem, 2.05vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.school-brand__name > span {
  display: block;
  white-space: nowrap;
}

.innovation-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 124px;
  min-width: 124px;
  min-height: 124px;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}

.innovation-badge:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.innovation-badge img {
  width: 108px;
  height: 108px;
  object-fit: contain;
}

.icon-button,
.carousel-button,
.small-carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--color-primary-800);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: color var(--motion-fast), background-color var(--motion-fast), transform var(--motion-fast), box-shadow var(--motion-fast);
}

.icon-button:hover,
.carousel-button:hover,
.small-carousel-button:hover {
  color: #ffffff;
  background: var(--color-primary-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.icon-button svg,
.carousel-button svg,
.small-carousel-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-menu-button {
  display: none;
}

/* CSS section: primary navigation */
.primary-navigation {
  border-top: 1px solid rgba(201, 220, 231, 0.62);
}

.primary-navigation__mobile-head {
  display: none;
}

.primary-navigation__list,
.navigation-submenu,
.navigation-submenu ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation__list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  min-height: 58px;
  padding-inline: 16px;
  margin-inline: auto;
}

.primary-navigation__item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.primary-navigation__item-row {
  display: flex;
  align-items: stretch;
}

.primary-navigation__item-row > a,
.primary-navigation__item > a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 4px clamp(10px, 1.45vw, 20px);
  color: var(--color-primary-900);
  font-size: clamp(0.71rem, 0.9vw, 0.84rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-navigation__item-row > a::after,
.primary-navigation__item > a::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  background: var(--color-accent-500);
  border-radius: var(--radius-pill);
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity var(--motion-fast), transform var(--motion-fast);
}

.primary-navigation__item:hover > .primary-navigation__item-row > a::after,
.primary-navigation__item:hover > a::after,
.primary-navigation__item.is-current > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-height: 58px;
  padding: 0;
  margin-left: -10px;
  color: var(--color-primary-700);
  background: transparent;
  border: 0;
}

.submenu-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--motion-fast);
}

.primary-navigation__item:hover > .navigation-submenu,
.primary-navigation__item:focus-within > .navigation-submenu,
.primary-navigation__item.is-open > .navigation-submenu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.primary-navigation__item.is-open .submenu-toggle svg {
  transform: rotate(180deg);
}

.navigation-submenu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  z-index: 60;
  visibility: hidden;
  width: min(360px, 84vw);
  padding: 10px;
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: visibility var(--motion-fast), opacity var(--motion-fast), transform var(--motion-fast);
}

.primary-navigation__item:nth-last-child(-n + 3) .navigation-submenu {
  right: 0;
  left: auto;
}

.navigation-submenu a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.navigation-submenu a:hover,
.navigation-submenu a:focus-visible {
  color: var(--color-primary-900);
  background: var(--color-primary-050);
}

.navigation-submenu ul {
  padding-left: 14px;
  border-left: 2px solid var(--color-primary-100);
}

/* CSS section: shared buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--motion-fast), background-color var(--motion-fast), transform var(--motion-fast), box-shadow var(--motion-fast);
}

.button--primary {
  color: #ffffff;
  background: var(--color-primary-700);
  border: 2px solid var(--color-primary-700);
}

.button--secondary {
  color: var(--color-primary-700);
  background: #ffffff;
  border: 2px solid var(--color-primary-700);
}

.button:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.button--secondary:hover {
  color: #ffffff;
  background: var(--color-primary-700);
}

/* CSS section: main image carousel */
.main-carousel {
  position: relative;
  margin-bottom: 0;
}

.main-carousel__viewport {
  position: relative;
  overflow: hidden;
  min-height: clamp(248px, 29vw, 410px);
  background: var(--color-primary-900);
  border: 1px solid rgba(11, 53, 88, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-layered);
}

.main-carousel__viewport::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 21, 36, 0.34), transparent 18%, transparent 82%, rgba(2, 21, 36, 0.34));
  content: "";
}

.main-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 420ms ease, transform 650ms ease;
}

.main-carousel__slide.is-active {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.main-carousel__slide img {
  width: 100%;
  height: clamp(248px, 29vw, 410px);
  object-fit: cover;
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
}

.carousel-button:hover {
  transform: translateY(calc(-50% - 2px));
}

.carousel-button--previous {
  left: 18px;
}

.carousel-button--next {
  right: 18px;
}

.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 8;
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  gap: 7px;
  background: rgba(7, 95, 134, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.carousel-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transition: background-color var(--motion-fast), transform var(--motion-fast);
}

.carousel-dot.is-active {
  background: var(--color-accent-500);
  transform: scale(1.12);
}

/* CSS section: quick links */
.quick-links {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  margin-top: -1px;
  padding: 20px clamp(12px, 3vw, 36px) 28px;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(234, 247, 252, 0.64));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.quick-links__viewport {
  display: grid;
  grid-auto-columns: calc((100% - 70px) / 6);
  grid-auto-flow: column;
  min-width: 0;
  padding: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.quick-links__viewport::-webkit-scrollbar {
  display: none;
}

.quick-links__viewport:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.quick-links__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--color-primary-700);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: opacity var(--motion-fast), transform var(--motion-fast), box-shadow var(--motion-fast);
}

.quick-links__control:hover:not(:disabled) {
  color: var(--color-primary-900);
  box-shadow: none;
  transform: translateX(2px);
}

.quick-links__control--previous:hover:not(:disabled) {
  transform: translateX(-2px);
}

.quick-links__control:disabled {
  cursor: default;
  opacity: 0.2;
  box-shadow: none;
}

.quick-links__control svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-links__progress {
  display: none;
  grid-column: 2;
  height: 4px;
  overflow: hidden;
  background: var(--color-primary-100);
  border-radius: var(--radius-pill);
}

.quick-links__progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-500), var(--color-primary-500));
  border-radius: inherit;
  transition: transform var(--motion-base);
}

.quick-link-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  min-height: 166px;
  padding: 20px 14px 14px;
  overflow: hidden;
  color: var(--color-primary-900) !important;
  background: linear-gradient(145deg, #ffffff 0%, #f6fbfe 100%);
  border: 1px solid rgba(201, 220, 231, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: transform var(--motion-base), box-shadow var(--motion-base), border-color var(--motion-base);
  scroll-snap-align: start;
}

.quick-link-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-primary-500), var(--color-accent-500));
  content: "";
}

.quick-link-card:hover {
  border-color: rgba(0, 150, 207, 0.42);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.quick-link-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  color: #ffffff;
  background: var(--gradient-brand);
  border: 5px solid #edf8fc;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(7, 95, 134, 0.2);
}

.quick-link-card__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-link-card__arrow {
  margin-top: 10px;
  color: var(--color-primary-500);
  font-size: 1.5rem;
  font-weight: 400;
}

/* CSS section: protected history content */
.history-section {
  position: relative;
  padding: clamp(24px, 4vw, 52px);
  margin-top: 24px;
  margin-bottom: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(244, 180, 0, 0.12), transparent 27%),
    radial-gradient(circle at 86% 82%, rgba(0, 150, 207, 0.16), transparent 31%),
    var(--gradient-soft);
  border: 1px solid rgba(201, 220, 231, 0.86);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-layered);
}

.history-section::before,
.history-section::after {
  position: absolute;
  width: 240px;
  height: 240px;
  pointer-events: none;
  border: 1px solid rgba(0, 150, 207, 0.14);
  border-radius: 50%;
  content: "";
}

.history-section::before {
  top: -130px;
  right: -70px;
}

.history-section::after {
  right: 40px;
  bottom: -190px;
}

.history-section__content,
.history-section__more {
  position: relative;
  z-index: 2;
}

.history-section .is-section,
.history-section .is-boxes,
.history-section .is-box,
.history-section .is-box-centered,
.history-section .is-container,
.history-section .row,
.history-section .col-md-12 {
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.history-section > .history-section__content > .is-wrapper > .is-section > .is-boxes,
.history-section > .history-section__content > .is-section > .is-boxes {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.72fr);
  align-items: stretch;
  gap: clamp(28px, 5vw, 68px);
}

.history-section .is-box-img {
  position: relative;
  min-height: 520px !important;
}

.history-section .is-box-img::before {
  position: absolute;
  inset: 18px -12px -18px 12px;
  z-index: 0;
  background: linear-gradient(145deg, rgba(244, 180, 0, 0.32), rgba(0, 150, 207, 0.12));
  border-radius: var(--radius-lg);
  content: "";
  transform: rotate(-1.2deg);
}

.history-section .is-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  background: #e5dac3;
  border: 5px solid #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.history-section .is-overlay-bg {
  position: absolute;
  inset: 0;
  background-position: 50% 30% !important;
  background-repeat: no-repeat;
  background-size: cover;
  filter: sepia(0.12) contrast(1.02);
}

.history-section .is-box:not(.is-box-img) {
  display: flex;
  align-items: center;
}

.history-section h1,
.history-section h2.size-48 {
  max-width: 20ch;
  margin: 8px 0 28px !important;
  color: var(--color-primary-900) !important;
  font-family: Georgia, serif !important;
  font-size: clamp(1.75rem, 3vw, 2.85rem) !important;
  font-weight: 700;
  line-height: 1.14;
}

.history-section p {
  max-width: 68ch;
  margin: 0 0 8px !important;
  color: var(--color-text) !important;
  font-family: Arial, sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.72;
  text-align: left !important;
}

.history-section p:first-of-type {
  margin-bottom: 12px !important;
  color: #b47900 !important;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem) !important;
  font-weight: 700;
  line-height: 1.2;
}

.history-section .spacer {
  display: none;
}

.history-section link {
  display: none;
}

.history-section__more {
  margin-top: 22px;
  margin-left: calc(31% + clamp(28px, 5vw, 68px));
}

/* CSS section: section headings */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 20px;
  gap: 18px;
  border-bottom: 1px solid rgba(201, 220, 231, 0.76);
}

.section-heading h2 {
  position: relative;
  margin: 0;
  color: var(--color-primary-900);
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.25;
}

.section-heading h2::after {
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--color-accent-500);
  border-radius: var(--radius-pill);
  content: "";
}

.section-heading > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--color-primary-700);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.section-heading > a:hover {
  text-decoration: underline;
}

.section-heading--standalone {
  min-height: 54px;
  padding: 0;
  border-bottom: 0;
}

.section-heading--standalone h2 {
  font-family: Arial, sans-serif;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  text-transform: uppercase;
}

.section-heading--standalone h2::after {
  bottom: -9px;
}

/* CSS section: announcements and news */
.news-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
  gap: 20px;
}

.news-panel {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(201, 220, 231, 0.84);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.news-panel::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  content: "";
}

.news-panel--announcements {
  background:
    radial-gradient(circle at 0 0, rgba(0, 150, 207, 0.2), transparent 36%),
    linear-gradient(145deg, #ffffff 22%, #e7f7fd 100%);
  border-color: rgba(0, 150, 207, 0.34);
}

.news-panel--news {
  background:
    radial-gradient(circle at 100% 0, rgba(244, 180, 0, 0.24), transparent 38%),
    linear-gradient(145deg, #ffffff 22%, #fff2c9 100%);
  border-color: rgba(244, 180, 0, 0.42);
}

.news-panel--announcements::before {
  background: linear-gradient(180deg, var(--color-primary-500), var(--color-primary-700));
}

.news-panel--news::before {
  background: linear-gradient(180deg, var(--color-accent-500), #dc8b00);
}

.news-panel--announcements .section-heading {
  background: linear-gradient(90deg, rgba(0, 150, 207, 0.12), rgba(255, 255, 255, 0.32));
}

.news-panel--news .section-heading {
  background: linear-gradient(90deg, rgba(244, 180, 0, 0.14), rgba(255, 255, 255, 0.34));
}

.news-panel--announcements .news-list__icon {
  color: #ffffff;
  background: var(--gradient-brand);
  box-shadow: 0 8px 18px rgba(7, 95, 134, 0.18);
}

.news-panel--news .news-list__icon {
  color: var(--color-primary-900);
  background: linear-gradient(145deg, #ffd866, var(--color-accent-500));
  box-shadow: 0 8px 18px rgba(138, 90, 0, 0.14);
}

.news-list {
  padding: 6px 20px 16px;
  margin: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 74px;
  gap: 14px;
  border-bottom: 1px solid rgba(201, 220, 231, 0.68);
}

.news-list li:last-child {
  border-bottom: 0;
}

.news-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-primary-700);
  background: var(--color-primary-050);
  border-radius: var(--radius-sm);
}

.news-list__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-list a {
  display: grid;
  align-content: center;
  min-height: 58px;
  color: var(--color-primary-900);
  text-decoration: none;
}

.news-list a:hover strong {
  text-decoration: underline;
}

.news-list strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.91rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-list a span {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.news-list li > span:last-child {
  color: var(--color-primary-500);
  font-size: 1.5rem;
}

/* CSS section: useful information */
.useful-information {
  margin-bottom: 28px;
}

.useful-information__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  margin-top: 18px;
  gap: 16px;
}

.useful-card {
  height: 100%;
  min-height: 226px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(201, 220, 231, 0.84);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--motion-base), box-shadow var(--motion-base);
}

.useful-card:nth-child(2) {
  transform: none;
}

.useful-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.useful-card:nth-child(2):hover {
  transform: translateY(-3px);
}

.useful-card__title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.useful-card__title--link {
  min-height: 88px;
  text-decoration: none;
}

.useful-card__title--link > span:last-child {
  margin-left: auto;
  color: var(--color-primary-500);
  font-size: 1.6rem;
}

.useful-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  color: var(--color-primary-700);
  background: var(--color-primary-050);
  border-radius: var(--radius-md);
}

.useful-card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.useful-card h3 {
  margin: 0;
  color: var(--color-primary-900);
  font-size: 1.1rem;
  line-height: 1.3;
}

.useful-card ul {
  padding: 10px 0 0;
  margin: 0;
  list-style: none;
}

.useful-card li {
  border-top: 1px solid rgba(201, 220, 231, 0.68);
}

.useful-card li:first-child {
  border-top: 0;
}

.useful-card li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  color: var(--color-text);
  font-size: 0.86rem;
  line-height: 1.35;
  text-decoration: none;
}

.useful-card li a:hover {
  color: var(--color-primary-700);
  text-decoration: underline;
}

.useful-card li a span {
  color: var(--color-primary-500);
  font-size: 1.4rem;
}

/* CSS section: latest article carousel */
.latest-section {
  padding-bottom: 52px;
}

.latest-section__heading {
  margin-bottom: 18px;
}

.latest-section__controls {
  display: flex;
  gap: 8px;
}

.small-carousel-button {
  width: 44px;
  height: 44px;
}

.latest-carousel {
  display: grid;
  grid-auto-columns: calc((100% - 48px) / 4);
  grid-auto-flow: column;
  overflow-x: auto;
  gap: 16px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.latest-carousel::-webkit-scrollbar {
  display: none;
}

.latest-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(201, 220, 231, 0.82);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  scroll-snap-align: start;
  transition: transform var(--motion-base), box-shadow var(--motion-base);
}

.latest-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.latest-card__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-primary-100);
}

.latest-card__image::after {
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background: linear-gradient(transparent, rgba(4, 43, 71, 0.55));
  content: "";
}

.latest-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.latest-card:hover .latest-card__image img {
  transform: scale(1.035);
}

.latest-card__content {
  display: grid;
  align-content: start;
  min-height: 164px;
  padding: 16px;
}

.latest-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.latest-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-primary-900);
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.latest-card time {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.latest-card__more {
  align-self: end;
  min-height: 44px;
  margin-top: 12px;
  color: var(--color-primary-700) !important;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 44px;
  text-decoration: none;
}

.latest-card__more:hover {
  text-decoration: underline;
}

.latest-progress {
  display: none;
  height: 4px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--color-primary-100);
  border-radius: var(--radius-pill);
}

.latest-progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-500), var(--color-primary-500));
  border-radius: inherit;
  transition: transform var(--motion-base);
}

/* CSS section: complete institutional footer */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 42px;
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(90deg, rgba(7, 35, 55, 0.58), rgba(12, 78, 105, 0.38), rgba(7, 35, 55, 0.56)),
    url('/share/images/site/down-bgr.jpg') center top / cover no-repeat;
  box-shadow: 0 -16px 44px rgba(11, 53, 88, 0.14);
}

.site-footer::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 24, 37, 0.02) 0%, rgba(5, 24, 37, 0.08) 62%, rgba(4, 20, 32, 0.52) 100%);
  content: "";
}

.site-footer__wave {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 24px;
  background: var(--color-canvas);
  border-bottom: 4px solid rgba(244, 180, 0, 0.92);
  border-radius: 0 0 50% 50%;
}

.site-footer__inner,
.site-footer__legal {
  position: relative;
  z-index: 2;
}

.site-footer__inner {
  display: grid;
  grid-template-areas: "navigation brand contact";
  grid-template-columns: 1.12fr 0.86fr 1fr;
  padding-top: 10px;
  padding-bottom: 20px;
  gap: clamp(24px, 4vw, 50px);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.site-footer__brand {
  display: grid;
  grid-area: brand;
  grid-template-columns: 1fr;
  align-content: start;
  align-items: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.site-footer__brand > img:first-child {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.34));
}

.site-footer__brand strong {
  font-family: Georgia, serif;
  font-size: 0.86rem;
  line-height: 1.35;
}

.site-footer__innovation {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.footer-navigation {
  display: grid;
  grid-area: navigation;
  grid-template-columns: 1fr;
  gap: 0;
}

.footer-navigation a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

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

.site-footer__contact h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1rem;
  text-transform: uppercase;
}

.site-footer__contact {
  grid-area: contact;
}

.site-footer__contact,
.site-footer__contact p,
.site-footer__contact td,
.site-footer__contact span {
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 0.82rem !important;
  line-height: 1.5;
}

.site-footer__contact p {
  margin: 0;
}

.site-footer__contact a {
  color: #ffffff !important;
}

.site-footer__contact table {
  width: 100%;
  margin-top: 8px;
}

.site-footer__contact img {
  max-width: 42px;
  height: auto;
}

.site-footer__legal {
  display: grid;
  grid-template-columns: 1fr auto;
  padding-top: 12px;
  padding-bottom: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  gap: 5px 24px;
  font-size: 0.72rem;
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal a {
  color: #ffffff;
}

.site-footer__dpo,
.site-footer__violations {
  grid-column: 1 / -1;
  max-width: 118ch;
  color: rgba(255, 255, 255, 0.76);
}

.cookie-preferences-button {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 44px;
  padding: 8px 16px;
  gap: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

.cookie-preferences-button:hover {
  color: var(--color-primary-900);
  background: #ffffff;
}

.cookie-preferences-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* CSS section: cookie preferences dialog */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 53, 88, 0.76);
  backdrop-filter: blur(8px);
}

.preferences-dialog {
  width: min(560px, 100%);
  max-height: calc(100dvh - 40px);
  padding: clamp(22px, 5vw, 38px);
  overflow-y: auto;
  color: var(--color-text);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.preferences-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  color: var(--color-primary-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preferences-dialog h2 {
  margin: 4px 0 10px;
  color: var(--color-primary-900);
  font-family: Georgia, serif;
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 0;
  gap: 16px;
  border-top: 1px solid var(--color-border);
}

.preference-row span {
  display: grid;
}

.preference-row small {
  color: var(--color-text-muted);
}

.preference-row input {
  width: 24px;
  height: 24px;
  accent-color: var(--color-primary-700);
}

/* CSS section: tablet layout */
@media (max-width: 1080px) {
  .site-header__brand-row {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 108px;
  }

  .school-brand__crest {
    width: 84px;
    height: 84px;
    flex-basis: 84px;
  }

  .school-brand__name {
    font-size: clamp(1rem, 2.3vw, 1.65rem);
  }

  .innovation-badge {
    width: 92px;
    height: 92px;
    min-width: 92px;
    min-height: 92px;
    padding: 6px;
  }

  .innovation-badge img {
    width: 80px;
    height: 80px;
  }

  .primary-navigation__item-row > a,
  .primary-navigation__item > a {
    padding-inline: 10px;
    font-size: 0.67rem;
  }

  .quick-links__viewport {
    grid-auto-columns: calc((100% - 28px) / 3);
  }

  .quick-link-card {
    min-height: 144px;
  }

  .latest-carousel {
    grid-auto-columns: calc((100% - 32px) / 3);
  }

  .site-footer__inner {
    grid-template-areas:
      "navigation brand"
      "contact contact";
    grid-template-columns: 1.2fr 0.8fr;
  }

  .site-footer__contact {
    grid-column: auto;
  }
}

/* CSS section: mobile header and responsive layout */
@media (max-width: 820px) {
  :root {
    --gutter: clamp(14px, 4.2vw, 24px);
  }

  .utility-contact tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    padding-block: 5px;
    gap: 2px 14px;
  }

  .utility-contact td {
    justify-content: center;
    min-height: 30px;
    margin: 0 !important;
    font-size: 0.74rem !important;
    white-space: normal;
  }

  .utility-contact td:first-child {
    display: none;
  }

  .utility-contact td:last-child {
    display: none;
  }

  .site-header {
    z-index: 50;
    margin-bottom: 16px;
    border-radius: 0;
  }

  .site-header__brand-row {
    grid-template-columns: 44px minmax(0, 1fr);
    width: 100%;
    min-height: 102px;
    padding: 10px var(--gutter);
    gap: 10px 8px;
  }

  .school-brand {
    gap: 12px;
  }

  .school-brand__crest {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .school-brand__name {
    font-family: Arial, sans-serif;
    font-size: clamp(0.72rem, 3.2vw, 1.05rem);
    line-height: 1.22;
  }

  .school-brand__name > span {
    white-space: normal;
  }

  .innovation-badge {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    width: 44px;
    height: 44px;
    justify-self: start;
  }

  .school-brand {
    grid-column: 2;
    grid-row: 1;
  }

  .primary-navigation {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2100;
    visibility: hidden;
    width: min(390px, 92vw);
    overflow-y: auto;
    background: #ffffff;
    border-top: 0;
    border-left: 1px solid var(--color-border);
    box-shadow: -24px 0 64px rgba(11, 53, 88, 0.2);
    opacity: 0;
    transform: translateX(104%);
    transition: visibility var(--motion-base), opacity var(--motion-base), transform var(--motion-base);
  }

  .primary-navigation.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }

  .primary-navigation__mobile-head {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 10px 16px;
    color: var(--color-primary-900);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--color-border);
  }

  .primary-navigation__list {
    display: block;
    padding: 8px 14px 30px;
  }

  .primary-navigation__item,
  .primary-navigation__item-row {
    display: block;
  }

  .primary-navigation__item {
    border-bottom: 1px solid rgba(201, 220, 231, 0.68);
  }

  .primary-navigation__item-row {
    display: grid;
    grid-template-columns: 1fr 48px;
  }

  .primary-navigation__item-row > a,
  .primary-navigation__item > a {
    justify-content: flex-start;
    min-height: 52px;
    padding: 8px 10px;
    font-size: 0.9rem;
    text-align: left;
  }

  .primary-navigation__item-row > a::after,
  .primary-navigation__item > a::after {
    display: none;
  }

  .submenu-toggle {
    width: 48px;
    min-height: 48px;
    margin-left: 0;
  }

  .navigation-submenu {
    position: static;
    display: none;
    visibility: visible;
    width: 100%;
    padding: 4px 0 12px 12px;
    background: var(--color-primary-050);
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: none;
    opacity: 1;
    transform: none;
  }

  .primary-navigation__item.is-open > .navigation-submenu {
    display: block;
  }

  .navigation-submenu a {
    min-height: 44px;
    font-size: 0.86rem;
  }

  .main-carousel__viewport,
  .main-carousel__slide img {
    min-height: clamp(206px, 46vw, 330px);
    height: clamp(206px, 46vw, 330px);
  }

  .carousel-button {
    width: 48px;
    height: 48px;
  }

  .carousel-button--previous {
    left: 10px;
  }

  .carousel-button--next {
    right: 10px;
  }

  .carousel-dots {
    bottom: 10px;
  }

  .quick-links {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding: 14px 0 22px;
    gap: 8px;
  }

  .quick-links__viewport {
    grid-auto-columns: calc((100% - 10px) / 2);
    gap: 10px;
  }

  .quick-links__control {
    width: 44px;
    height: 44px;
  }

  .quick-links__progress {
    display: block;
  }

  .quick-link-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    min-height: 84px;
    padding: 12px 12px;
    gap: 10px;
    font-size: 0.84rem;
    text-align: left;
  }

  .quick-link-card__icon {
    width: 46px;
    height: 46px;
    margin: 0;
    border-width: 3px;
  }

  .quick-link-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .quick-link-card__arrow {
    margin-top: 0;
    font-size: 1.35rem;
  }

  .history-section {
    padding: 24px 18px 28px;
  }

  .history-section > .history-section__content > .is-wrapper > .is-section > .is-boxes,
  .history-section > .history-section__content > .is-section > .is-boxes {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .history-section .is-box-img {
    width: min(240px, 78%);
    min-height: 300px !important;
    margin-inline: auto !important;
  }

  .history-section .is-overlay {
    min-height: 300px;
  }

  .history-section .is-box:not(.is-box-img) {
    text-align: center;
  }

  .history-section h1 {
    margin-inline: auto !important;
    font-size: clamp(1.55rem, 6vw, 2.1rem) !important;
  }

  .history-section p {
    margin-right: auto !important;
    margin-left: auto !important;
    font-size: 0.96rem !important;
    line-height: 1.65;
    text-align: center !important;
  }

  .history-section__more {
    display: flex;
    width: max-content;
    margin: 20px auto 0;
  }

  .news-overview {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .news-list {
    padding-inline: 14px;
  }

  .useful-information__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .useful-card,
  .useful-card:nth-child(2) {
    height: auto;
    min-height: 0;
    padding: 14px 16px;
    transform: none;
  }

  .useful-card:hover,
  .useful-card:nth-child(2):hover {
    transform: translateY(-2px);
  }

  .latest-carousel {
    grid-auto-columns: 78%;
  }

  .latest-progress {
    display: block;
  }

  .site-footer {
    padding-top: 34px;
    background-position: 56% top;
  }

  .site-footer__wave {
    height: 20px;
  }

  .site-footer__inner {
    grid-template-areas:
      "brand"
      "navigation"
      "contact";
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .site-footer__brand {
    grid-template-columns: 1fr;
  }

  .site-footer__brand > img:first-child {
    width: 96px;
    height: 96px;
  }

  .footer-navigation {
    grid-template-columns: 1fr;
  }

  .site-footer__contact {
    grid-column: auto;
  }

  .site-footer__legal {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__dpo,
  .site-footer__violations,
  .cookie-preferences-button {
    grid-column: 1;
    grid-row: auto;
  }

  .cookie-preferences-button {
    justify-self: center;
    margin-top: 10px;
  }
}

/* CSS section: narrow mobile refinements */
@media (max-width: 480px) {
  .site-header__brand-row {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 102px;
    padding-block: 10px;
  }

  .school-brand {
    grid-column: 2;
    gap: 12px;
  }

  .utility-contact td {
    font-size: 0.68rem !important;
  }

  .utility-contact img {
    width: 16px !important;
    height: 16px !important;
    margin-right: 5px;
  }

  .school-brand__crest {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .school-brand__name {
    font-size: clamp(0.63rem, 3vw, 0.83rem);
  }

  .main-carousel__viewport,
  .main-carousel__slide img {
    min-height: 190px;
    height: 190px;
  }

  .carousel-button {
    width: 44px;
    height: 44px;
  }

  .carousel-dot {
    width: 24px;
    height: 24px;
    margin: -6px;
    background-clip: content-box;
    border: 6px solid transparent;
  }

  .carousel-dots {
    gap: 6px;
  }

  .quick-link-card {
    min-height: 78px;
    padding: 10px 9px;
    gap: 7px;
    font-size: 0.75rem;
  }

  .quick-links {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 5px;
  }

  .quick-links__control {
    width: 44px;
    height: 44px;
  }

  .quick-link-card__icon {
    width: 42px;
    height: 42px;
  }

  .section-heading {
    padding-inline: 14px;
  }

  .section-heading h2 {
    font-size: 1.25rem;
  }

  .news-list li {
    grid-template-columns: auto 1fr auto;
    gap: 9px;
  }

  .news-list__icon {
    width: 36px;
    height: 36px;
  }

  .latest-carousel {
    grid-auto-columns: 84%;
  }
}

@media (max-width: 350px) {
  .site-header__brand-row {
    min-height: 106px;
  }

  .school-brand {
    gap: 9px;
  }

  .school-brand__crest {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .school-brand__name {
    font-size: 0.64rem;
    line-height: 1.2;
  }

  .quick-links {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 3px;
  }

  .quick-links__viewport {
    grid-auto-columns: 100%;
  }

  .quick-link-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .quick-link-card__arrow {
    display: none;
  }
}

/* CSS section: reduced motion and print guards */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home-v2 *,
  .home-v2 *::before,
  .home-v2 *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .mobile-menu-button,
  .carousel-button,
  .carousel-dots,
  .latest-section__controls,
  .cookie-preferences-button {
    display: none !important;
  }
}
