/*
 Theme Name:   Divi Child BMS
 Theme URI:    http://example.com/divi-child-bms/
 Description:  Divi Child BMS
 Author:       Jon Rose
 Author URI:   http://www.castlemanacademytrust.co.uk
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  divi-child
*/

.wt-cli-manage-consent-link {
  background-color: #b59f72;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}


.page-child #main-content {
margin: auto;
max-width: 1440px;
}

/*nav#top-menu-nav {
}

#mega-menu-wrap-primary-menu #mega-menu-primary-menu {
    position: relative !important;
}

#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-item {
    position: relative !important;
}


#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-megamenu > ul.mega-sub-menu {
    position: absolute !important;
    left: 50%;
    transform: translate(-50%, -50%);
}
*/

td img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* BANNER SETTINGS */

.et_pb_gallery_0.et_pb_gallery {
    /*height: 400px;*/
}

.image-content-header .et-pb-arrow-prev,
.image-content-header .et-pb-arrow-next,
.image-content-header .et-pb-controllers {
    display: none;
}

.image-content-header .et_pb_gallery_items {
    pointer-events: none;
}

/* MEGA MENU SETTINGS */
.et_fullwidth_nav #main-header .container {
    padding-right: 0px;
}

.et_header_style_left #et-top-navigation, .et_header_style_split #et-top-navigation {
        padding-top: 0px !important;
}

.logo_container {
    display: none;
    position: relative !important;
    padding-top: 0px;
}
div#et-top-navigation {
    padding-left: 0 !important;
    float: none !important;
}
nav#top-menu-nav {
    float: none !important;
}

@media only screen and (max-width: 980px) {
    header .et_pb_fullwidth_menu .fullwidth-menu-nav,
    header nav#top-menu-nav {
        display: block !important;
    }
}
@media only screen and (max-width: 767px) {
    header nav#top-menu-nav,
    header #et-top-navigation {
       width: 100%;
    }
}
header #et_mobile_nav_menu, 
header .et_mobile_nav_menu {
    display: none !important;
}

/* stop menu from overlapping logo on mobile */

@media all and (max-width: $responsive_breakpoint) {
    header .logo_container {
        position: relative !important;
        padding-top: 0px;
    }
    header div#et-top-navigation {
        padding-left: 0 !important
    }
}


@media screen and (max-width: 980px) {
    header .container {
	 width: 100%;
    }
}

@include mobile {
    .logo_container {
        display: none;
    }
}

img {
    max-width: 100%;
    display: block;
}

/* HEADER SETTINGS */

