  /*
 Theme Name:   Five Ways 1.1
 Theme URI:    http://dannhanks.com
 Description:  Enfold Child Theme
 Author:       Dann Hanks
 Author URI:   http://dannhanks.com
 Template:     enfold
*/

/* 

fonts: 

.merriweather-light {
  font-family: "Merriweather", serif;
  font-weight: 300;
  font-style: normal;
}

.merriweather-regular {
  font-family: "Merriweather", serif;
  font-weight: 400;
  font-style: normal;
}

.merriweather-bold {
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-style: normal;
}

.merriweather-black {
  font-family: "Merriweather", serif;
  font-weight: 900;
  font-style: normal;
}

.merriweather-light-italic {
  font-family: "Merriweather", serif;
  font-weight: 300;
  font-style: italic;
}

.merriweather-regular-italic {
  font-family: "Merriweather", serif;
  font-weight: 400;
  font-style: italic;
}

.merriweather-bold-italic {
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-style: italic;
}

.merriweather-black-italic {
  font-family: "Merriweather", serif;
  font-weight: 900;
  font-style: italic;
}
.minion-pro-medium {
font-family: "minion-pro", serif;
font-weight: 500;
font-style: normal;}


.open-sans {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}



Colors: 
old gold (for black bg) ac9b6a
gold #86754b
pale gold #E6E0D3
grey/blue #4D4D4D

*/
.footer-page-content .big-h4 p {color:#86754b!important; font-size:38px!important; font-weight: 700!important;}
.gsg {color:#86754b; font-weight: 500!important;}
blockquote {padding:0px!important; border-left-width: 0!important;}
#news .avia_textblock p a:hover {color:black!important;}
.h3-clone {font-family: "Merriweather", "Times New Roman", Times, serif !important;font-weight: 700!important;
  font-style: italic; font-size:25px}
.h3-clone .light {font-weight: 300!important;color:#86754b!important;}


#av-burger-menu-ul {
  scrollbar-width: none!important;
  -ms-overflow-style: none!important; 
}
#av-burger-menu-ul::-webkit-scrollbar {
  display: none!important; 
}

.av-burger-overlay-scroll::-webkit-scrollbar {
  display: none!important; 
}
.av-burger-overlay-scroll {
  scrollbar-width: none!important;
  -ms-overflow-style: none!important; 
}


.social-in a:before {
    background-size: contain;
    content: "";
    background-position: bottom;
    display: inline-block;
    margin-bottom: -6px;
    margin-left: -39px;
    margin-right: 10px;
    background-repeat: no-repeat;
    width: 28px;
    height: 28px;
}
.social-in a {
    color: #FFF;
    display: block;
    padding-left: 35px;
}
h3.socials-title {color:white!important}
.social-in a:before {background-image:url('https://www.kefw.org/wp-content/uploads/2025/03/linkedin.gif')}
body.menu-open {
    overflow: hidden!important;
}
#pupil-premium {margin-top:-120px!important; padding-top:120px!important }
.avia-align-center img {margin: 0 auto!important}
.avia-copyright {text-align:center!important}
.child-pages-nav li a {color:#000000!important}
.calendar-container {
            height: 100vh;
            width: 100%;
        }

        .calendar-frame {
            height: 100%;
            width: 100%;
            border: none;
        }
.avia_textblock ul li {font-weight:300!important}
li p {margin:0}
.avia-video {margin-bottom:0;}
.sixth-subj .special-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 75px; /* Adjust this height as needed */
}
#top .sixth-subj .avia-button-fullwidth .avia_iconbox_title {font-size:16px!important}
.sixth-subj .avia-button {
    display: flex;
line-height:1!important;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width for alignment */
    height: 100%; /* Ensure the button takes the full height of the parent */
    padding: 0; /* Remove default padding */
    text-align: center; /* Center text horizontally */
}

.sixth-subj .avia_iconbox_title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

@media only screen and (min-width: 68px) and (max-width: 767px) {
 .responsive #top #wrap_all .main_menu {
     height: 30px!important;}
}

.main_color .gold-box-fade a {color:#000000; border-bottom:1px #86754b solid!important; padding-bottom:2px;}


/* apply fonts */
/* CSS for the blog grid */
/* CSS for the child pages grid */
/* CSS for the child pages grid */
.child-pages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.child-page-item:hover {transform: scale(1.05);}
.child-page-item {
	  transition: transform 0.3s ease;
    position: relative;
    background-size: cover;
    background-position: center;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    display: block; /* Ensure it's a block element */
    text-decoration: none; /* Remove default link styling */
}

.child-page-overlay {
    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;
}

.child-page-link {
	 font-family: "Merriweather", serif;
  font-weight: 700;
    color: #fff;
    font-size: 1.1em;
    text-align: center;
    padding: 10px;
}

/* Responsive styles */
@media (min-width: 768px) {
    .child-pages-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .child-pages-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.logo.avia-svg-logo {padding:5px 0}

.html_av-overlay-side #top .av-burger-overlay .sub-menu li {margin:5px 0;}
.useful-boxes a {
  /* Initial state */
color:#000!important;
    display: inline-block; /* This allows the transform to work */
  transition: transform 0.3s ease; /* Smooth transition for 0.3 seconds */
}

.useful-boxes a:hover {
  /* Hover state */
  transform: scale(1.05); /* Scale to 110% of its original size */
}

.avia_textblock h3 {
    font-size: 24px!important;
}
.avia_textblock h5 {    font-size: 20px;
    color: #000;
    margin-top: 10px;
    margin-bottom: 6px;}
.avia_textblock h4 {
    font-size: 20px;
}
@media (min-width: 990px) {
.html_header_top.html_header_sticky #top #wrap_all #main {
    padding-top: 100px!important;
    }
}
.alternate_color h2 {color:#86754b!important}
.gold-box h2, .gold-box a, .footer_color h2, .footer_color a   {color:#FFF!important}
body {font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, "sans-serif";}
body p {font-weight:300!important;}
.home .avia_transform .av_slideshow_full .avia-caption-content {visibility:visible}
.av-burger-menu-main a:before, .av-burger-menu-main a:after  {
    font-family: "minion-pro", "Times New Roman", Times, serif !important;
    font-style: normal!important;
}
/* Prevent background scrolling */
.av-burger-overlay-scroll, .no-scroll {
    overflow: hidden;
}
#footer-footer {margin-bottom:0!important}
/* Modal overlay */
.popup li a {color: black;
    border-bottom: 1px #86754b solid;}
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
}

/* Modal */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    z-index: 9999;
    max-width: 600px;
    width: 80%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Close button */
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #000;
}

#admission-block, h1, h2, h3, h4, h5, h6, .avia_codeblock.useful-boxes div, .footer-page-content p, .footer-page-content ul,  .mega, .custom-menu-content p, .avia_iconbox_title, #subject-header, .grey-block:after, .modal-content, .avia-button, .avia-caption-content, .phoneus, #admissions-link p span, .foundation-link    { font-family: "Merriweather", "Times New Roman", Times, serif !important}

#intro p, #welcome h3 span, #quote h4, h3 .light {
  font-weight: 300!important;
  font-style: italic!important;
}
#admission-block { 
  font-weight: 400!important;
  font-style: normal!important;}

