  /*
 Theme Name: Torquay Boys Grammar School
 Description: The custom theme Torquay Boys Grammar School using the parent theme Twenty Seventeen.
 Author: WNW Digital
 Author URI: https://www.wnwdigital.co.uk
 Template: twentyseventeen
 Version: 1
 */

body {
    font-family: 'Lato', sans-serif;
}

h2 {
    color: #263373;
    padding-bottom: 10px;
    padding-top: 15px;
} 

.entry-content h2 {
    font-size: 40px;
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-family: 'Lato', sans-serif;
    /*color: #263373;*/
    margin-bottom: 20px;
}

h4 {
    font-size: 42px;
    color: #333;
    font-weight: 300;
}

h5 {
    font-size: 20px;
    color: #263373;
    font-weight: 600;
    margin: 20px 0;
    margin: 45px 0 15px 0;
}

p {
    margin-bottom: 25px;
}

img {
    max-width: 100%;
    height: auto;
}

hr {
    margin: 0 0 25px 0;
    overflow: auto;
    display: block;
    width: 100%;
}

iframe {
    max-width: 100%;
}

table {
    margin-bottom: 50px;
}

.light-grey-bg {
    background: #f1f1f1;
    border-top: solid 1px #ddd;
    border-bottom: solid 1px #ddd;
}

.error-message {
    font-size: 24px;
    text-align: center;
    font-family: 'Lato', sans-serif;
    color: #263373;
    margin-bottom: 20px;
}

.tablepress {
    margin-bottom: 50px!important;
}

.tablepress tbody tr {
    border-top: 1px solid #ddd;
}

.tablepress tbody tr:last-child {
    border-bottom: 1px solid #ddd;
}

.tablepress-id-2 td.column-1,
.tablepress-id-3 td.column-1,
.tablepress-id-5 td.column-1 {
    width: 25%;
    font-weight: 600;
}

.tablepress-id-2 td.column-2,
.tablepress-id-3 td.column-2,
.tablepress-id-5 td.column-2 {
    width: 50%;
}

.tablepress-id-2 td.column-3,
.tablepress-id-3 td.column-3,
.tablepress-id-5 td.column-3 {
    width: 25%;
}

.tablepress-id-6 td.column-1 {
    width: 50%;
}

.tablepress-id-6 td.column-2 {
    width: 50%;
}

.entry-content ul {
    margin-bottom: 30px;
}

.no-padding {
    padding: 0;
}

.no-margin {
    margin: 0;
}

.fl {
    float: left;
}

.alignright {
    float: right;
    margin: 0 0 30px 30px;
}

.alignleft {
    float: left;
    margin: 0 30px 30px 0;
}

.alignnone, {
    float: none;
    margin: 30px auto;
}

.header {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    background-color: #fff;
    background-image: url('/images/header-image.png');
    background-repeat: no-repeat;
    background-position: 100% 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999999;
}

.shrink {
    height: 80px;
    background-position: 100% 100%;
}

.header-slider {
    float: right;
    padding: 5px 15px;
}

.hp {
    padding: 0 100px;
}

#h-logo {
    float: left;
    overflow: auto;
    margin: 10px 0;
}

#logo {
    float: left;
    padding: 5px 0;
}

#logo img {
    max-height: 100%;
}

.contact {
    text-align: right;
}

.contact a {
    color: #263373;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px; 
    float: right;
    margin: 0px 50px 0 0;
    padding: 5px 10px;
}

.contact a:hover {
    color: #171f45;
}

.large-container {
    width: 100%;
    max-width: 1430px;
    float: none;
    margin: auto;
    overflow: auto;
}

.navrow {
    width: 100%;
}

.nav-bar {
    background-color: #263373;
    overflow: visible;
}

.nav-bar ul {
    margin: 0;
    float: none;
    padding: 0;
    overflow: visible;
}

.nav-bar ul li {
    float: left;
    list-style-type: none;
    font-size: 17px;
    font-weight: 400;
    position: relative;
}