.header {
    width: 100%;
    height: 120px;
    position: relative;
    display: table;
    background: #fff;
}
 .header .top-section .logo-wrapper {
    width: 100%;
    display: block;
}
@media (min-width:768px) {
     .header .top-section .logo-wrapper {
    float: left;
    width: auto;
    margin: 25px 0 25px 30px;
}
} .header .top-section .logo-wrapper:hover {
    text-decoration: none;
}
 .header .top-section .logo-wrapper .logo {
    margin: 1.25rem auto;
}
@media (min-width:768px) {
     .header .top-section .logo-wrapper .logo {
    float: left;
    margin: 0 20px 0 0;
}
} .header .top-section .logo-wrapper h1 {
    font-size: 1.9375rem;
    color: #b59f72;
    /*font-family: "Calibri W01 Bold_904607";*/
    margin: -7px 0 0 0;
    padding: 0;
    text-align: center;
    text-transform: uppercase;
    line-height: 28px;
}
@media (min-width:768px) {
     .header .top-section .logo-wrapper h1 {
    float: left;
    font-size: 2.5rem;
    text-align: left;
    line-height: 36px;
    padding-top: 4px;
}
} .header .top-section .logo-wrapper h1 span {
    display: block;
    /*font-family: "Calibri W01 Regular_904604";*/
}
 .header .top-section .top-right-section {
    text-align: center;
}
@media (min-width:768px) {
     .header .top-section .top-right-section {
    float: right;
    padding: 15px 20px 0 0;
    text-align: left;
}
} .header .top-section .top-right-section .academy-logo-wrapper {
    display: none;
}
@media (min-width:768px) {
     .header .top-section .top-right-section .academy-logo-wrapper {
    float: right;
    display: block;
    padding: 7px 70px;
    margin-right: 15px;
    border-left: 1px solid #dfedf6;
    border-right: 1px solid #dfedf6;
}
} .header .top-section .top-right-section .schools-logo-wrapper, .header .top-section .top-right-section .school-logo-wrapper {
    display: none;
}
@media (min-width:768px) {
     .header .top-section .top-right-section .schools-logo-wrapper, .header .top-section .top-right-section .school-logo-wrapper {
    float: right;
    display: block;
    padding: 22px 20px;
    margin-right: 15px;
    border-left: 1px solid #dfedf6;
    border-right: 1px solid #dfedf6;
}
} .header .top-section .top-right-section .schools-logo-wrapper .logo, .header .top-section .top-right-section .school-logo-wrapper .logo {
    margin: 1.25rem auto;
}
@media (min-width:768px) {
     .header .top-section .top-right-section .schools-logo-wrapper .logo, .header .top-section .top-right-section .school-logo-wrapper .logo {
    float: left;
    margin: 0 10px 0 0;
}
} .header .top-section .top-right-section .schools-logo-wrapper h3, .header .top-section .top-right-section .school-logo-wrapper h3 {
    display: none;
}
@media (min-width:1280px) {
     .header .top-section .top-right-section .schools-logo-wrapper h3, .header .top-section .top-right-section .school-logo-wrapper h3 {
    display: block;
    float: left;
    text-align: left;
    font-size: 1.8125rem;
    color: #b59f72;
    font-family: "Calibri W01 Bold_904607";
    margin: 0;
    padding: 0;
    text-align: left;
    text-transform: uppercase;
    line-height: 24px;
}
} .header .top-section .top-right-section .schools-logo-wrapper h3 span, .header .top-section .top-right-section .school-logo-wrapper h3 span {
    font-size: 26px;
    display: block;
    /*font-family: "Calibri W01 Regular_904604"*/
}
 .header .top-section .top-right-section .schools-logo-wrapper {
    border-right: none;
}
 .header .top-section .top-right-section .schools-logo-wrapper h3 {
    color: #b59f72;
}
 .header .top-section .top-right-section .contact-links {
  }
@media (min-width:768px) {
     .header .top-section .top-right-section .contact-links {
    float: right;
}
} .header .top-section .top-right-section .contact-links a {
    width: 32px;
    height: 32px;
    margin: 10px 10px 20px 10px;
    text-align: center;
    display: inline-block;
    background: #b59f72;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    padding-top: 6px;
}
@media (min-width:768px) {
     .header .top-section .top-right-section .contact-links a {
    display: block;
    margin: 10px 0 0 0;
    }
}

/* MAIN CSS */
a {
    background-color: transparent;
}
  a:active, a:hover {
    outline: 0;
}
   abbr[title] {
    border-bottom: 1px dotted;
}
  b, strong {
    font-weight: bold;
}
  dfn {
    font-style: italic;
}
.main-content h1 {
    font-size: 2em;
    margin: 0.67em 0;
}
  mark {
    background: #ff0;
    color: #000;
}
  small {
    font-size: 80%}
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
 sup {
    top: -0.5em;
}
 sub {
    bottom: -0.25em;
}
   img {
    border: 0;
}
  svg:not(:root) {
    overflow: hidden;
}
   figure {
    margin: 1em 40px;
}
  hr {
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    height: 0;
}
  pre {
    overflow: auto;
}
  code, kbd, pre, samp {
    /*font-family: monospace, monospace;*/
    font-size: 1em;
}
    button, input, optgroup, select, textarea {
    color: inherit;
     font: inherit;
     margin: 0;
}
  button {
    overflow: visible;
}
  button, select {
    text-transform: none;
}
  button, html input[type="button"], input[type="reset"], input[type="submit"] {
    -webkit-appearance: button;
     cursor: pointer;
}
  button[disabled], html input[disabled] {
    cursor: default;
}
  button::-moz-focus-inner, input::-moz-focus-inner {
    border: 0;
    padding: 0;
}
  input {
    line-height: normal;
}
  input[type="checkbox"], input[type="radio"] {
    box-sizing: border-box;
     padding: 0;
}
  input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
    height: auto;
}
  input[type="search"] {
    -webkit-appearance: textfield;
     -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
     box-sizing: content-box;
}
  input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}
  fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}
  legend {
    border: 0;
     padding: 0;
}
  textarea {
    overflow: auto;
}
  optgroup {
    font-weight: bold;
}
   table {
    border-collapse: collapse;
    border-spacing: 0;
}
 td, th {
    padding: 0;
}

