/*
 * Site header and footer (template-parts/site-header.php, site-footer.php).
 *
 * Colours come from the Elementor kit palette, printed as --e-global-color-* on
 * :root by the theme (tscg_print_brand_palette) so each college keeps its own
 * palette with or without Elementor. Breakpoints match Elementor's: desktop
 * navigation from 1025px, mobile header below that, phone tweaks at 767px.
 */

:root {
	--tscg-primary: var(--e-global-color-primary, #3E266A);
	--tscg-secondary: var(--e-global-color-secondary, #693A83);
	--tscg-accent: var(--e-global-color-accent, #947023);
	--tscg-text: var(--e-global-color-text, #535353);
	--tscg-heading: var(--e-global-color-heading, var(--tscg-primary));
	--tscg-grey: var(--e-global-color-background_grey, #F5F5F5);
	--tscg-white: #FFFFFF;
	--tscg-rule: #D7D7D7;
	--tscg-font: "proxima-nova", "Helvetica Neue", Arial, sans-serif;
	--tscg-header-height: 0px;
	--tscg-content-width: 1400px;
	--tscg-gutter: clamp(16px, 4vw, 60px);
}

.tscg-header,
.tscg-footer {
	font-family: var(--tscg-font);
	-webkit-font-smoothing: antialiased;
}

.tscg-header *,
.tscg-header *::before,
.tscg-header *::after,
.tscg-footer *,
.tscg-footer *::before,
.tscg-footer *::after {
	box-sizing: border-box;
}

.tscg-header ul,
.tscg-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tscg-header a,
.tscg-footer a {
	text-decoration: none;
	color: inherit;
}

.tscg-header button {
	font: inherit;
	color: inherit;
	text-transform: none;
	letter-spacing: normal;
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

/* The parent theme's reset and the Elementor kit both style button:hover
   and button:focus (pink background, white text). Menu toggles opt out of
   that: background and colour only, so the component rules below keep
   their padding and typography. */
.tscg-header .tscg-topnav__toggle:hover,
.tscg-header .tscg-topnav__toggle:focus,
.tscg-header .tscg-mega__toggle:hover,
.tscg-header .tscg-mega__toggle:focus,
.tscg-header .tscg-mobile__toggle:hover,
.tscg-header .tscg-mobile__toggle:focus {
	background-color: transparent;
	color: inherit;
}

.tscg-header a:focus-visible,
.tscg-header button:focus-visible,
.tscg-header input:focus-visible,
.tscg-footer a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: 2px;
}

.tscg-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	fill: currentColor;
	vertical-align: middle;
	flex: 0 0 auto;
}

/* Hello Elementor's screen-reader-text is only defined when its header/footer are used. */
.tscg-header .screen-reader-text,
.tscg-footer .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

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

.tscg-header .tscg-btn,
.tscg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 23px 44px;
	font-family: var(--tscg-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 15px;
	letter-spacing: 0.75px;
	text-transform: uppercase;
	color: var(--tscg-white);
	background-color: var(--tscg-accent);
	border: 0;
	border-radius: 0;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.tscg-header .tscg-btn:hover,
.tscg-header .tscg-btn:focus-visible,
.tscg-btn:hover,
.tscg-btn:focus-visible {
	color: var(--tscg-white);
	opacity: 0.9;
}

.tscg-header .tscg-btn--primary, .tscg-btn.tscg-btn--primary { background-color: var(--tscg-primary); }
.tscg-header .tscg-btn--secondary, .tscg-btn.tscg-btn--secondary { background-color: var(--tscg-secondary); }
.tscg-header .tscg-btn--accent, .tscg-btn.tscg-btn--accent { background-color: var(--tscg-accent); }
.tscg-header .tscg-btn--white, .tscg-btn.tscg-btn--white { background-color: var(--tscg-white); color: var(--tscg-primary); }
.tscg-header .tscg-btn--white:hover,
.tscg-header .tscg-btn--white:focus-visible,
.tscg-btn--white:hover,
.tscg-btn--white:focus-visible { color: var(--tscg-primary); }

.tscg-btn__icon {
	width: 1.4em;
	height: 1.4em;
}

/* ------------------------------------------------------------------ */
/* Header shell                                                         */
/* ------------------------------------------------------------------ */

.tscg-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 1000;
	background: var(--tscg-white);
	box-shadow: 0 4px 50px rgba(0, 0, 0, 0.1);
	color: var(--tscg-primary);
	font-size: 14px;
	line-height: 1.3;
}

body.admin-bar .tscg-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.tscg-header__inner {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: 84px;
	--tscg-edge: 4%;
}

.tscg-header__brand {
	display: flex;
	align-items: center;
	flex: 0 0 20%;
	max-width: 20%;
	padding: 12px 20px 12px 4%;
}

.tscg-logo {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	max-width: 100%;
}

.tscg-logo__img {
	display: block;
	width: auto;
	max-width: min(100%, 215px);
	height: 65px;
	object-fit: contain;
	object-position: center left;
}

.tscg-logo__text {
	font-size: 22px;
	font-weight: 800;
	color: var(--tscg-primary);
}

.tscg-header__main {
	flex: 1 1 80%;
	max-width: 80%;
	display: flex;
	flex-direction: column;
}

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

.tscg-topbar {
	display: flex;
	justify-content: flex-end;
	align-items: stretch;
}

.tscg-topbar__start {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
	padding: 0 45px 0 clamp(60px, 15vw, 300px);
	background: linear-gradient(90deg, #FFFFFF 0%, #F2F2F2 50%);
}

.tscg-topbar .tscg-header__btn {
	flex: 0 0 auto;
	padding-left: clamp(24px, 2.3vw, 44px);
	padding-right: clamp(24px, 2.3vw, 44px);
}

/* Top-bar dropdown menu */
.tscg-topnav__list {
	display: flex;
	gap: 28px;
}

.tscg-topnav__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 22px 0;
}

.tscg-topnav__link {
	font-size: 14px;
	font-weight: 600;
	color: var(--tscg-primary);
}

.tscg-topnav__link:hover,
.tscg-topnav__item.is-open > .tscg-topnav__link {
	color: var(--tscg-accent);
}

.tscg-topnav__toggle {
	display: inline-flex;
	align-items: center;
	width: 20px;
	height: 20px;
	background: none;
	color: var(--tscg-primary);
}

.tscg-header .tscg-topnav__item:hover > .tscg-topnav__link,
.tscg-header .tscg-topnav__item:hover > .tscg-topnav__toggle,
.tscg-header .tscg-topnav__item.is-open > .tscg-topnav__link,
.tscg-header .tscg-topnav__item.is-open > .tscg-topnav__toggle {
	background: none;
	color: var(--tscg-accent);
}

.tscg-topnav__toggle .tscg-icon {
	width: 8px;
	height: auto;
	transition: transform 0.2s ease;
	margin-top: -1px;
}

.tscg-topnav__item:hover .tscg-topnav__toggle .tscg-icon,
.tscg-topnav__item.is-open .tscg-topnav__toggle .tscg-icon {
	transform: rotate(180deg);
}

.tscg-topnav__sub {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	min-width: 180px;
	padding: 20px 0 !important;;
	background: var(--tscg-primary);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	border: 1px solid var(--tscg-grey);
}

.tscg-topnav__sub::before {
	content: "";
	position: absolute;
	top: -7px;
	left: 24px;
	width: 14px;
	height: 14px;
	background: var(--tscg-primary);
	transform: rotate(45deg);
}

.tscg-topnav__sub[hidden] {
	display: none;
}

.tscg-topnav__sub li a,
.tscg-topnav__sub li span {
	display: block;
	padding: 7px 28px;
	font-size: 14px;
	font-weight: 400;
	white-space: nowrap;
	color: var(--tscg-white);
}

.tscg-topnav__sub li a:hover {
	text-decoration: underline;
}

/* Search box */
.tscg-search {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
}

.tscg-search__input {
	flex: 1 1 auto;
	min-width: 220px;
	padding: 6px 0;
	font-family: var(--tscg-font);
	font-size: 16px;
	font-weight: 600;
	color: var(--tscg-primary);
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline-offset: 4px;
}

.tscg-search__input::placeholder {
	color: var(--tscg-text);
	opacity: 0.8;
}

.tscg-search__submit {
	display: inline-flex;
	color: var(--tscg-primary);
	font-size: 22px;
}

.tscg-search__submit:hover {
	color: var(--tscg-accent);
}

.tscg-search--topbar {
	width: 100%;
}

/* ------------------------------------------------------------------ */
/* Mega menu                                                            */
/* ------------------------------------------------------------------ */

.tscg-navbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 32px;
	padding-right: 6%;
	margin-top: auto;
}

.tscg-mega__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0 32px;
}

.tscg-mega__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 24px 0;
}

.tscg-mega__link,
.tscg-mega__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--tscg-primary);
	white-space: nowrap;
}