#admission-block .admissions, .av-burger-menu-main a:before, .av-burger-menu-main a:after { 
  font-weight: 500!important;
  font-style: normal!important;}

 

#intro h1, .avia_codeblock.useful-boxes div, .mega   {
  font-weight: 900!important;
}


/* admisisons text home */
#admissions-link .template-page.content {padding:0!important}
#admissions-link {
    display: flex;
    align-items: end;
    justify-content: center;
    position: absolute !important;
    z-index: 99 !important;
    background-color: transparent !important;
    height: 15vw;
    width: 100%;
    background-size: cover;
    bottom: -5px;
    background-image: url(/wp-content/themes/fiveways-1.1/img/home-slant.png);
}

@media only screen and (min-width: 50px) and (max-width: 579px) {
     #admissions-link {
        height: 45vw;
    }   
}
@media only screen and (min-width: 480px) and (max-width: 767px) {

#admissions-link {
    height: 25vw;}
}
@media only screen and (min-width: 768px) and (max-width: 989px) {
  #admissions-link {
    height: 170px;}
}
@media only screen and (min-width: 990px) and (max-width: 1249px) {

#admissions-link .container {
    margin-top:20px; 
}

}
@media only screen and (min-width: 1250px) and (max-width: 1549px) {

#admissions-link .container {
    margin-top:25px; 
}

}

@media only screen and (min-width: 1550px) and (max-width: 8639px) {

    #admissions-link .container {
        margin-bottom: 15px;
    }
}

@media only screen and (min-width: 2001px) and (max-width: 4000px) {

#admissions-link .container {
    margin-top:85px; 
}

}

/* typography */

h1, h2, h3, h4, h5, h6 {
    text-transform:none!important;
letter-spacing:0!important;}
body p {line-height: 1.25}
.main_color strong {color:black}
h1 {
    font-size: 44px; text-transform: uppercase!important}
h2 {color:#000}
.mega {font-size:55px;}
.avia_textblock p a {color:black; border-bottom:1px #86754b solid }
/* grid hacks */
div .av_two_third {
    width: 65.666667%;
}
div .av_one_third {
    margin-left: 3%;
    width: 31%;
}
div .av_one_fourth {
    margin-left: 3%;
    width: 22.5%;
}
div .av_one_half {
    margin-left: 4%;
    width: 48%;
}
#top .av-flex-placeholder {
    width: 2%;
}

/* image hacks */
.page-id-103 #subject-header {display:none!important}
.hr-default {    margin: 0px 0!important;}
.hr-default .hr-inner {border-bottom: 2px #86754b dotted;}

.flex_column .avia-image-container-inner, 
.flex_column img[src$=".svg"] {
  min-width: 100% !important;
}

.avia-content-slider .slide-image, .avia-content-slider .slide-image img {
    border-radius: 0px!important;}
.image-overlay {display:none!important;}

/* header */
.av_minimal_header #header_main {padding: 15px 0;}
.av-burger-menu-main a:before, .av-burger-menu-main a:after {
    text-align: right;
    top: 1px;
    width: 150px;
    font-size:24px;
}
.av-burger-menu-main a:hover:after {
    color:#ac9b6a;
}
.av-burger-menu-main a:after {
    position: absolute;
    color:#FFF;
    content: "MENU" !important;  
    right: 55px;
}
.av-burger-menu-main a:hover:before {
    color:#FFF;
}
.av-burger-menu-main a:before {
    position: absolute;
    color:#ac9b6a;
    content: "MAIN" !important;
    right: 135px;
}


/* full slider hack for home */ 


#admissions-link p {
    line-height: 1.1 !important;
    transform: scale(0.85);
    transform-origin: left;
}
.f-o-a {color:black; font-size:1.75vw; text-decoration: none!important}
.o-a {color:white; font-size:3.1vw; font-weight: 700; text-decoration: none!important}
.p-c-h {color:black; font-size:1.75vw; text-decoration: none!important}

@media only screen and (min-width: 768px) and (max-width: 989px) {

    .html_menu_right #admissions-link {
        height: 20vw;
    }
    .f-o-a {
        color: black;
        font-size: 24px;
    }
    .o-a {color:white; font-size:35px; }
.p-c-h {color:black; font-size: 24px; }
    
}
@media only screen and (min-width: 500px) and (max-width: 767px) {

      .home .avia-slideshow-dots.avia-slideshow-controls {display:none!important}
	#admissions-link .template-page.content {margin-bottom:0!important}
    .html_menu_right #admissions-link {
        height: 25vw;
    }
    .f-o-a {
        color: black;
        font-size: 20px;
    }
    .o-a {color:white; font-size:28px; }
.p-c-h {color:black; font-size: 20px; }
    
}
@media only screen and (min-width: 5px) and (max-width: 499px) {
      .home .avia-slideshow-dots.avia-slideshow-controls {display:none!important}
	#admissions-link .template-page.content {margin-bottom:0!important}
    .html_menu_right #admissions-link {
        height: 35vw;
    }
    .f-o-a {
        color: black;
        font-size: 5.2vw;
    }
    .o-a {color:white; font-size:7.2vw; }
.p-c-h {color:black; font-size: 5.2vw; }
}

/* special treatment for sixthform page */
@media only screen and (min-width: 5px) and (max-width: 499px) {
    .page-id-1023 #admissions-link {background-position: top!important; top: 47vh!important;}
        height: 38vw;
    
    .page-id-1023 .f-o-a {
        color: black;
        font-size: 4vw;
    }
   .page-id-1023 .o-a {color:white; font-size:5vw; }
.page-id-1023 .p-c-h {color:black; font-size: 4vw; }
}



@media only screen and (min-width: 1550px) and (max-width: 8639px) {
.f-o-a {color:black; font-size:1.75vw; }
.o-a {color:white; font-size:3.1vw;}
.p-c-h {color:black; font-size:1.75vw;}

}