.nav-bar ul li a {
    font-size: 16px;
    text-decoration: none;
    color: #fff!important;
    padding: 10px 20px;
    float: left;
}

.nav-bar ul li:hover > a {
    text-decoration: none;
    background-color: #263373;
    color: #fff!important;
    transition-duration: 0.3s;
}

.strap {
    background-image:url('/images/slider.jpg');
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    max-width: 100%;
    padding: 150px 0;
    margin-top: 152px;
}

.strapline {
    max-width: 820px;
    color: #fff;
    border-left: solid 20px #263373;
    padding-left: 32px;
    font-size: 38px;
    text-shadow: 2px 2px #000;
    line-height: 65px;
}

.arrow {
    float: none;
    margin: auto;
    display: block;
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: 300;
}

.content-area h3 {
    margin-bottom: 40px;
    text-align: left;
}

.content {
    padding-top: 80px;
    padding-bottom: 60px;
    font-size: 23px;
    font-weight: 300;
    color: #000;
}

.button-1 {
    float: left;
    width: 175px;
    display: inline-block;
    background-color: #263373;
    color: #fff;
    font-size: 23px;
    text-align: center;
    margin: 30px 20px 20px 0;
    padding: 10px 0;
}

.button-1:hover {
    text-decoration: none;
    color: #fff;
    background-color: #263373;
    transition-duration:0.3s;
}

.button-2 {
    float: left;
    width: 175px;
    display: inline-block;
    background-color: #e13130;
    color: #fff;
    font-size: 23px;
    text-align: center;
    margin: 30px 20px 20px 0;
    padding: 10px 0;
}

.button-2:hover {
    text-decoration: none;
    color: #fff;
    background-color: #b62827;
    transition-duration:0.3s;
}

.calendar,
.news {
    min-height: 555px;
}