.tscg-header .tscg-mega__link:hover,
.tscg-header .tscg-mega__toggle:hover,
.tscg-header .tscg-mega__item:hover > .tscg-mega__link,
.tscg-header .tscg-mega__item:hover > .tscg-mega__toggle,
.tscg-header .tscg-mega__item.is-open > .tscg-mega__link,
.tscg-header .tscg-mega__item.is-open > .tscg-mega__toggle {
	text-underline-offset: 3px;
	background-color: transparent;
	color: var(--tscg-accent);
}

.tscg-mega__item.current-menu-item > .tscg-mega__link,
.tscg-mega__item.current-menu-ancestor > .tscg-mega__link,
.tscg-mega__item.current-menu-ancestor > .tscg-mega__toggle {
	box-shadow: inset 0 -2px 0 var(--tscg-accent);
}

.tscg-mega__chevron {
	width: 10px;
	height: 10px;
	color: inherit;
	transition: transform 0.2s ease;
}

.tscg-mega__item:hover .tscg-mega__chevron,
.tscg-mega__item.is-open .tscg-mega__chevron {
	transform: rotate(180deg);
}

.tscg-mega__toggle--icon {
	width: 20px;
	height: 20px;
	justify-content: center;
}

/* Panel: full width of the header, content centred */
.tscg-mega__panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 30;
	padding: 0;
	color: var(--tscg-white);
}