.caption_bottom .slideshow_caption .slideshow_inner_caption .slideshow_align_caption {
    padding: 20px 0 5px;
}
@media only screen and (min-width: 768px) and (max-width: 990px) {
.caption_bottom .slideshow_caption .slideshow_inner_caption .slideshow_align_caption {
    padding: 20px 0 0px;
}
  
   .home .avia-slideshow {border-bottom:30px solid #86754b!important; background-color:#86754b}
    .home .avia-caption-content {margin-bottom:-20px;}
     .responsive #top #wrap_all .av_mobile_menu_tablet .main_menu {
        top: 8px!important;
        right: 55px!important;
    }
}
@media only screen and (min-width: 68px) and (max-width: 767px) {

    .home #wrap_all #main {background-color:transparent!important}
    .slideshow_caption {position:relative;}
    .caption_bottom .slideshow_caption .slideshow_inner_caption {
        position: relative;}
        .caption_fullwidth {
        position: relative;
        display: block;
        height: 145px;
        background-color: transparent !important;
        background-image: url(/wp-content/themes/fiveways-1.1/img/home-slant-mobile-new.png);
        right: 0;
        bottom: 0;
        left: 0;
        top: -75px;
        z-index: 10;
    }
    .home .avia-caption-content  {padding-top:10px; }
.phoneus {
    top: 25px!important;
    width: 200px!important;
    right: 20px!important;
}
    #top .av-small-burger-icon {
        transform: scale(0.6) !important;
        right: 20px !important;
        top: 0px;
    }
    .alt-logo {
    width: 67px!important;
    height: 60px!important;
    background-size: 83%!important;
    right: -70px!important;
    top: -4px;
}
     .responsive #top #wrap_all .main_menu {
         right: 66px;}
      .responsive #top .logo {
        height: 30px !important;
        width: 200px;
    }
   
    .caption_bottom .slideshow_caption .slideshow_inner_caption {padding:0px!important}
    .avia-slide-wrap:before {
    bottom: 0;
    background-image: none!important;
}
    .avia-slide-wrap:before {
    height: 19vw;
        top: 210px;}
}

/* rehack the header */
.av-burger-overlay-active #header {z-index:9999999;}
@media only screen and (min-width: 68px) and (max-width: 280px) {
    .phoneus {display:none!important;}
}
@media only screen and (min-width: 68px) and (max-width: 345px) {
        .responsive body#top .logo.avia-svg-logo {
        height: 53px !important;
        width: 150px!important;
    }
}
@media only screen and (min-width: 68px) and (max-width: 440px) {
        .responsive #top #wrap_all .main_menu {
        right: -17px;
    }
    .alt-logo {display:none;}
}
@media only screen and (min-width: 68px) and (max-width: 520px) {
    .avia-content-grid-active .slide-entry-wrap {margin-bottom:0!important}
    .content, .sidebar {
    padding-top: 25px;
        padding-bottom: 25px;}
    #welcome {padding-top:25px;}
    .text-left-mobile h3, .text-left-mobile h4 {text-align:left!important}
    .av-minimum-height-100:not(.av-slideshow-section) .container, .avia-fullscreen-slider .avia-slideshow, #top.avia-blank .av-minimum-height-100 .container, .av-cell-min-height-100 > .flex_cell {
    height: 50vh!important;
    max-height: 50vh!important;
}
    #admissions-link {
        top: 49vh;}
    
    .phoneus a:before {
    left: auto!important;
    right: 30px!important;
        top: -7px!important;}
        .av-burger-menu-main a:before,     .av-burger-menu-main a:after {content:""!important} 
    .phoneus span {display:none;}
 
        #top .av-small-burger-icon {
        right: 18px !important;
        top: 10px;
    }
    
}

#top #header_main > .container .main_menu .av-main-nav > li > a {height:35px!important;line-height:35px!important;}





.phoneus a:before {
    content: "";
    height: 20px;
    width: 25px;
    background-image: url(/wp-content/themes/fiveways-1.1/svg/phone-icon.svg);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    position: absolute;
    left: 85px;
    top: 3px;
}
.av-burger-menu-main {top:8px}
.phoneus {
    display: block;
    position: absolute;
    top: 38px;
    font-size: 13px;
    width: 200px;
    text-align: right;
    right: 58px;
}
.alt-logo {
    width: 97px;
    height: 70px;
    background-image: url(/wp-content/themes/fiveways-1.1/img/ke-logo-stacked.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    right: -70px;
    position: absolute;
    margin-left: 20px;
    border-left: 1px solid #86754b !important;
    padding-left: 20px;
}
.main_menu {
    right: 100px;
    margin: 0 ;
}

/*allow menu to scroll */

.av-burger-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 1;
    z-index: 1; /* Ensure it's on top of other elements */
    overflow: hidden; /* Prevent background scrolling */
}

.av-burger-overlay-scroll {
    height: 100%;
    overflow-y: auto; /* Allow vertical scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.av-burger-overlay-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto; /* Allow vertical scrolling */
}

.custom-menu-content {
    flex-grow: 1;
    overflow-y: auto; /* Allow vertical scrolling */
}

#av-burger-menu-ul {
    padding: 137px 0px;
    overflow-y: auto; /* Allow vertical scrolling */
    max-height: calc(100vh - 137px); /* Ensure it doesn't exceed viewport height */
}





#top .av-small-burger-icon {
    transform: scale(0.7);
    right: 60px;}

/* menu */
.html_av-overlay-side-classic #top .av-burger-overlay {font-size:16px!important}
.html_av-overlay-side-classic #top #wrap_all .av-burger-overlay #av-burger-menu-ul li a {border-width:0!important}
.html_av-overlay-side #top #wrap_all .av-burger-overlay li a {
    padding: 2px 50px;}
.html_av-overlay-side-classic #top .av-burger-overlay .sub-menu a {font-weight: 100;color:#ac9b6a!important; font-size: 15px!important}
.sub-menu  {list-style:none!important; position: relative}
.html_av-overlay-side-classic #top .av-burger-overlay .sub-menu .sub-menu a:before { left: 70px;}
.html_av-overlay-side-classic #top .av-burger-overlay .sub-menu a:before {
content: ">";
    opacity: 1;
    background-color: #86754b;
    color: black !important;
    width: 15px;
    text-align: center;
    position: absolute;
    left: 50px;
    top: 0px;
    font-size: 15px;}

.avia-menu-text {padding-left:30px;}
#top input[type="search"] {padding-left:50px;}
.search-submit {
    font-size: 0;
    background-image: url(/wp-content/themes/fiveways-1.1/svg/search-icon.svg);
    background-size: 17px 17px;
    background-repeat: no-repeat;
    background-position: center;
    padding: 0!important;
    width: 35px;
    height: 35px;
    position: absolute;
    top: 140px;
}
.another-footer-logo {background-image:url(/wp-content/themes/fiveways-1.1/svg/another-footer.svg); 
    width:250px; height:120px;
    position: absolute; bottom:30px; right:30px;
    background-repeat: no-repeat;
    background-size:contain;
    background-position: center right;}
.av-burger-overlay-inner {
    background-image: url(/wp-content/themes/fiveways-1.1/svg/menu-crest.svg);
    background-repeat: no-repeat;
    background-size: 28vw;
    background-position: 320px;
}
blockquote p {font-family: "Merriweather", serif; color:black;
  font-weight: 400!important;
  font-style: italic!important;}
#av-burger-menu-ul li a:hover {background-color:transparent!important; text-decoration: underline!important}
.html_av-submenu-hidden .av-submenu-indicator {
    right: inherit;}
.main_menu .sub-menu .avia-menu-text {padding-left:10px;}
.main_menu .sub-menu .avia-bullet {
    display: none!important;
}
.header_color blockquote, .header_color .avia-bullet, .header_color .av-no-color.av-icon-style-border a.av-icon-char {
    border-color: black;}
