/*
Theme Name: Deaf Unity 2020
Theme URI:
Description: 2020 Deaf Unity Wordpress theme.
Version: 1.0
Author: Graham Armfield
Tags: one column, widgets

*/


/* Reset default browser CSS */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    background: transparent;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
    display: block;
}

/* Set default box-sizing. Some things may override this. */
* {
    box-sizing: border-box;
}


/**
 * 1. Change the default font family in all browsers (opinionated).
 * 2. Correct the line height in all browsers.
 * 3. Prevent adjustments of font size after orientation changes in
 *    IE on Windows Phone and in iOS.
 */
/* Document
   ========================================================================== */
html {
    font-family: 'PT Sans', sans-serif;
    /* 1 */
    line-height: 1.15;
    /* 2 */
    -ms-text-size-adjust: 100%;
    /* 3 */
    -webkit-text-size-adjust: 100%;
    /* 3 */
}

/**
 * Add the correct margin in IE 8.
 */
figure {
    margin: 1em 40px;
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
    box-sizing: content-box;
    /* 1 */
    height: 0;
    /* 1 */
    overflow: visible;
    /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
    font-family: monospace, monospace;
    /* 1 */
    font-size: 1em;
    /* 2 */
}

body {
    line-height: 1.3;
    margin: 0;
}

ol, ul {
    list-style: none;
}

blockquote {
    quotes: none;
    margin: 8px 0;
    padding: 10px 10px 10px 25px;
    background: url(images/quotes.png) no-repeat;
    font-style: italic;
    color: var(--sub-text-col);
}

blockquote:before, blockquote:after {
    content: '';
    content: none;
}

del {
    text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
    border-collapse: separate;
    border-spacing: 2;
}

a img {
    border: none;
}

/* =============================================================================
   Base
   ========================================================================== */

/*
 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
 * 2. Force vertical scrollbar in non-IE
 * 3. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
 */

html {
    font-size: 1em;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body, button, input, select, textarea {
    background: #fff;
    font-family: 'PT Sans', sans-serif;
    color: #000;
    letter-spacing: normal;
    word-spacing: normal;
}

/* Maybe do the 'PT Sans Narrow', sans-serif; here on non-paragraph styles??? */

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate
 * Also: hot pink! (or customize the background color to match your design)
 */

::-moz-selection {
    background: #fe57a1;
    color: #fff;
    text-shadow: none;
}

::selection {
    background: #fe57a1;
    color: #fff;
    text-shadow: none;
}

.clear {
    clear: both
}

.visuallyhidden, .screen-reader-text, .srt {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    position: absolute !important;
}

}
a:link, a:visited {
    color: #383197;
    text-decoration: underline;
}

a:hover {
    color: #6A65B2;
}

a:active, a:focus {
    background: #fcf3c0;
    color: #000;
}

/* =============================================================================
   Typography
   ========================================================================== */
/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
    font-family: monospace, monospace;
    /* 1 */
    font-size: 1em;
    /* 2 */
}

abbr[title] {
    border-bottom: 1px dotted;
}

b, strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px dashed #ddd;
    margin: 0.5em 0;
    padding: 0;
}

ins {
    background: #ff9;
    color: #000;
    text-decoration: none;
}

mark {
    background: #ff0;
    color: #000;
    font-style: italic;
    font-weight: bold;
}

/* Redeclare monospace font family: h5bp.com/j */
pre, code, kbd, samp {
    font-family: monospace, monospace;
    _font-family: 'courier new', monospace;
    font-size: 1em;
}

/* Improve readability of pre-formatted text in all browsers */
pre {
    white-space: pre;
    white-space: pre-wrap;
    word-wrap: break-word;
}

q {
    quotes: none;
}

q:before, q:after {
    content: "";
    content: none;
}

small {
    font-size: 85%;
}

/* Position subscript and superscript content without affecting line-height: h5bp.com/k */
sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

/* =============================================================================
   Lists
   ========================================================================== */

ul, ol {
    margin: 1em 0;
    padding: 0;
}

dt {
    font-weight: bold;
    margin: 0
}

dd {
    margin: 0 0 1em 0;
}

dd p {
    margin: 0
}

/* =============================================================================
   Embedded content
   ========================================================================== */
/*
 * 1. Improve image quality when scaled in IE7: h5bp.com/d
 * 2. Remove the gap between images and borders on image containers: h5bp.com/e  */