.tscg-mega__panel[hidden] {
	display: none;
}

.tscg-mega__panel::before {
	/* The diamond arrow under the open item; JS sets --tscg-arrow-x. */
	content: "";
	position: absolute;
	top: 0;
	left: var(--tscg-arrow-x, 50%);
	width: 22px;
	height: 22px;
	background: var(--tscg-primary);
	transform: translate(-50%, -50%) rotate(45deg);
}

.tscg-mega__panel-inner {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: 600px;
	background: var(--tscg-primary);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.tscg-mega__panel-inner--colleges {
	min-height: 0;
	padding: 35px var(--tscg-edge, 4%);
}

.tscg-mega__content {
	flex: 1 1 74%;
	padding: 90px 40px 70px var(--tscg-edge, 4%);
}

.tscg-mega__title {
	margin: 0 0 40px;
	font-size: 35px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--tscg-white);
}

.tscg-mega__title a {
	color: inherit;
}

.tscg-mega__title a:hover {
	text-decoration: underline;
}

.tscg-mega__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px 40px;
	max-width: 1300px;
}

.tscg-mega__extra {
	margin: -16px 0 32px;
}

.tscg-mega__extra li {
	display: inline-block;
	margin: 0 32px 8px 0;
}

.tscg-mega__extra a,
.tscg-mega__extra span {
	font-size: 16px;
	font-weight: 700;
	color: var(--tscg-white);
}

.tscg-mega__extra a:hover {
	text-decoration: underline;
}

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

.tscg-mega__cols--flat .tscg-mega__col:only-child {
	grid-column: 1 / -1;
}

