/*******************************************************************************

  CSS on Sails Framework
  Title: HdBG
  Author: XHTMLized.com
  Date: April 2014

********************************************************************************

  1. BASE
    1.1 Reset
    1.2 Accessibility Navigation & Hide
    1.3 Clearfix
    1.4 Fonts
    1.5 Normalized Styles

  2. COMMON
    2.1 Header
    2.3 Navigation
    2.3 Content
    2.4 Sidebar

  4. RESPONSIVE
  5. PRINT

*******************************************************************************/


/* 1. BASE
--------------------------------------------------------------------------------
==============================================================================*/

/* 1.1 Reset
------------------------------------------------------------------------------*/

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, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a[href], label[for], select,
input[type=checkbox], input[type=radio] {
  cursor: pointer;
}

button, input[type=button], input[type=image],
input[type=reset], input[type=submit] {
  padding: 0;
  overflow: visible;
  cursor: pointer;
}

button::-moz-focus-inner,
input[type=button]::-moz-focus-inner,
input[type=image]::-moz-focus-inner,
input[type=reset]::-moz-focus-inner,
input[type=submit]::-moz-focus-inner {
  border: 0;
}


/* 1.2 Accessibility Navigation & Hide
------------------------------------------------------------------------------*/

.accessibility-nav {
  position: absolute;
  top: 0;
  left: -9999em;
  z-index: 1000;
}

.accessibility-nav a {
  position: absolute;
  top: 0;
  white-space: nowrap;
}

.accessibility-nav a:active,
.accessibility-nav a:focus {
  left: 9999em;
}

.hide {
  position: absolute !important;
  left: -9999em !important;
}


/* 1.3 Clearfix
------------------------------------------------------------------------------*/

.content:after,
.clearfix:after {
  content: "";
  display: block;
  visibility: hidden;
  clear: both;
  height: 0;
  overflow: hidden;
}


/* 1.4 Fonts
------------------------------------------------------------------------------*/

