#mainbody {
    font-size: 17px;
    padding: 0 20px;
}
/* === 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(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: 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);
}

/* === 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="House 1"]::before,
[data-housename="House 2"]::before,
[data-housename="House 3"]::before,
[data-housename="House 4"]::before {
    content: "";
    display: inline-block;
    width: 120px;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 5px auto;
}

[data-housename="House 1"]::before {
    background-image: url('/webcontent/webimage/yellow.png');
}
[data-housename="House 2"]::before {
    background-image: url('/webcontent/webimage/blue.png');
}
[data-housename="House 3"]::before {
    background-image: url('/webcontent/webimage/red.png');
}
[data-housename="House 4"]::before {
    background-image: url('/webcontent/webimage/green.png');
}


/* House-specific colours */
[data-housename="House 1"] .sl-hp-house { color: #e4ae01; }
[data-housename="House 2"] .sl-hp-house { color: #004c89; }
[data-housename="House 3"] .sl-hp-house { color: #c80901; }
[data-housename="House 4"] .sl-hp-house { color: #2bad28; }

.housepoints-row h2 {
	
  font-family: 'Beautiful Everytime', cursive;
	margin-bottom: -20px;
}
.housepoints-row a:hover {
	text-decoration: none!important;
}




/* === VALUE BOX GRID === */
.values-text-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

@media (max-width: 991px) {
    .values-text-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .values-text-grid { grid-template-columns: repeat(1, 1fr); }
}

/* === VALUE BOX BASE === */
.value-box {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
	font-size: 25px;
    text-align: center;
	max-height: 300px;
	width: 100%;
    border-radius: 20% / 50%;
    padding: 20px;
    overflow: hidden;
    cursor: pointer;

    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;

    /* subtle shadow */
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform .3s ease, box-shadow .3s ease;
}

/* Default category background colours */
.value-box[data-type="ambition"]      { background: #512797; }
.value-box[data-type="success"]       { background: #6a2494; }
.value-box[data-type="perseverance"]  { background: #aa2167; }
.value-box[data-type="independence"]  { background: #91227e; }
.value-box[data-type="respect"]       { background: #ca204f; }
.value-box[data-type="excellence"]    { background: #de2340; }

/* === GRADIENT OVERLAY ANIMATION === */
.value-box::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #472F9E, #E6343F);
    transition: width .45s ease-out;
    z-index: 1;
}
.value-box:hover::before {
    width: 100%;
}

/* === TEXT LAYERS === */
.value-main,
.value-desc {
    position: absolute;
    z-index: 2;
    transition: opacity .35s ease;
    padding: 0 15px;
}

.value-main { opacity: 1; }
.value-desc {
    opacity: 0;
    font-size: 25px;
    line-height: 1.4;
    text-transform: none;
}

/* Swap the text on hover */
.value-box:hover .value-main { opacity: 0; }
.value-box:hover .value-desc { opacity: 1; }

/* === LIFT EFFECT ON HOVER === */
.value-box:hover {
    transform: translateY(-6px);
    box-shadow: 0px 8px 25px rgba(0,0,0,0.25);
}



/* ================================================
   VALUES STRIP (PURPLE → RED GRADIENT BAR)
   ================================================= */
.values-strip {
    width: 100%;
	height: 180px;
    padding: 35px 15px;
    text-align: center;

    /* Gradient sampled from your chain logo */
    background: linear-gradient(90deg, #43289b 0%, #7a2390 35%, #c21f52 70%, #e4243c 100%);



    position: relative;
    z-index: 5;
}
.values-strip::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -50px;
    width: 100%;
    height: 120px;
    background: #fff;

    clip-path: path("M -0.838676 88.4999 H 2315 V 44.4999 C 1889.36 29.1082 1896.31 -4.6488 1348.64 13.2494 C 800.965 31.1477 622.46 83.9149 -0.838676 43.9999 V 88.4999 Z");
}
.values-inner {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    word-spacing: 12px;
}

/* Mobile font sizing */
@media(max-width: 768px){
    .values-inner {
        font-size: 18px;
        line-height: 1.4;
        display: block;
        padding: 0 10px;
    }
}
.sl-advlayout-row {
	padding: 0 20px;
}





.latest-news {
  background: #f8f9fa;
  padding: 40px 0;
}

.latest-news ul {
  list-style: none;
  margin: 0;
  padding: 0;
  visibility: hidden;  /* 👈 hide list but keep it in the DOM for JS */
  height: 0;
  overflow: hidden;
}

/* ✅ Force all Bootstrap columns in Latest News to equal height */
.latest-news .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* ✅ Make each card fill the column and use flex layout */
.news-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  display: flex;
  flex-direction: column;
  flex: 1 1 auto;    /* Stretch vertically */
  justify-content: flex-start;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;  /* show the whole image */
  background-color: #fff; /* subtle background behind transparent or letterboxed images */
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
	padding:5px;
}

.news-card h1 {
  font-size: 17px;
  font-weight: 700;
  color: #000;
  margin: 10px 12px;
  line-height: 1.3;
  min-height: 50px;  /* ✅ reserve space for 2 lines of text */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.news-card .news-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

/* ✅ Read More button pinned to the bottom */
.read-more-btn {
	width: 150px;
  margin-top: auto;  /* pushes it down inside flex */
	align-self: center;
  display: inline-block;
  background-color: #43299b;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 30px;
  margin-bottom: 15px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.read-more-btn:hover {
  background: linear-gradient(90deg, #472F9E, #E6343F);
  text-decoration: none;
  transform: translateY(-2px);
}
.btn-primary {
    color: #fff;
    background-color: #43299b;
    border-color: #43299b;
  border-radius: 30px;
}
.btn-primary:hover {
    color: #fff;
    background: linear-gradient(90deg, #472F9E, #E6343F);
	text-decoration: none!important;
}
a.btn-primary,
a .btn-primary,
a:hover .btn-primary,
a:focus .btn-primary,
a:active .btn-primary {
    text-decoration: none !important;
}

a,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}


@media (max-width: 767px) {
  .news-card h1 {
    font-size: 1rem;
  }
}
 .latest-news {
  background: #f8f9fa;
  padding: 60px 0;
}

.latest-news .container-fluid {
  padding-left: 60px;
  padding-right: 60px;
}

@media (max-width: 767px) {
  .latest-news .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }
}
.latest-news h1 {
  text-align: center;
  margin-bottom: 40px;
}

.news-button {
  display: block;
  width: 200px;
  margin: 30px auto 0;
}
/* ============================================
   GLOBAL BUTTON STYLE — GRADIENT HOVER SLIDE
   ============================================ */

/* Base button style (includes span.read-more-btn) */
button:not(.navbar-toggle),
.btn:not(.navbar-toggle),
.read-more-btn  {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    z-index: 1;

    display: inline-block;
    padding: 10px 24px;

    color: #fff !important;
    background: #43299b;          /* fallback colour */
    border: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .5px;

    cursor: pointer;
    text-decoration: none !important;
    transition: color .3s ease, background .3s ease, transform .3s ease, box-shadow .3s ease;
}

/* Gradient overlay — EXCLUDE navbar toggle */
.btn::before,
button:not(.navbar-toggle)::before,
a.btn::before,
.read-more-btn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #472F9E, #E6343F);
    border-radius: inherit;
    z-index: -1;
    transition: width .4s ease-out;
}

/* Hover: slide in — EXCLUDE navbar toggle */
.btn:hover::before,
button:not(.navbar-toggle):hover::before,
a.btn:hover::before,
.read-more-btn:hover::before {
    width: 100%;
}

/* Hover text + subtle lift */
.btn:hover,
button:hover,
a.btn:hover,
.read-more-btn:hover {
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
/* Centre all buttons inside their parent containers */
.btn,
.read-more-btn,
button,
a .btn,
a .read-more-btn {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;

    white-space: nowrap;
    width: auto;
    min-width: 180px;
    padding: 12px 28px;
    text-align: center;
}

.news-articles a[href="/Page/News"] {
    display: block;           /* makes the <a> full-width */
    text-align: center;       /* centres the button inside it */
    margin-top: 25px;
}
/* Disable ALL custom button effects for hamburger toggle */
.navbar-toggle,
.navbar-toggle:hover,
.navbar-toggle:focus,
.navbar-toggle::before,
.navbar-toggle::after {
    background: none !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    transition: none !important;
}

.navbar-toggle .icon-bar {
    background-color: #333 !important;
}

/* STOP gradient/hover animation from affecting hamburger toggle */
.navbar-toggle::before,
.navbar-toggle::after {
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
}
@media (min-width: 980px) {
    .navbar-toggle {
        display: none !important;
    }
}
.full-screen-video-container {
  position: relative;
  height: 78vh;
  overflow: hidden;
	margin-top: 55px;
  background: #fff;
}

/* Target the iframe that YouTube injects */
#yt-player,
#yt-player iframe {
  background: #ffffff !important;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.welcome-message-home{
  position: absolute;
  top: 65%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
}

/* 🔊 Sound Button */
.video-sound-btn{
  position: absolute;
  bottom: -10px;
  left: 20px;
  z-index: 20;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s ease;
}

.video-sound-btn:hover{
  background: #f0ad4e; /* your warning button colour */
  color: #000;
}
/* MOBILE: make the hero the correct height (16:9) */
@media (max-width: 767px){
  .full-screen-video-container{
    height: 56.25vw;      /* 16:9 based on width */
    min-height: 220px;    /* stops it getting too small */
    max-height: 70vh;     /* stops it getting too tall */
  }
}
html, body { background: #fff !important; }