.main_menu .avia-bullet {
    display: block!important;
}
.html_av-overlay-side-classic #top .av-burger-overlay li li .avia-bullet {
    height: 10px;
    display: block;
    position: absolute;
    margin-top: 0;
    opacity: 1;
    border: none !important;
    width: 10px;
    left: 50px;
    top: 1px;
}
.foundation-image {padding:0 25px!important;margin-top: -14px;}
.avia_textblock.foundation-link p a {border-bottom: none!important;}
.foundation-link a {    margin-top: -14px;
    display: block;
    text-decoration: none!important;}
.text-logo {
    background-image: url(/wp-content/themes/fiveways-1.1/svg/logo-text.svg);
    background-size: contain;
    background-position: bottom;
    margin-bottom: 40px;
    background-repeat: no-repeat;
    width: 315px;
    height: 100px;
}
.custom-menu-content p {font-size:30px!important;font-weight:700;text-transform: uppercase!important;}
.custom-menu-content {
    position: fixed;
    background-color:#000;
    z-index:10;
left:50px; text-align: left; top:130px;}
#top #av-burger-menu-ul {    z-index:9;
  margin-top: 240px;}

/* socials */
.socials {background-size:cover!important; overflow: hidden!important}
.socials li {font-size:90%!important; line-height: 1; margin: 0  0 10px 8px}
.socials li span {font-size:60%!important}
.socials:after {
    content: "";
    background-color: rgba(0, 0, 0, 0.2);
    height: 400px;
    width: 100%;
    visibility: visible;
    top: 0;
    z-index: -1;
    left: 0;
    position: absolute;
}
.socials ul {list-style: none!important}
.socials li {margin-left: -5px;}
.social-x a:hover, .social-y a:hover, .social-i a:hover, .social-f a:hover {  color: #FFF!important; font-weight: bold; } 
.social-x a, .social-y a, .social-i a, .social-f a {
    color: #FFF;
    display: block;
    padding-left: 35px;
}
.social-x a:before, .social-y a:before, .social-i a:before, .social-f a:before {
    background-size: contain;
    content: "";
    background-position: bottom;
    display: inline-block;
    margin-bottom: -6px;
    margin-left: -39px;
    margin-right: 10px;
    background-repeat: no-repeat;
    width: 28px;
    height: 28px;
}
.social-x a:before {  background-image: url(/wp-content/themes/fiveways-1.1/svg/x.svg);}
.social-y a:before {  background-image: url(/wp-content/themes/fiveways-1.1/svg/y.svg);}
.social-f a:before {  background-image: url(/wp-content/themes/fiveways-1.1/svg/f.svg);}
.social-i a:before {  background-image: url(/wp-content/themes/fiveways-1.1/svg/i.svg);}



/* panels */

.dark-panel p, .dark-panel, .dark-panel h2, .dark-panel h3, .dark-panel a {color:#FFF!important} 
.mini-grey {background-color:rgba(0,0,0,0.15); padding:10px 20px; }
.prospectors img {border:1px solid #86754b!important; max-height:140px!important;min-height:140px!important; width:auto!important}


/* buttons */

.avia-button.avia-color-black, .avia-button.avia-color-black:hover {background-color:#000; border-radius: 8px!important}
.avia-button.avia-color-black.avia-button-fullwidth, .avia-button.avia-color-black.avia-button-fullwidth:hover {border-radius: 0px!important}
body .avia-button.avia-button-fullwidth {border-radius: 0px!important}
body .special-button .avia-button.avia-button-fullwidth {border-radius: 10px!important}
.avia_button_background {border-radius: 8px!important}

/* Ensures the column itself is a flex container */
#implementation .flex_column.av_one_fourth {
    display: flex;
    flex-direction: column;
    align-items: center;  /* Centers the buttons horizontally */
    justify-content: center; /* This is optional based on overall layout needs */
}

/* Styles for the button wrapper to take full width of its container */
#implementation .avia-button-wrap {
    width: 100%; /* Ensures the wrapper takes the full width of the column */
    display: flex; /* Makes the wrapper a flex container */
    justify-content: center; /* Centers the button within the wrapper */
}

/* Fixed height and centering text for all buttons */
#implementation .avia-button {
    
    display: flex;
    align-items: center; /* This vertically centers the text inside the button */
    justify-content: center; /* This horizontally centers the text */
    height: 75px; /* Example fixed height, adjust as needed */
    width: 100%; /* Ensures the button takes full width of its wrapper */
}

/* Ensure the spans inside the button fill the button properly */
#implementation .avia-button span {
    display: block;
    width: 100%;
    text-align: center; /* Centers the text within each span */
}
/* popup */
.popup {display:none;}

/* standard pages 
gold #86754b
pale gold #E6E0D3
grey/blue #4D4D4D */
/* This is the style for the parent container, which could be the body or another div */
.container {
    width: 100%; /* Adjust the width as needed, or set a max-width */
    max-width: 6000px; /* Optional: sets a maximum size for very large displays */
    margin: 0 auto; /* Centers the container */
    overflow: hidden; /* Ensures no overflow from child elements */
}

/* Styling for the responsive block */
.responsive-block {
    background-color: transparent; /* Example background color */
    width: 100%;
    padding-top: 32.0%; /* 1920 / 6000 * 100 */
    position: relative; /* Positioning context for the content inside */
}

.gold-box {
    background-color: #86754b;
    padding: 30px;
}
.gold-box-fade {background-color:#E6E0D3; padding:30px; }
.gold-box h3, .gold-box-fade h4 {color:#000000}
.gold-box h4 {color:#FFFFFF}

/* meet the team */

.page-id-660 .avia-image-overlay-wrap img { max-width:150px!important; min-width:150px!important; margin:0 auto}
/* publications */

.page-id-402 .avia_textblock h4 {}
.page-id-402 .publication-item img { max-width:180px!important; min-width:180px!important; margin:0 auto!important; display:block;}
.publications-list {
    display: grid;
    gap: 20px;
}

.publications-list.columns-1 {
    grid-template-columns: 1fr;
}

.publications-list.columns-2 .single-column,
.publications-list.columns-2 .double-columns {
    display: grid;
    gap: 20px;
}

.publications-list.columns-2 .single-column {
    grid-template-columns: 1fr;
}

.publications-list.columns-2 .double-columns {
    grid-template-columns: 1fr 1fr;
}

.publications-list.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.publication-title {
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 767px) {
    .publications-list.columns-1,
    .publications-list.columns-2 .single-column,
    .publications-list.columns-2 .double-columns,
    .publications-list.columns-4 {
        grid-template-columns: 1fr;
    }
}

/* home */
#admission-block span {
    display:block; 
    float:none;
    margin-bottom:15px;
}
#admission-block {
    position: absolute;
    bottom: 25px;
    font-size: 30px;
    color: black;
}
#admission-block .admissions {
    font-size: 60px;
    margin: 10px 0 12px;
    color: white;
}
/*home intro styles */

#text-6  {margin-top: -40px;
    transform: scale(0.9);
	transform-origin: center left;}
#text-6 li {margin-left:0;}
#text-6 li a:hover {    background-color: #000000;}
#text-6 li a {    background-color: #86754b;
    padding: 3px 8px;
	border-radius:3px;
    display: block;
    width: 100%;
    margin-bottom: 10px;
    color: #FFF !important;}
