﻿/* CMS uses the huge TL header setup (Framework\Header.ascx)... App form uses Stonefish specific header (Framework\HeaderApp.ascx) */

/* Header */
#header
{
    position:relative;

}
#header #headermain
{
    width:100%;
    padding-top:50px;
    padding-bottom:92px;
    height:auto;
    background-color: #333;
    background-image: url(../../../images/headerbackground2.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
#header .headerinner
{
    margin:0 auto;
}

/* Header cookie consent */
#header #headercookie
{
    background-color:#00fbc0;
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:100;
    overflow:hidden;
    line-height:1.3;
}
#header #headercookie .headerinner
{
    padding:0 10px;
}
#header #headercookie #headercookietext
{
    float:left;
    width:70%;
    margin:10px 0;
    color:#000;
    padding-right:10px;
}
#header #headercookie #headercookietext a
{
    color:#000;
    text-decoration:underline;
}
#header #headercookie #headercookieclose
{
    float:left;
    width:30%;
    margin:10px 0;
    text-align:right;
}
#header #headercookie #headercookieclose .cssbutton
{
    margin:0;
}
#header #headercookie #headercookieclose .cssbutton a
{
    font-size:1em;
    padding: 9px 10px 7px;
}



#header #headermain #headermaintitle
{
    position:relative;
    z-index:40;
    min-height:500px;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: flex-end;
    -ms-flex-align: end;
    align-items: flex-end;
    margin-top:20px;
}
#header #headermain #headermaintitle h1
{
    font-size: 4.5rem;
    line-height: .92;
    font-weight: normal;
    font-family: Kalice, Arial, sans-serif;
    letter-spacing: 4.06px;
    margin-bottom: 40px;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.4);
    color:#fff;
    display:block;
}

#header #headermain #headermaintitlebreadcrumbs
{
    clear:both;
}
#header #headermain #headermaintitlebreadcrumbs ul
{
    text-align:left;
    padding-left: 0;
    margin: 0;
    line-height: 1;
}
#header #headermain #headermaintitlebreadcrumbs li
{
    list-style: none;
    display: inline-block;
    margin: 0 5px 0 0;
    height:auto;
}
#header #headermain #headermaintitlebreadcrumbs a
{
    color: #fff;
    font-size: 16px;
    line-height: 1.125;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    display: inline-block;
    background-color: transparent;
}
#header #headermain #headermaintitlebreadcrumbs li::after
{
    color:#fff;
    content: "/";
    margin-left: 10px;
    font-weight: 700;
}
#header #headermain #headermaintitlebreadcrumbs li:last-child::after
{
    content: "";
}

/* the h1.pageTitle should be hidden within the content (because it should have been copied to the header) - but re-appear if content is inline-edited */
#maincontent h1.pagetitle,
#maincontent h2.pagetitle,
#maincontent h3.pagetitle
{
    display:none;
}
#maincontent .fr-box h1.pagetitle,
#maincontent .fr-box h2.pagetitle,
#maincontent .fr-box h3.pagetitle
{
    display:unset;
}


/* Content menu */
#headermenu
{
    color:#444;
    z-index:10;
    position:relative;
    margin:20px 0 0;
}
#headermenu .headerinner
{
    margin:0 auto;
    text-align:center;
}
#headermenu #headermenulist
{
    height:30px;
}
#headermenu #headermenulistmore
{
    margin-top:5px;
}
#headermenu ul
{
    padding:0;
    margin:0;
    list-style:none;
}
#headermenu ul li
{
    list-style:none;
    display:inline-block;
}
#headermenu ul li a
{
    padding:5px 10px;
    font-size:1.1em;
    color:#444;
    background-color:transparent;
}
#headermenu ul li:hover a
{
    color:#007FAD;
}
#headermenu ul li.selected a
{
    color:#007FAD;
}





/* Logon widget */
#mainwidgets #mainwidgetlogonbtn
{
    margin-top:0px;
    float:right;
}
#mainwidgets #mainwidgetlogonbtn .cssbutton
{
    margin-right:0px;
}

/* Vacancy Search widget */
#mainwidgets #mainwidgetvacancysearchbtn
{
    position:absolute;
    right:0;
    margin:0;
}
#mainwidgets #mainwidgetvacancysearchbtn .cssbutton
{
    margin-right:0px;
}

/* Latest Vacancies widget */
#mainwidgets #mainwidgetlatestvacancieslist
{
    padding:0;
    margin:12px 0 12px 20px;
    list-style-type:none;
}

/* "Left Nav" image */
#mainwidgets #mainwidgetimage
{
    text-align:center;
}
#mainwidgets #mainwidgetimage img
{
    width:100%;
    vertical-align:text-bottom;
}

/* Job widgets */
#mainwidgets #mainwidgetjobyoutube
{
    float: none;
    clear: both;
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    /*padding-top: 25px; Enable this for 4:3 layout*/
    height: 0;
}
#mainwidgets #mainwidgetjobyoutube object,
#mainwidgets #mainwidgetjobyoutube embed
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border:0;
}
#mainwidgets #mainwidgetjobimage
{
    text-align:center;
}
#mainwidgets #mainwidgetjobimage img
{
    width:100%;
    vertical-align:text-bottom;
}