@font-face {
    font-family: 'CreteRound';
    src: url('../fonts/creteround-regular-webfont.eot');
    src: url('../fonts/creteround-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/creteround-regular-webfont.woff') format('woff'),
         url('../fonts/creteround-regular-webfont.ttf') format('truetype'),
         url('../fonts/creteround-regular-webfont.svg#crete_roundregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CreteRound';
    src: url('../fonts/creteround-italic-webfont.eot');
    src: url('../fonts/creteround-italic-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/creteround-italic-webfont.woff') format('woff'),
         url('../fonts/creteround-italic-webfont.ttf') format('truetype'),
         url('../fonts/creteround-italic-webfont.svg#crete_rounditalic') format('svg');
    font-weight: normal;
    font-style: italic;
}


/* 1.5 Normalized Styles
------------------------------------------------------------------------------*/

body {
  font: 87.5%/1.25 Arial, sans-serif;
  color: #000;
  background: #fff;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

hr {
  display: none;
}

strong {
  font-weight: bold;
}

em {
  font-style: italic;
}

del {
  text-decoration: line-through;
}

th, td {
  vertical-align: top;
}

th {
  font-weight: normal;
  text-align: left;
}

address, cite, dfn {
  font-style: normal;
}

abbr, acronym {
  border-bottom: 1px dotted #999;
  cursor: help;
}

sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

input, textarea, select {
  font: normal 16px/20px Arial, Helvetica, sans-serif;
  color: #000;

  -webkit-appearance: none;
  border-radius: 0;
}

textarea {
   overflow: auto;
}

a, a:visited, a:active, a:focus {
  text-decoration: none;
  color: #414141;

  -webkit-transition: color 0.2s linear;
  transition: color 0.2s linear;
}

a:hover {
  text-decoration: none;
  color: #111;
}

*:hover,
*:focus {
  outline: 0;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}


/* 2. COMMON
--------------------------------------------------------------------------------
==============================================================================*/

.container {
  max-width: 996px;
  min-width: 316px;
  margin: 0 auto;
  border: solid 1px #414141;
  border-bottom: none;
}


/* 2.1 Header
------------------------------------------------------------------------------*/

.header {
  max-width: 996px;
  min-width: 320px;
  margin: 0 auto;
  padding: 0 0 63px 0;
}

.header img {
  display: block;
  width: 100%;
}


/* 2.2 Navigation
------------------------------------------------------------------------------*/

.navigation {
  position: relative;
  max-width: 876px;
  min-width: 320px;
  margin: 0 auto;
  padding: 0 0 0 124px;
  box-shadow: 0 0 8px 0 rgba(0,0,0,0.75);
  background-color: #0099CC;
}

.navigation .mobile {
  display: none;
}

.navigation dt {
  position: absolute;
  left: 0;
  top: 0;
  width: 124px;
  height: 35px;
  text-indent: -8000px;
  background: url(../images/bg-nav.png) no-repeat 0 0;
}

.navigation ul {
  display: table;
  width: 100%;
}

.navigation li {
  display: table-cell;
  width: 14.3%;
  height: 35px;
  vertical-align: middle;
  border-left: solid 1px #fff;
}

.navigation li a {
  display: inline-block;
  padding: 0 0 0 5px;
  font-size: 11px;
  line-height: 15px;
  color: #fff;

  -webkit-transition: background 0.2s linear;
  transition: background 0.2s linear;
}

.navigation .item1 {
  background-color: #0099CC;
}

.navigation .item1:hover {
  background-color: #2496aa;
}

.navigation .item2 {
  background-color: #669900;
}

.navigation .item2:hover {
  background-color: #79952d;
}

.navigation .item3 {
  background-color: #AE7B00;
}

.navigation .item3:hover {
  background-color: #ab8323;
}

.navigation .item4 {
  background-color: #CC6600;
}

.navigation .item4:hover {
  background-color: #d68533;
}

.navigation .item5 {
  background-color: #990033;
}

.navigation .item5:hover {
  background-color: #ad335c;
}

.navigation .item6 {
  background-color: #666;
}

.navigation .item6:hover {
  background-color: #858585;
}

.navigation .item7 {
  background-color: #006699;
}

.navigation .item7:hover {
  background-color: #3385ad;
}

nav.sub h4 {
  display: none;
  margin: 0 0 8px 0;
  font: normal 16px 'CreteRound';
  text-transform: uppercase;
}

nav.sub dl {
  font: italic 13px/30px 'CreteRound';
}

nav.sub a:hover,
nav.sub .active a {
  color: #b7380f;
}


/* 2.3 Content
------------------------------------------------------------------------------*/

.logo {
  position: relative;
  max-width: 995px;
  min-width: 315px;
  height: 38px;
  margin: 0 auto;
  padding: 27px 5px 0 0;
  text-align: right;
  font-size: 11px;
  color: #aaa;
}

.logo:after {
  content: "";
  position: absolute;
  right: -68px;
  top: 50%;
  width: 65px;
  height: 40px;
  margin: -20px 0 0 0;
  background: url(../images/logo.png) no-repeat 100% 50%;
}

.content {
  max-width: 852px;
  min-width: 320px;
  margin: 0 auto;
  padding: 0 124px 40px 20px;
  padding: 0 12.4% 40px 2.1%;
}

.sub .content {
  max-width: 976px;
  padding-right: 0;
}


.inner {
  overflow: hidden;
}

.content > article {
  overflow: hidden;
}

.content > article .video {
  max-width: 623px;
  margin: 0 0 48px 0;
}

.content > article .video img {
  display: block;
  width: 100%;
}

.content > article h2 {
  margin: 0 0 21px 0;
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
}

.content > article img {
  display: block;
  margin: 0 auto 21px;
  width: 100%;
}

.content > article img.left {
  float: left;
  margin: 7px 20px 13px 0;
  width: auto;
}

.content > article img.right {
  float: right;
  margin: 7px 0 13px 20px;
  width: auto;
}

.content > article p {
  padding: 0 0 24px 0;
  line-height: 24px;
}

.content .bottom {
  padding: 10px 0;
}


/* 2.4 Sidebar
------------------------------------------------------------------------------*/

.sidebar {
  float: left;
  width: 229px;
}

.sidebar nav {
}

.sidebar nav > a {
  display: none;
}

.sidebar nav .top {
  margin: 0 0 21px 0;
}

.sidebar nav li {
  padding: 0 0 15px 0;
}

.sidebar nav li.item9 {
  padding: 0 0 32px 0;
}

.sidebar nav li.item11 {
  padding: 0 0 32px 0;
}

.sidebar nav .top li {
  padding: 0 0 9px 0;
}

.sidebar nav a {
  padding: 0 0 0 56px;
  font: italic 14px 'CreteRound';
}

.sidebar nav a:hover {
  color: #b7380f;
}

.sidebar nav .top a {
  display: block;
  width: 211px;
  height: 50px;
  padding: 0;
  text-indent: -8000px;
  background: url(../images/bg-nav.jpg);
}

.sidebar nav .top .item1 a {
}

.sidebar nav .top .item1 a:hover,
.sidebar nav .top .item1.active a {
  background-position: -211px 0;
}

.sidebar nav .top .item2 a {
  background-position: 0 -50px;
}

.sidebar nav .top .item2 a:hover,
.sidebar nav .top .item2.active a {
  background-position: -211px -50px;
}

.sidebar nav .top .item3 a {
  background-position: 0 -100px;
}

.sidebar nav .top .item3 a:hover,
.sidebar nav .top .item3.active a {
  background-position: -211px -100px;
}

.sidebar nav .top .item4 a {
  background-position: 0 -150px;
}

.sidebar nav .top .item4 a:hover,
.sidebar nav .top .item4.active a {
  background-position: -211px -150px;
}

.sidebar nav .top .item5 a {
  background-position: 0 -200px;
}

.sidebar nav .top .item5 a:hover,
.sidebar nav .top .item5.active a {
  background-position: -211px -200px;
}

.sidebar nav .top .item6 a {
  background-position: 0 -250px;
}

.sidebar nav .top .item6 a:hover,
.sidebar nav .top .item6.active a {
  background-position: -211px -250px;
}

.sidebar nav .top .item7 a {
  background-position: 0 -300px;
}

.sidebar nav .top .item7 a:hover,
.sidebar nav .top .item7.active a {
  background-position: -211px -300px;
}

.sidebar nav ul ul {
  display: none;
}

.sidebar2 {
  float: right;
  width: 224px;
  width: 30%;
  padding: 0 0 0 40px;
  padding: 0 0 0 5%;
}

.sidebar2 .bottom {
  padding: 20px 10px 20px 0;
}

.sidebar2 .bottom img {
  width: 100%;
}


/* 4. RESPONSIVE
--------------------------------------------------------------------------------
==============================================================================*/

@media screen and (max-width: 640px) {

  .container {
    border: none;
  }


  /* 2.1 Header
  ------------------------------------------------------------------------------*/

  .header {
    padding: 0 0 31px 0;
  }

  .header img {
    display: block;
    width: 100%;
  }


  /* 2.2 Navigation
  ------------------------------------------------------------------------------*/

  .navigation {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    margin: 0 auto;
    padding: 45px 10px 10px 10px;
    box-shadow: none;
    background: #00649a;
  }

  .navigation .mobile {
    position: absolute;
    right: 10px;
    top: 17px;
    display: block;
    width: 24px;
    height: 8px;
    padding: 4px 0 0 0;
    border-top: solid 4px #d3d3d3;
    border-bottom: solid 4px #d3d3d3;
    cursor: pointer;
  }

  .navigation.active .mobile {
    z-index: 99;
  }

  .navigation.active .mobile {
    border-color: #e6a300;
  }

  .navigation .mobile span {
    display: block;
    height: 4px;
    background: #d3d3d3;
  }

  .navigation.active .mobile span {
    background: #e6a300;
  }

  .navigation dl {
    display: block;
  }

  .navigation dt {
    left: 10px;
    top: 10px;
  }

  .navigation dd {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 98;
    width: 0;
    overflow: hidden;
    background: rgba(0,0,0,0.5);

    -webkit-transition: width 0.1s linear;
    transition: width 0.1s linear;
  }

  .navigation.active dd {
    width: 100%;
  }

  .navigation ul {
    display: block;
  }

  .navigation li {
    display: block;
    width: auto;
    border-left: none;
  }

  .navigation li a {
    display: block;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 35px;
  }

  nav.sub h4 {
    display: block;
  }


  /* 2.3 Content
  ------------------------------------------------------------------------------*/

  .logo {
    min-width: 237px;
    margin: 0 10px 50px 0;
    padding: 27px 73px 0 0;
  }

  .logo:after {
    right: 0;
  }

  .content {
    min-width: 300px;
    padding: 0 10px;
  }

  .content > article img,
  .content > article img.left,
  .content > article img.right {
    float: none;
    display: block;
    max-width: 90%;
    margin: 0 auto 21px;
  }


  /* 2.4 Sidebar
  ------------------------------------------------------------------------------*/

  .sidebar {
    float: none;
    margin: 0 auto 20px;
    overflow: hidden;
    width: auto;
  }

  .sidebar nav > a {
    position: relative;
    display: block;
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 18px;
    text-align: center;
  }

  .sidebar nav.active > a {
    position: fixed;
    z-index: 99;
    left: 10px;
    top: 0px;
    padding: 5px 0 0 10px;
    color: #fff;
  }

  .sidebar nav > a > span {
    position: relative;
    top: 10px;
    display: inline-block;
    width: 24px;
    height: 8px;
    margin: 0 10px 0 0;
    padding: 4px 0 0 0;
    border-top: solid 4px #d3d3d3;
    border-bottom: solid 4px #d3d3d3;
    cursor: pointer;
  }

  .sidebar nav.active > a > span {
    position: absolute;
    top: 8px;
    left: 190px;
  }

  .sidebar nav > a:hover > span {
    border-color: #e6a300;
  }

  .sidebar nav > a span > span {
    display: block;
    height: 4px;
    background: #d3d3d3;
  }

  .sidebar nav > a:hover span > span {
    background: #e6a300;
  }

  .sidebar nav > div {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    overflow: scroll;
    background: rgba(0,0,0,0.5);

    -webkit-transition: width 0.1s linear;
    transition: width 0.1s linear;
  }

  .sidebar nav.active > div {
    width: 100%;
  }

  .sidebar nav ul {
    float: none;
    max-width: 240px;
    background: #151515;
  }

  .sidebar nav .top {
    float: none;
    margin: 0;
    padding-top: 40px;
  }

  .sidebar nav li,
  .sidebar nav li.item9,
  .sidebar nav li.item11,
  .sidebar nav .top li {
    position: relative;
    padding: 0;
    border-top: solid 1px #222;
  }

  .sidebar nav ul a,
  .sidebar nav ul.top a {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    height: auto;
    text-indent: 0;
    background: none;
    padding: 10px 0 10px 20px;
    font-size: 16px;
    color: #C7C7C7;
    transition: background-color 0.3s ease 0s;
  }

  .sidebar nav ul a:hover {
    color: #222;
    background-color: #989898;
  }

  .sidebar nav li .more {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
    width: 41px;
    height: 41px;
    font: italic 22px/41px 'CreteRound';
    text-align: center;
    color: #C7C7C7;
    background: #151515;
    cursor: pointer;
  }

  .sidebar nav li .more:hover {
    color: #fff;
  }

  .sidebar nav ul ul {
    display: block;
    padding: 0 0 0 10px;
  }

  .sidebar nav li li a {
    font-size: 14px;
  }

  .sidebar2 {
    float: none;
    width: auto;
    padding: 00 0 40px;
  }

}


/* 5. PRINT
--------------------------------------------------------------------------------
==============================================================================*/


@media print {

  body {
    font: normal normal 12pt/1.5em "Times New Roman", Times, serif;
  }

  a[href]:after {
    content: " (" attr(href) ") ";
    font-size: 90%;
  }

  a[href^="/"]:after {
    content: " (http://domain.com" attr(href) ") ";
  }

  .accessibility-nav,
  .hide {
    display: none !important;
  }
}