/* Local CSS overrides for just this site */

@font-face {
	font-family: 'Roberto';
	src: url(/design_local/fonts/RobotoCondensed-Light.ttf) format("truetype");
	font-weight: 300;
	font-style: normal;
	font-display: fallback
}

body, input, textarea, h1, h2, h3, h4, h5, h1.schoolTitle
{font-family: Roberto, sans-serif;font-weight: 300;}

body {color:#000; font-size:112%}

h1, h2 {font-weight:400}
h1 {font-size:2.4444rem}
h2 {font-size:1.77rem}
h3 {font-size:1.25rem}
h4 {font-size:1.1rem}

code {font-size:0.9em}

html {
	scrollbar-gutter: stable;
}
html:has(dialog[open]) {
	overflow: hidden;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
dialog{outline:none; 
	box-shadow: 4px 4px 16px -1px rgba(0,0,0,0.50);
}

@media only screen and (min-width:768px) {
	.content, #footerWrapper {line-height: 1.5;}
	h1 {font-size: 4rem}
	h2 {font-size: 2.5rem}
	h3 {font-size: 1.777rem}
	h4 {font-size: 1.25rem}
	.strapline {font-size:2em;}
}

h3 {font-weight:400}
h4 {font-weight:bold}

h1 {letter-spacing:-0.05em}
h2 {letter-spacing:-0.05em}

select {font-family:inherit; font-size:inherit}

input:disabled {
	color:inherit;
}

.jumpMenu a[href] {colour:#502864}
.jumpMenu a[href]:hover {colour:#fff;background-color:#502864!important;}

.headerWrapper header {
    max-width: 82.75rem;
    padding-top: 0px;
}
.logoImage {max-width:50%}
.mobileNav { margin:0px; height:68px;}
.mobileNav .icon {
	margin-top: 0px;
	vertical-align: -webkit-baseline-middle;
}

.qmlogo {max-height:58px;}

#schoolTitle {letter-spacing:0em}

a, a:hover, a:visited, #main a:hover, #abstract a:hover, .secondary a:hover 
 {color:#502864; outline:none!important}

strong, b {font-weight:bold}

.secondary-menu__nav>ul>li>a {color:#000000!important; font-weight:bold}

.input-box-right-throbber {
	background-image: url(/images/loading.gif);
	background-repeat: no-repeat;
	background-position: right 4px center;
	background-size: 24px;
}
.input-box-right-tick-green {
	background-image: url(/images/icons/tick.png);
	background-repeat: no-repeat;
	background-position: right 4px center;
	background-size: 16px;
}

.center-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}

#paypal-order {
	padding:1em;
	margin-top:40px;
	margin-bottom:40px;
	border: solid 1px #cea600;
	background-color:#f3f3f3;
}
#paypal-order-small-paypal-logo {
	border:#cea600 1px solid; 
	float:right; 
	width:100px; 
	height:34px;
	padding:8px; 
	padding-top:5px; 
	padding-bottom:0px; 
	background-color:#fff; 
	margin-top:-40px; 
	margin-right:-8px;
	background-image:url(/content/images/logos/images/pp_h_rgb.png);
	background-size:100px;
	background-position: 8px 8px;
	background-repeat:no-repeat;
}
#paypal-button-container {
	max-width: 400px;
    margin: 0px auto;
	text-align:center;
}

.paypal-svg-button {
    background-color: #ffc439;
    border: 1px solid #e2b02a;
    border-radius: 50px; /* Pill shape */
    padding: 10px 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-family: "Helvetica Neue", Arial, sans-serif;
    transition: background 0.2s;
}

.paypal-svg-button:hover {
    background-color: #f2ba36;
}

.pay-text {
    font-weight: bold;
    font-size: 16px;
    color: #111;
}

.pp-mark {
    height: 20px;
    width: auto;
}

.paypal-brand {
    font-style: italic;
    font-weight: bold;
    font-size: 18px;
    color: #003087;
    letter-spacing: -1px;
}

.pp-throbber {
  animation: rotate 2s linear infinite;
  width: 24px;  /* Adjust size as needed */
  height: 24px;
}

.pp-throbber .path {
  stroke: #003087; /* Official PayPal Blue */
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}


.headerWrapper, #cse-search-box {background-color:#E8ECF2}
.searchicon {fill:#444}
.mobileNav .icon {fill:#444}

.social-list--circled .social-list__service-link {
	background-color: #fff;
}

@media screen and (min-width: 850px) {
	header.topHeader {
		align-items: left;
		text-align:left;
	}
}
@media screen and (min-width: 200px) {
	.qmlogo {
		margin-left: -26px;
	}
}
@media screen and (min-width: 850px) {
	.qmlogo {
		margin-left: 0px;
	}
}

.contentCard h3 {margin-top:0px; }
.contentCard h3 a[href] {color:#401854;}

.scale98hover:hover {
	transform: scale(0.98); 
	/* border: #999 solid 1px; */
}
.icon16, .icon24, .icon32, .icon40, .icon48 {
	border:none!important;
}
		
#main .twocolumns {
	column-count:2; 
	column-width:350px; 
	column-gap: 40px;
}
#main .twocolumns div {
	break-inside:avoid;	
	padding-bottom:40px;
}

.logotable img {max-height:180px}
.logotable td {padding:20px}

@media only screen and (min-width:848px) {
	#main .twocolumns div {
		padding-bottom:20px;
	}
}

.radio1 {
  width: 1.2em;
  height: 1.2em;
  accent-color: #502864;
  vertical-align:text-top;
  cursor:pointer;
}


table.programme {background-color: #CDA70A; border-spacing:1px; }
table.programme tbody {background-color:#fff}
table.programme td {background-color:#fff; padding:5px; vertical-align:top}
table.programme tr td:first-of-type {font-weight:bold;}
table.programme td.programmehead {background-color:#0D3273; color:#fff}
table.programme td p {margin-top:0px; margin-bottom:0px}
table.programme td ul {margin-top:4px; margin-bottom:0px}

a.button2[target="_blank"]::after {
  content: "";
  background:none!important;
  width:0;
  height:0;
  margin:0;
} 

@media print {	
	.headerWrapper header {width:95%}
	section #main {max-width:inherit}	
	.donotprint {display:none}
	#schoolTitleWrapper {display:none}
	.searchicon, .mobileNav {display:none}
	.printTextLogo {width:90%; margin-left:auto; margin-right:auto}
	table.programme {width:100%; border-collapse: collapse;}
	table.programme tr {border-bottom: 1px #ccc solid}
	table.programme tr td:first-of-type {border-right: 1px #ccc solid}
	.button2 {display:none}
	.flexslider {display:none}
	.bighead a[href] {color:#000!important}	
	table.eventsbox {width:100%; border-collapse: collapse;}
	table.eventsbox tr:nth-child(n+2) {border-bottom: 1px #ccc solid}
	table.newsbox {width:100%; border-collapse: collapse;}
	table.newsbox tr {border-bottom: 1px #ccc solid}
	.contentCard {border:1px #ccc solid}
	.youtubevideo {display:none}
	.youtubewrapper::before {
		content: "[YouTube Video]"
	}
	#main a {text-decoration:none}
}

/*----------------------------------------------*/
/* UL CARDS                                     */
/*----------------------------------------------*/

ul.cards4, ul.cards3, ul.cards2, ul.cards1 {
	display:grid;
	gap:20px;
	grid-template-columns: repeat(1, 1fr);
	padding:0px;
	padding:0px;
	padding-top:20px;
}
ul.cards1 {
	margin-top:10px;
}
@media (min-width:320px) {
	ul.cards4 {	
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width:560px) {
	ul.cards4 {	
		gap:30px;	
		grid-template-columns: repeat(3, 1fr);
	}
	ul.cards3 {	
		gap:30px;
		grid-template-columns: repeat(2, 1fr);
	}
	ul.cards2 {	
		gap:30px;		
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width:1024px) {
	ul.cards4 {	
		gap:40px;	
		grid-template-columns: repeat(4, 1fr);
	}
	ul.cards3 {	
		gap:40px;		
		grid-template-columns: repeat(3, 1fr);
	}
	ul.cards2 {	
		gap:40px;		
		grid-template-columns: repeat(2, 1fr);
	}
}
#main ul.cards4 li:before, ul.cards4 li:before,
#main ul.cards3 li:before, ul.cards3 li:before,
#main ul.cards2 li:before, ul.cards2 li:before,
#main ul.cards1 li:before, ul.cards1 li:before {
	border-radius: inherit;
	display: block;
	font-size: inherit;
	height: 0px;
	width: 0px;
	left: 0px;
	line-height: inherit;
	position: inherit;
	top: inherit;
}
#main ul.cards4 li, ul.cards4 li,
#main ul.cards3 li, ul.cards3 li,
#main ul.cards2 li, ul.cards2 li,
#main ul.cards1 li, ul.cards1 li {
	border: 0px;
	padding:0px;
	margin:0px;
	background-color:#0d3273;
	color:#fff;
	padding-bottom:0px;
	overflow: hidden;
	border: 1px solid #ccc;
}
#main ul.cards4 li:hover, ul.cards4 li:hover,
#main ul.cards3 li:hover, ul.cards3 li:hover,
#main ul.cards2 li:hover, ul.cards2 li:hover,
#main ul.cards1 li:hover, ul.cards1 li:hover{
	background-color:#0c746a;
}
#main ul.cards4 li a, ul.cards4 li a,
#main ul.cards3 li a, ul.cards3 li a,
#main ul.cards2 li a, ul.cards2 li a,
#main ul.cards1 li a, ul.cards1 li a {
	text-decoration:none;
	color:#fff;
	outline: none;
}
#main ul.cards4 li img, ul.cards4 li img,
#main ul.cards3 li img, ul.cards3 li img,
#main ul.cards2 li img, ul.cards2 li img,
#main ul.cards1 li img, ul.cards1 li img {
	width: 100%!important;
	height:auto!important;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
#main ul.cards4 li p, ul.cards4 li p,
#main ul.cards3 li p, ul.cards3 li p,
#main ul.cards2 li p, ul.cards2 li p,
#main ul.cards1 li p, ul.cards1 li p {
	padding:20px; 
	padding-top:0px;
	padding-bottom:20px;
	margin-bottom:0px;
	font-weight:300;
	margin-top:10px;
}
#main ul.cards4 li p:first-of-type, ul.cards4 li p:first-of-type,
#main ul.cards3 li p:first-of-type, ul.cards3 li p:first-of-type,
#main ul.cards2 li p:first-of-type, ul.cards2 li p:first-of-type,
#main ul.cards1 li p:first-of-type, ul.cards1 li p:first-of-type {
	font-size:1.6em;
	line-height:1.25;
	padding-top:0px;
	padding-bottom:10px;
	margin-top:0px;
	font-weight:300;
}
#main ul.cards4 li p:last-of-type, ul.cards4 li p:last-of-type,
#main ul.cards3 li p:last-of-type, ul.cards3 li p:last-of-type,
#main ul.cards2 li p:last-of-type, ul.cards2 li p:last-of-type,
#main ul.cards1 li p:last-of-type, ul.cards1 li p:last-of-type {
	margin-bottom:10px;
}
@media (min-width:560px) {
	#main ul.cards4 li, ul.cards4 li,
	#main ul.cards3 li, ul.cards3 li,
	#main ul.cards2 li, ul.cards2 li,
	#main ul.cards1 li, ul.cards1 li {
		margin-bottom:0px;
		padding-bottom:10px;
	}
	#main ul.cards4 li p:first-of-type, ul.cards4 li p:first-of-type,
	#main ul.cards3 li p:first-of-type, ul.cards3 li p:first-of-type,
	#main ul.cards2 li p:first-of-type, ul.cards2 li p:first-of-type,
	#main ul.cards1 li p:first-of-type, ul.cards1 li p:first-of-type	 {
		padding-bottom:0px;
		margin-bottom:0px;
		line-height:1.5;
	}
	#main ul.cards4 li p, ul.cards3 li p,
	#main ul.cards3 li p, ul.cards3 li p,
	#main ul.cards2 li p, ul.cards2 li p,
	#main ul.cards1 li p, ul.cards1 li p {
		padding:20px;
		padding-top:0px;
		padding-bottom:10px;
	}
	#main ul.cards2 li {
		min-height:6em;
	}
}

#main ul.people_cards, ul.people_cards {
	padding-top:0px!important;
}
#main ul.people_cards li, ul.people_cards li {
	background-color:#fff!important;
}
#main ul.people_cards li p, ul.people_cards li p {
	font-size:smaller!important;
	line-height:normal!important;
	padding:10px!important;
	padding-top:0px!important;
	color:#000!important;
	font-weight:400!important;
}
#main ul.people_cards li p:last-of-type, ul.people_cards li p:last-of-type {
	padding-bottom:0px!important;
}
#main ul.people_cards li p a[href], ul.people_cards li p a[href] {
	color:#502864!important;	
	text-decoration:underline!important;	
}
#main ul.people_cards li p a[href]:hover, ul.people_cards li p a[href]:hover {
    text-decoration-color: #cea600!important;
}
#main ul.people_cards li img, ul.people_cards li img {
	aspect-ratio: 1 / 1;
}
#main ul.no_link li, ul.no_link li {
	cursor:initial!important;
}

