﻿@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,700");
@import url("https://fonts.googleapis.com/css?family=EB+Garamond");
@import url("https://use.fontawesome.com/releases/v5.6.3/css/brands.css");

*, *::before, *::after {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html, body
{
    height:100%;
}

#wrapper
{
    margin: 0 auto;
    padding-top:120px;
}
body.homepage #wrapper
{
    padding-top:0;
}

body 
{
    padding: 0;
    margin: 0;
    font-size: 16px;
    line-height:1.5;
    background-color: #ffffff;
    color: #444;
    font-family: "Open Sans","Segoe UI",Tahoma,"Helvetica Neue","Roboto",sans-serif;
}

h1, h2, h3, h4
{
    font-weight:600;
    margin: 24px 0 0;
}

h1
{
    font-size:40px;
    margin-top:0;
}

h2
{
    font-size:32px;
    margin-top:40px;
}
h2.subsection
{
    margin-top:20px;
}

h3
{
    font-size:24px;
    margin-top:0;
}

h4
{
    font-size:18px;
    margin-top:0;
}

p
{
    margin: 20px 0;
}

.clearboth
{
    clear:both;
}


/* Hidden */
#accesslinks, .skiplink
{
    display:none;
}
.sr-only
{
    overflow: hidden;
    clip: rect(0,0,0,0);
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
}


/* Links */
a:link, a:visited
{
    color: #0077B3;
    text-decoration:none;
}
a:hover, a:active
{
    text-decoration:underline;
}


/* Css Button */
.cssbutton
{
    background-color: #007dba;
    display:inline-block;
    margin: 0 10px 5px 0;
    transition: background-color 0.25s ease;
}
.cssbutton:hover
{
    background-color: #0c2340;
}
.cssbutton a
{
    display:block;
    padding: 4px 8px;
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.cssbutton a:focus
{
    outline-offset:2px;
}


/* Pick list control */
.picklistctrl
{
    margin: 0px 0px 0px 0px;
    overflow: auto;
    padding: 0px 0px 0px 0px;
    height: 100px;
    border: 1px solid black;
    background-color: white;
}
.picklistctrl .row
{
    padding: 2px 2px 2px 2px;
}
.picklistctrl .checkbox
{
    float:left;
    width:20px;
}
.picklistctrl input
{
    border:0px;
    background-color: white;
}
.picklistctrl .descr
{
    float:left;
    padding-top:3px;
}
.picklistctrl .value
{
    float:right;
}
.picklistctrl .valuectrl
{
    border:solid 1px black;
    width:60px;
}


/* Maximum width */
.maxwidth
{
    width:100%;
    max-width:1232px;
}


/* Header */
#header
{
    z-index:9999;
    position:relative;
    background-color:#757575;
}
#header .headerinner
{
    margin:0 auto;
    overflow:hidden;
}
/* Header main */
#header #headermain
{
    position:fixed;
    top:-100px;
    right:0;
    width:100%;
    height:100px;
    background-color:transparent;
    z-index:100;
    box-shadow: none;
    transition:all 0.5s ease;
}
#header #headermain.pageload
{
    background-color:#0c2340;
    box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.75);
    top:0;
}
body.homepage #header #headermain.pageload
{
    background-color:transparent;
}
#header #headermain #headercontainer
{
    display:table;
    width:100%;
    height:100px;
    padding:12px;
}
#header #headermain #headerlogo
{
    display:table-cell;
    vertical-align:middle;
    width:200px;
    max-width:200px;
    padding:6px 0 0 4px;
}
#header #headermain #headermenu
{
    display:table-cell;
    text-align:right;
    vertical-align:middle;
}
#header #headermain #headermenu ul
{
    margin:0;
    padding:0;
    list-style-type:none;
}
#header #headermain #headermenu ul li
{
    display:inline-block;
    margin:5px 0 5px 16px;
}
#header #headermain #headermenu ul li a
{
    display:inline-block;
    padding:0 8px;
    color:#fff;
    text-transform:uppercase;
}
#header #headermain #headermenu .headermenulistfirst
{
    font-weight:600;
    font-size:20px
}
#header #headermain #headermenumobiletriggerlist,
#header #headermain #headermenumobile
{
    display:none;
}

/* Header cookie consent */
#headercookie
{
    background-color:#565656;
    position:fixed;
    bottom:0;
    right:0;
    left:0;
    z-index:200;
}
#headercookie .headercookieinner
{
    margin:0 auto;
    padding:0 20px;
}
#headercookie #headercookietext
{
    float:left;
    width:80%;
    margin:20px 0;
    color:#f3f3f3;
}
#headercookie #headercookietext a
{
    color:#f3f3f3;
    text-decoration:underline;
}
#headercookie #headercookieclose
{
    float:left;
    width:20%;
    margin:20px 0;
    text-align:right;
}
#headercookie #headercookieclose .cssbutton
{
    margin:0;
}

/* Header banner message */
#headerbanner
{
    color:#000;
    text-align:center;
    background-color:#fa8072;
    position:relative;
    top:-20px;
}
body.homepage #headerbanner
{
    top:0;
}
#headerbanner .headerbannerinner
{
    margin:0 auto;
    padding:5px 20px;
    display:table;
}
#headerbanner p
{
    margin:0px;
}
#headerbanner p a
{
    color:#000 !important;
    text-decoration:underline;
}
#headerbanner #headerbannertext
{
    display:table-cell;
    vertical-align:top;
}
#headerbanner #headerbannerhide
{
    display:table-cell;
    width:150px;
    vertical-align:middle;
    text-align:right;
}
#headerbanner #headerbannerhide .cssbutton
{
    margin:0;
}



body.homepage #header #headermain.pageload
{
    box-shadow:none;
    color:#fff;
}
body.homepage.mobileactive #header #headermain.pageload,
body.homepage #header #headermain.pageload.pagescroll
{
    background-color:#0c2340;
    box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.75);
}
#herobanner
{
    position:relative;
    background-color:#757575;
}
#herobanner #herobannerimage
{
    height:395px;
    background-image:url(../../../images/herobanner.jpg);
    background-size:cover;
    background-repeat: no-repeat;
    background-position: top center;
}
#herobanner #herobannerimage::before
{
    content: '';
    background-color: rgba(0,0,0,0.35);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
#herobanner #herobannertitle
{
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    padding-top: 100px;
    display: -ms-flexbox;
    display: flex;
    height: 100%;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    text-transform:uppercase;
    font-size:75px;
    line-height:112.5px;
    font-weight:600;
    color:#fff;
}




#mobileleftnav
{
    display:none;
}


/* Main area */
#main
{
    margin: 0 auto;
    padding-top:30px;
    clear:both;
    display:flex;
    overflow:hidden;
}
body.homepage #main
{
    padding-top:40px;
}

/* Main content area */
#maincontent
{
    width:75%;
    padding: 0 16px;
    order:2;
}
#maincontent a
{
    text-decoration:underline;
}

/* Widgets */
#mainwidgets
{
    width:25%;
    padding: 0 16px;
    order:1;
}

/* If full width (i.e. there are no widgets) */
#maincontent.mainfullwidth
{
    width:100%;
    max-width: 1000px;
    margin: 0 auto;
}
#mainwidgets.mainfullwidth
{
    display:none;
}

/* Individual widget */
.mainwidget
{
    width:100%;
    margin-bottom:20px;
    background-color:#ddd;
    border-radius:4px 4px 0 0;
}
.mainwidgetcontainer
{
}
.mainwidgetheader
{
    font-weight:bold;
    padding:8px;
    background-color:#007dba;
    color:#fff;
    border-radius:4px 4px 0 0;
}
.mainwidgetcontent
{
    overflow:hidden;
    padding:16px;
}
.mainwidgetcontent p:first-child
{
    margin-top:0;
}
.mainwidgetcontent p:last-child
{
    margin-bottom:0;
}
.mainwidgetcontent a
{
    color:#00496B;
}
.mainwidthseparator
{
    border-top:1px dotted #a0a0a0;
    height:1px;
}


/* Popup with header */
#headerpopup
{
    width:100%;
    background-color:#fff;
    padding:4px 10px;
}
#headerpopup #headerpopupleft
{
    font-size:2em;
}
#mainpopup
{
    width:100%;
}
#mainpopupcontent
{
    padding:10px;
}
#mainpopup #popupmenuright
{
    float:right;
}



/* Footer */
#footer
{
    clear:both;
    margin-top:70px;
}
#footer .footerinner
{
    margin: 0 auto;
    color:#fff;
}
#footer .footerinner a
{
    color:#fff;
}
#footer .footertopsection
{
    margin-bottom:40px;
}
#footer .footertopsection:last-child
{
    margin-bottom:0;
}
#footer #footertop
{
    background-color:#007dba;
    padding:48px 0 80px;
}
#footer #footertop #footertopinner
{
    display:flex;
    position:relative;
    max-width:800px;
}
#footer #footertop #footertopleft
{
    width:50%;
    padding:0 16px;
}
#footer #footertop #footertopmiddle
{
    width:50%;
    padding:0 16px;
}
#footer #footertop #footertopright
{
    position: absolute;
    top: -20px;
    right: -200px;
    width: 250px;
    height: calc(100% + 40px);
    background-image: url(../../../images/footer-map-worcester.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
}
#footer #footertop h2
{
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1rem;
    margin-top:0;
    margin-bottom: .5rem;
}
#footer #footertop p
{
    margin-top: .5rem;
    margin-bottom:0;
    font-weight: 700;
}
#footer #footertop .footercontacttext
{
    font-family: "EB Garamond",serif;
    font-weight:normal;
}
#footer #footertop .footercontactnumber
{
    font-size:24px;
    line-height:1;
}
#footer #footertop .footerexternal
{
    position:relative;
}
#footer #footertop .footerexternal:after
{
    content: '\f35d';
    font-family: "FontAwesomePro";
    font-size: .75rem;
    position: absolute;
    top: 0;
    right: -1rem;
    font-weight:normal;
}
#footer #footertop .footersocialsection
{
    font-size:32px;
}
#footer #footertop .footersocial
{
    text-decoration:none;
}
#footer #footertop .footersocial + .footersocial
{
    margin-left:16px;
}
#footer #footertop .footersocial .fa-icon::before
{
    font-family: "Font Awesome 5 Brands";
    font-size:32px;
    font-weight:normal;
}
#footer #footertop .footersocial .icon-facebook::before
{
    content: "\f39e";
}
#footer #footertop .footersocial .icon-instagram::before
{
    content: "\f16d";
}
#footer #footertop .footersocial .icon-twitter::before
{
    content: "\f099";
}
#footer #footertop .footersocial .icon-youtube::before
{
    content: "\f167";
}
#footer #footerbottom
{
    background-color:#0c2340;
}
#footer #footerbottom #footerbottominner
{
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: end;
    align-items: flex-end;
    padding:32px 16px 96px;
}
#footer #footerbottom #footerbottomnav a
{
    display:inline-block;
    margin:10px 16px 0 0;
    font-weight: 700;
}
#footer #footerbottom #footerbottomnav a:last-child
{
    margin-right:0;
}
#footer #footerbottom #footerbottomaddr
{
    font-family: "EB Garamond",serif;
    font-style:normal;
}


/* Red Star */
.redHilite
{
    color: #c00;
}

/* Error */
.errorText
{
    color:#E00;
}


/* Box */
.boxbuttons
{
    margin-top:25px;
}


/* Input controls */
input[type="text"], input[type="password"], textarea, select
{
    font-family:Arial;
    font-size:14px;
}



/* General container for main content area controls */
.formattedcontrols
{
    position:relative;
}
/* Limited width so it doesn't go full width on large screens */
.formattedcontrols .limitedwidth
{
    max-width:300px;
    width:100%;
}
.formattedcontrols .fullwidth
{
    width:100%;
}
.formattedcontrols textarea.fullwidth
{
    resize:vertical;
}
.formattedcontrols select
{
    max-width:100%;
}
.formattedcontrols .blockspan
{
    display:inline-block;
    margin-right:10px;
}


/* FontAwesome */
.far {
    font-size:1rem;
}
.fa-red {
    color:#D00;
}
.fa-green {
    color:#080;
}
.fa-blue {
    color:#5f9edf;
}


/* Info label */
.infolabelerror p
{
    padding-left:30px;
    min-height: 25px;
    background: url("../../../../images/shared/error2.png") no-repeat;
    color:#a40000;
}
.infolabelinfo p
{
    padding-left:30px;
    min-height:25px;
    background: url("../../../../images/shared/info2.png") no-repeat top left;
    color:#204a87;
}


/* Allow for accessibility on radiobuttonlist/checkboxlist */
fieldset.radiobuttonlist, fieldset.checkboxlist
{
    border:0;
    padding:0;
    margin:10px 0;
}
fieldset.radiobuttonlist legend, fieldset.checkboxlist legend
{
    width:100%;
    margin:0;
    padding:0;
    *margin-left: -7px;
}


/* Radio list */
.listwithproperwrap input {
    float: left;
    margin-top:3px;
}
.listwithproperwrap label {
    margin-left: 25px;
    display: block;
}
.listwithproperwrap br {
    margin:3px 0px;
    line-height:4px;
    content:" ";
    display:block;
}


@media screen and (max-height:759px)
{
    #header #headermain
    {
        position:absolute;
    }
}


@media screen and (max-width:1023px)
{
    #header #headermain #headermenulist,
    #header #headermain #headermenulistmore
    {
        display:none !important;
        font-size:0.9em;
    }
    #header #headermain #headermenumobiletriggerlist
    {
        display:block;
    }
    #header #headermain #headermenumobiletrigger
    {
        display:inline-block;
    }
    #header #headermain #headermenumobiletrigger a
    {
        text-decoration:none;
    }
    #header #headermain #headermenumobiletrigger a::before
    {
        content: "\f0c9";
        font-family: "FontAwesomePro";
        font-size:20px;
        color:#fff;
    }
    #header #headermain #headermenumobile
    {
        display:block;
    }
    #header #headermenumobile #headermenumobilelist
    {
        display:none;
    }


    body.mobileactive
    {
        overflow-y:hidden;
    }
    body.mobileactive #header #headermain #headermenumobiletrigger a::before
    {
        content: "\f00d";
    }
    body.mobileactive #header #headermenumobile
    {
        height:calc(100vh - 100px);
        background-color:#fff;
    }
    body.mobileactive #header #headermenumobile #headermenumobilelist
    {
        display:block;
    }

    #header #headermenumobile
    {
        display:none;
        position:absolute;
        top:100px;
        left:0;
        right:0;
        overflow:auto;
    }
    #header #headermenumobile ul
    {
        margin:0;
        padding:0;
        list-style-type:none;
        background-color:#fff;
    }
    #header #headermenumobile ul li
    {
        display:block;
        border-top: 2px solid #b4e2fc;
    }
    #header #headermenumobile ul li:last-child
    {
        border-bottom: 2px solid #b4e2fc;
    }
    #header #headermenumobile ul li a
    {
        display:block;
        color:#000;
        text-align:center;
        padding:16px;
        text-transform:uppercase;
    }
    #header #headermenumobile ul li a:hover
    {
        color:#007dba
    }

    #herobanner #herobannertitle
    {
        font-size:45px;
        line-height:67.5px;
    }

    #main
    {
        display:block;
        padding-top:0;
    }
    #maincontent
    {
        width:100%;
        margin-top:40px;
        margin-bottom:40px;
        padding-left:16px;
        padding-right:16px;
    }
    #mainwidgets
    {
        width:100%;
        padding-left:16px;
        padding-right:16px;
    }

    #mainwidgets .mainwidgetmenu
    {
        display:none;
    }

    /* Individual widgets now take up 50% of the room */
    #mainwidgets #mainwidgetscontainer
    {
        display:flex;
        flex-wrap:wrap;
    }
    #mainwidgets #mainwidgetscontainer .mainwidget
    {
        width:calc(50% - 8px);
    }
    #mainwidgets #mainwidgetscontainer .mainwidget:nth-child(odd)
    {
        margin-right:8px;
    }
    #mainwidgets #mainwidgetscontainer .mainwidget:nth-child(even)
    {
        margin-left:8px;
    }

    #footer #footertop #footertopinner
    {
        min-width:100%;
    }
    #footer #footertop #footertopright
    {
        display:none;
    }
    #footer #footerbottom #footerbottomnav
    {
        width:100%;
    }
    #footer #footerbottom #footerbottominner
    {
        -ms-flex-direction: column;
        flex-direction: column;
        -ms-flex-align: start;
        align-items: flex-start;
    }
    #footer #footerbottom #footerbottomaddr
    {
        margin-top:16px;
        width:50%;
    }
}

@media screen and (max-width:799px)
{
    h1
    {
        font-size:30px;
    }
    h2
    {
        font-size:24px;
    }
    h3
    {
        font-size:18px;
    }

    #headercookie
    {
        position:relative;
        bottom:unset;
        right:unset;
        left:unset;
        margin:0;
        padding:10px 0;
        top:-20px;
    }
    body.homepage #headercookie
    {
        top:0;
    }
    #headercookie #headercookietext,
    #headercookie #headercookieclose
    {
        float:none;
        width:100%;
        margin:0;
    }
    
    #headerbanner .headerbannerinner
    {
        display:block;
    }
    #headerbanner #headerbannertext
    {
        display:block;
    }
    #headerbanner #headerbannerhide
    {
        display:block;
        text-align:right;
        padding-top:5px;
        width:auto;
    }

    #herobanner #herobannertitle
    {
        font-size:29px;
        line-height:43.5px;
    }

    #footer #footertop
    {
        padding:32px 0;
    }
    #footer .footertopsection:last-child
    {
        margin-bottom:40px;
    }
    #footer #footertop #footertopinner
    {
        display:block;
    }
    #footer #footertop #footertopleft,
    #footer #footertop #footertopmiddle
    {
        width:100%;
    }

}

@media screen and (max-width:600px)
{
    #mainwidgets #mainwidgetscontainer
    {
        display:block;
    }
    #mainwidgets #mainwidgetscontainer .mainwidget
    {
        float:none;
        width:100%;
        margin-left:0 !important;
        margin-right:0 !important;
    }
}



.editContentContainer
{
    position:relative;
    min-height:25px;
}
.editContentContainerHighlight
{
    background-color:rgba(255,0,0,0.3);
}
.editContentEdit
{
    position:absolute;
    top:0;
    right:0;
    border:1px dotted #c0c0c0;
    margin-bottom:2px;
    z-index:8888;
}
.editContentEdit img
{
    margin:3px 0 3px 3px;
    display:block;
}

/*Skip to main content link*/
.skipToContent
{
    left:40px;
    top:-70px;
    position:fixed;
    border:2px solid black;
    background:white;
    text-align:center;
    text-decoration:none;
    z-index:10000;
}
.skipToContent:focus
{
    top:40px;
    opacity:1;
    outline:1px solid grey;
}
.skipToContent div
{
    padding:10px;
}