@font-face {
  font-family: 'Beautiful Everytime';
  src: url('https://hosting.sch.life/Fonts/BeautifulEveryTime.ttf') format('woff');
  font-weight: normal;
  font-style: normal;
}
h1, h2, .welcome-message-home {
  font-family: 'Beautiful Everytime', cursive;
}
.vid-overlay {
  position: relative;
}
.welcome-message-home {
  position: absolute;
  top: 45%;
  right: 5%;
  z-index: 10;
  background-color: rgba(0,0,0,0.4);
  padding: 20px;
  color: #fff;
  border-radius: 8px;
  max-width: 40%;
  text-align: right;
}
.welcome-message-home h2 span {
	color: #fff;
	font-size: 3.0vw;
	text-align: right;
	font-weight: 500;
}
.welcome-message-home h2 {
	color: #fff;
	font-size: 2.2vw;
	text-align: right;
	font-weight: 200!important;
}
.welcome-message-home p {
	color: #fff;
	font-size: 1.47vw;
	text-align: right;
	font-weight: 200!important;
	margin-top: -30px;
}
.welcome-message-home h2,
.welcome-message-home p {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.slide-in-from-right {
  transform: translateX(100%);
  opacity: 0;
  transition: transform 1.5s ease-out, opacity 0.5s ease-out;
}

.slide-in-from-right.active {
  transform: translateX(0);
  opacity: 1;
}
.container-fluid {
	padding-right: 0px;
    padding-left: 0px;
}
#overlay {
  height: 100%;
  overflow: visible;
  pointer-events: none;
  background: none !important;
}
.full-screen-video-container {
  position: relative;
  height: 100%;
  width: 100vw;
  justify-content: center;
}

.full-screen-video-container video {
  width: auto;
  height: auto;
  width: 100%;
}
.view-video-button {
	position: absolute;
  bottom: 8px;
  right: 16px;
}
.housepoints-row {
	border-top: 4px solid #f30f04;
}
.insta-feed {
	margin-top: -80px;
	margin-bottom: 50px;
}
#bodycontent-home {
	top: -40px;
}

.school-name {
  text-shadow:
    1px 1px 0 #000,
    -1px 1px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000;
}
.egiTHk {
	border-radius: 0!important;
}
.djWGwD {
	border-radius: 0!important;
}
.fZjUDl {
	border-radius: 0!important;
}
.euBiGU {
	color: #2E354F!important;
	border: solid 4px #2E354F!important;
	background-color: #fff!important;
}
.euBiGU:hover {
	color: #fff!important;
	background-color: #2E354F!important;
	border: solid 4px #2E354F!important;
}
#overlay {
  height: 100%;
  overflow: visible;
  pointer-events: none;
  background: none !important;
}
.vid-overlay {
	position: relative;
}
.school-vid {
  position: relative;
	top: -50px;
  width: 100%;
  padding-bottom: 56.25%; 
  height: 0;
}
.school-vid iframe{
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 100%;
	z-index: 2;
}
.view-video-button {
	position: absolute;
  bottom: 8px;
  right: 16px;
}
.social-ad {
	position: relative;
}
.fas {
	padding-top: 8px;
}




.embed-responsive-item {
	padding-bottom: none;
	top: 70px !important;
	height:80% !important;
}

.elfsight-app-ac28bb68-d048-4a2c-8d08-e16a6a974a6c {
	height: 100%;
	overflow: scroll;
}
.google-map a {
	color: #000;
}

#breadcrumbnav {
	display: none;
}
.slide-fwd-top {
	-webkit-animation: slide-fwd-top 0.45s cubic-bezier(0.250, 0.460, 0.450, 0.940) 700ms both;
	        animation: slide-fwd-top 0.45s cubic-bezier(0.250, 0.460, 0.450, 0.940) 700ms both;
}
.contact-section {
	padding-left: 35px;
}
/* ----------------------------------------------
 * Generated by Animista on 2020-6-25 23:37:20
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation slide-fwd-top
 * ----------------------------------------
 */
@-webkit-keyframes slide-fwd-top {
  0% {
    -webkit-transform: translateZ(0) translateY(0);
            transform: translateZ(0) translateY(0);
  }
  100% {
    -webkit-transform: translateZ(160px) translateY(-100px);
            transform: translateZ(160px) translateY(-100px);
  }
}
@keyframes slide-fwd-top {
  0% {
    -webkit-transform: translateZ(0) translateY(0);
            transform: translateZ(0) translateY(0);
  }
  100% {
    -webkit-transform: translateZ(160px) translateY(-100px);
            transform: translateZ(160px) translateY(-100px);
  }
}


