@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;
}
/* === HOMEPAGE CAROUSEL — TRUE CROSSFADE === */
/* == Homepage Slideshow == */
.slideshow-box:before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 300px;
    background: url(/webcontent/webimage/menu-overlay.png) repeat-x top left;
    top: 0;
    left: 0;
	z-index: 1;
	transform: scale(1);
    transition: transform 0.8s ease;
}
.slideshow-box:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background: url(/webcontent/webimage/home-slider-mask-new1.png) repeat-x bottom left;
    bottom: 0;
    left: 0;
	z-index: 1;
}
.slideshow-box {
	height: 60vh;
	width: 100%;
	position: relative;
}
#slide-1 {
	background-image: url("/webcontent/webimage/smm-school.png");
	background-position: center bottom;
	transform: scale(1.2);
}
#slide-2 {
	background-image: url("/webcontent/webimage/imgi_3_ebf5dfa1-7138-4bbb-a2d6-67580be9a79c.jpg");
	background-position: center bottom;
	transform: scale(1.2);
}
#slide-3 {
	background-image: url("/webcontent/webimage/imgi_4_df9cfdd0-2618-4509-8e85-99eb2ca19b18.jpg");
	background-position: center bottom;
}
#slide-4 {
	background-image: url("/webcontent/webimage/imgi_3_98436776-9980-447a-8b5a-21f3a7660ee8.jpg");
	background-position: center bottom;
}
.fill {
	width: 100%;
	height: 60vh;
	background-position: center top;
	background-size: cover;
	background-repeat: no-repeat;
}
#myCarousel {
	position: relative;
	width: 100%;
	z-index:0;
}
.carousel-inner {
	height: 100%;
}
.carousel-fade .carousel-inner .item {
	opacity: 0;
	transition-property: opacity;
}
.carousel-fade .carousel-inner .active {
	opacity: 1;
}
.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
	left: 0;
	opacity: 0;
	z-index: 1;
}
.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right {
	opacity: 1;
}
.carousel-fade .carousel-control {
	z-index: 2;
}
@media all and (transform-3d), (-webkit-transform-3d) {
	.carousel-fade .carousel-inner > .item.next,
	.carousel-fade .carousel-inner > .item.active.right {
		opacity: 0;
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}
	.carousel-fade .carousel-inner > .item.prev,
	.carousel-fade .carousel-inner > .item.active.left {
		opacity: 0;
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}
	.carousel-fade .carousel-inner > .item.next.left,
	.carousel-fade .carousel-inner > .item.prev.right,
	.carousel-fade .carousel-inner > .item.active {
		opacity: 1;
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}
}
.carousel-caption {
	bottom: 25vh;
}
.carousel-caption h1 {
	text-transform: uppercase;
}
.carousel-caption h1 small {
	color: #fff;
	text-transform: lowercase;
}
/* === welcome message on carousel === */
.welcome-message-home {
	position: absolute;
	left:0;
	right: 0;
	bottom: 100px;
	margin: 0 auto;
	padding-right: 50px;
	z-index: 5;
	background-color: rgba(1, 27, 64, 0.3);
}
.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.0vw;
	text-align: right;
	font-weight: 200!important;
}

/* === FEATURE BOXES === */
#feature-boxes {
  padding: 0 0; margin-top: 80px; background: #fff; text-align: center;
}
.feature-box {
  background-size: cover; background-position: center;
  height: 220px; position: relative; overflow: hidden;
  transition: all 0.4s ease; margin-bottom: 10px;
}
.feature-box a {
  color: #fff; text-decoration: none;
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8em; font-weight: 600;
  transition: all 0.4s ease;
}
.feature-box:hover {
  filter: grayscale(100%);
  transform: scale(1.05);
}
.feature-box:hover a {
  background: rgba(0,0,0,0.55);
}
@media (max-width:769px){
  .navbar-nav li.dropdown:hover > .dropdown-menu{ display:block; } #feature-boxes { margin-top: 10px; }
}
/* === SIDE PANEL === */
#side-panel {
  position: fixed; left: -240px; bottom: 20%; width: 240px;
  background: #254697; color: #fff; z-index: 9999;
  transition: left 0.3s ease; padding: 15px;
  border-radius: 0 6px 6px 0;
}
#side-panel.open { left: 0; }
#panel-toggle {
  position: absolute; right: -30px; top: 20px;
  width: 30px; height: 30px;
  background: transparent; border: none; color: #fff;
  border-radius: 0 4px 4px 0;
}
#side-panel .form-control { margin-bottom: 10px; }
#side-panel i { margin-right: 5px; }
#side-panel .panel-title {
  color: #fff!important;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