.tscg-mega__heading {
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--e-global-color-fourth, var(--tscg-white));
}

.tscg-mega__heading a {
	color: inherit;
}

.tscg-mega__heading a:hover {
	text-decoration: underline;
}

.tscg-mega__links li {
	margin: 0 0 12px;
}

.tscg-mega__links a,
.tscg-mega__links span {
	display: inline-block;
	font-size: 16px;
	font-weight: 400;
	line-height: 18px;
	text-transform: capitalize;
	color: var(--tscg-white);
}

.tscg-mega__links a:hover {
	text-decoration: underline;
}

.tscg-mega__links li.current-menu-item a {
	font-weight: 700;
}

.tscg-mega__promo {
	position: relative;
	flex: 0 0 26%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 28px;
	min-height: 430px;
	padding: 60px 40px;
	background-color: var(--tscg-primary);
	background-image: var(--tscg-promo-image, none);
	background-size: cover;
	background-position: top center;
	background-repeat: no-repeat;
	isolation: isolate;
}

.tscg-mega__promo::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--tscg-primary);
	opacity: 0.6;
	z-index: -1;
}

.tscg-mega__graphic {
	display: block;
	width: 170px;
	height: 170px;
	max-width: 100%;
}

.tscg-mega__cta {
	padding: 23px 60px;
	font-weight: 500;
}

/* College cards */
.tscg-colleges {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 25px;
	width: 100%;
}

.tscg-college {
	--tscg-college-colour: var(--tscg-primary);
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 350px;
	color: var(--tscg-white);
	background: var(--tscg-college-colour);
	overflow: hidden;
	isolation: isolate;
}

.tscg-college__photo {
	display: block;
	height: 230px;
	background: rgba(255, 255, 255, 0.1);
}

.tscg-college__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tscg-college__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 0 20px 30px;
	flex: 1 1 auto;
}

.tscg-college__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 67%;
	min-height: 70px;
	margin-top: -40px;
	padding: 20px 25px 15px;
	background: var(--tscg-white);
	position: relative;
	z-index: 2;
}

.tscg-college__logo img {
	display: block;
	max-width: 100%;
	max-height: 70px;
	width: auto;
	height: auto;
}

.tscg-college__name {
	font-size: 16px;
	font-weight: 700;
	color: var(--tscg-primary);
	text-align: center;
}

.tscg-college__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--tscg-grey);
}

.tscg-college__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--tscg-college-colour);
	opacity: 0;
	transition: opacity 0.25s ease;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.tscg-college__overlay span {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.tscg-college:hover .tscg-college__overlay,
.tscg-college:focus-visible .tscg-college__overlay {
	opacity: 0.85;
}

.tscg-navbar__search {
	display: inline-flex;
	color: var(--tscg-primary);
	font-size: 18px;
}

.tscg-navbar__search:hover {
	color: var(--tscg-accent);
}

/* Backdrop behind an open mega panel */
.tscg-header__backdrop {
	position: fixed;
	inset: 0;
	z-index: 900;
	background: rgba(20, 10, 40, 0.55);
}

.tscg-header__backdrop[hidden] {
	display: none;
}

.tscg-header__desktop,
.tscg-header__mobile {
	position: relative;
	z-index: 1001;
	background: var(--tscg-white);
}

/* ------------------------------------------------------------------ */
/* Mobile header                                                        */
/* ------------------------------------------------------------------ */

.tscg-header__mobile {
	display: none;
}

.tscg-mobilebar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-left: 18px;
	min-height: 80px;
}

.tscg-logo--mobile {
	flex: 0 1 auto;
}


.tscg-mobilebar__actions {
	display: flex;
	align-items: center;
}

.tscg-header .tscg-mobilebar__search,
.tscg-header .tscg-mobilebar__menu {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 80px;
	width: 80px;
	color: var(--tscg-white);
	background: var(--tscg-primary);
	font-size: 28px;
}

.tscg-header .tscg-mobilebar__menu {
	background: var(--tscg-secondary);
}