.calendar {
    background-image: url('/images/calendar-1.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    margin: 15px auto;
    color: #fff;
    font-weight: 300;
    font-size: 20px;
    line-height: 23px;
    overflow: auto;
}

.calendar a {
    color: #fff;
}

.calendar a:hover {
    color: #fff;
    text-decoration: none;
}

.tribe-list-widget {
    list-style: none;
    padding: 0;
    margin: 0;
}

ol.tribe-list-widget li {
    margin-bottom: 30px;
    min-height: 70px;
}

.tribe-events-widget-link {
    display: none;
}

h4.tribe-event-title {
    font-size: 20px;
    font-weight: 500;
}

.tribe-event-duration {
    font-size: 16px;
}

.calendar-info {
    background-color: rgba(38, 51, 115, 0.8);
}

.recentbp {
    display: block;
    width: 100%;
    float: left;
    overflow: auto;
    min-height: 110px;
}

.date {
    float: left;
    border-right: solid 1px #fff;
    width: 22%;
    padding-right: 20px;
    text-align: right;
}

.date p {
    font-size: 30px;
    text-align: center;
    margin: 5px 0;
}

.bpinfo {
    float: left;
    width: 78%;
    padding-left: 20px;
    box-sizing: border-box;
}

.bpinfo a {
    color: #fff;
}

.bpinfo a:hover {
    color: #fff;
    text-decoration: none;
}

.rpwwt-post-title {
    font-size: 20px;
    font-weight: 500;
}

.rpwwt-post-date {
    font-size: 18px;
}

.rpwwt-widget ul li {
    min-height: 70px;
    margin-bottom: 30px!important;
    line-height: 34px;
}

.news-info,
.calendar-info {
    overflow: auto;
    padding: 0 30px;
}

.news-info h3,
.calendar-info h3 {
    font-weight: 500;
    text-align: left;
    font-size: 26px;
    color: #fff;
    padding: 30px 0;
    margin: 0;
}

.view-more-btn {
    margin-top: 1px;
}

.view-more-btn a {
    font-weight: 300;
    color: #fff;
    width: 100%;
    display: inline-block;
    float: right;
    padding: 20px;
}

.view-more-btn a:hover {
    color: #fff;
    transition-duration: 0.3s;
}

.news {
    background-image: url('/images/calendar-2.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    margin: 15px auto;
    color: #fff;
    font-weight: 300;
    font-size: 20px;
    line-height: 23px;
    overflow: auto;
}

.news a {
    color: #fff;
}

.news a:hover {
    color: #fff;
    text-decoration: none;
}

.news-info {
    background-color: rgba(38, 51, 115, 0.8);
}

.slider-2 {
    background-image: url('/images/slider-2.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    max-width: 100%;
    overflow: auto;
    margin-top: 20px;
    padding: 115px 0 115px 0;
}

.clear-sect {
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 15px;
    line-height: 24px;
    font-weight: 400;
    min-height: 460px;
    position: relative;
}

.clear-sect h3 {
    padding: 30px 0 25px 0;
    margin: 0;
}

.clear-sect p {
    padding: 0 30px 30px 30px;
    margin: 0;
}

.clear-sect a {
    background-color: rgba(38, 51, 115, 0.8);
    text-align: center;
    color: #fff;
    display: block;
    padding: 15px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.clear-sect a:hover {
    color: #fff;
}

.read-more-btn a {
    color: #fff;
    display: block;
    padding: 15px;
}

.read-more-btn a:hover {
    color: #fff;
}

.read-more-btn {
    background-color: rgba(41, 52, 111, 1);
    text-align: center;
}

.arrow-2 {
    float: right;
}

.social-icons {
    float: right;
    margin-right: 55px;
}

.slider-3 {
    background-image: url('/images/slider-3.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    max-width: 100%;
    overflow: auto;
    margin-bottom: 10px;
}

#find-out-more {
    max-width: 650px;
    float: right;
    color: #fff;
    font-weight: 600;
    font-size: 50px;
    padding-top: 90px;
    padding-bottom: 90px;
}

.find-btn {
    display: inline-block;
    background-color: #e13130;
    color: #fff;
    font-size: 30px;
    text-align: center;
    width: 300px;
    line-height: 52px;
    font-weight: 400;
}

.find-btn:hover {
    text-decoration: none;
    color: #fff;
    background-color: #b62827;
    transition-duration: 0.3s;
}

.social-slider {
    padding: 50px 0 40px 0;
}

.footer-nav {
    margin: 0 0 30px 0;
    padding: 0;
}

.footer-nav li {
    text-decoration: none;
    list-style-type: none;
    color: #333333;
}

.footer-nav li a {
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
}

.footer-nav a:hover {
    color: #263373;
}

.footer-contact {
    font-size: 18px;
}

.footer-contact a {
    color: #263373;
}

.footer-contact a:hover {
    text-decoration: none;
}

.footer-social a {
    margin-right: 40px;
}

.btn-primary {
    width: 341px;
    background-color: #00be3f;
    border-color: #00be3f;
    font-weight: 600;
    font-size: 20px;
}

.btn-primary:hover {
    background-color: #263373;
}

.entry-title {
    display: none;
}

/**footer form **/

.footer-form p {
    margin: 0;
}

.footer-form input[type] {
    float: left;
    box-sizing: border-box;
    width: 96%;
    margin: 0 2% 20px 2%;
    padding: 5px;
    border-radius: 3px;
    border: solid 1px #ccc;
}

.footer-form input[type=submit] {
    float: left;
    background-color: #263373;
    border: none;
    border-radius: 3px;
    width: 96%;
    font-weight: 500;
    font-size: 20px;
    color: #fff;
    margin: 0 2% 20px 2%;
    cursor: pointer;
}

.footer-form input[type=submit]:hover {
    background-color:#263373;   
    transition-duration: 0.3s;
}

.footer-form input[type]::placeholder {
    color: #ddd;
}

.footer-form .wpcf7 textarea {
    width: 96%;
    box-sizing: border-box;
    padding: 5px;
    color: #333;
    border: solid 1px #ccc;
    border-radius: 3px;
    margin: 0 2% 20px 2%;
    height: 90px;
}

.footer-form textarea::placeholder {
    color: #ddd;
}

.nav-active::after {
  transform: rotate(180deg)!important;
  -ms-transform: rotate(180deg)!important; /* IE 9 */
  -moz-transform: rotate(180deg)!important; /* Firefox */
  -webkit-transform: rotate(180deg)!important; /* Safari and Chrome */
  -o-transform: rotate(180deg)!important; /* Opera */
    margin-left: 4px!important;
    margin-top: 8px!important;
}

#primary .entry-meta .byline {
    display: none;
}

/**media queries**/

@media(max-width: 1200px) {
    
    .newvent {
        width: 100%;
        max-width: 100%;
    }
    
    .clear-sect {
        min-height: 490px;
    }
    
    .strap {
        padding: 60px 0;
    }
    
    #find-out-more {
        max-width: 400px;
        font-size: 30px;
        padding-top: 70px;
        padding-bottom: 70px;   
    }
}

@media(max-width:992px) {
    
    .header {
        background-image: none;
    }
    
    .strapline {
        font-size: 28px;
        line-height: 48px;
    }
    
    .slider-2 {
        padding: 30px 0;
    }
    
    .clear-sect {
        min-height: 0;
    }
    
    .clear-sect h3 {
        padding: 30px 0 50px 0;
        margin: 0;
    }
    
    .three-boxes {
        margin-bottom: 30px;
    }
    
    .clear-sect p:first-of-type {
        display: none;
    }
    
    .social-icons {
        float: left;
        margin-top: 40px;
    }
    
    #find-out-more {
        max-width: 340px;
        font-size: 26px;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .find-btn {
        font-size: 24px;
        line-height: 39px;
    }
}

@media(max-width:768px) {
    .alignleft {
        float: none;
        margin: 30px auto;
        display: block;
    }
    
    .alignright {
        float: none;
        margin: 30px auto;
        display: block;
    }
    
    .alignnone, .aligncenter {
        float: none;
        margin: 30px auto;
        display: block;
    }    
    
    .tablepress-id-2 td, .tablepress-id-2 tfoot, .tablepress-id-2 th,
    .tablepress-id-3 td, .tablepress-id-3 tfoot, .tablepress-id-3 th,
    .tablepress-id-5 td, .tablepress-id-5 tfoot, .tablepress-id-5 th,
    .tablepress-id-6 td, .tablepress-id-6 tfoot, .tablepress-id-6 th {
        width: 100%!important;
        display: block;
        border: 0!important;
    }
    /**
    .tablepress tbody td, .tablepress tfoot, .tablepress th {
    display: block;
    border: 0!important;
    }
    
    .tablepress tbody tr {
        border-top: 1px solid #ddd;
    }
    **/
    
    .strapline {
        font-size: 22px;
        line-height: 32px;
        border-left: solid 12px #263373;
    }
    
    .big-fb {
        float: left;
        margin: 40px 0 0 0;
    }
    
    .big-twitter {
        float: right;
        margin: 40px 0 0 0;
    }
    
    .tribe-events-calendar thead {
        display: none;
    }
    
    .tribe-events-calendar {
        border-top: solid 1px #d2d2d2!important;
    }
}

@media(max-width:600px) {
    .newvent {
        padding-right: 0;
        padding-left: 0;
    }
}

@media (max-width:407px) {
    .footer-slider {
        display: none;
    }
}

@media (max-width:400px) {
    
    
    .footer-form .wpcf7 textarea {
        width: 96%;

    }
}

@media (max-width: 356px) {
    #find-out-more {
        font-size: 20px;
    }
    
    .find-btn {
        font-size: 20px;
        width: 190px;
    }
}

@media (max-width: 370px) {
    
    .footer-contact {
        font-size: 15px;
    }
}

a {
    color: #2a3570;
}

a:hover {
    color: #171f45;
}

.ngg-imagebrowser h3 {
    display: none;
}      

/**Contact Form**/


.form-7 {
    width: 100%;
}

.form-7 input::placeholder,
.form-7 textarea::placeholder {
    color: #d6d6d6;
}

.form-7 .date {
    margin-bottom: 20px;
}

.form-7 .wpcf7-select {
    border: solid 1px #ddd;
    padding: 4px;
    margin-top: 10px;
}

.form-7 p {
    margin-bottom: 14px;
}

.form-7 input {
    width: 100%;
    border: solid 1px #ddd;
    padding: 4px;
}

.form-7 textarea {
    width: 100%;
    height: 100px;
    border: solid 1px #ddd;
    padding: 4px;
}

.form-7 .wpcf7-submit {
    background-color: #36b128;
    color: #fff;
    width: 100%;
    border: none;
    padding: 8px 0;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    cursor: pointer;
}

.form-7 .wpcf7-submit:hover {
    background-color: #212529;
    transition-duration: 0.3s;
}

.content-row {
    margin-top: 160px;
    padding-bottom: 40px;
}

/** Navigation **/

@media(min-width: 1081px) {
.sub-menu {
    background-color: #263373;
    position: absolute;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s linear;
    margin: 0!important;
    padding: 0;
    top: 44px;
    left: 0;
    width: 300px;
}
}

@media(max-width: 1080px) {
.sub-menu {
    display: none;
}
}

.sub-menu li {
    margin: 0!important;
    padding: 0px!important;
    width: 100%;
}

.sub-menu li a {
display: block;
width: 100%;
font-size: 15px!important;
padding: 5px 20px!important;
}

.sub-menu .sub-menu {
    top: 0;
    left: 300px;
    position: absolute;
}

.sub-menu .sub-menu li {
margin: 0!important;
padding: 0px!important;
width: 100%;
}

.sub-menu .sub-menu .sub-menu li {
    width: 100%;
}

.toggle-it {
    background-image: url('/images/toggle-close.png');
    width: 40px;
    height: 29px;
    cursor: pointer;
    display: none;
    float: right;
    margin: 20px 15px;
}

.go {
    display: none;
}

@media(min-width:1081px) {
.block {
    visibility: visible;
    opacity: 1;
    transition: visibility 0.3s, opacity 0.3s linear;
}
}

@media(max-width:1080px) {
.block {
    display: block!important;
}
}

.menu-item-has-children > a::after {
    font-family: "Font Awesome 5 Free";
    content: "\f0dd";
    color: #fff;
    font-style: normal;
    font-variant-caps: normal;
    font-variant-ligatures: normal;
    font-weight: 900;
    font-size: 16px;
    height: 16px;
    vertical-align: top;
    display: inline-block;
    margin-left: 10px;
    margin-top: 2px;
    line-height: 16px;
    text-rendering: auto;
    width: 16px;
    -webkit-font-smoothing: antialiased;
}

@media(max-width:1080px) {
    
    .header {
        position: relative;
    }
    
    .strap {
        margin-top: 0;
    }
    
    #menu-top-nav {
        width: 100%;
        display: none;
    }
    
    .toggle-it { 
        display: block;
    }
    
    .menu-top-nav-container {
        width: 100%;
        max-width: 100%;
    }
    
    #menu-top-nav li {
        width: 100%;
    }
    
    #menu-top-nav li a {
        color: #fff!important;
        width: 100%;
        padding: 15px;
        text-align: left;
    }
    
    #menu-top-nav #menu-item-33 a,
    #menu-top-nav #menu-item-34 a {
        width: 200px;
        display: block;
        float: none;
        margin: 20px auto;
    }
    
    .sub-menu,
    .sub-menu .sub-menu {
        float: left!important;
        width: 100%;
        position: relative;
        top: 0;
        left: 0;
    }
    
    .sub-menu {
        background: #171f45;
    }
    
    .sub-menu .sub-menu {
        background-color: #263373;
    }
    
    .sub-menu .sub-menu .sub-menu {
        background: #171f45;
    }
    
    .sub-menu li {
        border-top: 0!important;
    }
    
    .sub-menu li a {
        font-size: 14px;
        display: block;
        width: 100%;
        padding: 7px 30px!important;
    }

    .sub-menu .sub-menu li a {
        padding: 7px 45px!important;
    }
    
    .sub-menu .sub-menu .sub-menu li a {
        padding: 7px 60px!important;
    }
    
    .content-row {
        margin-top: 30px;
    }
    
}