.sidebar.sidebar_right .textwidget h4 {font-size:25px;margin-top:-10px;}
.sidebar.sidebar_right .textwidget h3 {color: black;
    font-size: 20px;
    font-style: italic;}
#text-2, #text-4 {margin-bottom:-55px!important; }
.sidebar.sidebar_right ul {margin-top:0;}
.sidebar.sidebar_right li a {color:#86754b;}
.sidebar.sidebar_right li a:hover, .sidebar.sidebar_right li a.active {color:#000000;}
.sidebar.sidebar_right li {margin-left:25px;font-size: 18px;
    line-height: 1.4;font-family: "Merriweather", serif;
  font-weight: 500; }
#siblings li:before {
    content: "";
    width: 15px;
    height: 14px;
    background-image: url(/wp-content/themes/fiveways-1.1/svg/navarrow.svg)!important;
    display: block;
    position: absolute;
    left: -20px;
    top: 5px;
}
.av-burger-overlay li.current_page_item a {color:#fff!important; pointer-events:all}
li.current_page_item a {color:#000!important; pointer-events: none}
#siblings li.current_page_item:before {
left: 31px;
    top: 8px;
}
.inner_sidebar {
    margin-left: 25px!important;
    padding-left: 25px!important;
}
.inner_sidebar.extralight-border {border-left:2px #86754b solid;}
.toggle_content li {font-weight:200;}
.toggle_content h3 {font-size:20px!important; color:#000!important}
.main_color .toggle_content {background-color:#FFF!important}
.toggle_icon {display:none;}
.toggler.activeTitle:after {        background-image: url(/wp-content/themes/fiveways-1.1/svg/minus.svg);}
.toggler:after {    content: "";
    background-image: url(/wp-content/themes/fiveways-1.1/svg/plus.svg);
    background-size: contain;
    width: 30px;
    display: block;
    position: absolute;
    top:10px;
    right: 10px;
    height: 30px;  }
.toggler {padding-left:15px!important; font-family: "Merriweather", serif;
  font-weight: 700!important; font-size:20px!important;color:#86754b!important }
.cheat .avia-video {margin-top:12px;}
.toggler span {font-size:13px; font-style:italic; color:#000!important;}
.avia-color-white {background-color: white;
	padding:12px!important;
	font-size:15px!important;
    border: 1px solid #86754b!important;
    border-radius: 12px!important; /* Adjust the radius as needed */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Adjust the shadow as needed */}
.toggler:hover {background-color:#FFF!important}
.toggle_content {padding-top:15px!important; margin-top:5px!important; border-top: 2px dotted #86754b!important; }
.single_toggle {background-color: white;
    border: 1px solid #86754b!important;
    border-radius: 8px; /* Adjust the radius as needed */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Adjust the shadow as needed */
    margin: 20px 0; /* Adjust the margin as needed */
    padding: 0px; /* Adjust the padding as needed */}

#standard-heading.container_wrap.sidebar_right {    min-height:inherit!important;
}
#admissions-link.container_wrap.sidebar_right { 
	min-height:auto!important;}
.container_wrap.sidebar_right { 
    background-image:url(/wp-content/themes/fiveways-1.1/svg/crest.svg); 
    background-repeat: no-repeat;
    background-size:40%;
    background-position: top right;
}
.main_color .widget_nav_menu ul:first-child>.current_page_item {background-color:transparent!important;}
.crest, #welcome {
    background-image:url(/wp-content/themes/fiveways-1.1/svg/crest.svg); 
    background-repeat: no-repeat; 
    background-position: center right;
}
.hr {margin:15px 0!important;}
.crest {background-size:50%}
#intro p {font-size:40px; margin-top:0}
#intro h1 {margin-top:-30px;
font-size:55px;}
#welcome h3 span {color:black}
#quote h3 {color:#4D4D4D; font-size:35px;}
#quote h4 {font-size:30px;}
h3 .light {color:black}

/* useful links */
#useful-links {background-image:none!important;}

#useful-links .template-page {z-index: 9999}

.big-h4  {font-size:45px; font-style: normal!important; color:#86754b!important; font-weight: 900!important}
/* Container style */
.useful-boxes {
    display: flex;
    flex-wrap: wrap; /* Allow divs to wrap onto the next line */
    justify-content: center; /* Center-align the divs */
    gap: 15px; /* Optional: Adds space between the divs */
    margin-bottom:15px;
}

.useful-boxes div {
    background-color: #837649;
    padding: 10px;
    border-radius: 20px;
    box-sizing: border-box;
    text-align: center;
    align-items: center;
    justify-content: center;
    height: 150px;
    line-height: 1.1;
    flex: 1 1 15%; /* Adjust flex-basis to control width */
}

@media (max-width: 990px) {
    .home #useful-links {
    background-image: none !important;
}
    .useful-boxes div {
        flex: 1 1 30%; /* Changes flex-basis to make sure three fit per row */
    }
}
.useful-boxes a:before {background-position:center center;}
@media only screen and (min-width: 451px) and (max-width: 600px) {
    .useful-boxes div {
        height: 130px;}
    .useful-boxes div {
        font-size:14px;
        flex: 1 1 30%; /* Each div takes full width of the container */
    }
    .useful-boxes .school-publications a:before {width:35px; }
    .useful-boxes a:before {

    width: 50px!important;
        height: 50px!important;}
}
@media only screen and (min-width: 320px) and (max-width: 450px) {
    .useful-boxes {
    gap: 5px;
        margin-bottom:5px;
}
    .useful-boxes div {
        height: 78px;
    }
    .useful-boxes div {
        font-size:9px!important;
        flex: 1 1 30%; /* Each div takes full width of the container */
    }
     body .useful-boxes a:before {
         margin: 0 auto 5px!important;
    width: 30px!important;
        height: 30px!important;}
}
@media only screen and (min-width: 20px) and (max-width: 320px) {
    .useful-boxes {
    gap: 5px;
        margin-bottom:5px;
}
    .useful-boxes div {
        height: 70px;}
    .useful-boxes div {
        font-size:7px!important;
        flex: 1 1 30%; /* Each div takes full width of the container */
    }
     body .useful-boxes a:before {
         margin: 0 auto 5px!important;
    width: 20px!important;
        height: 20px!important;}
}
/* Box style */


/* Style for the links */
.avia_codeblock.useful-boxes div a {
    text-decoration: none;
    color: black!important;
}

/* icons */
    .useful-boxes .school-publications a:before {width:50px!important; }
#register-your-interest .el_before_av_one_fourth h3 {font-size:42px!important;}
#register-your-interest ul {margin-bottom:0!important}
#register-your-interest .el_after_av_three_fourth {
    padding: 15px 20px 10px !important;
}
.useful-boxes a:before {
    content: "";
    display: block;
    width: 60px;
    height: 60px;
    background-repeat: no-repeat;
    margin: 5px auto 15px;
}
.statutory-info a:before {background-image:url(/wp-content/themes/fiveways-1.1/svg/statutory-info.svg)}
.send-information a:before {background-image:url(/wp-content/themes/fiveways-1.1/svg/send-information.svg)}
.mental-health a:before {background-image:url(/wp-content/themes/fiveways-1.1/svg/mental-health.svg)}
.school-policies a:before {background-image:url(/wp-content/themes/fiveways-1.1/svg/latest_news.svg)}
.term-dates a:before {background-image:url(/wp-content/themes/fiveways-1.1/svg/term-dates.svg)}
.school-publications a:before {background-image:url(/wp-content/themes/fiveways-1.1/svg/school-publications.svg)}
.pupil-premium a:before {background-image:url(/wp-content/themes/fiveways-1.1/svg/pupil-premium.svg)}
.kefw-careers a:before {background-image:url(/wp-content/themes/fiveways-1.1/svg/kefw-careers.svg)}
.school-lettings a:before {background-image:url(/wp-content/themes/fiveways-1.1/svg/school-lettings.svg)}
.safeguarding-information a:before {background-image:url(/wp-content/themes/fiveways-1.1/svg/safeguarding-information.svg)}
.curriculum-overview a:before {background-image:url(/wp-content/themes/fiveways-1.1/svg/curriculum-overview.svg)}
.admissions-information a:before {background-image:url(/wp-content/themes/fiveways-1.1/svg/admissions-information.svg)}


/* news */

#news .mega {color:#86754b!important; padding-right:10px;} 
#news p {font-size:30px; text-align:center} 

.slide-content a:hover {    
    background-color: #88784B;
}
.slide-content a:after {
    content:">";
    color:black;
    font-size:20px;
    position: absolute;
    right:10px;
    bottom:10px; } 

.slide-content {
    display: flex!important;
    flex-direction: column!important; /* Keeps the vertical layout */
    justify-content: center!important; /* Vertically centers content in the container */
    height: 100%; /* Ensure .slide-content fills the height of its parent */
    width: 100%; /* Ensure .slide-content fills the width of its parent */
}

.slide-content a {
    display: flex!important; /* Makes <a> a flex container to center content vertically */
    align-items: normal!important; /* Centers content vertically within the <a> */
    text-decoration: none; /* Removes the underline from links */
    text-align: left; /* Aligns the text to the left */
    width: 100%; /* Ensures <a> element spans the full width of its parent */
    box-sizing: border-box; /* Includes padding in the element's total width/height */
    min-height: 60px;
    padding: 12px 12px;
    line-height: 1.2 !important;
    color: white !important;
    text-transform: uppercase !important;
    font-size: 14px;
}

.avia-content-slider .slide-entry-title {
        line-height: 1!important;

}
.slide-content {
    margin-top:-10px;
    background-color: #837649;
}
@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(0px);
    }
}

.modal-content.closing {
    animation: fadeOutDown 0s forwards;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(0px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content.opening {
    animation: fadeInUp 0s forwards;
}
/* modal */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust color and opacity as needed */
    z-index: 10000; /* Ensure it's below the modal but above everything else */
    display: none;
}

.acf-button.avia-button a {color: #fff!important;}
.acf-button.avia-button {
    border-color: #000;
    background-color: #000; font-size:18px; margin-top:20px;}

.modal-content .acf-title {font-size:35px; margin-bottom:10px; text-transform: uppercase}
.modal-content .acf-sub_title {font-size:20px; font-weight: bold; margin-bottom:10px; }
#announcement-modal {background-image:url(/wp-content/themes/fiveways-1.1/svg/menu-crest.svg); 
    background-repeat: no-repeat;
    background-size:15vw;
    background-position: center right; padding: 0!important}
.modal-content {border-radius:30px; padding:50px 80px 50px 50px; background-color:rgba(255,255,255,0.85)}
.modal-content .close {
    display: block;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 25px;
    padding: 15px;
    z-index: 89;
    background-color: #000!important;
    background-size: 51% !important;
    right: 20px;
    border-radius: 30px;
    background: no-repeat center;
    background-image: url(/wp-content/themes/fiveways-1.1/svg/xmark-solid-white.svg);
 cursor: pointer;
}
.modal {
    position: fixed;
    width: 85%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    z-index: 9990001;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9990000;
    display: none;
}

.avia-caption-content a {text-decoration:none!important}
/* footer */
.home #news {
    z-index: 100;
    position: relative;}
.footer-page-content .first .avia-image-container { max-width:150px }
.footer-page-content {
        padding-top: 270px !important;
    display: block;
    float: none;
    clear: both;
    z-index: 99;
    position: relative;}
.footer-page-content ul li {list-style: none; line-height: 1.4 }
.footer-page-content ul li:before  {content:">"; background-color: #ac9b6a; color:black!important; padding:0 2px; margin-right:8px}
.footer-page-content span.gold  {color: #ac9b6a;}
.footer-page-content p, .footer-page-content ul li, .footer-page-content ul  {font-size:15px; color:#fff!important; margin:0!important}
.footer-page-content > div {
    margin-top: -270px;
    padding-top: 50px;
    margin-bottom: 30px;
}

/* subjects block */
.see-all {display:none;}
#subject-header .template-page.content {padding:0!important; margin:0!important}
#subject-header {
    background-color:#333;
        background-size: 70%;
    height:500px!important;
    overflow: hidden!important;
    background-repeat: no-repeat;
    display: flex;
    align-items: stretch;
    position: relative;
}

#subject-header::before {
    content: '';
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left center;
    width: 50%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

#subject-header .grey-block {
    background-color: #333;
    width: 250%;
    margin-top: -20px;
    padding: 30px;
    height: 80vh;
    transform: skewX(-10deg);
    transform-origin: top right;
    margin-left: auto;
    z-index: 2;
}
/* Ensure the content inside the grey block is not skewed */
#subject-header .grey-block-content {
    position: absolute;
    width: 50%;
    left: 30px;
    transform: skewX(10deg);
    transform-origin: top left;
    margin-right: -5%; /* Adjust based on skew angle to align text properly */
}
#subject-header  .av_one_half.avia-builder-el-first {  width:60%!important;}
#subject-header  .av_one_half.avia-builder-el-last {  width:30%!important;}
#subject-header p  {color:white}
.our-curriculum p {font-size: 45px; font-style:italic!important;}
.our-curriculum p strong {color:#86754b!important; font-weight:900; font-style: normal!important; text-transform: uppercase; font-size: 45px}
.subject-pages p {color:#86754b!important;font-size:30px; margin-top:-25px;}
.subject-pages p strong, .sibling-pages-nav li a {color:#FFFFFF!important;}
.sibling-pages-nav li::marker {color:white!important}
.open-subs .subject-pages {width:70%;}
.sibling-pages-nav  {
    column-count: 2;     /* Number of columns */
    column-gap: 20px;    /* Space between columns */
    list-style-type: none; /* Optional: Removes bullet points */
    padding: 0;          /* Optional: Removes padding */
}
.sibling-pages-nav li {font-size:15px; line-height: 1.2}
/* subjects styles */

.page-child h1 { text-transform: uppercase!important;
    font-size: 54px;}
.page-child h2, #implementation h4 {font-weight:300;color:black;  font-style: italic;}
#implementation h4 {font-size:24px; margin:20px 0;}
#top .avia-button-fullwidth {font-size:18px!important;}
#implementation .flex_column {margin-top:0!important;}



/* responsive text only */
@media only screen and (min-width: 990px) and (max-width: 1260px) {
#subject-header {
    height: 450px !important;}
    .subject-pages p {
        font-size: 2.7vw;}
    .our-curriculum p  {font-size: 3.4vw;}
.our-curriculum p strong {
    font-size: 3.4vw;}
    .sibling-pages-nav li {
    font-size: 13px;
    line-height: 1.1;
}
 
}

@media only screen and (min-width: 640px) and (max-width: 1180px) {
    /* home */ 
    #admission-block {
        font-size: 25px;}
    #admission-block .admissions {
    font-size: 50px;
        margin: -5px 0 12px;}
    #intro p {
        font-size: 35px;}
    #intro h1 {
        font-size: 50px;}

    body, body .avia-tooltip, body p {
    font-size: 18px;
    }
    h3 {
    font-size: 25px;
    }
    #quote h3 {
    font-size: 30px;
    }
    #quote h4 {
    font-size: 25px;
    }
    .big-h4  {
    font-size: 40px;
    }
    .mega {
    font-size: 45px;
    }
    #news p {
        font-size: 25px;}
    .slide-content a {
        font-size: 12px;}
    
    /* full page banner */
    #full-page-banner {}
    
    /* footer */
    .footer-page-content p, .footer-page-content ul li, .footer-page-content ul {
        font-size: 13px;}
    
}