.tscg-mobilebar__menu .tscg-mobilebar__icon-close,
.tscg-mobilebar__menu[aria-expanded="true"] .tscg-mobilebar__icon-open {
	display: none;
}

.tscg-mobilebar__menu[aria-expanded="true"] .tscg-mobilebar__icon-close {
	display: inline-block;
}

.tscg-mobile-search {
	padding: 12px 16px;
	background: var(--tscg-grey);
}

.tscg-mobile-search[hidden] {
	display: none;
}

.tscg-search--mobile .tscg-search__input {
	min-width: 0;
	padding: 10px 14px;
	background: var(--tscg-white);
}

.tscg-mobilebar__buttons {
	display: flex;
	min-height: 72px;
}

.tscg-mobilebar__buttons .tscg-btn--secondary {
	display: none;
}

.tscg-mobilebar__buttons .tscg-btn {
	flex: 1 1 0;
	min-width: 0;
	gap: 8px;
	padding: 16px 10px;
	font-size: 15px;
	line-height: 15px;
	letter-spacing: 0.3px;
	text-align: center;
}

.tscg-mobilebar__buttons .tscg-btn__label {
	min-width: 0;
}

.tscg-mobilebar__buttons .tscg-btn__icon {
	width: 1.2em;
	height: 1.2em;
}

.tscg-mobilebar__buttons .tscg-btn:first-child:not(.tscg-btn--primary):not(.tscg-btn--accent) {
	background-color: var(--tscg-primary);
}

/* Off-canvas menu */
.tscg-mobile {
	position: fixed;
	top: var(--tscg-header-height, 0px);
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1002;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--tscg-white);
	color: var(--tscg-primary);
}

.tscg-mobile[hidden] {
	display: none;
}

/* Slides in from the left and fades, over the page content. `is-open` is
   added a frame after `hidden` is cleared so the transition has a start
   value to animate from. */
.tscg-mobile {
	transform: translateX(-100%);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.tscg-mobile.is-open {
	transform: none;
	opacity: 1;
}

.tscg-mobile__item {
	border-bottom: 1px solid var(--tscg-rule);
}

.tscg-mobile__row {
	display: flex;
	align-items: stretch;
}

.tscg-mobile__link,
.tscg-mobile__toggle--text {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	color: var(--tscg-primary);
}

.tscg-mobile__toggle {
	flex: 0 0 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--tscg-primary);
	border-left: 1px solid var(--tscg-rule);
}

.tscg-mobile__toggle .tscg-icon {
	width: 14px;
	height: 14px;
	transition: transform 0.2s ease;
}

.tscg-mobile__toggle.tscg-mobile__toggle--text {
	flex: 1 1 auto;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	justify-content: space-between;
	padding: 16px 20px;
	border-left: 0;
	color: var(--tscg-primary);
}

.tscg-mobile__toggle.tscg-mobile__toggle--text .tscg-icon {
	color: var(--tscg-primary);
}

.tscg-mobile__toggle[aria-expanded="true"] .tscg-icon {
	transform: rotate(180deg);
}

.tscg-mobile__sub {
	background: var(--tscg-grey);
}

.tscg-mobile__sub[hidden] {
	display: none;
}

.tscg-mobile__list--depth-1 .tscg-mobile__link,
.tscg-mobile__list--depth-1 .tscg-mobile__toggle--text {
	padding-left: 32px;
	font-weight: 600;
}

.tscg-mobile__list--depth-2 .tscg-mobile__link,
.tscg-mobile__list--depth-2 .tscg-mobile__toggle--text {
	padding-left: 48px;
	font-weight: 400;
}

.tscg-mobile__list--depth-3 .tscg-mobile__link {
	padding-left: 64px;
	font-weight: 400;
}

.tscg-mobile__list--depth-1 .tscg-mobile__item:last-child,
.tscg-mobile__list--depth-2 .tscg-mobile__item:last-child {
	border-bottom: 0;
}

