/* Anchor Point Animation */
@-webkit-keyframes anchor-point {
  0% {
    -webkit-transform: translateY(-10%);
    transform: translateY(-10%);
    opacity: 0;
  }
  50% {
    -webkit-transform: translateY(10%);
    transform: translateY(10%);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(-10%);
    transform: translateY(-10%);
    opacity: 0;
  }
}

@-moz-keyframes anchor-point {
  0% {
    -webkit-transform: translateY(-10%);
    transform: translateY(-10%);
    opacity: 0;
  }
  50% {
    -webkit-transform: translateY(10%);
    transform: translateY(10%);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(-10%);
    transform: translateY(-10%);
    opacity: 0;
  }
}

@keyframes anchor-point {
  0% {
    -webkit-transform: translateY(-10%);
    transform: translateY(-10%);
    opacity: 0;
  }
  50% {
    -webkit-transform: translateY(10%);
    transform: translateY(10%);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(-10%);
    transform: translateY(-10%);
    opacity: 0;
  }
}

/* Swipe Animation */
@-webkit-keyframes swipe-ani {
  0% {
    transform: translateX(50%);
    opacity: 0;
  }
  25% {
    transform: translateX(0%);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%);
    opacity: 0;
  }
}

@-moz-keyframes swipe-ani {
  0% {
    transform: translateX(50%);
    opacity: 0;
  }
  25% {
    transform: translateX(0%);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%);
    opacity: 0;
  }
}

@keyframes swipe-ani {
  0% {
    transform: translateX(50%);
    opacity: 0;
  }
  25% {
    transform: translateX(0%);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%);
    opacity: 0;
  }
}


.page-title,
.breadcrumbs,
.main-nav .home-btn {
  display: none;
}

/* Scrolling Banner
====================*/

