@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,500,700);

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary: #00a1c4;
    --darkblue: #003984;
    --highlight: #ffb62f;
    --hover: #00a1c4;
    --border: #e9e8e8;
    --cta1: #ffb62f;
    --cta2: #00c0e3;
    --cta3: #00d7d0;
    --cta4: #003984;
    --heading: #00a2c5;
    --hred: #00a2c5;
    --btt: #00a1c4;
}

bold {
    font-weight: bold;
}

html.no-js .sliderdiv img {
    display: none;
}

.mobile-toggle {
    display: inline-block;
    position: absolute;
    right: 15px;
    top: -2px;
    z-index: 999;
}

.drilldown .js-drilldown-back>a::before {
    display: none;
}

.js-drilldown-back .fa {
    color: #fff !important;
    font-size: 1.2em !important;
}



body {
    color: #666666;
    font-family: 'Open Sans', arial, sans-serif;
}

@media(max-width:768px) {
    body {
        font-size: 105%;
    }
}

.grid-container {
    max-width: 1024px;
}

.off-canvas-wrapper {
    -webkit-overflow-scrolling: auto
}

.off-canvas {
    background-color: var(--darkblue);
}

.drilldown a {
    background-color: var(--darkblue);
    border-bottom: solid 1px var(--primary);
    color: #fff;
    font-weight: bold;
}

.close-button,
.close-button.medium {
    right: 25px;
    top: 18px;
}

.position-right.is-transition-push {

    box-shadow: none;
}

i {
    color: gray;
    font-size: 3em;
}

a,
a:focus,
a:hover {
    color: var(--darkblue);
}

a:focus {
    color: var(--primary);
}

.category p a {
    color: #e59c16;
}

a[href $='.pdf'] {
    background: url(../images/pdf.png) no-repeat 6px center transparent;
    display: inline-block;
    padding-left: 33px;
}

a[href $='.doc'] {
    background: url(../images/doc.png) no-repeat 6px center transparent;
    display: inline-block;
    padding-left: 33px;
}

a[href $='.docx'] {
    background: url(../images/doc.png) no-repeat 6px center transparent;
    display: inline-block;
    padding-left: 33px;
}

.drilldown a:hover {
    color: var(--highlight);
}

hr {
    background: var(--border);
    border: 0;
    display: block;
    height: 1px;
    margin: 1.5em auto 1.5em;
    max-width: 1050px;
}

blockquote {
    border: none;
    margin: 20px 20px 35px 0;
}

blockquote p {
    color: var(--heading);
    font-family: Georgia, serif;
    font-style: italic;
}


.telephone {
    color: var(--darkblue);
    line-height: 1.1;
}

.telephone a {
    color: #fff;
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 10px;
}

@media(min-width:769px) {
    blockquote p {
        font-size: 120%;
    }

    cite {
        font-size: 1rem;
    }
}

.home hr {
    margin: 2em auto 0;
}

.home .excerpt-read-more {
    display: none;
}

.readmore {
    color: var(--darkblue);
    display: block;
    font-size: .9em;
    font-weight: 800;
    margin: -10px 0 10px;
    padding-bottom: 10px;
}

.newstitle {
    border-top: 1px solid var(--border);
    color: var(--hred);
    padding-top: 15px;
    font-weight: bold;
}

.newstitle a {
    color: var(--hred);
}

.ndate {
    font-size: .9em;
    position: relative;
    top: -5px
}

.home-event-date{font-size: .9rem!important; font-style: italic;}

@media(min-width:769px) {
    .cell.news {
        border-bottom: 1px solid var(--border);
    }
}


.news p {
    font-size: 1em;
    line-height: 1.4;
}



h1,
h2,
h3,
h4,
h5,
h6 {
    border-bottom: solid 1px var(--border);
    clear: both;
    color: var(--heading);
    font-family: 'Open Sans', arial, sans-serif;
    padding-bottom: 10px;
}