.wrap {
	float: right;
	padding: 0 0 2px 10px;
}

.list-of-schools {
	margin-bottom: 10px;
}


.home-heading h1 {
	text-align: center;
}
.nopadding {
	border: 5px solid white;
	margin-top: 50px;
}

/* Home Slide CSS */

/* Media CSS */
@media screen and (max-width: 1024px) {

}
@media screen and (max-width: 768px) {
.slidelayout {
	background-repeat: no-repeat;
	background-size: cover;
	display: flex;
	height: 200px;
	background-position: top center;
}
.carousel-caption p {
	font-size: 0.8em;
	margin-bottom: -30px;
}
.carousel-caption h3 {
	font-size: 5.0em;
	padding-bottom: -50px;
	-webkit-text-stroke-width: 1px;
	-webkit-text-stroke-color: black;
}
	
@-webkit-keyframes slide-fwd-top {
	0% {
		-webkit-transform: translateZ(0) translateY(0);
		transform: translateZ(0) translateY(0);
	}
	100% {
		-webkit-transform: translateZ(80px) translateY(-50px);
		transform: translateZ(80px) translateY(-50px);
	}
}
@keyframes slide-fwd-top {
	0% {
		-webkit-transform: translateZ(0) translateY(0);
		transform: translateZ(0) translateY(0);
	}
	100% {
		-webkit-transform: translateZ(80px) translateY(-50px);
		transform: translateZ(80px) translateY(-50px);
	}
}

}
@media screen and (max-width: 425px) {

}
/* Header CSS */


.sl-searchbox {
	margin-top: 5px;
	width: 100%;
}
.login-button {
	width: 100%;
}


/* General CSS */
body {
	background-color: #fff;
}
#mainbody {
	margin-top: -20px;
	padding-top: 0px;
}
.nopadding {
	padding: 0px;
}


#mainbody {
	margin-top: 60px;
	padding-top: 0px;
}

.header-bar {
	min-height: 200px!important;
}
.video-shape {
	background-image: url(/webcontent/webimage/video-wave.png);
	background-size: 100% 100px;
	bottom: 57px;
	left: 0;
	width: 100%;
	position: absolute;
	height: 100px;
	z-index: 3;
}
.shape-bottom {
	background-image: url(/webcontent/webimage/wave-summerhill.png);
	background-size: 100% 100px;
	bottom: -20px;
	position: relative;
	height: 100px;
	z-index: 3;
}
.shape-map {
	background-image: url(/webcontent/webimage/wave-summerhill.png);
	background-size: 100% 150px;
	bottom: 11px;
	position: relative;
	height: 100px;
	z-index: 3;
	transform: rotateY(180deg) rotateX(180deg);
}

.shape-map-bottom {
	background-image: url(/webcontent/webimage/video-wave.png);
	background-size: 100% 100px;
	top: -200px;
	position: relative;
	height: 100px;
	z-index: 3;
}
.googlemap {
	position: relative;
	height: 80%;
}
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
	.headbanner {
		display: none;
	}
	#bodycontent-home .row {
    margin-left: -15px;
    margin-right: -15px;
		
	}
	.school-logo img {
		padding-top:10px;
	}
	.school-vid {
		margin-top: 80px;
	}

.navbar-toggle {
	margin-top: -5px;
}
.school-vid iframe {
	top: -10px;
}
	#bodycontent-home {
		top: 0;
	}
}
/* ==============================
   HOUSEPOINTS
================================ */
.housepoints { margin: 60px 0 40px; }
.housepoints a { text-decoration: none; }
.housepoints h2 {
  color: var(--pink);
  font-weight: 900;
}

.sl-housepoints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 10px;
	margin-top:50px;
}

.sl-hp-entry {
  flex: 1 1 calc(25% - 20px);
  max-width: 25%;
  min-width: 220px;
  padding: 0 20px 0 20px;
  text-align: center;
}
.sl-hp-house {
  font-weight: bold;
  font-size: 1.5em;
}
.sl-hp-points {
  font-size: 2em;
  margin-top: 10px;
}
/* Housepoints: place markers (1st/2nd/3rd/4th) */
.sl-hp-entry { 
  position: relative; 
  overflow: visible; /* ensure the badge can sit above the box */
}

