/* People/ Staff ***********************************************/
.people-section .content-filer-title {
  color: var(--primary-color-title);
  font-size: 22px;
  font-weight: 700;
  line-height: calc(100% + 10px);
  margin-bottom: 18px;  
  padding-left: 20px;
}
.people-section .content-filer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.people-section .filter-item,
.people-section .filter-parent {
  background-color: #fff;
  border-radius: 30px;
  color: #161616;
  font-size: 20px;
  font-weight: 500;  
  line-height: 1.3;
  padding: 12px 20px;  
  cursor: pointer;
  transition: all 0.3s ease;  
}
.people-section .filter-item:hover,
.people-section .filter-item:focus,
.people-section .filter-parent:hover,
.people-section .filter-parent:focus {
  color: var(--primary-color-title);
}
.people-section .filter-item.active,
.people-section .filter-parent.active {
  border-radius: 50px;
  background: linear-gradient(270deg, #FFAD5B 15%, #FF5F1B 86%);
  color: #fff;  
}
.people-section .filter-parent {  
  display: flex;
  justify-content: space-between;
  align-items: center;  
}
.people-section .filter-parent .toggle-icon {
  width: 17px;
  height: 10px;
  background: url(../images/icon/toggle.svg) center center no-repeat;
  transition: all 0.3s ease;
}
.people-section .filter-parent.active .toggle-icon {
  background: url(../images/icon/toggle_white.svg) center center no-repeat;
}
.people-section .filter-parent.is-open .toggle-icon {
  transform: rotate(-180deg);
}
.people-section .filter-children {
  background-color: #FFF5EA;
  border-radius: 30px;
  margin-bottom: 10px;
  overflow: hidden;
  padding: 10px;
}
.people-section .filter-children.is-open {
  max-height: 1000px;
}
.people-section .filter-children .filter-item {
  background-color: transparent;
  box-shadow: none;
  border-radius: 50px;
  font-size: 18px;
  line-height: 23px;
  font-weight: 400;
  padding: 9px 25px 10px;
  transition: all 0.3s ease;
}
.people-section .filter-children .filter-item:hover,
.people-section .filter-children .filter-item:focus {  
  color: var(--primary-color-title);
}
.people-section .filter-children .filter-item.active {  
  background: linear-gradient(270deg, #FFAD5B 15%, #FF5F1B 86%);  
  color: #fff;  
}

/* People filter mobile dropdown — hidden on desktop */
.people-section .people-filter-dropdown {
  display: none;
}

/* People Section Layout */
.people-section .content {
  display: flex;
  align-items: flex-start;
}

.people-section .content-filer {
  flex: 0 0 27.2%;
  max-width: 480px;
  padding-right: 50px;
}

.people-section .content-list {
  flex: 1;
  min-width: 0;
  border-left: 1px solid #D4D4D4;
  padding-left: 52px;
}

/* People List Styles */
.people-group {
  margin-bottom: 80px;
}
.people-group-title {  
  font-size: var(--font-size-md);
  font-weight: 700;  
}
.people-subgroup {
  margin-bottom: 30px;
}
.paragraph .people-subgroup-title {
  color: #000;
  font-size: 22px;
  line-height: calc(100% + 6px);
  font-weight: 700;
  margin-bottom: 10px;
}
.people-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-light-color);
  border-radius: 4px;
  padding: 15px 20px 15px 35px;
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
  cursor: default;
  position: relative;
}
.people-card.link-to-details {
  cursor: pointer;
}
.people-card.link-to-details:hover {
  background-color: var(--primary-color-hover);
}
.people-card-info {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 20px;
}
.people-card-name {
  flex: 0 0 28%;
  font-size: 16px;
  font-weight: 500;
}
.people-card-name a {
  color: #000;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}
.people-card-name a::before {
  content: '';
  position: absolute;
  inset: 0;
}
.people-card-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
}
.people-card-arrow img {
  display: block;
  width: 34px;
  height: 34px;
  transition: transform 0.3s ease;
}
.people-card.link-to-details:hover .people-card-arrow img {
  transform: translateX(3px);
}

/* People/ Staff */
.page-node-type-people-staff .block-field-blocknodepeople-stafffield-school {
  display: none;
}

/* Clip full-bleed ::after so vw math cannot create horizontal scroll */
.page-node-type-people-staff {
  overflow-x: clip;
}

.page-node-type-people-staff .details-content {
  position: relative;
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-node-type-people-staff .details-content::after {
  background: var(--primary-light-color);
  border-radius: 0 50px 50px 0;
  content: '';    
  /* Cap at viewport width so the band never extends past the right edge */  
  position: absolute;
  inset: 0 calc(var(--bs-gutter-x) * 0.5) 0 0;    
  z-index: -1;
}

.page-node-type-people-staff .details-content .field--name-field-people-staff-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: flex-start;
}

.page-node-type-people-staff .details-content .field--name-field-people-staff-tags .field__item {
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
  background-color: var(--color-orange);
  padding: 3px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.page-node-type-people-staff .details-content .field--name-title {
  color: var(--primary-color-title);
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 10px;
}

.page-node-type-people-staff .details-content .field--name-field-chinese-name {
  color: var(--primary-color-title);
  font-size: 30px;
  margin-bottom: 30px;
}

.page-node-type-people-staff .details-content .block-field-blocknodepeople-stafffield-position {
  max-width: 560px;
}

.page-node-type-people-staff .details-content .field--name-field-position .field__item {
  position: relative;
  padding-left: 15px;
  margin-bottom: 15px;
  font-size: 16px;
}

.page-node-type-people-staff .details-content .field--name-field-position .field__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-orange);
}

/* Contact fields stay 2x2 at all widths (School|Office / Email|Phone) */
.page-node-type-people-staff .details-content .layout__region--second {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 32px;
  align-content: start;
  margin-top: 30px;
  width: 100%;
}

.page-node-type-people-staff .details-content .layout__region--second>.block {
  margin: 0;
  min-width: 0;
}

.page-node-type-people-staff .details-content .layout__region--second .field__label {
  font-weight: 700;
  color: #000;
  margin-bottom: 5px;
  font-size: 22px;
}

.page-node-type-people-staff .details-content .layout__region--second .field__item,
.page-node-type-people-staff .details-content .layout__region--second .field__item a {
  color: #000;
  font-size: 18px;
}