.vacancyHeader dt
{
    font-weight:700;
    margin: 10px 0 0 0;
}
.vacancyHeader dd
{
    margin:0;
}
.vacancyHeader dd + dd
{
    margin-top:5px;
}
.vacancyHeaderButton
{
    text-align:right;
}

.vacancyDiv
{
    margin:12px -5px;
    padding:5px;
    overflow:hidden;
}
.vacancyEmailFriend
{
    display:inline-block;
    padding-top:5px;
    margin:0 10px 10px 0;
}
.vacancyApply
{
    display:inline-block;
    float:right;
}
.vacancyApply .cssbutton
{
    margin:0;
}
.vacancySocial
{
    text-align:right;
    padding:5px 0;
}



/* RSS Feed  */
.rssfeeditem, .searchwidgetrssfeed
{
    background-image:url(../../../images/rssfeed.gif);
    background-repeat:no-repeat;
    background-position:left center;
    line-height:1.5em;
    padding-left:22px;
}
.searchwidgetrssfeed
{
    background-position:right center;
    line-height:normal;
    padding-left:0;
    padding-right:22px;
}


/* Logon grid */
.logongrid
{
    display:-ms-flexbox;
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:stretch;
}
.logongrid > div
{
    border-radius:4px 4px 0 0;
    position:relative;
    margin-bottom:20px;
}
.logongrid .logongridheader
{
    font-size:1.3em;
    padding:5px;
    background-color:#00fbc0;
}
.logongrid .logongridinner
{
    padding-bottom:80px;
}
.logongrid .logongridpanel:nth-child(1),
.logongrid .logongridpanel:nth-child(2)
{
    width:calc(30% - 20px);
}
.logongrid .logongridpanel:nth-child(3)
{
    width:calc(40% - 20px);
}
.logongrid .logongridpanelfull
{
    width:100%;
}
.logongrid .logongridbuttons
{
    position:absolute;
    bottom:15px;
    right:0;
}
.logongrid .logongridbuttons .cssbutton
{
    margin-right:0px;
}
.logongrid .logongridinner p
{
    margin:10px 0 !important;
}



/* FAQ */
.faqsearchbutton
{
    text-align:right
}
.faqsearchbutton .cssbutton
{
    margin-right:0;
}


/* Jobs by Email */
.gridtabledark tr:first-child
{
    background-color:#e0e0e0;
}


@media screen and (max-width:1024px)
{
    #header #headermain
    {
        /*min-height:516px;*/
        padding-top:45px;
        padding-bottom:50px;
    }
    #header #headermain #headermaintitle
    {
        min-height:350px;
    }
    #header #headermain #headermaintitle h1
    {
        font-size: 3.5rem;
        line-height: 1;
        margin-bottom: 20px;
    }

    /* Logon grid */
    .logongrid .logongridpanel:nth-child(1),
    .logongrid .logongridpanel:nth-child(2)
    {
        width:calc(50% - 10px);
    }
    .logongrid .logongridpanel:nth-child(3)
    {
        width:100%;
    }
}

@media screen and (max-width:768px)
{
    #header #headermain
    {
        padding-top:40px;
        padding-bottom:20px;
    }
    #header #headermain #headermainmenutrigger a,
    #header #headermain #headermainmenutrigger a::before,
    #header #headermain #headermainmenutrigger a::after
    {
        width:35px;
    }

    #header #headermain #headermaintitle
    {
        min-height:100px;
    }
    #header #headermain #headermaintitle h1
    {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    #header #headermain #headermaintitlebreadcrumbs a
    {
        font-size: 10px;
    }
}

@media screen and (max-width:600px)
{
    #header #headermain #headermaintitle h1
    {
        font-size: 2rem;
    }

    #header #headercookie
    {
        position:static;
        bottom:auto;
        left:auto;
        right:auto;
    }
    #header #headercookie #headercookietext,
    #header #headercookie #headercookieclose
    {
        float:none;
        width:100%;
        text-align:left;
        padding-right:0;
    }
    #header #headercookie #headercookieclose
    {
        text-align:right;
    }
}

/* Small - main takes up entire width, widgets take up entire width */
@media screen and (max-width:499px)
{
    /* Logon grid */
    .logongrid .logongridpanel
    {
        width:100% !important;
    }
}