.place-label {
  position: absolute;
  top: 30px;                 /* anchor at top edge of the box */
  left: 50%;
  transform: translate(-50%, -110%); /* sit above and centred */
  background: #ffd700;    /* gold badge */
  color: #000;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.9em;
  line-height: 1;
  z-index: 10;            /* above winner pulse and content */
  display: none;          /* toggled by .show */
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* little pointer under the badge */
.place-label::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  border: 6px solid transparent;
  border-top-color: #ffd700;
}

/* show state (set by JS) */
.place-label.show { 
  display: inline-block;
  animation: fadeInLabel 0.5s ease-in forwards;
}

/* keep it tidy on small screens */
@media (max-width: 575px) {
  .place-label {
    font-size: 0.8em;
    transform: translate(-50%, -115%);
  }
}

/* Winner highlight */
.sl-hp-entry.winner::before { animation: pulse-winner 1.5s infinite; }
@keyframes pulse-winner {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Housepoint images */
[data-housename="Pandas"]::before,
[data-housename="Polar Bears"]::before,
[data-housename="Rhinos"]::before,
[data-housename="Tigers"]::before {
  content: "";
  display: inline-block;
  width: 100%;
  height: 220px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 5px auto;
}
[data-housename="Pandas"]::before { background-image: url('/webcontent/webimage/6c424a21-e8bf-4fe4-b3f1-178e51b51704.jpg'); }
[data-housename="Polar Bears"]::before { background-image: url('/webcontent/webimage/4d73f86c-22ce-473b-b7cc-81322a91b291.jpg'); }
[data-housename="Rhinos"]::before { background-image: url('/webcontent/webimage/444ea856-b1eb-4be5-84ff-05b22047b8d7.jpg'); }
[data-housename="Tigers"]::before { background-image: url('/webcontent/webimage/234d69c3-49cc-4c53-913f-23ded3e4ebed.jpg'); }

/* House-specific colours */
[data-housename="Pandas"] .sl-hp-house { color: #6c9a37; }
[data-housename="Polar Bears"] .sl-hp-house { color: #004b6b; }
[data-housename="Rhinos"] .sl-hp-house { color: #b6172d; }
[data-housename="Tigers"] .sl-hp-house { color: #f2ea3f; }
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {...}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {...}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {...}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {...}
.sl-hp-points {
	display: none;
}

/* CRESTWOOD PARK - REMOVE MOBILE GAPS */
@media (max-width: 991px) {

  /* Remove spacing around the video */
  .container-fluid:has(> .full-screen-video-container) {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .full-screen-video-container {
    height: 350px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .full-screen-video-container video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Remove gap between video and content */
  #mainbody {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  #bodycontent-home {
    padding-top: 20px !important;
  }

  /* Remove any empty paragraph spacing */
  #bodycontent-home .page-paragraph:first-child p:empty {
    display: none !important;
  }

  #bodycontent-home .page-paragraph:first-child p:has(> br:only-child) {
    display: none !important;
  }

}

/* CRESTWOOD PARK - FIX MOBILE WELCOME POSITION */
@media (max-width: 991px) {

  .full-screen-video-container .welcome-message-home {
    position: absolute !important;

    /* Position the box away from utility buttons */
    left: 15px !important;
    right: 75px !important;

    width: auto !important;
    max-width: none !important;

    /* Keep vertically centred */
    top: 50% !important;
    bottom: auto !important;

    /* Disable original slide positioning */
    transform: translateY(-50%) !important;
    animation: none !important;
    margin: 0 !important;

    padding: 15px !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .welcome-message-home h2 {
    font-size: clamp(26px, 5.5vw, 40px) !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  .welcome-message-home p {
    font-size: clamp(18px, 3.5vw, 25px) !important;
    margin: 5px 0 0 !important;
  }

}

/* Smaller phones */
@media (max-width: 480px) {

  .full-screen-video-container .welcome-message-home {
    left: 10px !important;
    right: 65px !important;
    padding: 10px !important;
  }

  .welcome-message-home h2 {
    font-size: 25px !important;
  }

  .welcome-message-home p {
    font-size: 19px !important;
  }

}
