/* === 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: 95vh;
	width: 100%;
	position: relative;
}
#slide-1 {
	background-image: url("/webcontent/webimage/1.jpg");
}
#slide-2 {
	background-image: url("/webcontent/webimage/2.jpg");
}
#slide-3 {
	background-image: url("/webcontent/webimage/3.jpg");
}
#slide-4 {
	background-image: url("/webcontent/webimage/4.jpg");
}
.fill {
	width: 100%;
	height: 95vh;
	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(88, 19, 10, 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;
	padding-bottom: 20px;
}

/* === FEATURE BOXES === */
#feature-boxes {
  padding: 40px 0; 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: 20px;
}
.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.4em; font-weight: 600; text-transform: uppercase;
  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);
}

/* === LEFT SIDE PANEL === */
#side-panel {
  position: fixed; left: -240px; bottom: 50%; width: 240px;
  background: #021c41; 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: #021c41; border: none; color: #fff;
  border-radius: 0 4px 4px 0;
}
#side-panel .form-control { margin-bottom: 10px; }
#side-panel i { margin-right: 5px; }

/* 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="Blue"]::before,
[data-housename="Green"]::before,
[data-housename="Red"]::before,
[data-housename="Yellow"]::before {
    content: "";
    display: inline-block;
    width: 120px;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 5px auto;
}

[data-housename="Blue"]::before {
    background-image: url('/webcontent/webimage/blue.png');
}
[data-housename="Green"]::before {
    background-image: url('/webcontent/webimage/green.png');
}
[data-housename="Red"]::before {
    background-image: url('/webcontent/webimage/red.png');
}
[data-housename="Yellow"]::before {
    background-image: url('/webcontent/webimage/yellow.png');
}


/* House-specific colours */
[data-housename="Blue"] .sl-hp-house { color: #004c89; }
[data-housename="Green"] .sl-hp-house { color: #2bad28; }
[data-housename="Red"] .sl-hp-house { color: #c80901; }
[data-housename="Yellow"] .sl-hp-house { color: #e4ae01; }

.housepoints-row h2 {
	
  font-family: 'Beautiful Everytime', cursive;
	margin-bottom: -20px;
}
.housepoints-row a:hover {
	text-decoration: none!important;
}
/* === Left SIDE PANEL === */
#side-panel {
  position: fixed;
  left: -360px;                   /* wider to match tab */
  bottom: 50%;
  transform: translateY(50%);     /* vertically centres panel */
  width: 360px;
  background: #58130a;
  color: #fff;
  z-index: 9999;
  transition: left 0.3s ease;
  padding: 10px 20px 10px 30px;   /* space from tab */
  border-radius: 0 0 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;        /* vertically centres content */
}

#side-panel.open {
  left: 0;
}

/* Semicircle toggle button */
#panel-toggle {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);    /* aligns perfectly with panel */
  width: 50px;
  height: 80px;
  background: #58130a;
  border: none;
  color: #f8dc11;
  border-radius: 0 40px 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: pulseTab 2s ease-in-out infinite;
  z-index: 10000;
}

#panel-toggle i {
  font-size: 22px;
  color: #f8dc11;
}

#panel-toggle:hover i {
  color: #fff;
}

/* Pulse animation */
@keyframes pulseTab {
  0%   { transform: translateY(-50%) scale(1); }
  50%  { transform: translateY(-50%) scale(1.06); }
  100% { transform: translateY(-50%) scale(1); }
}
/* Stop pulsing when panel is open */
#side-panel.open #panel-toggle {
    animation: none !important;
    transform: translateY(-50%) scale(1) !important;
}

/* Hide on mobile */
@media (max-width: 768px) {
  #side-panel { display: none; }
}

#side-panel a {
  color: #fff !important;
}
.our-christian-values {
	padding: 0 100px;
}
/* =========================================
   SCHOOL VALUES TILES
========================================= */

.school-values-section {
  width: 100%;
  padding: 30px 15px;
}

