/*
Theme Name:     Blandford
Theme URI:
Author:         One Website Design
Author URI:     http://www.onewebsitedesign.co.uk
Description: 	Fully responsive WordPress theme based on the Foundation 6 framework.
Version:        5.0
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Tags:           one-column, two-columns, left-sidebar, right-sidebar, custom-menu, featured-images
Text Domain:    blandford
*/

/*----------------------------------------------------------------------------*\
  #COLOUR PALETTE

    Primary                 #03539c
    Secondary               #6786bf
    Header Font             #03539c
    Body Font               #222
    Links                   #666
    Links Hover             #111
    Icons                   #1e7188
    Icons Hover             #1c667b
    Input Border            ##ddd
    Input Background        #fefefe

\*----------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*\
  #RESET
\*----------------------------------------------------------------------------*/
div,
article,
section,
li {
	  position: relative; /* Absolutely positioning elements within containers */
}

::-moz-selection {
  	background: #03539c;
  	color:#fff;
}

::selection {
  	background: #03539c;
  	color:#fff;
}

html,
body {
    height: 100%;
  	font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-weight: normal;
    font-style: normal;
  	line-height: 1.6;
  	font-family: 'Open Sans', sans-serif;
  	color: #222;
    padding: 0;
    margin: 0;
    position: relative;
    cursor: auto;
}

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

menu,
ol,
ul {
	margin: 0;
	padding: 0;
}

ul {
	list-style-type: none;
}

nav ul,
nav ol {
	list-style-type: none;
	list-style-image: none;
}

li > ul,
li > ol {
	margin: 0;
}

img {
	-ms-interpolation-mode: bicubic;
	border: 0;
    display: inline-block;
	vertical-align: middle;
}

/* We use this to get basic styling on all basic form elements */
input[type="text"],
input[type="password"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="time"],
input[type="url"],
input[type="color"],
textarea {
    border-radius: 0;
    background-color: #fefefe;
    border: 1px solid #ddd;
    box-shadow: none;
    transition: all 0.3s linear;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="color"]:focus,
textarea:focus {
    background: #fefefe;
    border-color: #ddd;
    outline: none;
}