img {
    border: 0;
    -ms-interpolation-mode: bicubic;
    vertical-align: middle;
}

/* Correct overflow not hidden in IE9 */
svg:not(:root) {
    overflow: hidden;
}

/* =============================================================================
   Forms
   ========================================================================== */

form {
    margin: 0;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/* Indicate that 'label' will shift focus to the associated form element */
label {
    cursor: pointer;
}

/*
 * 1. Correct color not inheriting in IE6/7/8/9
 * 2. Correct alignment displayed oddly in IE6/7
 */

legend {
    border: 0;
    *margin-left: -7px;
    padding: 0;
}


button, input, select, textarea {
    font-size: 100%;
    margin: 0;
    line-height: 1.15;
    vertical-align: baseline;
}

/*
 * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
 * 2. Correct inner spacing displayed oddly in IE6/7
 */

button, input {
    line-height: normal;
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
    /* 1 */
    text-transform: none;
}

/**
 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
 *    controls in Android 4.
 * 2. Correct the inability to style clickable types in iOS and Safari.
 */
button,
html [type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    /* 2 */
}


/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Change the border, margin, and padding in all browsers (opinionated).
 */
fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
    box-sizing: border-box;
    /* 1 */
    color: inherit;
    /* 2 */
    display: table;
    /* 1 */
    max-width: 100%;
    /* 1 */
    padding: 0;
    /* 3 */
    white-space: normal;
    /* 1 */
}


/**
 * Remove the default vertical scrollbar in IE.
 */
textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10-.
 * 2. Remove the padding in IE 10-.
 */
[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    /* 1 */
    padding: 0;
    /* 2 */
}


/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/*
 * Reintroduce inner spacing in 'table' to avoid overlap and whitespace issues in IE6/7
 */
table button, table input {
    *overflow: auto;
}

/*
 * 1. Display hand cursor for clickable form elements
 * 2. Allow styling of clickable form elements in iOS
 */

button, input[type="button"], input[type="reset"], input[type="submit"] {
    cursor: pointer;
    -webkit-appearance: button;
}

/*
 * Consistent box sizing and appearance
 */

input[type="checkbox"], input[type="radio"] {
    box-sizing: border-box;
}

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-decoration {
    -webkit-appearance: none;
}

input[type="text"],
input[type="select"],
textarea {
    background-color: #fff;
    padding: 2px;
    border: 1px solid #4778AD;
    position: relative;
}

input:focus, textarea:focus, select:focus {
    background-color: #FFFDC0
}

input[type="submit"],
button,
a.button {
    background: #4778AD;
    color: #fff;
    border: none;
    padding: 3px 6px;
    text-decoration: none;
    border-radius: 6px;
    position: relative;
}