.school-title h2 {
    border: none;
    color: #fff
}

.school-title h3 {
    border: none;
    color: var(--highlight);
}

@media(min-width:769px) {

    .school-title h2 {
        font-size: 2.1rem;
        font-weight: normal;
        letter-spacing: -.05rem;
        padding-bottom: 0;
        position: relative;
        top: 10px;
    }

    .school-title h3 {
        font-size: 1.8rem;
        font-weight: normal;
        letter-spacing: -.03rem;
        padding-bottom: 0;
    }
}


footer h4 {
    border: none;
    color: #fff;
    font-weight: bold;
    margin-bottom: 0;
}

@media(min-width:769px) {
    footer h4 {
        border-bottom: solid 1px #1254a7;
        font-weight: normal;
        margin-bottom: 20px;
    }
}


@media(min-width:769px) {
    h1 {
        border-bottom: solid 1px var(--border);
        font-size: 2.2rem;
        margin-bottom: 30px;
        padding-bottom: 14px;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    h4 {
        font-size: 1.6rem;
    }
}




.utility {
    background-color: var(--darkblue);
    border-bottom: solid 2px var(--highlight);
    margin-bottom: 12px;
}

.utility a {
    color: #fff;
    display: inline-block;
    margin: 10px 6px;
}

.pta {
    font-weight: bold;
    position: relative;
    top: -2px;
}

.mylang {
    position: relative;
}

.language-chooser-text {
    margin: 0;
    padding: 0;
}

.fa {
    color: #fff;
    font-size: 1.4em !important;
}

.fa.fa-search {
    font-size: 1.2rem !important;
}

.inner-footer .fa {
    margin: 0 16px 0 0;
}


.language-chooser-text li {
    display: inline-block;
    font-weight: bold;
    list-style-type: none;
}

#qtranslate-2-chooser {
    display: inline-block;
    margin-left: 12px;
    position: relative;
    top: -1px
}

#qtranslate-2-chooser li.active a::after {
    content: ' \f00c';
    font-family: Fontawesome;
    font-size: .8rem;
}

#qtranslate-2-chooser li.active a {
    color: var(--highlight);
}

#qtranslate-2-chooser li a {}

section {
    display: block;
    width: 100%;
}

.top-bar,
.top-bar ul {
    background-color: transparent;
    padding: 0
}

.header {
    background-color: var(--primary);
    /* background:linear-gradient(185deg, #df5b41 0%, #de253c 100%); */

}

.school-illustration {
    background-image: url('https://www.yggllangynwyd.cymru/wip/wp-content/themes/besponsive4/assets/images/footer.png');
    background-position: center top;
    background-repeat: no-repeat;
    display: block;
    height: 158px;
    margin-top: 60px;
}


.medium-horizontal.menu.dropdown {
    background-color: transparent;
    margin: auto;
    margin: 0;
    max-width: 1080px;
}

.menu-bar {
    background-color: var(--darkblue);
    border-top: solid 2px var(--highlight);
    margin-bottom: 20px;
    margin-top: 20px;
}

.dropdown.menu a {
    /* margin: 0 10px; */
    color: #fff;
    font-size: 1rem;
    /* text-transform: uppercase; */
    font-weight: 700;
    padding: 1em;
}

.dropdown.menu .is-active>a {
    color: #fff;
}

.dropdown.menu a:hover {
    background-color: var(--hover);
    color: #fff;
}

.dropdown.menu .active>a {
    background-color: var(--hover);
    color: #fff;
}

.dropdown.menu.medium-horizontal>li.is-dropdown-submenu-parent>a::after {
    display: none;
    /* border-color: var(--darkblue) transparent transparent; */
}

.dropdown.menu.medium-horizontal>li.is-dropdown-submenu-parent>a {
    padding-right: 1em;
}