.tscg-mobile__item.current-menu-item > .tscg-mobile__row > .tscg-mobile__link {
	color: var(--tscg-accent);
}

body.tscg-mobile-menu-open {
	overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Responsive: mobile header below the desktop breakpoint               */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.tscg-header__desktop {
		display: none;
	}

	.tscg-header__mobile {
		display: block;
	}
}

@media (min-width: 1025px) and (max-width: 1280px) {
	.tscg-header__brand {
		flex-basis: 18%;
		max-width: 18%;
		padding-left: 2%;
	}

	.tscg-header__main {
		flex-basis: 82%;
		max-width: 82%;
	}

	.tscg-topbar__start {
		padding-left: 40px;
		padding-right: 24px;
	}

	.tscg-mega__list {
		gap: 0 20px;
	}

	.tscg-navbar {
		padding-right: 3%;
	}

	.tscg-mega__content {
		padding: 50px 30px 50px 50px;
	}

	.tscg-mega__cols {
		gap: 30px 24px;
	}
}

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

.tscg-footer {
	position: relative;
	z-index: 2;
	color: var(--tscg-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	background: var(--tscg-white);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.tscg-footer__inner {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding-left: var(--tscg-gutter);
	padding-right: var(--tscg-gutter);
}

.tscg-footer img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Social bar: a centred band that sits across the join with the page content */
.tscg-footer__social {
	padding: 0 var(--tscg-gutter);
}

.tscg-footer__social-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px 60px;
	width: 100%;
	max-width: 770px;
	margin: 0 auto -45px;
	padding: 31px 65px;
	transform: translateY(-45px);
	background: var(--tscg-primary);
	color: var(--tscg-white);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
	position: relative;
	z-index: 2;
}

.tscg-footer__social-heading {
	margin: 0;
	font-size: 25px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--tscg-white);
}

.tscg-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 36px;
}

.tscg-social__link {
	display: inline-flex;
	font-size: 22px;
	color: var(--tscg-white);
	transition: opacity 0.2s ease;
}

.tscg-social__link:hover {
	opacity: 0.7;
}

/* College logos band (group site) */
.tscg-footer__brand {
	background: var(--tscg-primary);
	color: var(--tscg-white);
}

.tscg-footer__social + .tscg-footer__brand {
	margin-top: -45px;
	padding-top: 0;
}

.tscg-footer__brand-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 30px 40px;
	padding-top: 35px;
	padding-bottom: 35px;
}

.tscg-footer__brand .tscg-footer__logo {
	flex: 0 1 300px;
}

.tscg-footer__brand .tscg-footer__logo img {
	width: 100%;
	max-width: 300px;
}

.tscg-footer__colleges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 25px;
	flex: 1 1 60%;
}

.tscg-footer__colleges-label {
	flex: 0 0 100%;
	font-size: 14px;
	font-weight: 700;
	line-height: 16px;
}

.tscg-footer__college-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 25px;
	width: 100%;
}

.tscg-footer__college-logos li {
	flex: 1 1 150px;
	max-width: 220px;
}

.tscg-footer__college-logos img {
	width: 100%;
	max-height: 60px;
	object-fit: contain;
	object-position: left center;
}

/* Main grid */
.tscg-footer--group .tscg-footer__main {
	background: var(--tscg-grey);
}

.tscg-footer__grid {
	display: grid;
	grid-template-columns: minmax(180px, 1.2fr) repeat(var(--tscg-footer-menus, 3), minmax(0, 1fr)) minmax(200px, 1.1fr);
	gap: 40px 24px;
	padding-top: 60px;
	padding-bottom: 50px;
}

.tscg-footer__brandcol {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 30px;
}

.tscg-footer__brandcol .tscg-footer__logo img {
	width: 217px;
}

.tscg-footer__badge img {
	width: 72px;
}

.tscg-footer__brandcol .tscg-footer__badge {
	margin-top: auto;
}

.tscg-footer__contact {
	grid-column: span 1;
}

.tscg-footer__heading {
	margin: 0 0 16px;
	font-family: var(--tscg-font);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--tscg-secondary);
}