a.button:link,
a.button:visited {
    background: #4778AD;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

input[type="submit"]:hover,
input[type="submit"]:active,
input[type="submit"]:focus,
button:hover,
button:active,
button:focus,
a.button:hover,
a.button:active,
a.button:focus {
    position: relative;
    background-color: #AD2657 !important;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}


/*
 * 1. Remove default vertical scrollbar in IE6/7/8/9
 * 2. Allow only vertical resizing
 */

textarea {
    overflow: auto;
    vertical-align: top;
    resize: vertical;
}

/* Style placeholders */
*::-webkit-input-placeholder { /* WebKit browsers */
    color: #333;
}

*:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color: #333;
}

*::-moz-placeholder { /* Mozilla Firefox 19+ */
    color: #333;
}

*:-ms-input-placeholder { /* Internet Explorer 10+ */
    color: #333;
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in IE 9-.
 * 1. Add the correct display in Edge, IE, and Firefox.
 */
details,
menu {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
    display: list-item;
}

/* =============================================================================
   Layout and site-wide styles
   ========================================================================== */
[hidden] {
    display: none;
}

/* =============================================================================
   Images
   ========================================================================== */
.alignleft,
.float-left {
    float: left;
    margin: 2px 10px 0 0;
}

.alignright,
.float-right {
    float: right;
    margin: 2px 0 0 10px;
}

.alignnone {
    display: block;
    clear: both;
}

.aligncenter {
    clear: both;
    display: block;
    margin: 5px auto;
}

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

/******************************************************************************/
/******************************************************************************/
/******************************************************************************/
/******************************************************************************/
/******************************************************************************/
/* Start defining styles for the theme */
/******************************************************************************/
/******************************************************************************/
/******************************************************************************/
/* Defining site wide styles */
:root {
    /* colours of text */
    --main-text-col: #000;
    --sub-text-col: #575757;
    --form-label-col: #4778AD;
    --form-input-border-col: #4778AD;
    --main-heading-col: #4778AD;
    --sub-heading-col: #383197;
    --link-col: #383197;
    --link-hover-col: #6A65B2;
    --button-text-col: #fff;
    --button-bg-col: #4778AD;
    --panel-bg-col: #4778AD;

}

/* Video stuff */
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    height: auto;
}

.embed-container iframe, .embed-container object, .embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* General styles */
h1, h2, h3, h4, h5, h6 {
    margin: 1.5rem 0;
    font-family: 'PT Sans', sans-serif;
    color: #4778AD;
    color: var(--main-heading-col);
    line-height: 1.1
    clear: none;
    font-weight: bold;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.7rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.3rem;
}

h5 {
    font-size: 1.2rem;
}

h6 {
    font-size: 1rem;
}

a:link, a:visited {
    color: #383197;
}

a:hover {
    color: #AD2657;
    /* orig color: #6A65B2; */
}

a.faux-button:link, a.faux-button:visited {
    color: #fff;
    background-color: #4778AD;
    display: block;
    border-radius: 5px;
    text-align: center;
    padding: 0.3rem;
    text-decoration: none;
}

a.faux-button:hover {
    background-color: #AD2657;
}

table {
    border-collapse: collapse;
}

table th, table td {
    border: 1px solid #B5B3D9;
    text-align: left;
    vertical-align: top;
    padding: 0.3rem;
}

table th {
    font-weight: bold;
}

#bodywrap {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;

}

/* lists stuff */
article ul,
.widget-container ul {
    list-style-type: disc;
    margin-left: 1.2rem;
}

article ul li {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.soc-book ul {
    list-style-type: none;
    margin-left: 0;
}

.soc-book ul li {
    margin-top: 0;
    margin-bottom: 0;
}

article ol {
    list-style-type: decimal;
    margin-left: 1.2rem;
}

article ol li {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

article ul li.select2-search {
    margin: 0;
}


/* Banner stuff */
#accessibility-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 40em) {
    #accessibility-row {
        flex-direction: row;
    }
}

.skip > ul {
    display: flex;
}

#font-size > ul {
    display: flex;
}

#font-size li, .skip li {
    padding: 0 0.5rem;
}

#font-size .smaller {
    font-size: 70%;
}

#font-size .normal {
    font-size: 105%;
}

#font-size .bigger {
    font-size: 140%;
}

#second-row {
    display: flex;
    flex-direction: column;

}

@media (min-width: 40em) {
    #second-row {
        flex-direction: row;
    }
}

#logo-stuff {
    min-width: 20em;
    display: flex;
    padding: 0 1rem;
    justify-content: flex-start;
}

#logo {
    min-width: 60px;
    margin-bottom: 0.5rem;
}

#site-title-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 1rem;
}

.site-title {
    font-family: 'PT Sans', sans-serif;
    color: #383197;
    font-size: 1.5rem;
    padding: 5px 0;

}

.site-desc {
    font-family: 'PT Sans', sans-serif;
    font-size: 1.2rem;
    color: #4778AD;
}

/* Primary nav stuff */
#nav {
    display: flex;
    flex-direction: column;
}

#nav li a:link, #nav li a:visited {
    display: block;
    background: #4778AD;
    color: #fff;
    padding: 0.4rem;
    text-decoration: none;
    border-radius: 6px;
}

#nav li a:hover {
    background: #666;
    color: #fff;

}

#nav li a:focus {
    background: #383197;
}

#nav li {
    border-bottom: 1px solid #fff;
}

button.dropdown-nav {
    width: 3rem;
    /*
    background: #4778AD url(images/dropdown-inactive.png) no-repeat 50% 50%;
    */
}

button.dropdown-nav .nav-arrow {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    vertical-align: middle;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    border-radius: 2px;
    margin-top: -0.8rem;
    margin-right: 0;
    transform: rotate(45deg);
    -webkit-transition: 0.35s ease all;
    transition: 0.35s ease all;

}


#nav li.menu-item-has-children.open button.dropdown-nav .nav-arrow {
    transform: rotate(-135deg);
    margin-top: 0;

}