.school-values-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: stretch;
}

.school-value-tile {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.school-value-tile:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.school-value-tile img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

/* Tablet - 3 per row */
@media (max-width: 991px) {
  .school-values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile - 2 per row */
@media (max-width: 767px) {
  .school-values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* Small mobile tidy up */
@media (max-width: 480px) {
  .school-values-section {
    padding: 20px 10px;
  }

  .school-values-grid {
    gap: 12px;
  }

  .school-value-tile {
    border-radius: 14px;
  }

  .school-value-tile img {
    border-radius: 14px;
  }
}
/* =========================================
   SCHOOL VALUES TILES - FORCE SAME VISIBLE SIZE
========================================= */

.school-values-section {
  width: 100%;
  padding: 30px 15px 30px 35px;
}

.school-values-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

.school-value-tile {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: #fff !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease !important;
}

.school-value-tile:hover {
  transform: scale(1.07) !important;
  box-shadow: 0 12px 25px rgba(0,0,0,0.18) !important;
  z-index: 5 !important;
}

.school-value-tile img {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 18px !important;
}

/* Tablet - 3 per row */
@media (max-width: 991px) {
  .school-values-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Mobile - 2 per row */
@media (max-width: 767px) {
  .school-values-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
}

/* Smaller mobile */
@media (max-width: 420px) {
  .school-values-grid {
    gap: 12px !important;
  }

  .school-value-tile,
  .school-value-tile img {
    border-radius: 14px !important;
  }
}
/* =========================================================
   HOLY TRINITY HOMEPAGE VIDEO HERO
   ========================================================= */

.holytrinity-video-hero {
	position: relative;
	width: 100%;
	height: 80vh;
	min-height: 520px;
	max-height: 950px;
	overflow: hidden;
	padding: 0;
	background: #000;
}

.holytrinity-video-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 1;
}

.holytrinity-video-wrap iframe {
	position: absolute;
	top: 50%;
	left: 50%;

	width: 177.77777778vh;
	height: 56.25vw;

	min-width: 100%;
	min-height: 100%;

	transform: translate(-50%, -50%);

	border: 0;
	pointer-events: none;
}

/* Subtle darkening so welcome text remains readable */
.holytrinity-video-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;

	background:
		linear-gradient(
			to bottom,
			rgba(0,0,0,0.08) 0%,
			rgba(0,0,0,0.10) 55%,
			rgba(0,0,0,0.35) 100%
		);

	pointer-events: none;
}

/* Keep existing welcome panel above video */
.holytrinity-video-hero .welcome-message-home {
	position: absolute;
	z-index: 3;

	left: 50%;
	bottom: 45px;
	transform: translateX(-50%);

	width: calc(100% - 40px);
	text-align: center;
}

/* Mobile */
@media (max-width: 767px) {

	.holytrinity-video-hero {
		height: 58vh;
		min-height: 420px;
		max-height: 650px;
	}

	.holytrinity-video-hero .welcome-message-home {
		bottom: 25px;
		width: calc(100% - 30px);
	}

	.holytrinity-video-hero .welcome-message-home h2 {
		font-size: 24px;
	}

}
/* Prevent mobile horizontal overflow */
html,
body {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

.slideshow-box,
.holytrinity-video-hero,
.holytrinity-video-wrap {
	width: 100%;
	max-width: 100vw;
	margin-left: 0;
	margin-right: 0;
	overflow: hidden;
	box-sizing: border-box;
}

/* Bootstrap rows use negative margins, which can cause the white strip */
.slideshow-box > .row {
	margin-left: 0;
	margin-right: 0;
}

/* Mobile video sizing */
@media (max-width: 767px) {

	.holytrinity-video-hero {
		width: 100vw;
		max-width: 100%;
		overflow: hidden;
	}

	.holytrinity-video-wrap {
		left: 0;
		right: 0;
		width: 100%;
	}

	.holytrinity-video-wrap iframe {
		max-width: none;
	}

}