.is-dropdown-submenu {
    background-color: var(--darkblue) !important;
    border: none;
    -webkit-box-shadow: -1px 15px 13px 0px rgba(0, 0, 0, 0.27);
    -moz-box-shadow: -1px 15px 13px 0px rgba(0, 0, 0, 0.27);
    box-shadow: -1px 15px 13px 0px rgba(0, 0, 0, 0.27);
    min-width: 280px;
    z-index: 999;
}

.is-dropdown-submenu li {
    border-bottom: solid 1px var(--primary);
}

.is-dropdown-submenu .is-dropdown-submenu-parent.opens-right>a::after {
    border-color: transparent transparent transparent var(--darkblue);
}

.is-dropdown-submenu .is-dropdown-submenu-parent.opens-right.is-active>a::after {
    border-color: transparent transparent transparent #fff;
}

.drilldown .is-drilldown-submenu {
    background-color: var(--darkblue);
    /* min-height: 600px!important; */
}

.drilldown .is-drilldown-submenu-parent>a::after {
    border-color: transparent transparent transparent var(--primary);
}

.drilldown .js-drilldown-back>a::before {
    border-color: transparent var(--primary) transparent transparent;
}

.main {
    margin-top: 30px
}

.sliderdiv {
    margin: 0 auto 10px;
    width: 100%;


}

@media(max-width:768px) {
    .sliderdiv img {
    height: auto;
    width: 100%;
}
    }