#nav li.menu-item-has-children {
    display: flex;
    position: relative;
    flex-flow: row wrap;
}

#nav li .sub-menu {
    display: none;
    position: relative;
    background-color: #eee;
    margin: 0;
}

#nav li.menu-item-has-children.open .sub-menu {
    display: block;
    flex: 1 1 100%;
}

#nav li.menu-item-has-children:hover .sub-menu {
    display: block;
    flex: 1 1 100%;
}

#nav li.menu-item-has-children button {
    width: 4rem;
}

#nav li.menu-item-has-children a {
    width: calc(100% - 4rem);
    border-right: 1px solid #fff;
}

#nav li .sub-menu li {
    border-bottom: 1px solid #333;
}

#nav li .sub-menu a:link, #nav li .sub-menu a:visited {
    width: 100%;
    background-color: #c5c5c5;
    border-radius: 0;
    color: #333;
}

/* Not sure if this is needed
#nav li .sub-menu a:hover, #nav li .sub-menu a:focus  {
  background-color: #666;
  color: #fff;
}
*/
@media (min-width: 40em) {
    #nav {
        margin: 0 0 0.5rem 0;
        display: block;
    }

    #nav li.menu-item-has-children {
        display: inline-block;
        flex-flow: unset;
    }

    #nav li {
        display: inline-block;
        margin: 0.5rem 0.5rem 0 0;
    }

    #nav li button {
        vertical-align: middle;
        display: inline-block;
        /* padding-left :0; */
    }

    #nav li a {
        vertical-align: middle;
        display: inline-block;
        /* padding-left :0; */
    }

    #nav li a:link, #nav li a:visited {
        display: inline-block;
        width: auto;
        background: #fff;
        color: #383197;
        padding: 0.3rem;
        text-decoration: none;
        border-radius: none;
        border-top: 3px solid #fff;
    }

    #nav li a:hover, #nav li a:focus {
        background: #eee;
    }

    #nav li .sub-menu {
        display: none;
        position: absolute;
        z-index: 10;
        /* width:8rem; */
        left: 0;
        right: 0;
        top: 100%;
        padding: 0;
        margin: 0;
        background-color: #c5c5c5;
    }

    #nav li.menu-item-has-children.open .sub-menu,
    #nav li.menu-item-has-children:hover .sub-menu {
        flex: none;
        display: block;
        border: 1px solid #999;
        background-color: #fff;
    }

    #nav li.menu-item-has-children.open .sub-menu li,
    #nav li.menu-item-has-children:hover .sub-menu li {
        display: block;
        margin: 0;
        background-color: #fff;
    }

    #nav li.menu-item-has-children.open .sub-menu li a:link,
    #nav li.menu-item-has-children.open .sub-menu li a:visited,
    #nav li.menu-item-has-children:hover .sub-menu li a:link,
    #nav li.menu-item-has-children:hover .sub-menu li a:visited {
        display: block;
        margin: 0;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #c5c5c5;
        border-top: none;
        border-right: none;
    }

    #nav li.menu-item-has-children.open .sub-menu li a:first-child:link,
    #nav li.menu-item-has-children.open .sub-menu li a:first-child:visited,
    #nav li.menu-item-has-children:hover .sub-menu li a:first-child:link,
    #nav li.menu-item-has-children:hover .sub-menu li a:first-child:visited {
        border-top: none;
    }

    #nav li.menu-item-has-children.open .sub-menu li a:hover,
    #nav li.menu-item-has-children.open .sub-menu li a:focus,
    #nav li.menu-item-has-children:hover .sub-menu li a:hover,
    #nav li.menu-item-has-children:hover .sub-menu li a:focus {
        background-color: #666;
        color: #fff;
    }

    #nav li.menu-item-has-children button.dropdown-nav {
        width: 1.5rem;
        height: 1.5rem;
    }

    #nav li.menu-item-has-children.open button.dropdown-nav {
    }

}

/* third row stuff */
#third-row {
    background-color: #4778AD;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
}

#searchbox, #banner-widget {
}

#searchform ul {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#searchform li {
    margin: 0.5rem;
}

#searchform label {
    color: #fff;
}

#searchsubmit {
    border: 1px solid #fff;
}

#banner-widget {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row wrap;
}

#banner-widget li {
    margin: 0.5rem;
}