#side-panel .panel-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#side-panel .panel-list li {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

#side-panel .panel-list li:last-child {
  border-bottom: none;
}

#side-panel .panel-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

#side-panel .panel-list a:hover {
  text-decoration: underline;
}
#panel-stat {
  display: inline-block;
  background: #ffcc00;
  color: #000;
  padding: 8px 16px;
  border-radius: 50px;
  text-align: center;
  min-width: 120px;
}

#panel-stat .stat-main {
  font-size: 16px;
  font-weight: bold;
  display: block;
  line-height: 1.2;
}

#panel-stat .stat-sub {
  font-size: 10px;
  font-weight: normal;
  display: block;
  margin-top: 2px;
  opacity: 0.8;
}

.pulse {
  animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}


/* Hide side panel on small screens */
@media (max-width: 768px) {
  #side-panel { display: none; }
}
#panel-toggle i {
  font-size: 20px;
  color: #fff;
}
#panel-toggle:hover i {
  color: #ffeb3b; /* bright yellow on hover */
}

/* === RIGHT SLIDE-IN CONTACT PANEL === */
#contact-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  height: 100%;
  background: #021c41;
  color: #fff;
  z-index: 9999;
  transition: right .4s ease;
  padding: 30px 20px;
  box-shadow: -3px 0 10px rgba(0,0,0,.3);
}
#contact-panel.open { right: 0; }

#contact-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
}
#contact-panel h3 {
  margin-top: 40px;
  font-weight: 600;
  text-align: center;
}
#contact-panel .form-control {
  margin-bottom: 15px;
  border-radius: 4px;
  border: none;
  box-shadow: none;
}
#contact-panel .btn-primary {
  background: #fff;
  color: #0164ff;
  border: none;
  font-weight: 600;
  transition: background .3s ease;
}
#contact-panel .btn-primary:hover {
  background: #e9e9e9;
}

/* === SUCCESS OVERLAY === */
#success-overlay {
  position: fixed;
  top: -100px;
  left: 0;
  width: 100%;
  background: #28a745;
  color: #fff;
  text-align: center;
  padding: 20px;
  z-index: 10000;
  transition: top 0.6s ease;
}
#success-overlay.visible {
  top: 0;
}
#success-overlay .success-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
#success-overlay i {
  font-size: 22px;
}

/* === FEATURE BOX FIX === */
#feature-boxes a { cursor: pointer; }

/* Mobile */
@media (max-width: 768px){
  #contact-panel { width: 100%; right: -100%; }
}
/* ==============================
   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;
}

.sl-hp-entry {
  flex: 1 1 calc(25% - 20px);
  max-width: 25%;
  min-width: 220px;
  padding: 20px;
  text-align: center;
}
.sl-hp-house {
  font-weight: bold;
  font-size: 1.5em;
  margin-top: 10px;
}
.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: 0;                 /* 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="St Andrew"]::before,
[data-housename="St David"]::before,
[data-housename="St George"]::before {
    content: "";
    display: inline-block;
    width: 120px;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 5px auto;
}

[data-housename="St Andrew"]::before {
    background-image: url('/webcontent/webimage/st-andrew-home1.jpg');
}
[data-housename="St David"]::before {
    background-image: url('/webcontent/webimage/st-david-home.jpg');
}
[data-housename="St George"]::before {
    background-image: url('/webcontent/webimage/st-george-home.jpg');
}


/* House-specific colours */
[data-housename="St Andrew"] .sl-hp-house { color: #e4ae01; }
[data-housename="St David"] .sl-hp-house { color: #004c89; }
[data-housename="St George"] .sl-hp-house { color: #c80901; }

.housepoints-row h2 {
	
  font-family: 'Beautiful Everytime', cursive;
	margin-bottom: -20px;
}
.housepoints-row a:hover {
	text-decoration: none!important;
}