.page-node-type-people-staff .details-content .layout__region--second .field__item a:hover {
  color: var(--color-orange);
}

.page-node-type-people-staff .paragraph--type--bp-accordion .bp-accordion__list .accordion-item {
  margin-bottom: 0;
}

/* Divider between items when collapsed; hide when that item is open */
.page-node-type-people-staff .paragraph--type--bp-accordion .bp-accordion__list .accordion-item:not(:last-child) {
  border-bottom: 1px solid #BEBEBE;
}

.page-node-type-people-staff .paragraph--type--bp-accordion .bp-accordion__list .accordion-item:not(:last-child):has(.accordion-button:not(.collapsed)) {
  border-bottom: 0;
}

.page-node-type-people-staff .paragraph--type--bp-accordion .bp-accordion__list .accordion-body {
  margin-bottom: 24px;
}

/* Search Result ***********************************************/
.page-node-111 .section-search {
  text-align: center;
  background-color: var(--primary-light-color);
  border-radius: 50px;
  padding: 50px 20px;
}

.page-node-111 .section-search h1 {
  color: var(--primary-color-title);
  font-size: var(--font-size-lg);
}
.page-node-111 .search-overlay__form {
  max-width: 800px;
}

/* Google CSE results mount (Programmable Search, Results only) */
.page-node-111 .bucie-google-cse,
.page-node-111 [data-bucie-google-cse] {
  max-width: 920px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.25rem;
  text-align: left;
}

.page-node-111 .paragraph--type--body-content .field--name-bp-text:has([data-bucie-google-cse])>p {
  display: none;
}

.page-node-111 .bucie-google-cse .gsc-control-cse {
  padding: 0;
  border: none;
  background: transparent;
}

.page-node-111 .bucie-google-cse .gsc-result-info {
  color: #6b7280;
  margin-bottom: 1.25rem;
}

/* login form ***********************************************/
.user-login-form {
  max-width: 500px;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  margin: auto;
  margin-top: 100px;
}

/* sub school page ***********************************************/
.page-node-type-sub-school .field--name-field-related-school {
  display: none;
}

/* sub office page ***********************************************/
.page-node-type-sub-office-page .field--name-field-related-office {
  display: none;
}

/* programmes page ***********************************************/
.page-node-type-departments .field--name-nid {
  display: none;
}

/* 404-page *******************************************************************/
.page-node-78 .banner-section,
.page-node-78 .block-system-breadcrumb-block {
  display: none;
}

.page-node-78 footer {
  margin-top: 0;
}

/* Class starts with a digit — attribute selector is required */
section[class~="404-section"] {
  background: #EBF5FF;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 80px 24px;
  text-align: center;
}

section[class~="404-section"] .content {
  align-items: center;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  width: 100%;
}