.main-content h1, h2, h3, h4, h5, h6 {
    line-height: normal;
    font-weight: normal;
    text-transform: uppercase;
    color: #b59f72;
    margin: 0 0 30px 0;
    padding: 0;
}
 h1, h2 {
    font-size: 1.25rem;
}

@media (min-width:768px) {
     h1, h2 {
    font-size: 1.5rem;
}
}

@media (min-width:980px) {
     h1, h2 {
    font-size: 2.0625rem;
}
}
h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.125rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 1rem;
}

p {
    /*font-family: "Calibri W01 Bold_904607" !important;*/
    /*line-height: 1.8em;
    font-size: 1.025rem;
    color: #565655;*/
    padding: 0;
}

.main-content p {
    margin: 0 0 40px 0;
    line-height: 28px;
    font-size: 16px;
    color: #565655;
}

a {
    color: #b59f72;
    text-decoration: none;
}

/* a:hover {
    color: #2688c9;
    text-decoration: underline;
} */

.main-content ul {
.bms-block-button    padding: 0 0 0 0 !important;
    margin: 0 0 40px 0;
}

.main-content ul > li:nth-child(2n+1), .main-content ol > li:nth-child(2n+1) {
    background-color: #f0f0f0;
}

.main-content ul li, .main-content ol li {
    position: relative;
    /* font-size: 1.125rem;*/
    font-weight: 500;
    color: #565655;
    list-style: none;
}
.main-content ul > li {
    padding: 0.7em 1.3em 30px 40px;
    position: relative;
}

.main-content ul > li:before {
    background: url(/wp-content/uploads/sites/2/2019/02/feature-sprite.png) no-repeat scroll 50% -318px transparent;
    content: "";
    height: 11px;
    left: 1.3em;
    position: absolute;
    top: 1.25em;
    width: 12px;
}

.main-content ul li:before, ol li:before {
    background: #b59f72;
    border-radius: 50%;
    width: 5px;
    height: 5px;
    left: 7px;
    top: 22px;
}
.main-content .bms-block-button {
    /*font-family: "Calibri W01 Bold_904607" !important;*/
    width: 100% !important;
    height: 42px !important;
    line-height: 42px !important;
    color: #fff !important;
    font-size: 15px !important;
    background: #b59f72 !important;
    position: relative !important;
    display: block !important;
    padding: 0 0 0 48px !important;
    margin: 0 0 20px 0 !important;
    text-transform: uppercase !important;
    text-align: left !important;
    border: none !important;
}

/* BLOCK QUOTES */
.main-content blockquote.sws-blockquote {
    padding: 1.1em 3.6em 1.1em 3.6em;
    position: relative;
    margin: 1.9em 0;
    /*font-size: 1.1em;*/
    line-height: 1.6em;
    border-color: #b59f72;
    background-color: #f0f0f0;
    color: #4d4d4d
}

.main-content blockquote.sws-blockquote > p {
font-size: 20px !important;
}

.main-content blockquote.sws-blockquote > p:first-child {
    margin: 0
}

.main-content blockquote.sws-blockquote:before {
    content: "“";
    display: inline;
    left: 0.4em;
    position: absolute;
    top: 0.8em;
    font-size: 3em;
    line-height: 1px;
    font-weight: bold;
    font-style: normal;
    color: #4d4d4d
}

.main-content blockquote.sws-blockquote:after {
    content: "”";
    display: inline;
    right: 0.4em;
    position: absolute;
    top: 0.8em;
    font-size: 3em;
    line-height: 1px;
    font-weight: bold;
    font-style: normal;
    color: #4d4d4d
}

.main-content blockquote.sws-blockquote p:after {
    display: none
}

.main-content blockquote.sws-blockquote cite {
    display: block;
    margin: 0.7em 0 0;
    text-transform: none;
    font-size: 0.85em;
    font-style: italic
}

.advanced-sidebar-menu li.current_page_item a {
    color: #fff !important;
    background: #b59f72;
}

.advanced-sidebar-menu li.page_item:hover a {
    color: #fff !important;
    background: #b59f72;
}

.advanced-sidebar-menu li.page_item a {
    color: #b59f72;
    display: block;
    font-size: 14px;
    padding: 12px 20px;
    position: relative;
    width: 100% !important;
    text-transform: uppercase;
    text-decoration: none !important;
}