.page-title {
    font-size: 40px;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
    color: #263373;
}

.widget_search,
.widget_meta {
    display: none;
}

#primary {
    float: left;
    overflow: auto;
    width: 61%;
    margin: 20px 2%;
}

#primary article {
    background: #f6f6f6;
    padding: 30px;
    border-top: solid 2px #263373;
    margin-bottom: 30px;
}

#primary article .entry-title,
.widget-title {
    display: block!important;
    font-size: 26px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.widget-title {
    padding: 0;
    margin: 0 auto 20px auto;
}

#secondary {
    float: left;
    overflow: auto;
    width: 31%;
    margin: 20px 2%;
}

#secondary section {
    background: #f6f6f6;
    padding: 30px;
    border-top: solid 2px #263373;
    margin-bottom: 30px;
}

#search-bar {
    float: right;
    margin-top: 0;
}

#search-bar .search-submit {
    height: 36px;
    padding: 6px;
    border: solid 1px #ddd;
}

#search-bar .icon {
    float: left;
    display: block!important;
    width: 20px;
    height: 20px;
}

#search-bar .search-field {
    padding: 5px;
    border: solid 1px #ddd;
    width: 200px;
}

.search-width {
    width: 100%!important;
    margin: 0!important;
}

@media(max-width: 1260px) {
    
    #h-logo {
        margin: 0;
    }
    
    .h-contact {
        display: none;
    }
}