/*----------------------------------------------*/

.profilepiccontainer {
	margin:0px;	
	margin-top:10px;
	margin-bottom:10px;
	border: 1px #ccc solid;
}
.profilepiccontainer p {
	text-align:left;
	font-size:smaller!important;
	line-height:normal!important;
	padding:10px!important;
	padding-top:0px!important;
	margin:0px;
}
.profilepiccontainer p a[href]{
	text-decoration:none!important;
}

@media only screen and (min-width:566px) {
	.profilepiccontainer {
    	float: right;
		aspect-ratio: 1;
		margin-left:20px;
	}
}
.profileimage {
	object-fit: cover;	
	aspect-ratio: 1; 
	margin:10px;
	margin-bottom:4px;
	background-color:#fff;
	border: 1px solid #ccc;	
}
.height200 {
	height: 200px;
}
.height180 {
	height: 180px;
}
.width200 {
	width: 200px;
}
.width180 {
	width: 180px;
}

.secondary-menu__nav>ul>li>a:hover, 
.secondary-menu__nav>ul>li>a:active, 
.secondary-menu__nav>ul>li>a:focus, 
.secondary-menu__nav>ul>li>a .navcurrent {
	border-bottom-color: #502864;
}
.xtabNavigation {
	font-size:16px;
	font-weight:bold;
}
.xtabNavigation li a[href]:hover {
    border-bottom-color: #502864;
}

.searchboxWrapper {
	margin-top:10px; 
	border:0px;
	width: -webkit-fill-available;
}
.searchbox {
	line-height:1em;
	background-color:#eee; 
	background-image:url(/images/search-icon_grey.png); 
	background-repeat:no-repeat; background-size:26px;
	background-position:6px 6px; 
	padding:8px;  
	height:22px;
	padding-left:36px; 
	width: -webkit-fill-available;
	margin-top:20px;
}
@media (min-width: 800px) {
	.searchboxWrapper {
		float:right;
		max-width:320px;
		padding-top:0px;
		margin-left:20px;
		margin-top:1em;
	}
	.searchbox {
		margin-top:0px;
	}
}

.abstractbutton {
	background-color:#502864;
	vertical-align: text-top;
	padding:4px;
	padding-left:10px;
	padding-right:10px;
	font-size:16px;
}

.ui-dialog-content, .ui-tooltip {
	line-height:1.5em;
}
select {
	background-color:#fff;
}
.rightleft {
	float:none;
}
@media only screen and (min-width:566px) {
	.rightleft {
    	float: right;
		margin-left:20px;
	}
}

a[target="_blank"]:has(img)::after {
	display:none;
}