#banner-widget li a:link img, #banner-widget li a:visited img {
    border: 3px solid #4778AD;
}

#banner-widget li a:hover img, #banner-widget li a:focus img {
    border: 3px solid #ffff00;
}

@media (min-width: 35em) {
    #searchform ul {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
    }

    #searchform li {
        margin: 0 0.5rem;
    }

    #banner-widget {
        margin-top: 0;
        margin-bottom: 0;
    }

}

/* Breadcrumb stuff */
#breadcrumb {
    margin: 1.5rem 0;
}

/* Main stuff */
main:focus {
    outline: none; /* Stop main giving focus ring in Chrome */
}

.main-content-wrap {
    width: 100%;
    max-width: 60rem;
    background-color: #fff;
    margin: 1rem auto;
    padding: 0 1rem;
}

.main-content-wrap p {
    margin: 0.25rem 0rem 2rem;
}

/* Home page stuff */
.homepage-top-links ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: stretch;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.homepage-top-links ul li {
    flex: 1 1 45%;
    border: 1px solid #c5c5c5;
    margin: 0.5rem;
}

.homepage-top-links ul li a {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: #fff;
    padding: 0.5rem 0.5rem 1rem 0.5rem;
    text-align: center;
    height: 100%;
    text-decoration: none;
    font-size: 1rem;
}

.homepage-top-links ul li a:hover,
.homepage-top-links ul li a:focus {
    background-color: #383197;
    color: #fff;
}

.homepage-top-links ul li a .icon {
    width: 3rem;
    height: 3rem;
    fill: #383197;
}

.homepage-top-links ul li a:hover .icon,
.homepage-top-links ul li a:focus .icon {
    fill: #fff;
}

@media (min-width: 45em) {
    .homepage-top-links ul li {
        flex: 1 1 20%;
    }
}

.homepage-top-links ul li a svg {
    margin: 1rem;
}


.test-svg {
    background-color: #4778AD;
}

.test-svg .icon {
    width: 30rem;
    height: 20rem;
    fill: #fff;
}

.homepage-content-wrapper {
    position: relative;
    margin-bottom: 1rem;
    background-color: #000;
}

.homepage-content-block {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0 10px;
}

.homepage-content-block h1 {
    color: #fff;
}

.homepage-content-block a:link, .homepage-content-block a:visited {
    color: #fff;
}

.homepage-content-block a:hover, .homepage-content-block a:focus {
    background: #fff;
    color: #000;
}

@media (min-width: 50em) {
    .homepage-content-block {
        position: absolute;
        top: 0;
        left: 0;
        width: 65%;
    }

    .homepage-content-wrapper #bsl-button {
        position: absolute;
        bottom: 10px;
        right: 10px;
    }

}

/* Single page/post/article stuff */
main.single-page-post #article-body-wrap {
    display: flex;
    flex-direction: column;
}

.page-post-header-wrap {
    display: flex;
    justify-content: space-between;
    flex-flow: row wrap;
    align-items: center;
}

.page-post-header {
    flex: 1 1 55%;
}

/* BSL stuff */
#bsl-button {
    flex: 0 0 200px;
    width: 200px;
    border-radius: 0;
    padding: 0;
    box-shadow: 5px 5px 6px 1px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

#bsl-button img {
    border-radius: 0 0 5px 5px;
}

#bsl-video {
    /* By default video block is not shown */
    display: none;
}

#bsl-video.show {
    display: block;
    margin-top: 1rem;
}

/* Landing pages stuff */
.landing-list-wrapper {
    display: flex;
    justify-content: space-between;
    flex-flow: row wrap;
    margin: 0 -1rem;
}

/* Orig values */
/*.landing-list-wrapper article{
  flex: 1 1 45%;
  max-width: 30rem;
  margin:0.5rem 1rem;
}
*/
.landing-list-wrapper article {
    flex: 1 1 100%;
    margin: 0.5rem 1rem;
}

@media (min-width: 35em) {
    .landing-list-wrapper article {
        flex: 1 1 30%;
        max-width: 30rem;
        margin: 0.5rem 1rem;
    }
}

.landing-list-wrapper h3, .landing-list-wrapper p {
    margin: 0.7rem 0;
}

.landing-list-wrapper article img {
    border-radius: 5px;
}

.landing-list-wrapper .post-date {
    color: #575757;
}

