/* =========================================================
   STRUCTURE: ADVANCED LAYOUT COLUMNS
   ========================================================= */
.row.sl-advlayout-row {
  display: flex;
  align-items: stretch; /* Ensures equal column heights */
  flex-wrap: wrap; /* Keeps Bootstrap wrapping */
}

.sl-advlayout-col {
  display: flex;
  flex-direction: column; /* Vertical stacking */
}

.sl-advlayout-col .home-more-button {
  margin-top: auto; /* Pushes 'Read more' to bottom */
}

/* =========================================================
   TYPOGRAPHY & FONTS
   ========================================================= */
@font-face {
  font-family: 'Beautiful Everytime';
  src: url('https://hosting.sch.life/Fonts/BeautifulEveryTime.ttf') format('woff');
  font-weight: normal;
  font-style: normal;
}

.welcome-message-home h2 {
  font-family: 'Beautiful Everytime', cursive;
}

/* =========================================================
   HERO / WELCOME VIDEO SECTION
   ========================================================= */
.full-screen-video-container {
  position: relative;
	margin-top: 60px;
  height: 100%;
  width: 100vw;
  justify-content: center;
}

.full-screen-video-container video {
  width: 100%;
  height: auto;
}

.welcome-message-home {
  position: absolute;
  top: 55%;
  right: 8%;
  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: 4.5vw;
  font-weight: 500;
}

.welcome-message-home h2 {
  color: #fff;
  font-size: 2.5vw;
  font-weight: 200 !important;
}

.welcome-message-home p {
  color: #fff;
  font-size: 1.8vw;
  margin-top: -30px;
  font-weight: 200 !important;
}

.welcome-message-home h2,
.welcome-message-home p {
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
.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;
}

/* Slide Forward Animation (Animista) */
@-webkit-keyframes slide-fwd-top {
  0% { transform: translateZ(0) translateY(0); }
  100% { transform: translateZ(160px) translateY(-100px); }
}
@keyframes slide-fwd-top {
  0% { transform: translateZ(0) translateY(0); }
  100% { transform: translateZ(160px) translateY(-100px); }
}

/* =========================================================
   GENERAL LAYOUT & ELEMENTS
   ========================================================= */
.container-fluid {
  padding: 0;
}

#overlay {
  height: 100%;
  overflow: visible;
  pointer-events: none;
  background: none !important;
}

.vid-overlay,
.social-ad {
  position: relative;
}

.view-video-button {
  position: absolute;
  bottom: 8px;
  right: 16px;
}

.housepoints-row {
  border-top: 4px solid #f30f04;
}

.insta-feed {
  margin: -80px 0 50px;
}

#bodycontent-home {
  position: relative;
}

/* =========================================================
   HOUSEPOINTS SECTION
   ========================================================= */
.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;
  text-align: center;
  position: relative;
  overflow: visible;
}

.sl-hp-house {
  font-weight: bold;
  font-size: 1.5em;
  margin-top: -50px;
}

.sl-hp-points {
  font-size: 2em;
  margin-top: 10px;
}

/* Place Labels */
.place-label {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translate(-50%, -110%);
  background: #ffd700;
  color: #000;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.9em;
  line-height: 1;
  z-index: 10;
  display: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.place-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #ffd700;
}

.place-label.show {
  display: inline-block;
  animation: fadeInLabel 0.5s ease-in forwards;
}

.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); }
}

/* House 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 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; }

/* =========================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================= */

/* Tablets & smaller screens */
@media screen and (max-width: 768px) {
  .slidelayout {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    display: flex;
    height: 200px;
  }

  .carousel-caption p {
    font-size: 0.8em;
    margin-bottom: -30px;
  }

  .carousel-caption h3 {
    font-size: 5em;
    -webkit-text-stroke: 1px black;
  }

  @keyframes slide-fwd-top {
    0% { transform: translateZ(0) translateY(0); }
    100% { transform: translateZ(80px) translateY(-50px); }
  }
}

/* Phones */
@media only screen and (max-width: 600px) {
  .headbanner { display: none; }

  #bodycontent-home .row {
    margin-left: -15px;
    margin-right: -15px;
  }


  .school-vid { margin-top: 80px; }
  .school-vid iframe { top: -10px; }

  #bodycontent-home { top: 0; }

  .navbar-toggle { margin-top: -5px; }
	.welcome-message-home {
    position: absolute;
    top: 50%;
    right: 2%;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 0px 20px;
    color: #fff;
    border-radius: 8px;
    max-width: 50%;
    text-align: right;
}
	.welcome-message-home h2 span {
    color: #fff;
    font-size: 6.5vw;
    font-weight: 500;
}
	.welcome-message-home p {
    color: #fff;
    font-size: 2.5vw;
    margin-top: -30px;
    font-weight: 200 !important;
}
}

/* Small tweak for place-labels on mobile */
@media (max-width: 575px) {
  .place-label {
    font-size: 0.8em;
    transform: translate(-50%, -115%);
  }
}