.advanced-sidebar-menu.et_pb_widget ul li {
margin-bottom: 0px !important;
}

/*.advanced-sidebar-menu li.current_page_item:before{
    content: '';
    background: url(/wp-content/uploads/sites/2/2019/03/arrow-right.png) no-repeat 0 0;
    width: 11px;
    height: 14px;
    position: absolute;
    margin-top: 18px;
    right: 18px;
    z-index: 99999;
}*/

.advanced-sidebar-menu li.page_item:before{
    content: '';
    background: url(/wp-content/uploads/sites/2/2019/03/arrow-right.png) no-repeat 0 0;
    width: 11px;
    height: 14px;
    position: absolute;
    margin-top: 18px;
    right: 18px;
    z-index: 99999;
}


.et-pb-active-slide .et_pb_slide_description {
    animation-name: fadeIn;
}

.entry-title {
    font-size: 1.5rem;
    margin-bottom: 0px !important;
}

.et_pb_post a.et_pb_button {
    text-decoration: none;
}


/* TODO: MAKE THIS A CSS CLASS THAT CAN BE ASSIGNED TO A BUTTON AS OPPOSED TO ALL BUTTONS IN A POST*/

.et_pb_post .et_pb_button {
    display: inline-block;
    color: #ffffff !important;
    /*background-image: linear-gradient(180deg,#4b8cc1 0%,#0c71c3 100%)!important;*/
    background-color: #b59f72;
    width: 100%;
    margin: 0px;
    text-align: left;
    padding-left: 60px;
}

.et_pb_post .et_pb_button:hover {
    /*background-image: linear-gradient(180deg,#2688c9 0%,#0c71c3 100%)!important;*/
    background-color: #948661;
    padding-left: 60px;
}

/* Download link*/

.et_pb_button_0:after {
    transition: all 300ms ease 0ms;
}

.et_pb_button:after, .et_pb_button:before {
    position: absolute;
    margin-left: -1em;
    opacity: 0;
    text-shadow: none;
    font-size: 32px;
    font-weight: 400;
    font-style: normal;
    font-variant: none;
    line-height: 1em;
    text-transform: none;
    content: "\35";
    -webkit-transition: all .2s;
    -moz-transition: all .2s;
    transition: all .2s;
}

.document-download-button {
    padding: 0px 0px 15px 0px !important;
}

.web-link-button {
    padding: 0px 0px 15px 0px !important;
}

.document-download-button .et_pb_button_module_wrapper:before {
    background: url(/wp-content/uploads/sites/2/2019/02/feature-sprite.png) no-repeat scroll -28px -100px transparent;
    content: " ";
    display: block;
    height: 30px;
    left: 1.3em;
    position: absolute;
    margin-top: 18px;
    width: 30px;
    z-index: 99999;
}

.web-link-button .et_pb_button_module_wrapper:before {
    background: url(/wp-content/uploads/sites/2/2019/02/feature-sprite.png) no-repeat scroll -28px -172px transparent;
    content: " ";
    display: block;
    height: 30px;
    left: 1.3em;
    position: absolute;
    margin-top: 18px;
    width: 30px;
    z-index: 99999;
}

.sws-download-list li:before {
    background: #ffffff !important;
}

.sws-download-list ul > li {
    padding: 0.7em 1.3em 0.7em 0px !important;
    position: relative;
}

 ul .sws-download-list {
    list-style: none;
    list-style-type: none;
}
 ul.sws-download-list li:nth-child(2n+1) {
    background-color: #fff !important;
}
 ul.sws-download-list li a {
    /*font-family: "Calibri W01 Regular_904604" !important;*/
    color: #fff !important;
    text-decoration: none;
    font-size: 18px;
}
 ul.sws-download-list li a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

 .sws-document-link {
    /*font-family: "Calibri W01 Bold_904607" !important;*/
    width: 100% !important;
    height: 42px !important;
    line-height: 42px !important;
    color: #fff !important;
    font-size: 15px !important;
    background: #b59f72 !important;
    position: relative !important;
    display: block !important;
    padding: 0 0 15px 20px !important;
    margin: 0 0 0 0 !important;
    text-transform: uppercase !important;
    text-align: left !important;
    border: none !important;
}

 .sws-header {
    /*font-family: "Calibri W01 Bold_904607" !important;*/
    width: 100% !important;
    /*height: 42px !important;*/
    line-height: 42px !important;
    color: #fff !important;
    /*font-size: 15px !important;*/
    background: #b59f72 !important;
    position: relative !important;
    display: block !important;
    /*padding: 0 0 15px 20px !important;*/
    padding: 0 0 10px 10px;
    margin: 0 0 0 0 !important;
    /*text-transform: uppercase !important;
    text-align: center !important;*/
    border: none !important;
}


 .sws-document-link:hover {
    color: #fff !important;
    background-color: #948661 !important;
    text-decoration: none !important;
}