@media only screen and (min-width: 40px) and (max-width: 639px) {
    /* home */ 
    #admission-block {
        font-size: 20px;}
    #admission-block .admissions {
    font-size: 8.4vw;
        margin: -5px 0 12px;}
#intro p {
    font-size: 7vw;
    margin-bottom: 35px;
}
#intro h1 {
    font-size: 7.4vw;
}

    body, body .avia-tooltip, body p {
    font-size: 17px;
    }
    h3 {
    font-size: 20px;
    }
    #quote h3 {
    font-size: 25px;
    }
    #quote h4 {
    font-size: 20px;
    }
    .big-h4  {
    font-size: 33px;
    }
    .mega {
    font-size: 40px;
    }
    #news p {
        font-size: 20px;}
    .slide-content a {
        font-size: 11px;}
    
    /* full page banner */
    #full-page-banner {}
    
    /* footer */
    .footer-page-content p, .footer-page-content ul li, .footer-page-content ul {
        font-size: 13px;}
    
}
.open-subs .see-all {display:none!important}
@media only screen and (min-width: 768px) and (max-width: 989px) {
    .av_one_fourth {margin-bottom:20px;}
#subject-header .grey-block-content {
    margin-top: 6%;
    }
    
 .open-subs #subject-header .grey-block-content {
    margin-top: 0%;
    }
    
    
}
/* open and close subjects */