input[type=submit] {
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
    padding: 0 2rem; 
    height: 2.3125rem;
    background: #03539c;
    border: 1px solid #6786bf;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

input:hover[type=submit] {
    background: #6786bf;
}

textarea {
    min-height: 200px;
    max-width: 100%;
}

/* Respect enforced amount of rows for textarea */
textarea[rows] {
  height: auto;
}

select {
    border-radius: 0;
    border: 1px solid #ddd;
    box-shadow: none;
    transition: all 0.3s linear;
}

/* Label Styles */
label {
    font-size: 0.875rem;
    margin-bottom: 0.2rem;
}

/* Responsive Videos */
.video-wrapper {
    position: relative;
    padding-bottom: 46%;
    padding-top: 25px;
    height: 0;
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 350px;
    padding: 2px;
    border: 2px solid ##ddd;
}

/*----------------------------------------------------------------------------*\
  #TYPOGRAPHY
\*----------------------------------------------------------------------------*/
/* Typography resets */
div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6,
pre, form, p, blockquote, th, td {
    margin: 0;
    padding: 0;
}

/* Default Link Styles */
a {
    color: #6786bf;
    text-decoration: none;
    line-height: inherit;
}

a:hover {
    color: #03539c;
}

a:focus {
    outline: 2px solid #ddd;
}

/* Default paragraph styles */
p {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

p aside {
    font-size: 0.875rem;
    line-height: 1.35;
    font-style: italic;
}

/* Default heading styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: #03539c;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
  
h1 small, h2 small, h3 small, h4 small, h5 small, h6 small {
    font-size: 60%;
    color: #03539c;
    line-height: 0;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.375rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.2rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1.125rem;
}

hr {
    border: solid #ddd;
    border-width: 1px 0 0;
    clear: both;
    margin: 1.25rem 0 1.1875rem;
    height: 0;
}

/* Blockquotes */
blockquote {
    margin: 0 0 1.25rem;
    padding: 0.5625rem 1.25rem 0 1.1875rem;
    border-left: 2px solid #ddd;
    -webkit-hyphens: none;
    -moz-hyphens:    none;
    -ms-hyphens:     none;
    hyphens:         none;
}

blockquote cite {
    display: block;
    font-size: 0.8125rem;
    color: #03539c;
}

blockquote cite a,
blockquote cite a:visited {
    color: #03539c;
}

blockquote,
blockquote p {
    line-height: 1.6;
    color: #222;
}

/*----------------------------------------------------------------------------*\
  #UTILITIES
\*----------------------------------------------------------------------------*/
/* Back to top button */
.topbutton {
    height: 50px;
    width: 50px;
    font-size: 1.5rem;
    color: #fff !important;
    position: fixed;
    right: 20px;
    bottom: 20px;
    text-align: center;
    line-height: 42px;
    z-index: 1000;
    background: #03539c;
    border: 1px solid #6786bf;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    display: none;
}

.topbutton:hover {
    background: #6786bf;
}

/*----------------------------------------------------------------------------*\
  #HEADER SECTION
\*----------------------------------------------------------------------------*/
header {
    height: auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #6786bf;
}

.site-logo {
    float: left;
    width: 38%;
}

.custom-logo {
    height: auto;
    max-width: 100%;
    margin-top: 20px;
}

.custom-logo-link {}

.header-stripe {
    float: left;
    width: 62%;
}

.header-stripe .stripe {
    height: 20px;
    width: 100%;
    margin-top: 43px;
    display: block;
    background: #03539c url(images/stripe_fade.png) left center no-repeat;
}

.main-navigation {}

.desktop-menu {
    margin: 1rem 0 0 0;
}

.desktop-menu li a {
    font-size: 0.95rem;
    color: #6786bf;
    padding-right: 1.2rem;
    padding-left: 1.2rem;
    display: block;
    transition: color 0.3s ease;
}

.desktop-menu li a:hover,
.desktop-menu li a:focus {
    color: #03539c;
    outline: none;
}

.desktop-menu li ul {
    min-width: 200px;
    background: #6786bf;
    border: 0 none;
}

.desktop-menu li ul li a {
    color: #fff;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.desktop-menu li ul li a:hover {
    color: #fff;
    background: #03539c;
}

.desktop-menu .active > a {
    font-weight: 700;
    color: #03539c;
    background: transparent;
}

.main-navigation .menu.dropdown > li.is-dropdown-submenu-parent > a::after {
    border: inset 5px;
    border-color: #fff transparent transparent;
    right: 5px;
    margin-top: -2px;
}

.main-navigation .dropdown.menu.vertical > li.opens-left > a::after {
    border: inset 5px;
    border-color: transparent #fff transparent transparent;
}

.main-navigation .dropdown.menu.vertical > li.opens-right > a::after {
    border: inset 5px;
    border-color: transparent transparent transparent #fff;
}

/*----------------------------------------------------------------------------*\
  #HOME PAGE SECTION
\*----------------------------------------------------------------------------*/


/*----------------------------------------------------------------------------*\
  #CONTENT
\*----------------------------------------------------------------------------*/
/* Entry header */
.entry-header {
    padding: 2rem 0;
}

.entry-header .entry-title {
    padding: 0;
    margin: 0;
}

.entry-thumbnail img {
    display: block;
    margin: 0 auto 20px auto;
}

/* Entry content */
.entry-content {
    word-wrap: break-word;
    margin: 0 0 3rem 0;
}

.lead {
  /* Styling for the first paragraph of our main content */
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.entry-content a {
    padding-bottom: 2px;
    border-bottom: 2px solid #ddd;
    transition: color 0.3s ease;
}

.entry-content a:hover {
    border-color: #6786bf;
}

.entry-content ul {
    display: table;
    margin: 1rem 0 0 1rem;
    padding-left: 0;
}

.entry-content ul li:before {
    content: "•";
    display: table-cell;
    padding-right: 0.8rem;
}

.entry-content ul li {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.3rem;    
    list-style-type: none;    
    display: table-row;
    margin-bottom: 0.5rem;
}

.entry-content ul li:after {
    content: "";
    display: block;
    margin-bottom: 0.5rem;
}

.entry-content ol {
    margin: 1rem 1rem 1rem 1.4rem;
}

.entry-content ol li {
    line-height: 1.3rem;
    list-style-type: decimal;
    text-indent: -1.4rem;
    margin-bottom: 0.3rem;
}

.entry-content button a,
.entry-content .button a,
.entry-content button a,
.entry-content .button a:visited {
    color: #fff;
    border-bottom: 0 none;
}

/* Entry footer */
.entry-footer {
    clear: both;
    margin: 20px 0 0 0;
}

.entry-footer h3 {
    font-size: 1.2em;
    color: #03539c;
    margin-bottom: 20px;
}

.edit-link {
    float: left;
    clear: both;
    margin-bottom: 3rem;
    background: #03539c;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.edit-link:hover {
    background: #6786bf;
}

.edit-link a {
    color: #fff;
    padding: 8px 16px;
    display: block;
    border-bottom: 0 none;
}

.edit-link a:hover {
    color: #fff;
    border-bottom: 0 none;
}

/* Contact page */
.map {
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.map .widget-title {
    margin-bottom: 1rem;
}

.map .textwidget iframe {
    padding: 2px;
    border: 2px solid #ddd;
}

/* Sitemap page */
.sitemap-column {
    margin: 0 0 3rem 0;
}

.sitemap-column h2 {
    font-weight: normal;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.sitemap-column a {
    color: #666;
}

ul.sitemap-pages,
ul.sitemap-categories,
ul.sitemap-tags {
    padding: 0;
    margin: 0 0 0 1.4rem;
}

ul.sitemap-pages .children,
ul.sitemap-categories .children,
ul.sitemap-tags .children {
    padding: 0;
    margin: 0;
}

ul.sitemap-pages li,
ul.sitemap-categories li,
ul.sitemap-tags li {
    line-height: 1.3rem;
    text-indent: -1.4rem;
    list-style-type: disc;
    list-style-position: inside;
    margin-bottom: 0.3rem;
}

ul.sitemap-pages li ul li,
ul.sitemap-caegories li ul li,
ul.sitemap-tags li ul li {
    list-style-type: circle;
}


/*----------------------------------------------------------------------------*\
  #POSTS
\*----------------------------------------------------------------------------*/
ol.post-list {
    margin: 2.3rem 0 0 0;
    padding: 0;
}

ol.post-list li {
    list-style-type: none;
    padding: 0 0 1.7rem 0;
    margin: 0 0 1.7rem 0;
    border-bottom: 1px solid #ddd;
    position: relative;
}

ol.post-list li.sticky {    
    border-style: solid;
    border-width: 1px;
    border-color: #ddd;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    background: #fefefe;
    margin-bottom: 50px;
}

ol.post-list li.sticky .attachment-thumbnail {
}

.attachment-thumbnail {
    float: left;
    margin: 3px 20px 0 0;
}

.featured-image {
    display: block;
    margin: 20px auto 30px auto;
}

.post-link {
    font-size: 2.125rem !important;
    margin-bottom: 1rem;
}

.post-link a {
    color: #666;
}

.post-link a:hover {
    color: #111;
}

/* Post meta */
.post-meta {
    float: left;
    width: 100%;
    font-size: 0.8em;
    color: #222;
    margin: 0 0 1.5rem 0;
}

.post-meta .fa {
    color: #1e7188;
}

.post-meta .post-author,
.post-meta .post-date,
.post-meta .post-category,
.post-meta .post-tag,
.post-comment {
    display: inline-block;
}

.post-author,
.post-meta .post-date,
.post-meta .post-category,
.post-meta .post-tag {
    margin-right: 10px;
}

/* Post navigation */
.post-nav ul {
    margin: 3rem 0 2.5rem 0;   
}

.post-nav ul li {    
    display: inline-block;
    margin: 0 0 20px 0;
}

.post-nav ul li a {
  color: #666;
  padding: 7px 13px 7px 13px;
  font-size: 0.8em;
  border: solid 1px #ddd;
  margin-left: 4px;
}

.post-nav ul li .current, 
.post-nav ul li .dots {
    color: #fff;
    padding: 8px 13px 7px 13px;
    font-size: 0.8em;
    margin-left: 4px;
    border: 1px solid #6786bf;
    background: #03539c;
}

.post-nav ul li a:hover {
    color: #fff;
    background: #03539c;
    border: 1px solid #6786bf;
    text-decoration: none;
}

/* Post image attachments */
.entry-content .attachment {
    margin: 4rem 0 1rem 0;
}

.entry-content .attachment img {
    margin: 0 auto;
    display: block;
}

p.image-resolutions {
    margin: 2rem 0 4rem 0;
}

p.image-resolutions a {
    
}

.image-resolutions span {
    color: #ddd;
}

/* Search results page */
.search-results ol {
    margin: 1.8rem 0 3rem 0;
}

.search-results ol li {
    list-style-type: none;
    padding: 1rem 0;
    margin: 0;
    border-bottom: 1px dotted #ddd;
}

.search-results a {
    font-size: 1.2rem;
    color: #666;
}

.search-results a:hover {
    color: #6786bf;
}

/*----------------------------------------------------------------------------*\
  #SIDEBAR
\*----------------------------------------------------------------------------*/
.sidebar,
.sidebar-left {
    padding-top: 2.2rem;
}

/*----------------------------------------------------------------------------*\
  #FOOTER
\*----------------------------------------------------------------------------*/
.footer-top {
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #ddd;
}

.footer-container {
    background: #02437d;
}

.footer {
    padding: 2rem 0 1rem 0;
}

.footer h3 {
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: 1rem;
}

.footer p,
.footer a {
    font-size: 0.95rem;
    color: #fff;
}

.footer a:hover {
    text-decoration: underline;
}

.footer ul.contact-list li {
    padding: 0;
    margin-bottom: 0.2rem;
}

.footer ul.contact-list li a {
    font-size: 0.95rem;
    color: #fff;
}

.footer ul.contact-list .fa {
    font-family: 'Fontawesome';
    font-size: 1.2rem;
    color: #fff;
    text-align: center;
    width: 32px;
    margin-right: 3px;
}

.bottom-bar {
    background: #02437d;
    border-top: 1px solid #6786bf;
    padding: 1rem 0 4rem 0;
}

.copyright p {
    font-size: 0.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.copyright a, 
.copyright a:visited {
    text-decoration: none;
    color: #fff;
}

.copyright a:hover {
    text-decoration: underline;
}

/*----------------------------------------------------------------------------*\
  #WIDGETS
\*----------------------------------------------------------------------------*/
.widget-area {
    margin: 0 0 0.5rem 0;
}

.widget-container {
    font-size: 0.9em;
    -webkit-hyphens: auto;
    -moz-hyphens:    auto;
    -ms-hyphens:     auto;
    hyphens:         auto;
    word-wrap: break-word;
    padding-bottom: 1rem;
    margin: 0 0 1.5rem 0;
}

.widget-container .widget-title  {
    font-size: 1.425rem;
    color: #03539c;
    padding-bottom: 1.2rem;
    margin: 0;
}

.widget-container p {
    font-size: inherit;
    line-height: inherit;
}

.widget-container a {    
    transition: color 0.3s ease;
}

.widget-container a:hover {
    color: #111;
}

.widget-container .screen-reader-text {
    visibility: hidden;
} 

.widget-container ul li {
    display: block;
}

/* Text widget */

/* Search widget */
#searchform input {
    padding: 0 0.5rem;
    margin-bottom: 0;
}

/*----------------------------------------------------------------------------*\
  #IMAGES
\*----------------------------------------------------------------------------*/
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter, 
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 5px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 5px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 5px 20px;
    padding: 0;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 5px 0;
    padding: 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.wp-caption {
    max-width: 98%; /* Ensure image does not overflow the content area */
    padding: 0px;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 5px 0;
}

.wp-caption.alignright {
    margin: 5px 0 5px 20px;
}

.wp-caption.aligncenter {
    display: block;
    margin: 25px auto 20px auto;
}

.wp-caption img {
    max-width: 98.5%;
    height: auto;
    margin: 0;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 0.8rem;
    line-height: 1.1rem;
    color: #222;
    padding: 0.5rem 0 0.5rem 0;
    margin: 0;
}

/* Galleries */
.entry-content .gallery {
    margin-top: 2rem !important;
    margin-left: -1rem !important;
}

.gallery dl dt,
.gallery dl dd {
    margin-bottom: 0;
}

.entry-content .gallery img {
    width: 100%;
    height: auto;
    border: 0 none !important;
}

.gallery-item {
    display: inline-block;
    padding: 0 0 1.25rem 1rem;
    text-align: center;
    vertical-align: top;
    width: 100%;
    margin: 0 !important;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-icon img {
    margin: 0 auto;
}

.gallery-caption {
    display: block;
    font-size: 0.8rem;
    min-height: 2.4rem;
    line-height: 1.2rem;
    text-align: center;
    padding: 0.2rem 0.5rem;
    clear: both;
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
    display: none;
}

/* Responsive images. Fluid images for posts, comments, and widgets */
.row img,
.widget img,
.wp-caption img {
    max-width: 100%;
}

/* Make sure images with WordPress-added height and width attributes are scaled correctly. */
.row img,
img[class*="align"],
img[class*="wp-image-"],
img[class*="attachment-"] {
    height: auto;
}

img.entry-thumbnail,
img.attachment-thumbnail,
img.attachment-medium,
img.attachment-large,
img.size-thumbnail,
img.size-medium,
img.size-large,
img.wp-post-image {
    height: auto;
    max-width: 100%;
}

/**
 *
 * Our media queries and print styles begin here
 *
 */

/*----------------------------------------------------------------------------*\
  #MOBILE NAVIGATION BREAKPOINT
\*----------------------------------------------------------------------------*/ 
@media (max-width: 54em) {

}

/*----------------------------------------------------------------------------*\
  #LARGE SCREENS
\*----------------------------------------------------------------------------*/ 
@media only screen and (min-width: 64em) {
    /* Mobile menu */
    .no-js .title-bar,
    .title-bar,
    .mobile-navigation {
        display: none !important;
    }

    /* Footer */
    .footer-logos {
        padding: 0 0.93rem;
    }
}

/*----------------------------------------------------------------------------*\
  #MEDIUM SCREENS
\*----------------------------------------------------------------------------*/
@media screen and (min-width: 40em) and (max-width: 63.9399em) {
    /* Header */
    .custom-logo {
        height: 30px;
        width: auto;
        max-width: 100%;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    /* Mobile top menu */
    .site-header,
    .desktop-menu {
        display: none;
    }

    .no-js .title-bar,
    .title-bar {
        min-height: 40px;
        color: #fff;
        line-height: 40px;
        background: #02437d;
        display: block;
        padding: 0 0 0 0.93rem;
    }

    .title-bar-title a {
        color: #fff;
    }

    .main-navigation {
        min-height: 40px;
        margin-top: 0;
        border-top: 0 none;
    }

    .mobile-navigation .toggle {
        width: 80px;
        height: 40px;
        float: right;
        color: #fff;
        line-height: 40px;
        padding: 0;
        margin: -40px 0.93rem 0 0;
        background: transparent;
    }

    .mobile-navigation .toggle::after {
        font-family: 'Fontawesome';
        font-size: 24px;
        float: right;
        color: #fff;
        content: '\f0c9';        
    }

    .mobile-navigation .toggle:hover {
        background: transparent;
    }

    .mobile-navigation .toggle:focus {
        outline: none;
    }

    .mobile-navigation .is-accordion-submenu-parent > a::after {
        font-family: 'Fontawesome';
        font-size: 24px;
        text-align: right;
        display: block;
        width: 40px;
        height: 40px;
        border: 0 none;
        content: '\f0c9';
        border-color: transparent;
        position: absolute;
        top: 0;
        right: 0;
        margin: 0 0 0 0;
    }

    .is-accordion-submenu-parent[aria-expanded='true'] > a::after {
        content: '\f00d';
        -ms-transform: none;
            transform: none;
    }

    .mobile-navigation .nested.menu {
        margin-left: 0;
    }

    .mobile-navigation li {
        border-top: 1px solid #fff;
    }

    .mobile-navigation li a {
        color: #fff;
        background: #6786bf;
    }

    .mobile-navigation li a:hover,
    .mobile-navigation .active > a {
        color: #fff;
        background: #03539c;
    }

    .mobile-navigation ul ul li a {
        padding-left: 1.7rem;
    }

    /* Mobile off canvas menu */
    .title-bar .toggle {
        color: #fff;
        width: 80px;
        height: 40px;
        float: right;
        line-height: 40px;
        margin: 0 0.93rem 0 0;
        background: transparent;
    }

    .title-bar .toggle:after {
        font-family: 'Fontawesome';
        font-size: 24px;
        float: right;
        color: #fff;
        content: '\f0c9';
    }

    .title-bar .toggle[aria-expanded='true']::after {
        content: '\f00d';
    }

    .off-canvas {
        background: #fefefe;
        margin-top: 40px;
    }

    .is-transition-push.position-left::after,
    .is-transition-push.position-right::after  {
        box-shadow: none;
    }

    .is-transition-push.position-right::after  {
        border-left: 1px solid #ebeef0;
    }

    .off-canvas .nested.menu {
        margin-left: 0;
    }

    .off-canvas .vertical.menu > li {
        border-bottom: 1px solid #ebeef0;
    }

    .off-canvas .menu a:hover,
    .off-canvas .menu .active > a {
        color: #fff;
        background: #0e1c37;
    }

    /* Entry content */
    .entry-content {
        margin: 1rem 0;
    }

    /* Gallery */
     .gallery-caption {
        display: none;
    }

    .gallery-columns-8 .gallery-item {
        width: 50% !important;
        max-width: 50%;
    }

    /* Sidebar */
    .sidebar {
        margin-bottom: 0;
    }

    /* Footer */
    .footer-logos {
        padding: 0 1.86rem;
    }

}

/*----------------------------------------------------------------------------*\
  #SMALL SCREENS
\*----------------------------------------------------------------------------*/
@media screen and (max-width: 39.9399em) {
    a:focus {
        outline: 0 none;
    }

    /* Header */
    .custom-logo {
        height: 30px;
        width: auto;
        max-width: 100%;
        margin-top: 5px;
        margin-bottom: 5px;
    }
    
    /* Mobile top menu */
    .site-header,
    .desktop-menu {
        display: none;
    }

    .no-js .title-bar,
    .title-bar {
        min-height: 40px;
        color: #fff;
        line-height: 40px;
        background: #02437d;
        display: block;
        padding: 0 0 0 0.93rem;
    }

    .title-bar-title a {
        color: #fff;
    }

    .main-navigation {
        min-height: 40px;
        margin-top: 0;
        border-top: 0 none;
    }

    .mobile-navigation .toggle {
        width: 80px;
        height: 40px;
        float: right;
        color: #fff;
        line-height: 40px;
        padding: 0;
        margin: -40px 0.93rem 0 0;
        background: transparent;
    }

    .mobile-navigation .toggle::after {
        font-family: 'Fontawesome';
        font-size: 24px;
        float: right;
        color: #fff;
        content: '\f0c9';        
    }

    .mobile-navigation .toggle:hover {
        background: transparent;
    }

    .mobile-navigation .is-accordion-submenu-parent > a::after {
        font-family: 'Fontawesome';
        font-size: 24px;
        text-align: right;
        display: block;
        width: 40px;
        height: 40px;
        border: 0 none;
        content: '\f0c9';
        border-color: transparent;
        position: absolute;
        top: 0;
        right: 0;
        margin: 0 0 0 0;
    }

    .is-accordion-submenu-parent[aria-expanded='true'] > a::after {
        content: '\f00d';
        -ms-transform: none;
            transform: none;
    }

    .mobile-navigation .nested.menu {
        margin-left: 0;
    }

    .mobile-navigation li {
        border-top: 1px solid #fff;
    }

    .mobile-navigation li a {
        color: #fff;
        background: #6786bf;
    }

    .mobile-navigation li a:hover,
    .mobile-navigation .active > a {
        color: #fff;
        background: #03539c;
    }

    .mobile-navigation ul ul li a {
        padding-left: 1.7rem;
    }
    
    /* Mobile off canvas menu */
    .title-bar .toggle {
        color: #fff;
        width: 80px;
        height: 40px;
        float: right;
        line-height: 40px;
        margin: 0 0.93rem 0 0;
        background: transparent;
    }

    .title-bar .toggle:after {
        font-family: 'Fontawesome';
        font-size: 24px;
        float: right;
        color: #fff;
        content: '\f0c9';
    }

    .title-bar .toggle[aria-expanded='true']::after {
        content: '\f00d';
    }

    .off-canvas {
        background: #fefefe;
        margin-top: 40px;
    }

    .is-transition-push.position-left::after,
    .is-transition-push.position-right::after  {
        box-shadow: none;
    }

    .is-transition-push.position-right::after  {
        border-left: 1px solid #ebeef0;
    }

    .off-canvas .nested.menu {
        margin-left: 0;
    }

    .off-canvas .vertical.menu > li {
        border-bottom: 1px solid #ebeef0;
    }

    .off-canvas .menu a:hover,
    .off-canvas .menu .active > a {
        color: #fff;
        background: #0e1c37;
    }

    .site-title a {
        font-size: 1.1rem;
    }

    /* Entry content */
    .entry-title,
    .map .widget-title {
        text-align: center;
    }

    .entry-content {
        margin-top: 0;
    }

    /* Footer */
    .footer-logos {
        padding: 0 1.86rem;
    }
    
    .footer-menu,
    .footer .company-contact {
        text-align: center;
    }

    .footer .company-contact {
        margin-top: 2rem;
    }

    /* Back to top button */
    .topbutton {
        height: 40px;
        width: 40px;
        font-size: 1.2rem;
        right: 10px;
        bottom: 10px;
        line-height: 36px;
    }

    /* Gallery */
    .gallery-columns-2 .gallery-item,
    .gallery-columns-3 .gallery-item,
    .gallery-columns-4 .gallery-item,
    .gallery-columns-5 .gallery-item,
    .gallery-columns-6 .gallery-item,
    .gallery-columns-7 .gallery-item,
    .gallery-columns-8 .gallery-item,
    .gallery-columns-9 .gallery-item {
      width: 100% !important;
      max-width: 100%;
    }

    /* Sidebar */
    .sidebar {
        margin-bottom: 0;
    }

}