.landing-list-wrapper h3 a:link,
.landing-list-wrapper h3 a:visited,
.landing-list-wrapper .readmore a:link,
.landing-list-wrapper .readmore a:visited {
    color: #383197;
    text-decoration: none;
}

.landing-list-wrapper h3 a:hover,
.landing-list-wrapper .readmore a:hover {
    color: #6A65B2;
    text-decoration: underline;
}

.courses.landing-list-wrapper .details-wrapper,
.events.landing-list-wrapper .details-wrapper {
    display: flex;
    align-items: flex-start;
}

.vacancies.landing-list-wrapper .details-wrapper,
.resources.landing-list-wrapper .details-wrapper,
.profiles.landing-list-wrapper .details-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.course-event-date {
    background-color: #4778AD;
    color: #fff;
    padding: 0 1.5rem;
    text-align: center;
    margin-right: 1.2rem;
    float: left;
}

.course-event-date p {
    margin: 0.2rem 0;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.course-event-date p .m {
    font-size: 2rem;
}

.course-event-details p {
    margin-top: 0;
}

.vacancies.landing-list-wrapper .course-event-details,
.resources.landing-list-wrapper .course-event-details,
.profiles.landing-list-wrapper .course-event-details {
    margin-left: 0;
    flex: 1 1 calc(100% - 150px);
}

.vacancies.landing-list-wrapper .thumb,
.resources.landing-list-wrapper .thumb,
.profiles.landing-list-wrapper .thumb {
    margin-left: 1.5rem;
    flex: 0 0 150px;
}

/* Single pages and posts stuff */
.course-event-body-wrap {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-flow: row wrap;
}

.course-event-content {
    /* margin-left: 2rem; */
    max-width: 38rem;
}

.course-event-details {
    margin-top: 1rem;
}

.resources .course-event-details {
    margin-top: 0;
}

/* Resources stuff */
.js .accordion-group h2 button {
    background-color: #4778AD;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    width: 100%;
    text-align: left;

}

.js .accordion-group h2 button:before {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
    border-right: 5px solid white;
    border-bottom: 5px solid white;
    border-radius: 2px;
    margin-top: -1rem;
    margin-right: 1em;
    transform: rotate(45deg);
    -webkit-transition: 0.35s ease all;
    transition: 0.35s ease all;

}

.js .accordion-group h2 button[aria-expanded="true"]:before {
    transform: rotate(-135deg);
    margin-top: 0;

}

.js .resources.landing-list-wrapper {
    display: none;
}

.js .resources.landing-list-wrapper.show {
    display: flex;
}

/* Forms stuff */
#contact ul {
    list-style-type: none;
    margin-left: 0;
}

#contact li {
    margin-bottom: 1rem;
}

#contact label {
    display: block;
    padding: 0.1rem 0;
}

#contact input, #contact select, #contact textarea {
    width: 99%;
    border: 1px solid #c5c5c5;
}

#contact input[type="file"] {
    border: 1px solid #fff;

}

#contact input[type="submit"],
#loginform input[type="submit"] {
    font-size: 1.8rem;
    padding: 0.2rem 0.5rem;
    margin: 0.3rem 0;
    border: 1px solid #fff;

}

/* Submission errors */
#sub-errs {
    background-color: #ECCAD6;
    border-radius: 5px;
    padding: 0.2rem 1rem 0.5rem 1rem;
    margin-bottom: 1.2rem;

}

#sub-errs h2 {
    color: #7E214A;
}

/* Comments stuff */
.comment-list {
    list-style-type: none;
    margin-left: 0;
}

.comment-list li {
    margin: 1rem 0;
    border: 1px solid #B5B3D9;
    padding: 0.5rem;
    border-radius: 5px;
}

.comment-list li p {
    margin: 0.5rem 0;
}

.comment-list .children {
    list-style-type: none;
    margin-left: 0.2rem;
}

.comment-author {
    font-weight: bold;
}

.comment-form label {
    display: block;
    color: #4778AD;
}

.comment-form input, .comment-form textarea {
    width: 99%;
    display: block;
    border: 1px solid #c5c5c5;
}

.comment-form .submit {
    display: block;
    color: #fff;
    background-color: #4778AD;
    border-radius: 5px;
    text-align: center;
    padding: 0.3rem 2rem;
}

/* Search/archive stuff */
.no-results {
    margin: 0 1rem;
}

.no-results .page-list .children {
    margin-left: 1.5rem;
}