.open-subs  .open-it {display:none;}
.open-it {
    display: none;
    width: 25px;
    height: 25px;
    position: absolute;
    top: 35px;
    padding: 17px;
    border-radius: 30px;
    right: 0px;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 999;
    border: 2px solid white;
    background-image: url(/wp-content/themes/fiveways-1.1/svg/arrow-right_solid-white.svg);
}
.close-it {display:none;}

/* Responsive layout changes */


@media only screen and (min-width: 768px) and (max-width: 989px) {
    .sidebar.sidebar_right   {display:none!important;}
    .container_wrap.sidebar_right .template-page.content {width:100%!important}
    .container_wrap.sidebar_right .template-page.content .entry-content-wrapper {padding-right:0!important}
}
@media only screen and (min-width: 640px) and (max-width: 767px) {
.open-it {
    top: 35px;
    right: 0px;
}
}
@media only screen and (min-width: 40px) and (max-width: 345px) {
    .see-all {display:block!important;}
    .see-all p {margin-top: -15px !important;
}
    .our-curriculum p {margin-top:5px!important}
        .open-it {display:none!important;}
}
@media only screen and (min-width: 640px) and (max-width: 989px) {
        .see-all {display:block;}
        .open-it {display:none!important;}
    /* full page banner */
   #full-page-banner .avia-divider-svg {
    border-top: 80px solid #86754b;
}.subject-pages p {
    font-size: 3.3vw;}
 .our-curriculum p, .our-curriculum p strong {
    font-size: 3.4vw;
    display: inline-block;
}
    .open-subs #subject-header .grey-block-content {
        width: 82%;}
            .open-subs .grey-block-content {transform: skewX(0deg)!important;}
            .open-subs .grey-block:after {transform: skewX(0deg)!important;}

    .open-subs #subject-header .grey-block { transform: skewX(0deg)!important;
    background-color: #333;
    width: 120%;
    margin-top: -5px;
    padding: 50px;
        height: 60vh;}
    .open-subs .our-curriculum p,    .sibling-pages-nav {display:none;}
   
.open-subs #subject-header .grey-block {
    margin-left: 0px !important;
}
.sibling-pages-nav  {
    column-count: 3; }
.open-subs .sibling-pages-nav {
    display: block;
    margin-top: -12px;
}
    #subject-header {
    background-size: 55%;
        height: 275px !important;}
    #subject-header .grey-block {
        margin-left: -80px !important;}
 .open-subs  #subject-header .av_one_half.avia-builder-el-last {
    width: 100% !important; margin:0!important;
}
 
}
@media only screen and (min-width: 40px) and (max-width: 639px) {
     .open-subs .close-it {right: 45px!important;}
    .open-it {
    top: 365px;
    padding: 17px;
    right: 45px;
}

#subject-header {
    position: relative;
    display: flex;
    flex-direction: column;  /* Stacks children vertically */
    justify-content: space-between; /* Maximizes space between top and bottom children */
    height: 100%; /* Ensure it has a definite height if not already set */
}
    .grey-block:after {transform: skewX(0deg)!important}
.grey-block {
    margin-top: auto; /* Pushes the block to the bottom */
    width: 100%!important;
}
    
    
    .our-curriculum p, .our-curriculum p strong {
    font-size: 25px!important;
}
    #subject-header .grey-block-content {
    width: 100%!important;
}
    #subject-header {
    background-size: cover!important;
}
    #subject-header .grey-block, #subject-header .grey-block-content {transform: skewX(0deg)}
#subject-header .grey-block-content {
    width: 100%;
    position: relative;
    left: 0;
    margin-right: 0;
    display: block;
    clear: both;
}
body    #subject-header .av_one_half.avia-builder-el-first {
    width: 100% !important;
}
    #wrap_all #subject-header .container {
    width: 100%!important;
        max-width: 100%!important;}
    .sibling-pages-nav {display:none;}
body.open-subs    #subject-header {
        height: 470px !important;}