@media(max-width: 920px) {
    #h-logo {
        width: 350px;
    }
    
    #search-bar {
        margin-top: 20px!important;
    }
}

@media(max-width: 768px) {
    #h-logo {
        width: 320px;
        display: block;
        float: none;
        margin: 20px auto 0 auto;
    }
    
    .header-slider,
    #search-bar {
        padding: 0;
        width: 320px;
        float: none;
        margin: auto;     
        margin-bottom: 20px;
    }
    
    #search-bar .search-field {
        width: 280px;
    }
}

@media(max-width: 350px) {
    
    #h-logo {
        width: 300px;
    }
    
    .header-slider,
    #search-bar {
        width: 300px;
    }
    
    #search-bar .search-field {
        width: 260px;
    }
}

/** calendar styling **/

.tribe-events-widget-events-list__header h2 {
    display:none;
}

.tribe-events-widget-events-list__events {
   color: #fff;
    font-size: 20px;
    font-weight: 500;
}

.tribe-events-widget-events-list__event-datetime {
    color:#fff;
    font-size: 14px;
    font-weight: 500;
}

.tribe-common a, .tribe-common a:active, .tribe-common a:focus, .tribe-common a:hover, .tribe-common a:visited {
    Color: #fff!important;
    font-size: 20px;
    font-weight: 500;
}

.tribe-common .tribe-common-h2 {
    color: #fff!important;
    font-size: 20px;
    font-weight: 500;
}

.tribe-events-widget .tribe-events-widget-events-list__event-date-tag-month {
    color: #fff!important;
    font-size: 20px;
    font-weight: 500;
}

.tribe-common .tribe-common-b1 {
    display: none!important;
}

.tribe-events .tribe-events-calendar-list__event-title-link {
    color: #000!important;
}

.tribe-events .tribe-events-calendar-list__event-title-link:visited {
    color: #000!important;
}

.tribe-events .tribe-events-calendar-list__event-title-link {
    color: #000!important;
}

.tribe-events .tribe-events-calendar-list__event-title-link:hover {
    color: #000!important;
}