/* Sidebar stuff */
#sidebar .widgets {
    margin-left: 0;
}

#sidebar .widget-container {
    background-color: #4778AD;
    color: #fff;
    padding: 1rem;
}

@media (min-width: 45em) {
    main.single-page-post #article-body-wrap {
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
    }

    main.single-page-post .page-post-header .post-date {
        margin: 2rem 0;
    }

    main.single-page-post .course-event-content {
        flex: 1 1 50%;
    }

    main.single-page-post #article-content {
        flex: 1 1 55%;
    }

    main.single-page-post aside {
        flex: 1 1 30%;
    }

    #sidebar {
        margin-left: 2rem;
    }
}

#sidebar .widget-container h3,
#sidebar .widget-container a:link,
#sidebar .widget-container a:visited {
    color: #fff;
}

#sidebar .widget-container a:hover,
#sidebar .widget-container a:focus {
    background-color: #fcf3c0;
    color: #000;
    outline: none;
}

#sidebar .widget-container a:hover img,
#sidebar .widget-container a:focus img {
    outline: 2px solid #fcf3c0;
}

#sidebar .widget-container h3 {
    margin: 0;
    font-size: 1.8rem
}

#sidebar .widget-container ul li {
    margin: 0.5rem 0;
}


/* Pagination stuff */
ul.page-numbers {
    display: flex;
    flex-flow: row wrap;
}

ul.page-numbers li {
    outline: 1px solid #383197;
    margin: 1rem 0.5rem 1rem 0;

}

ul.page-numbers li .page-numbers {
    padding: 0.3rem;
    font-size: 1.2rem;
    text-decoration: none;
    color: #383197;
}

ul.page-numbers li .page-numbers.current {
    background-color: #383197;
    color: #fff;
}

/* soc media share stuff */
h2.soc-book-hdr {
    font-size: 1rem;
}

.soc-book ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-flow: row wrap;

}

.soc-book ul li {
    margin-right: 0.5rem;
}

.soc-book li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border: 3px solid #fff;
}

.soc-book li a:hover, .soc-book li a:focus {
    border: 3px solid #000;
    outline: none;
}

.soc-book li a.facebook {
    background-color: #3B5998;
}

.soc-book li a.twitter {
    background-color: #00ACED;
}

.soc-book li a.linkedin {
    background-color: #007BB6;
}

.soc-book li a.whatsapp2 {
    background-color: #25D366;
}

.soc-book .icon {
    width: 2rem;
    height: 2rem;
    fill: #fff;
}

/* Job Board stuff */
.job_listings {
    margin-bottom: 40px !important;
}

.job_filters {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.job_filters .search_jobs {
    padding: 16px;
}

.job_filters .search_jobs input,
.job_filters .search_jobs select {
    padding: 4px;
    margin: 8px 0;
}

.job_listings ul.job_listings {
    margin: 0 0 30px !important;
}

ul.job_listings li.job_listing {
    box-shadow: inset 5px 0 0 #4778AD;
}

ul.job_listings li.job_listing:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

ul.job_listings li.job_listing:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

ul.job_listings li.job_listing:hover {
    box-shadow: inset 5px 0 0 #AD2657;
}

ul.job_listings li.job_listing a:hover {
    background-color: transparent !important;
}

li.job_listing a img.company_logo {
    height: auto !important;
    width: 48px !important;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #4778AD !important;
    border-radius: 0 !important;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
    background-color: #FFFDC0;
}

.job-manager .job-type,
.job_listing .job-type,
.job-types .job-type {
    color: #fff !important;
    background-color: #4778AD;
    padding: 4px 8px;
    text-align: center;
    border-radius: 4px;
    font-size: 0.9em;
}

.job_listing-template-default.single-job_listing #article-content {
    flex: 1 1 60%;
}

.job_listing-template-default.single-job_listing #sidebar {
    margin-top: 2.5rem;
}

.job_listing-template-default.single-job_listing .post-footer .category {
    display: none;
}

.single_job_listing .company {
    border-radius: 4px;
}

.single_job_listing {
    margin-bottom: 60px;
}

.single_job_listing .company .name {
    padding: 0 16px !important;
    line-height: 2.5 !important;
    font-size: 1.2em;
    color: #4778AD;
}

.single_job_listing .company img {
    width: 4em !important;
    height: auto !important;
}