.tscg-footer__phone {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	color: var(--tscg-primary);
}

.tscg-footer__phone .tscg-icon {
	font-size: 23px;
	color: var(--tscg-primary);
}

.tscg-footer__address {
	font-style: normal;
	font-weight: 600;
	color: var(--tscg-primary);
}

.tscg-footer__menu {
	padding-left: 20px;
}

.tscg-footer__links li {
	margin: 0;
}

.tscg-footer__links a,
.tscg-footer__links span {
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	line-height: 28px;
	text-transform: capitalize;
	color: var(--tscg-text);
}

.tscg-footer--group .tscg-footer__links a {
	color: var(--tscg-primary);
}

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

/* Accreditation logos and copyright, right-hand column */
.tscg-footer__aside {
	grid-column: -2 / -1;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 30px;
	text-align: right;
}

.tscg-footer__logo-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px 5px;
	width: 100%;
	max-width: 380px;
	align-items: center;
	justify-items: center;
}

.tscg-footer__logo-list img {
	width: 100%;
	max-width: 90px;
	max-height: 60px;
	object-fit: contain;
	filter: grayscale(1);
}

.tscg-footer__copyright {
	margin: auto 0 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 17px;
	color: var(--tscg-text);
}

@media (max-width: 1024px) {
	.tscg-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tscg-footer__brandcol {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.tscg-footer__menu {
		padding-left: 0;
	}

	.tscg-footer__aside {
		grid-column: 1 / -1;
		align-items: flex-start;
		text-align: left;
	}

	.tscg-footer__logo-list {
		justify-items: start;
	}
}

@media (max-width: 767px) {
	.tscg-footer__social-bar {
		flex-direction: column;
		margin-bottom: 0;
		transform: none;
		padding: 22px var(--tscg-gutter);
		justify-content: center;
		text-align: center;
		gap: 14px;
	}

	.tscg-footer__social + .tscg-footer__brand {
		margin-top: 0;
		padding-top: 0;
	}

	.tscg-footer__social-heading {
		font-size: 20px;
	}

	.tscg-social {
		gap: 24px;
	}

	.tscg-footer__grid {
		grid-template-columns: 1fr;
		gap: 0;
		text-align: center;
		padding-top: 30px;
		padding-bottom: 40px;
	}

	/* The logo and the Ofsted badge become sections in their own right so
	   the badge can move to the end of the footer. */
	.tscg-footer__brandcol {
		display: contents;
	}

	.tscg-footer__grid > *:not(.tscg-footer__brandcol),
	.tscg-footer__brandcol > * {
		padding: 26px 0;
		border-top: 1px solid var(--tscg-rule);
	}

	.tscg-footer__brandcol > .tscg-footer__logo {
		padding-top: 0;
		border-top: 0;
	}

	.tscg-footer__brandcol > .tscg-footer__badge {
		order: 99;
		margin-top: 0;
	}

	.tscg-footer__logo img,
	.tscg-footer__badge img,
	.tscg-footer__logo-list img {
		margin-left: auto;
		margin-right: auto;
	}

	.tscg-footer__brandcol .tscg-footer__logo img {
		width: 200px;
	}

	.tscg-footer__aside {
		align-items: center;
		text-align: center;
		gap: 26px;
	}

	/* Group site: the badge sits inside the aside instead. Same idea. */
	.tscg-footer__aside .tscg-footer__copyright {
		order: 2;
	}

	.tscg-footer__aside .tscg-footer__badge {
		order: 3;
		padding-top: 26px;
		border-top: 1px solid var(--tscg-rule);
		width: 100%;
	}

	.tscg-footer__logo-list {
		justify-items: center;
		margin-left: auto;
		margin-right: auto;
	}

	.tscg-footer__college-logos li {
		flex-basis: 40%;
	}

}

@media (prefers-reduced-motion: reduce) {
	.tscg-header *,
	.tscg-footer * {
		transition-duration: 0ms !important;
	}
}