section[class~="404-section"] .top {
  align-items: center;
  color: var(--primary-color, #003EAB);
  display: flex;
  font-weight: 700;
  gap: clamp(8px, 2vw, 20px);
  justify-content: center;
  line-height: 1;
}

section[class~="404-section"] .top>span:first-of-type,
section[class~="404-section"] .top>span:last-of-type {
  font-size: clamp(96px, 18vw, 168px);
  font-weight: 700;
  font-size: 300px
}

section[class~="404-section"] .top>span:nth-of-type(2) {
  align-items: center;
  background: var(--primary-color, #003EAB);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex-shrink: 0;
  font-size: clamp(16px, 2.4vw, 28px);
  font-weight: 700;
  height: clamp(120px, 22vw, 200px);
  justify-content: center;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 12px;
  text-align: center;
  width: clamp(120px, 22vw, 200px);
}

section[class~="404-section"] .center {
  color: #000;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.45;
  margin: clamp(28px, 4vw, 40px) auto;
  max-width: 34em;
}

section[class~="404-section"] .bottom {
  margin-top: 8px;
}

section[class~="404-section"] .bottom .button {
  background: linear-gradient(90deg, #FFB75E 0%, #FF6B00 100%);
  border: none;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.22);
  color: #fff;
  display: inline-flex;
  align-items: center;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  gap: 8px;
  line-height: 1.2;
  padding: 14px 28px;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

section[class~="404-section"] .bottom .button::after {
  background: url(../images/icon/arrow_white_7x14.svg) center center no-repeat;
  content: '';
  vertical-align: top;
  display: inline-block;
  width: 9px;
  height: 24px;
  margin-left: 10px;
}

section[class~="404-section"] .bottom .button:hover,
section[class~="404-section"] .bottom .button:focus-visible {
  background: linear-gradient(90deg, #FF6B00 0%, #FFB75E 100%);
  color: #fff;
  filter: brightness(1.02);
  outline: none;
  text-decoration: none;
}

/* Share: copy-link success toast */
.share-copy-toast {
  position: fixed;
  top: 18%;
  left: 50%;
  z-index: 1100;
  max-width: calc(100vw - 40px);
  padding: 12px 22px;
  border-radius: 999px;
  background-color: rgba(22, 22, 22, 0.9);
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, -8px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.share-copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* All Programmes */
.section-content-width {
  padding-left: calc((var(--bs-gutter-x) * 0.5) + 20px);
  padding-right: calc((var(--bs-gutter-x) * 0.5) + 20px);
}
.page-node-111 .section-content-width:has(.section-search) {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

/* Programme Search (block_programmes_list) */
.programme-search {
  --programme-search-peach: #f7ebe3;
  --programme-search-badge-degree: #f5d76e;
  --programme-search-entry-bg: #5ba3d9;
  --programme-search-border: #8FB7FF;
  --programme-checkbox-background-color: #FFF5EA;
  --programme-search-card-radius: 30px;  
}

.programme-search__form {
  display: grid;
  grid-template-columns: minmax(430px, 430px) minmax(0, 1fr);
  grid-template-areas:
    "bar bar"
    "filters results";
  column-gap: 100px;  
  align-items: stretch;
}

.programme-search__bar {
  grid-area: bar;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  width: 100%;
  padding: 50px 20px;
  background: var(--primary-light-color);
  border-radius: 50px;
  margin-bottom: 80px;
}

.programme-search__heading {
  margin: 0;
  text-align: center;
  font-size: var(--font-size-lg);
  font-weight: 700;  
  color: var(--primary-color-title);
}

.programme-search__field {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
}

.programme-search__filters {
  grid-area: filters;
  position: relative;
  min-width: 430px;
}

.programme-search__filters::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -50px;
  width: 1px;
  background: var(--programme-grey-color);
  pointer-events: none;
}

.programme-search__results {
  grid-area: results;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Force design order: legend (footer) above pager, even if DOM/cache differs. */
.programme-search__results > .programme-search__toolbar {
  order: 10;
}

.programme-search__results > .attachment-before {
  order: 20;
}

.programme-search__results > .view-content,
.programme-search__results > .view-empty {
  order: 30;
}

.programme-search__results > .view-footer {
  order: 40;
}

.programme-search__results > .pager {
  order: 50;
}

.programme-search__results > .attachment-after {
  order: 60;
}

.programme-search__results > .more-link {
  order: 70;
}

.programme-search__results > .feed-icons {
  order: 80;
}

.programme-search__bar .form-item-title {
  flex: 1 1 auto;
  max-width: none;
  width: 100%;
  margin: 0;
}

.programme-search__bar .form-item-title label {
  display: none;
}

.programme-search__bar input[name="title"] {
  width: 100%;
  height: 56px;
  padding: 0 64px 0 28px;
  border: none;
  border-radius: 999px;
  color: #333;
  border-radius: 50px;
  border: 2px solid var(--programme-search-border);
  background: #FFF;
}

.programme-search__bar input[name="title"]::placeholder {
  color: var(--primary-color);
}

.programme-search__bar input[name="title"]:focus {
  outline: 2px solid color-mix(in srgb, var(--primary-color) 35%, white);
  outline-offset: 2px;
}

.programme-search__submit {
  position: relative;
  flex: none;
  margin-left: -56px;
  top: auto;
  right: auto;
  transform: none;
  z-index: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--yellow-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.programme-search__submit:hover,
.programme-search__submit:focus {
  background: var(--color-deep-orange);
}

.programme-search__submit img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.programme-search__filters .view-filters,
.programme-search__filters .views-exposed-form,
.programme-search__filters .form--inline {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.programme-search__filters .form--inline::after {
  display: none;
}

.programme-search__filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

/* Desktop: wrapper is transparent; toggle hidden; panel always visible */
.programme-search__filter-dropdown {
  display: block;
  width: 100%;
}

.programme-search__filter-toggle {
  display: none;
}

.programme-search__filter-panel,
.programme-search__filter-panel[hidden] {
  display: block;
  position: static;
}

.programme-search__filter-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color-title);
  padding-left: 20px;
  margin-bottom: 0;
}

.programme-search__filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.programme-search__reset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: transparent;
  color: #4A4A4A;
  font-size: 18px;
  cursor: pointer;
  justify-content: center;
  position: relative;
  border-radius: 100px;
  border: 1px solid var(--programme-grey-color);
  padding: 6px 20px;
}

.programme-search__reset-icon {
  display: inline-flex;
}

.programme-search__reset-icon::after {
  content: "";
  width: 18px;
  height: 18px;
  background-image: url('/themes/custom/i2_theme/images/icon/button_reset.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.programme-search__filters .form-actions {
  margin: 0;
  padding: 0;
}

.programme-search__filters .form-actions .form-submit,
.programme-search__filters .form-actions .btn {
  min-width: 88px;
  display: inline-flex;
  padding: 6px 20px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  border: 1px solid var(--primary-color);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  background: var(--primary-color);
}


.programme-search__filters .form-actions .form-submit:hover,
.programme-search__filters .form-actions .btn:hover,
.programme-search__filters .programme-search__reset:hover {
  background: var(--color-orange);
  border: 1px solid var(--color-orange);
  color: #fff;
}

.programme-search__filter-group {
  display: block;
  float: none;
  width: 100%;
  max-width: none;
  margin-bottom: 30px;
  margin-top: 0;
  margin-right: 0 !important;
}

.programme-search__filter-group>label {
  color: #161616;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 15px;
  padding-left: 20px;
}

.programme-search__native-select {
  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;
}

.programme-search__school-taxonomy-hidden {
  display: none !important;
}

.programme-search__checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 20px;
  background: var(--programme-checkbox-background-color);
  border-radius: 30px;
}

.programme-search__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-weight: 400;
  color: #333;
  cursor: pointer;
  line-height: 1.35;
}

.programme-search__checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  aspect-ratio: 1/1;
  margin-top: 4px;
  accent-color: var(--primary-color);
  cursor: pointer;
  border-radius: 2px;
}

.programme-search__checkbox span {
  color: #161616;
  font-size: 18px;
  font-weight: 400;
}

.programme-search__native-sort {
  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;
}

.programme-search__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  position: relative;
}

.programme-search__toolbar .view-header {
  color: #4A4A4A;
  font-size: 16px;
}

.programme-search__sort {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-left: auto;
}

.programme-search__sort-label {
  color: #000;
  font-size: 16px;
}

.programme-search__sort-options {
  display: flex;
  align-items: center;
  gap: 30px;
}

.programme-search__sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: transparent;
  color: #4A4A4A;
  font-size: 16px;
  cursor: pointer;
}

.programme-search__sort-btn::after {
  content: "";
  width: 14px;
  height: 7px;
  background-image: url('/themes/custom/i2_theme/images/icon/button_triangle.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

.programme-search__sort-btn.is-asc::after {
  transform: rotate(180deg);
}

.programme-search__sort-btn.is-active {
  font-weight: 700;
  color: #4A4A4A;
}

.programme-search .view-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.programme-search .views-row {
  margin: 0;
}

.programme-search .views-field-nothing,
.programme-search .views-field-nothing>.field-content {
  display: block;
}

.programme-search .programme-card {
  display: flex;
  padding: 20px;
  background: #fff;
  border: 1px solid #D9D9D9;
  border-radius: var(--programme-search-card-radius);
  box-shadow: none;
  overflow: hidden;
  flex-direction: unset;
}

.programme-search .programme-card .card-body,
.programme-search .programme-card__body {
  flex: 1;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.programme-search .card-education-level {
  display: inline-flex;
  align-items: center;
  padding: 4px 18px;
  border-radius: 100px;
  color: #161616;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 20px;
}

.card-education-level-84 {
  background-color: #FFD67D;
}

.card-education-level-85 {
  background-color: #FFB99B;
}

.card-education-level-86 {
  background-color: #88D3FF;
}

.card-education-level-138 {
  background-color: #FAC1F3;
}

.programme-search .card-school {
  color: var(--programmes-color-color, #DE2F11);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 5px;
}

.programme-search .card-school .color-data {
  display: none;
}

.programme-search .card-title {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: #161616;
  margin-bottom: 10px;
}

.programme-search .card-title a {
  color: inherit;
  text-decoration: none;
}

.programme-search .card-title a::before {
  content: '';
  position: absolute;
  inset: 0;
}

.programme-search .card-title a:hover,
.programme-search .card-title a:focus {
  color: var(--primary-color);
  text-decoration: underline;
}

.programme-search .card-study-mode {
  font-size: 16px;
  color: #4A4A4A;
  margin-bottom: 20px;
}

.programme-search .card-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 30px;
  width: 100%;
}

.programme-search .card-programme-tag .item-list,
.programme-search .card-programme-tag .item-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.programme-search .card-programme-tag .item-list ul {
  gap: 15px;
}

.programme-search .card-programme-tag .item-list li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #E5E5E5;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.programme-search .card-programme-tag .item-list li img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.programme-search .card-entry-level {
  margin-top: 0;
}

.programme-search .card-entry-level .item-list,
.programme-search .card-entry-level .item-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.programme-search .card-entry-level .item-list li {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid #C3E4FF;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

.programme-search .programme-card .programme-card__arrow {
  flex: 0 0 auto;
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.programme-search .programme-card:hover .programme-card__arrow,
.programme-search .programme-card:focus .programme-card__arrow {
  background: var(--color-deep-orange);
  transform: translateX(4px);
}

.programme-search .programme-card__arrow img {
  width: 40px;
  height: 40px;
  display: block;
}

.programme-search .view-footer {
  margin: 28px 0 0;
}

.programme-search .view-footer > .text-formatted,
.programme-search .view-footer > .field,
.programme-search .view-footer > .field__item,
.programme-search .view-footer > p {
  margin: 0;
}

.programme-search .view-footer p:empty {
  display: none;
}

.programme-search__legend,
.programme-search .view-footer .programme-search__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;  
  gap: 20px 30px;
  margin: 0;
}

.programme-search__legend-item,
.programme-search .view-footer .programme-search__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.programme-search__legend-icon,
.programme-search .view-footer .programme-search__legend-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid #E5E5E5;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.programme-search__legend-icon img,
.programme-search .view-footer .programme-search__legend-icon img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* .programme-search__legend-icon--new img,
.programme-search .view-footer .programme-search__legend-icon--new img {
  width: 26px;
  height: 25px;
} */

.programme-search__legend-label,
.programme-search .view-footer .programme-search__legend-label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.333;
  color: #000;
}

/* Circular pager — match programme search design */
.programme-search .pager {
  margin: 50px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.programme-search .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.programme-search .pagination .page-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  height: 40px;
}

.programme-search .pagination .page-item:not(:first-child) .page-link {
  margin-left: 0 !important;
}

.programme-search .pagination .page-link {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent;
  color: #161616;
  font-size: 16px !important;
  font-weight: 500;
  line-height: 40px !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

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

.programme-search .pagination .page-item.active .page-link,
.programme-search .pagination .page-item.is-active .page-link,
.programme-search .pagination .page-item .page-link.active {
  background: var(--primary-color, #003CC5) !important;
  color: #fff !important;
}

.programme-search .pagination .pager__item--next .page-link,
.programme-search .pagination .pager__item--last .page-link,
.programme-search .pagination .pager__item--previous .page-link,
.programme-search .pagination .pager__item--first .page-link {
  background-color: #767676 !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden;
}

.programme-search .pagination .pager__item--next .page-link > span,
.programme-search .pagination .pager__item--last .page-link > span,
.programme-search .pagination .pager__item--previous .page-link > span,
.programme-search .pagination .pager__item--first .page-link > span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.programme-search .pagination .pager__item--next .page-link,
.programme-search .pagination .pager__item--previous .page-link {
  background-image: url("../images/icon/pager_next.svg") !important;
  background-size: 8px 13px !important;
}

.programme-search .pagination .pager__item--last .page-link,
.programme-search .pagination .pager__item--first .page-link {
  background-image: url("../images/icon/pager_last.svg") !important;
  background-size: 15px 13px !important;
}

.programme-search .pagination .pager__item--previous .page-link,
.programme-search .pagination .pager__item--first .page-link {
  transform: scaleX(-1);
}

.programme-search .pagination .pager__item--next .page-link::after,
.programme-search .pagination .pager__item--last .page-link::after,
.programme-search .pagination .pager__item--previous .page-link::after,
.programme-search .pagination .pager__item--first .page-link::after {
  content: none !important;
}

.programme-search .pagination .pager__item--next .page-link:hover,
.programme-search .pagination .pager__item--last .page-link:hover,
.programme-search .pagination .pager__item--previous .page-link:hover,
.programme-search .pagination .pager__item--first .page-link:hover {
  background-color: #9E9E9E !important;
  color: transparent !important;
}

/* News List + E-newsletters — featured first + grid ************************/
.view-block-new-list .views-infinite-scroll-content-wrapper,
.view-block-new-list .view-content:not(:has(.views-infinite-scroll-content-wrapper)),
.view-block-e-newsletters-list .views-infinite-scroll-content-wrapper,
.view-block-e-newsletters-list .view-content:not(:has(.views-infinite-scroll-content-wrapper)) {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.view-block-new-list .views-row,
.view-block-e-newsletters-list .views-row {
  min-width: 0;
}

.view-block-new-list .views-row .views-field,
.view-block-new-list .views-row .views-field .field-content,
.view-block-e-newsletters-list .views-row .views-field,
.view-block-e-newsletters-list .views-row .views-field .field-content {
  height: 100%;
}

.view-block-new-list .views-row:first-child,
.view-block-e-newsletters-list .views-row:first-child {
  grid-column: 1 / -1;
  margin-bottom: 26px;
}

.view-block-new-list .news-card,
.view-block-e-newsletters-list .e-newsletters-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #C9DDE6;
  border-radius: 30px;
  overflow: hidden;
}

.view-block-new-list .news-card .card-img-top,
.view-block-e-newsletters-list .e-newsletters-card .card-img-top {
  position: relative;
  overflow: hidden;
}

.view-block-new-list .news-card .card-img-top img,
.view-block-e-newsletters-list .e-newsletters-card .card-img-top img {
  display: block;
  aspect-ratio: 8 / 5;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.view-block-new-list .news-card:hover .card-img-top img,
.view-block-new-list .news-card:focus-within .card-img-top img,
.view-block-e-newsletters-list .e-newsletters-card:hover .card-img-top img,
.view-block-e-newsletters-list .e-newsletters-card:focus-within .card-img-top img {
  transform: scale(1.05);
}

.view-block-new-list .news-card .card-body,
.view-block-e-newsletters-list .e-newsletters-card .card-body {
  font-optical-sizing: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 20px 20px 20px;
  z-index: 1;
  position: relative;
}

.view-block-new-list .news-card .card-tags {
  background: #FFD67D;
  border-radius: 100px;
  color: #161616;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  display: inline-block;
  padding: 2px 16px;
  position: absolute;
  top: -16px;
  left: 20px;
}

.view-block-e-newsletters-list .e-newsletters-card .card-summary {
  color: #4a4a4a;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  text-overflow: ellipsis;
  margin-bottom: 12px;
}

.view-block-e-newsletters-list .e-newsletters-card .card-summary:empty {
  display: none;
}

.view-block-e-newsletters-list .e-newsletters-card .card-summary p {
  margin: 0;
}

.view-block-new-list .news-card .card-title,
.view-block-e-newsletters-list .e-newsletters-card .card-title {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: calc(100% + 8px);
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.view-block-e-newsletters-list .e-newsletters-card .card-title {
  flex: 0 1 auto;
}

.view-block-new-list .news-card .card-title a,
.view-block-e-newsletters-list .e-newsletters-card .card-title a {
  color: inherit;
  text-decoration: none;
}

.view-block-new-list .news-card .card-title a::before,
.view-block-e-newsletters-list .e-newsletters-card .card-title a::before {
  content: '';
  position: absolute;
  inset: 0;
}

.view-block-new-list .news-card .card-title a:hover,
.view-block-e-newsletters-list .e-newsletters-card .card-title a:hover {
  color: var(--primary-color);
}

.view-block-new-list .news-card .card-date,
.view-block-e-newsletters-list .e-newsletters-card .card-date {
  margin-top: auto;
  font-size: 15px;
  line-height: 20px;
  color: #4A4A4A;
}

.view-block-new-list .news-card .card-date time,
.view-block-e-newsletters-list .e-newsletters-card .card-date time {
  color: inherit;
}

/* Featured first item — overlapping horizontal layout */
.view-block-new-list .views-row:first-child .news-card,
.view-block-e-newsletters-list .views-row:first-child .e-newsletters-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 0 28px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding: 30px 0 35px 0;
}

.view-block-new-list .views-row:first-child .news-card::before,
.view-block-e-newsletters-list .views-row:first-child .e-newsletters-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 24%;
  z-index: 0;
  background: var(--background-light-blue);
  border-radius: 40px;
  pointer-events: none;
}

.view-block-new-list .views-row:first-child .news-card .card-img-top,
.view-block-e-newsletters-list .views-row:first-child .e-newsletters-card .card-img-top {
  flex: 0 0 48%;
  max-width: 48%;
  position: relative;
  z-index: 1;
  border-radius: 30px;
  overflow: hidden;
}

.view-block-new-list .views-row:first-child .news-card .card-img-top img,
.view-block-e-newsletters-list .views-row:first-child .e-newsletters-card .card-img-top img {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: cover;
}

.view-block-new-list .views-row:first-child .news-card .card-body,
.view-block-e-newsletters-list .views-row:first-child .e-newsletters-card .card-body {
  flex: 1;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  padding: 30px 48px 40px 12px;
  background: transparent;
}

.view-block-new-list .views-row:first-child .news-card .card-tags {
  margin-bottom: 16px;
  position: static;
}

.view-block-new-list .views-row:first-child .news-card .card-title,
.view-block-e-newsletters-list .views-row:first-child .e-newsletters-card .card-title {
  flex: 0 1 auto;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-color-title);
  -webkit-line-clamp: 4;
  margin-bottom: 16px;
  /* max-width: 600px; */
}

.view-block-e-newsletters-list .views-row:first-child .e-newsletters-card .card-summary {
  -webkit-line-clamp: 4;
  font-size: 16px;
  margin-bottom: 16px;
}

.view-block-new-list .views-row:first-child .news-card .card-title a:hover,
.view-block-e-newsletters-list .views-row:first-child .e-newsletters-card .card-title a:hover {
  color: var(--primary-color);
}

.view-block-new-list .views-row:first-child .news-card .card-date,
.view-block-e-newsletters-list .views-row:first-child .e-newsletters-card .card-date {
  margin-top: 0;
}

/* Press release list ********************/

.view-block-press-release-list .events-month-filter {
  background-color: #F4F4F4;
}

.view-block-press-release-list .events-month-filter__label {
  color: var(--primary-color-title);
  font-size: 24px;
  font-weight: 700;
}

.view-block-press-release-list .view-content {
  margin-top: 0;
}

.view-block-press-release-list .table-responsive {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.view-block-press-release-list .views-view-table {
  --press-table-radius: 12px;
  --press-table-stripe: #F0F7FF;
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  overflow: hidden;
}

.view-block-press-release-list .views-view-table thead th {
  padding: 16px 24px;
  border: none;
  background-color: var(--primary-color, #003EAB);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  vertical-align: middle;
}

.view-block-press-release-list .views-view-table thead th:first-child {
  border-top-left-radius: var(--press-table-radius);
}

.view-block-press-release-list .views-view-table thead th:last-child {
  border-top-right-radius: var(--press-table-radius);
}

.view-block-press-release-list .views-view-table.table> :not(caption)>*>* {
  box-shadow: none;
}

.view-block-press-release-list .views-view-table.table-striped>tbody>tr:nth-of-type(odd)>* {
  --bs-table-bg-type: transparent;
  --bs-table-accent-bg: transparent;
  background-color: #fff;
}

.view-block-press-release-list .views-view-table.table-striped>tbody>tr:nth-of-type(even)>* {
  --bs-table-bg-type: transparent;
  --bs-table-accent-bg: transparent;
  background-color: var(--press-table-stripe);
}

.view-block-press-release-list .views-view-table tbody tr:nth-child(odd) td {
  background-color: #fff;
}

.view-block-press-release-list .views-view-table tbody tr:nth-child(even) td {
  background-color: var(--press-table-stripe);
}

.view-block-press-release-list .views-view-table tbody td {
  padding: 18px 24px;
  border: none;
  color: #161616;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  vertical-align: middle;
}

.view-block-press-release-list .views-view-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--press-table-radius);
}

.view-block-press-release-list .views-view-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--press-table-radius);
}

.view-block-press-release-list .views-field-field-date {
  width: 160px;
  white-space: nowrap;
  color: #161616;
  font-weight: 500;
}

.view-block-press-release-list .views-field-field-date time {
  color: inherit;
}

.view-block-press-release-list .views-field-title a {
  color: #161616;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 18px;
}

.view-block-press-release-list .views-field-title a:hover,
.view-block-press-release-list .views-field-title a:focus {
  color: var(--primary-color, #003EAB);
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .view-block-press-release-list .table-responsive {
    border-radius: 12px;
    overflow: hidden;
  }

  .view-block-press-release-list .views-view-table thead {
    display: none;
  }

  .view-block-press-release-list .views-view-table,
  .view-block-press-release-list .views-view-table tbody,
  .view-block-press-release-list .views-view-table tr,
  .view-block-press-release-list .views-view-table td {
    display: block;
    width: 100%;
  }

  .view-block-press-release-list .views-view-table tbody tr {
    padding: 16px 20px;
  }

  .view-block-press-release-list .views-view-table tbody tr:first-child {
    border-top-left-radius: var(--press-table-radius);
    border-top-right-radius: var(--press-table-radius);
  }

  .view-block-press-release-list .views-view-table tbody tr:last-child {
    border-bottom-left-radius: var(--press-table-radius);
    border-bottom-right-radius: var(--press-table-radius);
  }

  .view-block-press-release-list .views-view-table tbody tr:nth-child(odd) {
    background-color: #fff;
  }

  .view-block-press-release-list .views-view-table tbody tr:nth-child(even) {
    background-color: var(--press-table-stripe);
  }

  .view-block-press-release-list .views-view-table tbody td,
  .view-block-press-release-list .views-view-table tbody tr:nth-child(odd) td,
  .view-block-press-release-list .views-view-table tbody tr:nth-child(even) td,
  .view-block-press-release-list .views-view-table tbody tr:last-child td:first-child,
  .view-block-press-release-list .views-view-table tbody tr:last-child td:last-child {
    padding: 0;
    border-radius: 0;
    background-color: transparent;
  }

  .view-block-press-release-list .views-field-field-date {
    width: auto;
    margin-bottom: 8px;
    font-size: 14px;
  }

  .view-block-press-release-list .views-field-title {
    font-size: 16px;
  }
}

/* Card List Style 120 — title on border (fieldset) ***************************/
.paragraph--type--card-list.card-list--style-120 {
  overflow: visible;
}

.paragraph--type--card-list.card-list--style-120 .field--name-field-header {
  color: var(--primary-color-title);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 40px;
}

.paragraph--type--card-list.card-list--style-120 .card-list-grid {
  gap: 36px 40px;
  overflow: visible;
}

.paragraph--type--card-list.card-list--no-image.card-list--style-120 .card-list-grid__item {
  padding-top: 14px;
}

.paragraph--type--card-list.card-list--style-120 .card-list-item--no-image {
  background: #fff;
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  height: 100%;
  min-height: 0;
  overflow: visible;
  padding: 0;
  position: relative;
}

.paragraph--type--card-list.card-list--style-120 .card-list-item--no-image>.paragraph__column {
  min-height: 150px;
  overflow: visible;
  margin-top: 0;
  padding: 30px;
  position: relative;
}

.paragraph--type--card-list.card-list--style-120 .card-list-item--no-image .field--name-field-title {
  background: var(--section-bg-color, #fff);
  color: #000;
  display: block;
  font-size: 22px;
  font-weight: 700;
  left: 28px;
  line-height: calc(100% + 6px);
  margin: 0;
  max-width: calc(100% - 56px);
  padding: 0 10px;
  position: absolute;
  top: -16px;
  width: max-content;
  z-index: 2;
}

.paragraph--type--card-list.card-list--style-120 .card-list-item--no-image .field--name-bp-text,
.paragraph--type--card-list.card-list--style-120 .card-list-item--no-image .field--type-text-long {
  color: #161616;  
}

.paragraph--type--card-list.card-list--style-120 .card-list-item--no-image .field--name-bp-text p,
.paragraph--type--card-list.card-list--style-120 .card-list-item--no-image .field--type-text-long p {
  color: #161616;  
}

/* ==========================================================================
   Media Queries
   Order: reduced-motion → width ranges (large → small)
   ========================================================================== */

/* ≥992px — People staff detail + desktop nav (no mobile drawer) **************/
@media screen and (min-width: 992px) {

  /* Keep desktop mega menus flat; never show the mobile blue drawer here. */
  header.header .nav-main-content,
  header.header .nav-main-content .offcanvas,
  header.header .nav-main-content .offcanvas .offcanvas-body {
    position: static;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
  }

  header.header .nav-main-content .offcanvas .offcanvas-header,
  header.header .nav-main-content .offcanvas .mobile-offcanvas__close,
  header.header .nav-main-content .offcanvas .mobile-offcanvas__secondary {
    display: none !important;
  }

  /* People/ Staff */
  .page-node-type-people-staff .details-content {
    display: flex;
    gap: 20px;
  }

  .page-node-type-people-staff .details-content>.layout__region {
    flex: 1;
    min-width: 0;
  }

  .page-node-type-people-staff .details-content .layout__region--second {
    margin-top: 50px;
  }
}

/* People — mid desktop *******************************************************/
@media screen and (min-width: 992px) and (max-width: 1400px) {
  .people-section .content-filer {
    flex: 0 0 33%;
    padding-right: 30px;
  }

  .people-section .content-list {
    padding-left: 30px;
  }
}

/* ≤1199.98px — Departments ***************************************************/
@media screen and (max-width: 1199.98px) {
  /* News / e-newsletters list grid — 3 columns below 1200px */
  .view-block-new-list .views-infinite-scroll-content-wrapper,
  .view-block-new-list .view-content:not(:has(.views-infinite-scroll-content-wrapper)),
  .view-block-e-newsletters-list .views-infinite-scroll-content-wrapper,
  .view-block-e-newsletters-list .view-content:not(:has(.views-infinite-scroll-content-wrapper)) {
    grid-template-columns: repeat(3, 1fr);
  }  
}

/* 992px–1199.98px — Programme search mid desktop ******************************/
@media screen and (min-width: 992px) and (max-width: 1199.98px) {
  .programme-search__form {
    grid-template-columns: minmax(360px, 360px) minmax(0, 1fr);
    column-gap: 60px;
  }

  .programme-search__filters {
    min-width: 360px;
  }

  .programme-search__filters::after {
    right: -30px;
  }

  .programme-search__sort {
    gap: 28px;
  }
}

/* ≤991.98px — Search overlay + Departments + People staff + Programme search + Events calendar */
@media screen and (max-width: 991.98px) {
  .section-content-width {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
  }
  .page-node-type-people-staff .details-content.layout--twocol-section.layout--twocol-section--50-50>.layout__region--first,
  .page-node-type-people-staff .details-content.layout--twocol-section.layout--twocol-section--50-50>.layout__region--second {
    flex: 0 1 100%;
    max-width: 100%;
  }  

  /* People/ Staff */
  .people-section .content-filer {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 50px;
  }
  .people-section .content-list {
    padding-left: 0;
    border-left: unset;
  }
  .people-card {
    align-items: center;
    padding: 18px 20px;
  }
  .people-card-info {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
  }
  .people-card-name {
    flex: 0 0 auto;
    width: 100%;
  }
  .people-card-arrow {
    flex: 0 0 auto;
    align-self: center;
    margin-left: 16px;
  }
  .people-section .content-filer-list {
    display: none;
  }
  .people-section .content-filer-title {
    padding-left: 0;
    text-align: center;
  }
  .people-section .people-filter-dropdown {
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(to right, #FF804B 15%, #FFA850 86%) border-box;
    border: 1px solid transparent;
    border-radius: 60px;
    display: block;
    margin: 0 auto;
    max-width: 340px;
    padding: 0;
    position: relative;
    width: 100%;
    z-index: 5;
  }

  .people-section .people-filter-toggle {
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 60px;
    color: #1a2744;
    cursor: pointer;
    display: block;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    padding: 12px 44px 12px 20px;
    position: relative;
    text-align: center;
    width: 100%;
  }

  .people-section .people-filter-toggle::after {
    background: url(../images/icon/arrow_tab.svg) no-repeat;    
    content: "";
    width: 12px;
    height: 7px;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.25s ease;
  }

  .people-section .people-filter-dropdown.is-open .people-filter-toggle::after {
    transform: translateY(-50%) rotate(180deg);
  }  

  .people-section .people-filter-menu {
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(to right, #FF804B 15%, #FFA850 86%) border-box;
    border: 1px solid transparent;
    border-radius: 24px;
    display: none;
    flex-direction: column;
    gap: 4px;
    left: 0;
    margin-top: 8px;
    padding: 10px;
    position: absolute;
    right: 0;
    top: 100%;
    width: 100%;
    z-index: 10;
  }

  .people-section .people-filter-dropdown.is-open .people-filter-menu {
    display: flex;
  }

  .people-section .people-filter-btn {
    background-color: transparent;    
    border: none;
    border-radius: 50px;
    color: #161616;
    cursor: pointer;
    font-size: 18px;
    line-height: 23px;
    font-weight: 500;
    padding: 9px 25px 10px;
    transition: all 0.3s ease;
  }

  /* Parent "All …" rows that have children */
  .people-section .people-filter-btn[data-filter-scope="parent"] {
    color: #000;
    font-weight: 700;
  }

  .people-section .people-filter-children {
    background-color: #FFF5EA;
    border-radius: 24px;
    display: flex;
    flex-direction: column;    
    padding: 10px;
  }

  .people-section .people-filter-children .people-filter-btn {
    color: #161616;
    font-weight: 400;
  }

  .people-section .people-filter-btn:hover,
  .people-section .people-filter-btn:focus {
    color: var(--primary-color-text);
  }

  .people-section .people-filter-btn.is-active,
  .people-section .people-filter-btn.is-active:hover,
  .people-section .people-filter-btn.is-active:focus {    
    background: linear-gradient(270deg, #FFAD5B 15%, #FF5F1B 86%);
    color: #fff;
  }

  .people-card-name a {
    font-size: 20px;
  }

  .people-card-degree {
    font-size: 18px;
  }

  /* People/ Staff */
  .page-node-type-people-staff .details-content {
    --twocol-gap: 0px;
  }
  .page-node-type-people-staff .details-content::after {
    border-radius: 0 30px 30px 0;
  }

  /* Programme search */
  .programme-search__form {
    grid-template-columns: 1fr;
    grid-template-areas:
      "bar"
      "filters"
      "results";
  }

  .programme-search__filters {
    min-width: 0;
  }

  .programme-search__filters::after {
    display: none;
  }

  .programme-search__filter-dropdown {
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(to right, #FF804B 15%, #FFA850 86%) border-box;
    border: 1px solid transparent;
    border-radius: 60px;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    z-index: 5;
    margin-bottom: 10px;
  }

  .programme-search__filter-toggle {
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 60px;
    color: #1a2744;
    cursor: pointer;
    display: block;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    padding: 12px 44px 12px 20px;
    position: relative;
    text-align: center;
    width: 100%;
  }

  .programme-search__filter-toggle::after {
    background: url(../images/icon/arrow_tab.svg) no-repeat;    
    content: "";
    width: 12px;
    height: 7px;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.25s ease;
  }

  .programme-search__filter-dropdown.is-open .programme-search__filter-toggle::after {
    transform: translateY(-50%) rotate(180deg);
  }  

  .programme-search__filter-panel,
  .programme-search__filter-panel[hidden] {
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(to right, #FF804B 15%, #FFA850 86%) border-box;
    border: 1px solid transparent;
    border-radius: 24px;
    display: none;
    left: 0;
    margin-top: 8px;
    padding: 20px;
    position: absolute;
    right: 0;
    top: 100%;
    width: 100%;
    z-index: 10;
  }

  .programme-search__filter-dropdown.is-open .programme-search__filter-panel {
    display: block;
  }

  .programme-search__bar {
    padding: 20px 18px;
    gap: 16px;
  }

  .programme-search__heading {
    font-size: 28px;
  }

  .programme-search .card-title {
    font-size: 1.15rem;
  }

  .programme-search__legend,
  .programme-search .view-footer .programme-search__legend {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: visible;
  }

  .programme-search__legend-item,
  .programme-search .view-footer .programme-search__legend-item {
    flex: 0 0 auto;
    width: 100%;
  }

  .programme-search__legend-label,
  .programme-search .view-footer .programme-search__legend-label {
    white-space: normal;
  }

  /* News / e-newsletters list grid — 2 columns */
  .view-block-new-list .views-infinite-scroll-content-wrapper,
  .view-block-new-list .view-content:not(:has(.views-infinite-scroll-content-wrapper)),
  .view-block-e-newsletters-list .views-infinite-scroll-content-wrapper,
  .view-block-e-newsletters-list .view-content:not(:has(.views-infinite-scroll-content-wrapper)) {
    grid-template-columns: repeat(2, 1fr);
  }

  /* News / e-newsletters featured — stack, no overhang */
  .view-block-new-list .views-row:first-child .news-card,
  .view-block-e-newsletters-list .views-row:first-child .e-newsletters-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
  }

  .view-block-new-list .views-row:first-child .news-card::before,
  .view-block-e-newsletters-list .views-row:first-child .e-newsletters-card::before {
    left: 0;
    border-radius: 24px;
  }

  .view-block-new-list .views-row:first-child .news-card .card-img-top,
  .view-block-e-newsletters-list .views-row:first-child .e-newsletters-card .card-img-top {
    flex: none;
    max-width: none;
    width: 100%;
    border-radius: 24px 24px 0 0;
  }

  .view-block-new-list .views-row:first-child .news-card .card-img-top img,
  .view-block-e-newsletters-list .views-row:first-child .e-newsletters-card .card-img-top img {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }

  .view-block-new-list .views-row:first-child .news-card .card-body,
  .view-block-e-newsletters-list .views-row:first-child .e-newsletters-card .card-body {
    padding: 24px 28px 28px;
  }

  .view-block-new-list .views-row:first-child .news-card .card-title,
  .view-block-e-newsletters-list .views-row:first-child .e-newsletters-card .card-title {
    font-size: 22px;
  }
}

/* ≤767.98px — Search overlay + news list 1-col + Events calendar + Articles */
@media screen and (max-width: 767.98px) { 

  /* Card List Style 120 */
  .paragraph--type--card-list.card-list--style-120 .field--name-field-header {
    margin-bottom: 28px;
  }

  .paragraph--type--card-list.card-list--style-120 .card-list-grid {
    gap: 28px;
  }

  .paragraph--type--card-list.card-list--style-120 .card-list-item--no-image>.paragraph__column {
    padding: 28px 22px 22px;
  }

  .paragraph--type--card-list.card-list--style-120 .card-list-item--no-image .field--name-field-title {
    font-size: 18px;
    left: 18px;
    max-width: calc(100% - 36px);
  }    

  /* People/ Staff */  
  .page-node-type-people-staff .details-content::after {
    right: 0;
  }

  /* News / e-newsletters list grid — 2 columns */
  .view-block-new-list .views-infinite-scroll-content-wrapper,
  .view-block-new-list .view-content:not(:has(.views-infinite-scroll-content-wrapper)),
  .view-block-e-newsletters-list .views-infinite-scroll-content-wrapper,
  .view-block-e-newsletters-list .view-content:not(:has(.views-infinite-scroll-content-wrapper)) {
    grid-template-columns: 1fr;
  }
}

/* ≤575.98px — Departments + 404 + Programme search ***************************/
@media screen and (max-width: 575.98px) {
  section[class~="404-section"] {
    min-height: calc(100vh - 160px);
    padding: 56px 16px;
  }

  section[class~="404-section"] .top>span:first-of-type,
  section[class~="404-section"] .top>span:last-of-type {
    font-size: 100px;
  }

  section[class~="404-section"] .top>span:nth-of-type(2) {
    font-size: 14px;
  }

  section[class~="404-section"] .center {
    max-width: 20em;
  }

  section[class~="404-section"] .bottom .button {
    padding: 12px 22px;
  }

  /* Programme search */
  .programme-search__toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .programme-search__sort {
    order: 1;
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .programme-search__toolbar .view-header {
    order: 2;
  }

  .programme-search__bar input[name="title"] {
    height: 48px;
    padding-left: 20px;
    font-size: 1rem;
  }

  .programme-search__submit {
    width: 38px;
    height: 38px;
    margin-left: -48px;
  }

  .programme-search__submit img {
    width: 18px;
    height: 18px;
  }

  .programme-search .programme-card {
    padding: 16px;
    gap: 12px;
  }

  .programme-search .programme-card__arrow {
    width: 38px;
    height: 38px;
  }

  .programme-search .programme-card__arrow img {
    width: 34px;
    height: 34px;
  }

  .programme-search .view-footer {
    margin-top: 20px;
  }

  /* Mobile legend: each item on its own row */
  .programme-search__legend,
  .programme-search .view-footer .programme-search__legend {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: visible;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior-x: auto;
    padding-bottom: 0;
  }

  .programme-search__legend-item,
  .programme-search .view-footer .programme-search__legend-item {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
  }  
  
  .programme-search .pager {
    margin-top: 20px;
  }

  .programme-search .pagination .page-item {
    height: 36px;
  }

  .programme-search .pagination .page-link {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    font-size: 14px !important;
    line-height: 36px !important;
  }

  /* News / e-newsletters list featured */
  .view-block-new-list .views-row:first-child .news-card,
  .view-block-e-newsletters-list .views-row:first-child .e-newsletters-card {
    border-radius: 20px;
  }

  .view-block-new-list .views-row:first-child .news-card::before,
  .view-block-e-newsletters-list .views-row:first-child .e-newsletters-card::before {
    border-radius: 20px;
  }

  .view-block-new-list .views-row:first-child .news-card .card-img-top,
  .view-block-e-newsletters-list .views-row:first-child .e-newsletters-card .card-img-top {
    border-radius: 20px 20px 0 0;
  }

  .view-block-new-list .views-row:first-child .news-card .card-body,
  .view-block-e-newsletters-list .views-row:first-child .e-newsletters-card .card-body {
    padding: 20px;
  }

  .view-block-new-list .views-row:first-child .news-card .card-title,
  .view-block-e-newsletters-list .views-row:first-child .e-newsletters-card .card-title {
    font-size: 20px;
  }
}