.single_job_listing .meta .job-type {
    background-color: #4778AD !important;
    border-radius: 4px;
}

.single_job_listing .application .application_button,
.job-manager-application-wrapper .application .application_button {
    color: #fff;
    font-weight: bold;
    background-color: #4778AD;
    border: 0;
    border-radius: 4px;
}

/* Add a job form */
#submit-job-form .fieldset-logged_in,
#submit-job-form .fieldset-login_required {
    display: none;
}

.page-add-a-job .job-manager-message > a {
    display: none;
}

/* Footer stuff */
#footer {
    display: flex;
    flex-direction: column;

}

.socmed {
    width: 100%;
    max-width: 60rem;
    margin: 1rem auto;
    text-align: right;
    padding: 0 0.5rem;
}

.du-cta-container {
    color: #fff;
    background-color: #4778ad;
    padding: 40px 0;
}

.du-cta-inner-container {
   max-width: 60rem;
    margin: 0 auto;
}

.du-cta-container h2 {
    color: #fff;
    text-align: center;
}

.du-cta-button {
    text-align: center;
    width: 220px;
    max-width: 100%;
    margin: 16px auto;
}

.du-cta-button-link {
    display: block;
    font-weight: bold;
    text-decoration: none;
    padding: 20px;
    border-radius:0;
}

.du-donate-button {

}

.du-donate-button-link {
    font-weight: bold;
    text-decoration: none;
    padding: 12px 36px;
    border-radius: 6px;
    position: relative;
    bottom: -12px;
}

@media only screen and (max-width: 781px) {

    .du-cta-inner-container {
        padding: 0 32px;
    }

    .du-cta-container figure {
        text-align: center;
    }

    .du-cta-button {
        margin: 32px auto;
    }

    .du-donate-button-link {
        bottom: 0;
    }
}

#banner-widget .socmed {
    margin: 0.5rem 1rem;
    text-align: center;
}

#banner-widget .socmed h2 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: normal;
}

.socmed ul {
    display: flex;
    justify-content: flex-end;
    flex-flow: row wrap;
    list-style: none;
}

#banner-widget .socmed ul {
    justify-content: center;
    margin: 0;
    list-style: none;
}

.socmed ul li {
    margin-left: 0.3rem;
    margin-bottom: 0.3rem;
}

.socmed ul li a:link, .socmed ul li a:visited {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 2rem;
}

#banner-widget .socmed ul li a:link, #banner-widget .socmed ul li a:visited {
    width: 3rem;
    height: 3rem;
    border-radius: 1.5rem;
    border: 2px solid #fff;
}

.socmed ul li a:hover, .socmed ul li a:focus,
#banner-widget .socmed ul li a:hover, #banner-widget .socmed ul li a:focus {
    outline: none;
    border: 2px solid #000000;
}

.socmed li a.facebook {
    background-color: #3B5998;
}

.socmed li a.twitter {
    background-color: #00ACED;
}

.socmed li a.youtube {
    background-color: #ff0000;
}

.socmed li a.linkedin {
    background-color: #007BB6;
}

.socmed li a.instagram {
    background: linear-gradient(#9A26AD, #FF5436);
}


.socmed ul li a .icon {
    width: 3rem;
    height: 2rem;
    fill: #fff;
}

.socmed ul li a.instagram .icon {
    width: 3.5rem;
    height: 2.5rem;
    fill: #fff;
}

#footernav {
    background-color: #4778AD;
    display: flex;
    justify-content: space-around;

}

#footernav ul {
    display: flex;
    justify-content: space-around;
    flex-flow: row wrap;

}

#footernav ul li {
    margin: 0 1rem;

}

#footernav ul a:link, #footernav ul a:visited {
    color: #fff;
}

#footernav ul a:hover, #footernav ul a:focus {
    background-color: #fcf3c0;
    color: #000;
    outline: none;
}

.footer-widgets {
    display: flex;
    justify-content: space-around;
    flex-flow: row wrap;
}

.footer-widget-block {
    flex: 1 1 20rem;
    margin: 1rem;
}

.footer-widget-block .footer-logos {
    display: flex;
    justify-content: flex-start;
    flex-flow: row wrap;
    list-style: none;
}

.footer-widget-block .footer-logos li {
    margin-right: 1rem;
}

.footer-widget-block a:hover img,
.footer-widget-block a:focus img {
    outline: 2px solid #000;
}