.scrolling-banner {
  height: 50px;
  line-height: 50px;
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

/* Hide the home link - Not required on the homepage */
.home-link {
  pointer-events: none;
}

/* ANIMATED VALUES 
================== */
.cp-school-values {
  font-family: 'Amatic SC', cursive;
  color: #fff;
}

.cp-value-box {
  position: relative;
}

.cp-value-box span {
  text-shadow: 0px 0px 6px rgba(0,0,0,0.5);
}

.cp-value {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cp-value span {
  position: relative;
  display: none;
  box-sizing: border-box;
  font-weight: 700;
  line-height: 1;
}

.cp-value span::after {
  content: '';
  position: absolute;
  right: 50%;
  transform: translate(50%);
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #fff;
  box-shadow: 0px 0px 6px rgba(0,0,0,0.5);
}

.cp-value .value-show {
  display: block;
}

.cp-full {
  position: relative;
  width: 100%;
  text-align: center;
}

.cp-full span {
  width: 100%;
  height: 100%;
}

.content-header {
  background: rgba(57,83,164,0.8);
  font-size: 2.4rem;
  line-height: 48px!important;
  color: #fdfefe!important; 
  transition: ease 0.2s background; 
  text-align: center;
}

.calendar-dates h2 a{
  background: rgba(210, 170, 65, 0.8);
  color: #000!important;
}

.calendar-dates h2 a:focus,
.calendar-dates h2 a:hover {
  background: rgb(189, 145, 29)!important;
}

.content-link {
  position: relative;
  display: block;
  margin: 0 auto;
  width: 120px;
  height: 30px;
  border-radius: 5px;
  line-height: 30px!important;
  font-size: 1.7rem;
  font-weight: bold;
  color: #fff!important;
  text-align: center;
  z-index: 2;
  transition: ease 0.2s background;
}

.content-styling {
  position: relative;
  background: #fff;
}
  
.content-styling::after {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%,-50%);
  font-size: 18rem;
  color: #f2f2f2;
}

.noticeboard.content-styling:after {
  content: '\0045';
}

.calendar-dates.content-styling:after {
  content: '\0041';
}

.twitter.content-styling:after {
  content: '\004c';
}

/* Updates Area
=============== */

.updates-area ul {
  position: relative;
  margin: 20px 20px;
  list-style: none;
  list-style-position: outside;
  z-index: 2;
}

.updates-area li {
  position: relative;
  text-align: center;
}

.updates-area a {
  display: block;
  line-height: 1.7;
}

.updates-area li a {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 1.7rem;
  color: #000;
}

.ps_activity_compact-author {
  display: none;
}

.updates-area li:last-child .ps_activity_compact-date,
.updates-area li:last-child .ps_date{
  padding: 0;
}

.ps_activity_compact-date,
.ps_date {
  display: block;
  padding-bottom: 12px;
  line-height: 1.3;
  font-size: 1.5rem;
}

.ps_event {
  position: relative;
  min-height: 1px;
  padding: 0;
  border-radius: 0;
  margin: 0;
  background: none;
  border: none;
}

/* Twitter
===========*/

.tweet,
.tweet-all {
  position: relative;
  font-size: 1.5rem;
  line-height: 1.2;
  z-index: 2;
}

.tweet {
  padding: 20px 20px 10px 20px;
  min-height: 176px;
  text-align: center;
}

.tweet-avatar {
  display: none;
}

.tweet-text {
  display: block;
  margin-top: 10px;
}

/* Attendance
==============*/

.attendance-wrap {
  display: block;
  width: 100%;
}

.cp-attendance h2 {
  margin-bottom: 6px;
  font-family: 'Amatic SC', cursive;
  font-weight: bold;
  text-align: center;
  color: #000;
}

.cp-attendance {
  position: relative;
  max-width: 630px;
  box-sizing: border-box;
  margin: 0 auto;
}

.cp-attendance li {
  position: relative;
  display: block;
  height: 31px;
  font-size: 0;
  box-sizing: border-box;
}

.cp-attendance li span {
  vertical-align: middle;
}

.cp-bar-wrap {
  display: inline-block;
  width: calc(100% - 184px);/* 100% - (width of house name + house value) */
  margin-left: 97px;
  height: 100%;
}

.cp-bar {
  position: relative;
  display: block;
  background: orange;/* Default bg colour for animated bar */
  width: 0;
  height: 10px;
  top: 11px;
  transition: ease-in-out 3s width;/* Control speed of bar animation here */
  border-radius: 3px;
}

/* Individual Bar Colours */
.cp-attendance li:nth-child(2) .cp-bar {
  background: #b04057;
}

.cp-attendance li:nth-child(3) .cp-bar {
  background: #328f44;
}

.cp-attendance li:nth-child(4) .cp-bar {
  background: #f36c21;
}

.cp-attendance li:nth-child(5) .cp-bar {
  background: #407ab3;
}

.cp-attendance li:nth-child(6) .cp-bar {
  background: #9853a1;
}

.cp-attendance li:nth-child(7) .cp-bar {
  background: #e4c820;
}

.cp-attendance li:nth-child(8) .cp-bar {
  background: #b04057;
}

/* Attendance Name */

.cp-attendance-name,
.cp-attendance-value {
  width: 68px;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  text-align: center;
  color: #494949;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.cp-attendance-name {
  display: inline-block;
}

.cp-attendance-value {
  position: absolute;
  right: 0px;
  display: block;
}


@media (min-width: 981px) {
  
  /* Scrolling Banner
  ====================*/
  
  .scrolling-banner {
    position: absolute;
    width: calc(100% - 200px);
  }

  /* Main Nav
  ============*/

  .main-nav ul li:nth-child(2) ul {
    left: 0;
    transform: none;
  }

  /* Slideshow
  ============ */

  .home-full-width-slideshow {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
  }

  .inner-container {
    padding-top: 48px;
    margin: 0 auto 0;
  }

  .content-container {    
    display: flex;    
    margin: 0 auto 45px auto;   
    padding: 0;    
    background: none;    
    border-radius: 0;    
    min-height: 260px;    
    width: 980px;
  }

  .values-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    height: calc(100vh - 434px);
  }
  
  .cp-school-values {
    position: relative;
    margin: 0 auto;
    min-height: 80px;
    width: 980px;
    font-size: 7.5rem;
    text-transform: uppercase;
    z-index: 2;
  }
  
  .cp-full {
    font-size: 5rem;
  }

  .cp-full span {
    position: absolute;
    right: 50%;
    transform: translate(50%);
    transition: ease 0.2s opacity, ease 0.2s color;
    opacity: 0;
    width: 980px;
    height: 70px;
    overflow: hidden;
  }

  .cp-full span.value-show {
    opacity: 1;
  }

  .anchor-point {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    z-index: 2;
  }
  
  .anchor-point .cp-font-icon {
    font-size: 5.9rem;
    text-align: center;
    transition: ease 0.2s color;
    text-shadow: 0px 0px 6px rgba(0,0,0,0.5);
  }
  
  .anchor-point li {
    position: relative;
    width: 100%;
    height: 100%;
    transform: translateY(-10%);
    -webkit-animation: anchor-point 4s infinite;
    -moz-animation: anchor-point 4s infinite;
    animation: anchor-point 4s infinite;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
    transition: ease 0.2s fill;
  }
  
  .anchor-point a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-indent: -9999px;
    overflow: hidden;
  }
  
  .anchor-point span {
    font-size: 1.8rem;
    text-transform: uppercase;
    transition: ease 0.2s color;
  }
  
  .anchor-point:focus li,
  .anchor-point:hover li {
    -webkit-animation-play-state: paused;
    -moz-animation-play-state: paused;
    -o-animation-play-state: paused;
    animation-play-state: paused;
  }
  
  .anchor-point:focus span,
  .anchor-point:hover span {
    color: #ee0707;
  }
  
  .anchor-point:focus .scroll-down,
  .anchor-point:hover .scroll-down {
    color: #a8b0d0;
    opacity: 1;
  }
  
  /* Middle Content
  ==================*/

  .content-header {
    margin-top: -48px;
    border-radius: 5px 5px 0px 0px;
  }

  /* Updates
  ===========*/
  
  .updates-block {
    display: flex;
    margin: 0 auto;
  }

  .swiper-wrapper {
    display: flex;
    width: 100%;
  }

  .updates-area {
    width: 300px;
    min-height: 260px;
    text-align: center;
    flex-shrink: 1;
    border-radius: 0 0 5px 5px;
  }

  .updates-area:nth-of-type(2) {
    margin: 0 22px;
  }

  /* Twitter
  ===========*/

  .twitter {
    max-width: 300px;
    min-width: 300px;
    flex-shrink: 1;
    border-radius: 0 0 5px 5px;
  }

  .attendance-block .swoosh-part-bottom,
  .links-block .swoosh-part-bottom {
  	bottom: 330px;
  }

  /* Bottom Content
  ==================*/

  .swoosh-bottom {    
    height: 955px;
  }

  .swoosh-back-bottom-two:after {
    background: #fff;
  }
  
  .swoosh-back-bottom:after {
    background: #fff;
  }

  /* Swoosh Front
  ================*/

  .swoosh-part-bottom.swoosh-front-bottom {    
		border-bottom: 815px solid rgba(54,73,158,0.8);
  }

  /* Swoosh Back Two
  ====================*/
  
  .swoosh-part-bottom.swoosh-back-bottom-two {
    border-bottom: 800px solid #fff;
  }

  .swoosh-part-bottom.swoosh-back-bottom-two::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -1px; 
    background: #fff;
  }
  
  .swoosh-back-bottom-two svg path {
    fill: #fff;
  } 
  
  /* Attendance
  ==============*/
  
  .attendance-block {
    position: relative;
    display: block;
    height: 370px;
    z-index: 2;
  }

  .attendance-block .swoosh-part-bottom.swoosh-back-bottom::after {
    bottom: -221px;
    height: 222px;
  }
  
  .attendance-wrap {
    position: relative;
    padding-top: 50px;
    z-index: 11;
  }
  
  .cp-attendance h2 {
    font-size: 3.5rem;
  }

  .cp-attendance li span {
    font-family: 'Amatic SC', cursive;
    font-weight: bold;
    font-size: 2.5rem;
  }

  /* Links Block 
  ===============*/

  .links-block .swoosh-back-bottom svg path {
    fill: #fafafa;
  }

  .links-block .swoosh-part-bottom.swoosh-back-bottom::after {
    background: #fafafa;
  }
  
}