body    #subject-header  {
        height: 470px !important;}
    .open-subs .sibling-pages-nav {display:block!important}
   .open-subs  #subject-header .grey-block-content {
    width: 100%;
}
    .open-subs #subject-header .grey-block {
    margin-top: -5px;}
.open-subs #subject-header .grey-block::after {
    transform: rotate(90deg);
}
   
    .grey-block-content {padding-bottom:100px;}
#subject-header .grey-block {
    width: 100%;
    padding: 20px 50px;
    margin-top: 325px;
    height: auto;
}
    body #subject-header .av_one_half.avia-builder-el-last {
    width: 100% !important;
}
    /* full page banner */
    .mega {display:block; float: none; margin:0 auto}
    #full-page-banner {    background-size: cover;}
    #full-page-banner .avia-divider-svg {
    
       border-top: 130px solid #86754b;}
   #full-page-banner .avia-divider-svg  svg {
       height:120px;
}
    
}
.see-all, .open-it {cursor:pointer;}
@media only screen and (max-width: 989px) {
    .main_menu {
    margin: 0 ;
}

    .av-burger-overlay-inner {
    background-image: url(/wp-content/themes/fiveways-1.1/svg/menu-crest.svg);
    background-repeat: no-repeat;
    background-size: 42vw;
    background-position: 330px;
}
    .open-subs .close-it {
    display: block;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 25px;
    padding: 15px;
    z-index: 89;
    border: 2px solid white;
    background-size: 51% !important;
    right: 0px;
    border-radius: 30px;
    background: no-repeat center;
    background-image: url(/wp-content/themes/fiveways-1.1/svg/xmark-solid-white.svg);
 cursor: pointer;
}
      .open-it {display:block; }
    #subject-header .grey-block {height:300px;}
/*#subject-header .grey-block:after {
    content: "See all >";
    width: auto;
    border: 0px white solid !important;
    border-radius: 30px !important;
    position: absolute;
    bottom: 30px;
    display: block;
    margin-left: 42px;
    font-style: italic;
    text-align: center;
    line-height: 48px;
    font-size: 25px;
    font-weight: 200;
    color: white;
}
    .open-subs #subject-header .grey-block:after {
    font-style: normal !important;
    transform: skewX(10deg);
    content: "x";
    width: 30px;
    height: 30px;
    border: 2px white solid !important;
    border-radius: 30px !important;
    position: absolute;
    right: 170px;
    top: 18px;
    text-align: center;
    line-height: 30px;
    font-size: 23px;
    font-weight: 200;
    color: white;
}*/
}
@media only screen and (min-width: 767px) {
    .container_wrap.sidebar_right { 
        min-height:70vh!important;}
}
@media only screen and (max-width: 767px) {
    .container_wrap.sidebar_right { 
        min-height:55vh!important;}
    .toggle_icon {display:none!important}
    .toggler span {
        display: block;}
    .search-submit {top:115px!important}
    .text-logo {
    margin-bottom: 25px;
    width: 100%;
    height: 90px;
}
    .av-burger-overlay-inner {
    background-image: url(/wp-content/themes/fiveways-1.1/svg/menu-crest.svg);
    background-repeat: no-repeat;
    background-size: 62%;
    background-position: 150%;
}
    #quote {margin-top:-30px!important;}
    .socials {margin-top:30px!important;margin-bottom:-20px!important;}
    .open-subs .close-it {right: 2px;}
    .open-subs #subject-header .grey-block:after {
    right: 105px;
}
      #subject-header .grey-block {
        width: 160%;}
    .open-subs #subject-header .grey-block {height:600px;}
     
   /* #subject-header .grey-block:after {
         font-style: normal!important;
         transform: skewX(10deg);
    content: ">"; 
    width: 40px;
    height: 40px;
    border: 2px white solid !important;
    border-radius: 30px !important;
    position: absolute;
    right: 90px;
    top: 42px;
    text-align: center;
    line-height: 38px;
    font-size: 30px;
    font-weight:200;
    color: white;
}
    /* CSS rules for screens 767px and smaller */
    #subject-header {
        background-size: 40%;}
       #subject-header .av_one_half.avia-builder-el-first {
    width: 50% !important;
}
    #subject-header .av_one_half.avia-builder-el-last {
    width: 50% !important;
}
    .footer-page-content .avia-image-container { float:left!important; width:130px; }
    #subject-header {
    height: 145px !important;transition: height 0.5s ease;
}
    .open-subs #subject-header {
    height: 315px !important;
}
    .our-curriculum p, .our-curriculum p strong {
    font-size: 3.7vw;
}
    #subject-header .grey-block-content {
        width: 66%;}
}

/* small mobiles */


@media only screen and (min-width: 40px) and (max-width: 423px) {
    #register-your-interest .el_before_av_one_fourth h3 {
    font-size: 33px !important;
}
    .page-child h1 {
        font-size: 35px;}
    h2 {
        font-size: 26px;}
    #av-burger-menu-ul > .av-width-submenu.av-show-submenu {background-color:rgba(0,0,0,0.8);padding-bottom:10px;}
    
    #top #av-burger-menu-ul {
    z-index: 9;
        margin-top: 80px;}
    .modal-content .acf-title {
    font-size: 30px;
    line-height: 1;
        width: 80%;}
        body, body .avia-tooltip, body p {
        font-size: 16px!important;
    }
    .acf-button.avia-button {
    font-size: 16px;
    margin-top: 5px;
    }
    .modal-content.opening {padding:25px 20px;}
    .html_av-overlay-side #top #wrap_all .av-burger-overlay li a {
    padding: 2px 30px;
}
    .custom-menu-content {
    left: 30px;
    top: -28px;
}
    .text-logo {background-size: 80%!important;
    background-position: bottom left!important}
    #announcement-modal {
    background-size: 50vw;
    background-position: bottom right;
}
.another-footer-logo {
    width: 160px;
    height: 120px;
    bottom: 10px;
    right: 10px;}
body .our-curriculum p, bosy .our-curriculum p strong {
    font-size: 20px !important;
}
body    .subject-pages p {
    font-size: 25px;
    margin-top: -20px;
}
    .open-it {
    right: 35px;
}
    body #subject-header .grey-block:after {
    width: 35px;
    height: 35px;
    right: 30px;
    top: 42px;
    line-height: 32px;
    font-size: 26px;
}
body #subject-header .grey-block {
    width: 100%;
        padding: 20px 30px;}
}
@media only screen and (min-width: 423px) and (max-width: 465px) {

    .subject-pages p {
    font-size: 20px!important;
}
}
@media only screen and (min-width: 990px) and (max-width: 1230px) {
 .useful-boxes div {
   font-size: 1.35vw;}   
}
    
@media only screen and (min-width: 23px) and (max-width: 345px) {

    .close-it {display:none!important}
    
}


/* beccy last minute layout hack */
.home .content, .home  .sidebar {
    padding-top: 20px;
    padding-bottom: 20px;}
.home #welcome .template-page.content {padding-bottom: 0!important; padding-top: 50px;}
.home #quote {    margin-top: -20px;
    margin-bottom: -20px;
}    