/*.sws-document-link:before {
    background: url(/wp-content/uploads/sites/2/2019/02/feature-sprite.png) no-repeat scroll -28px -172px transparent;
    content: " ";
    display: block;
    height: 30px;
    left: 1.3em;
    position: absolute;
    margin-top: 18px;
    width: 30px;
    z-index: 99999;
}*/

 .sws-document-link:after {
    content: '';
    background: url("/wp-content/uploads/sites/2/2019/03/arrow-right.png") no-repeat;
    width: 11px;
    height: 13px;
    position: absolute;
    right: 12px;
    top: 15px;
}

.cat-logo-right-sidebar {
    background: url(/wp-content/themes/logos/castlemanacademylogo.png) no-repeat transparent;
/*background-size: 100% 100%;*/
    display: block;
  position: absolute;
  top: -100px;
  bottom: 0;
  left: 30px;
  right: 0;
  height: 400px;
  width: 100%;
  opacity: 0.1;
}

.right-sidebar-logo {
    height: 230px;
}

/* MODERN EVENT MANAGER CSS */

/* Remove margin above month divider */

.mec-month-divider {
  margin-top: 0px;
}

.mec-color, .mec-color-before :before, .mec-color-hover:hover, .mec-wrap .mec-color, .mec-wrap .mec-color-before :before, .mec-wrap .mec-color-hover:hover {
    color: #b59f72;
}

.mec-border-color, .mec-border-color-hover:hover, .mec-wrap .mec-border-color, .mec-wrap .mec-border-color-hover:hover {
    border-color: #b59f72;
}

.mec-wrap .mec-totalcal-box .mec-totalcal-view span.mec-totalcalview-selected {
    color: #fff;
    background: #b59f72;
    border-color: #b59f72;
}

.mec-calendar .mec-selected-day, .mec-calendar .mec-selected-day:hover {
    background: #b59f72;
    color: #fff;
}

.mec-calendar .mec-has-event:after {
    background-color: #b59f72;
}

.mec-month-divider span:before {
    border-bottom: 4px solid #b59f72;
}

.mec-bg-color, .mec-bg-color-hover:hover, .mec-wrap .mec-bg-color, .mec-wrap .mec-bg-color-hover:hover {
    background-color: #b59f72;
}

.mec-calendar .mec-calendar-side .mec-next-month i, .mec-calendar .mec-calendar-side .mec-previous-month i {
    color: #b59f72;
}

.mec-calendar .mec-calendar-side .mec-next-month, .mec-calendar .mec-calendar-side .mec-previous-month {
    color: #b59f72;
}


/*.et_pb_button_module_wrapper:before {
    background: url(/wp-content/uploads/sites/2/2019/02/feature-sprite.png) no-repeat scroll -28px -100px transparent;
    content: " ";
    display: block;
    height: 17px;
    left: 1.3em;
    position: absolute;
    top: 15px;
    width: 17px;
    z-index: 99999;
}*/

/* Web link*/

/*.et_pb_button_module_wrapper:before {
    background: url(/wp-content/uploads/sites/2/2019/02/feature-sprite.png) no-repeat scroll -28px -172px transparent;
    content: " ";
    display: block;
    height: 17px;
    left: 1.3em;
    position: absolute;
    top: 15px;
    width: 17px;
    z-index: 99999;
}*/

.category-latest-news .entry-featured-image-url {
display: none;
}


.category-newsletters .entry-featured-image-url {
display: none;
}

.entry-content tr td, body.et-pb-preview #main-content .container tr td {
    padding: 6px 24px;
    border-top: 0px;
    border-top-width: 0px;
    border-top-style: solid;
    border-top-color: rgb(238, 238, 238);
}