@media (min-width: 981px) and (max-height: 650px) {
  .values-block {    
    height: 200px;
  }
}

@media (max-width: 980px) {

  .container {
    display: flex;
    flex-direction: column;
  }
  
  .block-title {
    position: relative;
    box-sizing: border-box;
    line-height: 1.6;
  }

  .block-title h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
  }

  .block-title p {
    font-size: 1.4rem;
    color: #fff;
  }
  
  /* Swipe Animation */
  .cta-swipe {
    position: absolute;
    top: 20px;
    right: 50px;
    display: block;
    width: 20px;
    height: 25px;
    background: url(swipe-to-right.svg) center center no-repeat;
    font-size: 0;
    text-indent: -9999px;
    overflow: hidden;
    -webkit-animation: swipe-ani 3s linear infinite;
    -moz-animation: swipe-ani 3s linear infinite;
    animation: swipe-ani 3s linear infinite;
    transform-origin: 50% 50%;
  }
  
  /* DOTS */
  .cp-controls {
    position: relative;
  }

  .swiper-pagination {
    position: relative!important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 57px;
  }

  .swiper-pagination-bullet {
    width: 12px!important;
    height: 12px!important;
    display: inline-block;
    margin: 0 5px;
    border-radius: 100%;
    background: #fff!important;
    opacity: 1!important;
  }

  .swiper-pagination-bullet-active {
    width: 15px!important;
    height: 15px!important;
  } 

  .content-styling {
    border-radius: 5px;
    min-height: 280px;
  }

  /* Order
  =========*/

  .header-block {
    order: 1;
  }

  .contact-trigger {
    order: 2;
  }

  .get-in-touch {
    order: 3;
  }

  .img-wrap {
    order: 6;
  }

  .values-block {
    order: 7;
  }

  .inner-container {
    order: 4;
  }

  .bottom-content {
    order: 5;
  }

    .attendance-block {
      order: 2;
    }

    .link-block {
      order: 1;
    }

  .main-footer {
    ordeR: 8;
  }

  /* Scrolling Banner
  ====================*/

  .scrolling-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 101;
    border-top: 2px solid #fff;
  }


  /* Slideshow */
  .img-wrap {
    display: block;
  }

  .img-wrap .block-title {
    padding: 20px 40px;
  }
  
  .responsive .responsive-slideshow {
    width: calc(100% - 80px);
    margin: 0 auto;
  }
  
  .cp-school-values {
    padding: 20px 0;
    font-size: 3rem;
  }

  .cp-value span {
    font-size: 3rem;
    line-height: 1.4;
  }

  .cp-full span {
    display: none;
    font-size: 2.6rem;
  }

  .cp-full .value-show {
    display: block;
  }

  /* Middle Content
  ==================*/

  .content-container {
    padding: 0;
    background: #223276;
  }

  .updates-block {
    margin: 0 40px;
    padding-bottom: 10px;
  }

  .updates-block .block-title {
    padding: 20px 0;
  }

  .content-link {    
		margin-bottom: 20px;
  }

  /* Twitter
  ===========*/

  .tweet {   
		min-height: 172px;
  }

  /* Bottom Content
  ==================*/

  .bottom-content {
    display: flex;
    flex-direction: column;
  }
  
  /* Attendance
  ==============*/

  .attendance-wrap {
    padding: 20px 0 30px;
  }
  
  .cp-attendance h2 {  
    font-size: 2.8rem;
  }

  .cp-attendance li span {
    font-size: 1.6rem;
  }

  /* Footer
  ==========*/

  .main-footer {   
		padding-bottom: 55px;
  }

}

@media ( max-width:640px) {

  .cta-swipe {    
    right: 10px;
  }

  .img-wrap .block-title {
    padding: 20px;
  }

  .responsive .responsive-slideshow {  
		width: calc(100% - 40px);
  }
  
  .cp-full {
    font-size: 2rem;
  }

  .updates-block {  
    margin: 0 20px;
  }
  
  /* Attendance
  ==============*/
 
  .cp-attendance {
    padding: 0px;
  }

  .cp-attendance-name {
    display: inline-block;
    padding: 0 20px;
  }

  .cp-attendance-value {
    padding: 0 20px;
  }

  .cp-bar-wrap {
    display: inline-block;
    width: calc(100% - 216px);
    margin-left: 108px;
    height: 100%;
  }
  
}