.slide1 {
    background-image: url('https://www.yggllangynwyd.cymru/wip/wp-content/themes/besponsive4/assets/images/slides/slide1.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.slide2 {
    background-image: url('https://www.yggllangynwyd.cymru/wip/wp-content/themes/besponsive4/assets/images/slides/slide2.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}


@media(min-width:769px) {
    .thirds {
        float: left;
        margin-right: 1%;
        width: 32.2%;
    }

    .the92 {
        max-width: 100%;
        clear: both;
    }

}

.thirds {
    margin-top: 16px;
}



.home-events-title {
    background-color: var(--darkblue);
    border: none;
    clear: both;
    color: #fff;
    display: block;
    font-size: 2rem;
    margin: 30px 0;
    padding: 10px 12px 10px;
    position: relative;
}

.home-events-title:hover {
    color: var(--highlight);
}

.home-events-title::before {
    content: '\f073';
    font-family: Fontawesome;
    font-size: 2rem;
    padding-right: 20px;
}

.home-events-title::after {
    content: '\f105';
    font-family: Fontawesome;
    font-size: 2rem;
    position: absolute;
    right: 20px
}

.twitter-title::after {
    content: '\f099';
    font-family: Fontawesome;
    font-size: 2rem;
    position: absolute;
    right: 3px
}

@media(max-width:768px) {
    .twitter-title {
        margin-top: 30px
    }

    .twitter-title::after {
        font-size: 1.2rem;
    }
}

@media(max-width:768px) {
    .sliderdiv {
        margin-bottom: 20px;
    }
}

.ctas a {
    color: #fff;
    display: block;
    /*  text-transform: uppercase; */
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -.03em;
    margin: 0 0 20px 0;

    padding: 18px 12px 19px;
    position: relative;
}

.ctas a::after {
    content: '\f105';
    font-family: Fontawesome;
    font-weight: 400 !important;
    position: absolute;
    right: 20px
}

.ctas a:hover {
    opacity: .9
}

.cta1 {
    background-color: var(--cta1);
}

.cta2 {
    background-color: var(--cta2);
}

.cta3 {
    background-color: var(--cta3);
}

.cta4 {
    background-color: var(--cta4);
}

.cta5 {
    background-color: var(--cta5);
}

.cta6 {
    background-color: var(--cta6);
}


.accreditations {
    border-bottom: solid 1px var(--border);
    border-top: solid 1px var(--border);
    margin-bottom: 30px;
    max-width: 1054px;
    padding-bottom: 30px;
    padding-top: 30px;
}

.accreditations div {
    display: flex;
    justify-content: space-between;
    margin: auto;
    max-width: 700px;
}

.home-side {
    position: relative;
}

.news {
    background-color: #f9f9f9;
    border-top: solid 10px var(--primary);
    margin-bottom: 40px;
    padding: 20px 10px 10px;
}



footer.footer {
    background-color: var(--darkblue);
    border-top: solid 2px var(--highlight);
    color: #fff;
    margin-top: 0;
    padding: 30px 0 30px;
}


.footer ul {
    margin: 0;
    padding: 0 0 30px
}



.footer li {
    line-height: 1.8;
    list-style-type: none;
    margin-right: 20px;
}

.footer li a {
    color: #fff;
    text-decoration: underline;
}

.footer li a:hover {
    color: var(--highlight);
}

@media(max-width:769px) {
    .contact {
        margin-bottom: 40px;
    }
}

.contact a {

    color: #fff;
    font-weight: bold;
    letter-spacing: -.03em;
}

address {
    font-size: 1.1em;
    font-style: normal;
    margin-bottom: 30px;
}

.footerlogo {
    display: inline-block;
    height: auto;
    margin-bottom: 30px;
    max-width: 240px;
}


.copyright {
    margin-top: 50px
}

.copyright,
.copyright a {
    color: #fff0e7;
    font-size: 0.8125rem;
}

.btt {
    background-color: var(--btt);
    display: block;
    padding: 20px;
}

.hentry {
    border-bottom: 1px dotted var(--border);
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.home .hentry {
    border: none;
}

.newsfeed {
    border-bottom: solid 1px var(--border);
}

.newsfeed p {
    font-size: .9rem;
    margin-bottom: 0;
}

.newsfeed .read-more {
    display: block;
    font-size: .9rem;
    margin-bottom: 12px;
}

.alignright {
    float: right;
}


.catdescriptions img {
    border: solid 6px #fff;
    outline: 1px solid #eff3f2
}

.catdescriptions {
    background-color: #edfefa;
    border: solid 1px #e1f5f1;
    margin-bottom: 30px;
    padding: 20px
}

.catdescriptions strong {
    color: #2d2e2e;
}


.plink {
    background: url(../images/plink-bg.png) right top no-repeat;
    border-radius: 8px;
    color: #fff;
    display: block;
    float: left;
    font-size: 1.5em;
    font-weight: bold;
    height:
        100px;
    margin: 0 2% 20px 0;
    padding: 10px;
    text-decoration: none;
    width: 48%;

}

.plink:hover {
    color: #fff;
}

@media(max-width:500px) {

    .plink {
        width: 100%;
    }

}

code {
    clear: both;
    display: block;
}





.office-tel::before,
.abs-tel::before,
.email-address::before,
.location::before {
    color: var(--primary);
    font-family: Fontawesome;
    font-weight: bold !important;
    padding-right: 12px;
}


.office-tel::before {
    content: ' \f095';
}

.abs-tel::before {
    content: ' \f095';
}

.email-address::before {
    content: ' \f0e0';
    padding-right: 9px;
}

.location::before {
    content: ' \f041';
}




table tbody tr:nth-child(2n) {
    background-color: #def2ff;
}

.tribe-events-calendar div[id*="tribe-events-daynum-"],
.tribe-events-calendar div[id*="tribe-events-daynum-"] a {
    background-color: #d9edf7;
}

.tribe-events-calendar th {
    background-color: #a1afb8;
}

@media(min-width:769px) {
    .home .tribe-mini-calendar-event.event--1 {width:32.2%; margin-right: 1%; float:left;}
    }

.home .tribe-mini-calendar-event.event--1 {border-top:solid 10px #003984;  padding:10px; background-color: #f9f9f9; margin-top:20px}
.home .tribe-events-widget-link, .home .tribe-events-widget-link a{clear: both; font-size: 12px; color: #b6b6bb!important;}
.home .list-date{display: none!important;}
.home .tribe-mini-calendar-event .list-info h2, .tribe-mini-calendar-event .list-info{font-size:16px!important}