/**
 * Stylesheet
 * 
 * @author      Lex van der Woude <lex@bizhub.co.nz>
 * @copyright   Copyright (c) 2006-2013 BizHub Ltd.
 * @link        http://bizhub.co.nz
 */

/* ==========================================================================
   Resets
   ========================================================================== */

body, html {
    width: 100%;
    height: 100%;
}
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6,
pre, form, fieldset, input, textarea, p, blockquote, th, td {
    padding: 0;
    margin: 0;
}
fieldset, img {
    border: 0;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
caption, th {
    text-align: left;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    font-size: 100%;
}


/* ==========================================================================
   Styling
   ========================================================================== */

body {
    background: url(../images/backgrounds/body.jpg) center 600px no-repeat;
    
    color: #43525A;
    font-family: Helvetica, Arial, sans-serif;;
    font-size: 16px;
}

p {
    padding-bottom: 18px;
    
    font-size: 14px;
    line-height: 24px;
}

/* Links */
a {
    color: #29ABE2;
    text-decoration: underline;
}
a:hover {
    text-decoration: none;
}

/* Headers */
h1 {
    color: #FCAF17;
    font-size: 28px;
    font-weight: bold;
    line-height: 36px;
}
h2 {
    color: #42515A;
    font-family: Georgia, Helvetica, Arial, sans-serif;
    font-size: 21px;
    font-style: italic;
    line-height: 36px;
}
h3 {
    color: #43525A;
    font-size: 40px;
    font-weight: bold;
}
h4 {
    padding-bottom: 15px;
    
    color: #FCAF17;
    font-size: 27px;
    font-weight: bold;
    line-height: 42px;
}
h5 {}


/* ==========================================================================
   Helper classes
   ========================================================================== */

.left {
    float: left;
}
.right {
    float: right;
}
.clear {
    clear: both;
}
.relative {
    position: relative;
}
.show {
    display: block;
}
.hide {
    display: none;
}

/*
 * Printing styles
 */
@media print {
    .noprint { display: none; }
}

/*
 * Clear fix
 */
.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}
.clearfix {
    display: inline-block;
}
html[xmlns] .clearfix {
    display: block;
}
* html .clearfix {
    height: 1%;
}


/* ==========================================================================
   Containers
   ========================================================================== */

.container {
    min-width: 920px;
    max-width: 1140px;
    height: inherit;
    min-height: inherit;
    padding: 0 30px;
    margin: 0 auto;
}


/* ==========================================================================
   Top block
   ========================================================================== */

#top {
    height: 200px;
}
#top .container {
    position: relative;

    background: url(../images/backgrounds/top.jpg) right top no-repeat;
}

#top img.logo {
    position: absolute;
    left: 30px; top: 20px;
}
#top img.bl {
    position: absolute;
    right: 30px; top: 83px;
}

/**
 * Top bar (newshub, search, login)
 */
#top .bar {
    position: absolute;
    right: 30px; top: 0;
    border-left: #FBAE17 solid 2px;
}
#top .bar ul {
    list-style: none;
}
#top .bar li {
    float: left;
}

#top .bar li a {
    display: block;
    width: 100px;
    height: 40px;
    line-height: 40px;

    border-right: #FBAE17 solid 2px;

    color: #FBAE17;
    text-decoration: none;
    text-align: center;
}
#top .bar li.open a,
#top .bar li a:hover {
    background: #EEE;
}

/* Dropdown panel for search/subscribe */
.dropdown-panel .panel {
    display: none;
    z-index: 990;
    position: absolute;
    top: 40px; right: -2px;
    width: 300px;

    padding: 15px;
    border: #FBAE17 solid 1px;
    background: #FFF;

    -webkit-box-shadow: 0 6px 24px 0 rgba(50, 50, 50, 0.75);
    -moz-box-shadow:    0 6px 24px 0 rgba(50, 50, 50, 0.75);
    box-shadow:         0 6px 24px 0 rgba(50, 50, 50, 0.75);
}
.dropdown-panel .panel h2 {
    margin-bottom: 5px;
}
.dropdown-panel .panel label {
    display: block;

    font-size: 12px;
}
.dropdown-panel .panel input,
.dropdown-panel .panel button {
    box-sizing: border-box;
    width: 100%;
    padding: 10px
}
.dropdown-panel .panel p,
.dropdown-panel .panel input {
    margin-bottom: 10px;
}

.dropdown-panel.open .panel {
    display: block;
}


/* ==========================================================================
   Navigation (top)
   ========================================================================== */

#top ul.nav {
    position: absolute;
    bottom: 0; right: 30px;
    
    list-style: none;
}

/* Level 1 */
#top ul.nav > li {
    float: left;
    position: relative;
    margin-left: 2px;
}
#top ul.nav > li > a {
    display: block;
    width: 115px;
    height: 50px;
    
    padding-top: 5px;
    border-top: #43525A solid 6px;
    
    color: #43525A;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}
#top ul.nav > li.current > a,
#top ul.nav > li.hover > a,
#top ul.nav > li:hover > a {
    border-color: #FAAD16;
    color: #FAAD16;
}
#top ul.nav > li.home > a {
    border-top: 0 !important;
}

/* Level 2 */
#top ul.nav ul.sub {
    display: none;
    z-index: 550;
    position: absolute;
    left: 0; top: 54px;

    list-style: none;
}
#top ul.nav ul.sub li {
    width: 140px;

    border-top: #43525A solid 2px;
    background: #FAAD16;
}
#top ul.nav ul.sub li.first {
    border-top: 0;
}
#top ul.nav ul.sub li a {
    display: block;
    padding: 11px 18px 11px 11px;

    color: #43525A;
    font-size: 0.875em;
    font-weight: bold;
    text-decoration: none;
}
#top ul.nav ul.sub li:hover a {
    background: #43525A;
    color: #FFF;
}

/* Show/hide */
#top ul.nav li.hover ul {
    display: block;
}


/* ==========================================================================
   Full slideshow
   ========================================================================== */

#full-slideshow {
    position: relative;
    max-width: 2000px;
    height: 430px;

    margin: 0 auto;
    overflow: hidden;

    border-bottom: #FAAD16 solid 1px;
}
#full-slideshow .images,
#full-slideshow .pager {
    position: absolute;
    left: 0; top: 0;
    width: 2000px;
    height: 400px;
    overflow: hidden;
}

/* Empty slideshow */
#full-slideshow.empty {
    height: 0;
}
#full-slideshow.empty-with-ch {
    height: 30px;
}

/* Pager styling */
#full-slideshow .pager {
    bottom: 0; top: auto;
    height: 25px;

    text-align: center;
}
#full-slideshow .pager > div {
    display: inline-block;
}
#full-slideshow .pager a {
    float: left;
    width: 20px;
    height: 20px;
    
    margin-left: 4px;
    background: #43525A;

    -webkit-border-radius: 15px 15px 15px 15px;
    border-radius: 15px 15px 15px 15px;
}
#full-slideshow .pager a.activeSlide {
    background: #FAAD16;
}

/* Contenthub adjustments */
#full-slideshow .loop-wrapper {
    position: relative;
    height: 400px;
}
#full-slideshow .editable-region {
    width: 960px;
    height: 510px;

    z-index: 510;
}
#full-slideshow .cOptions {
    position: absolute;
    left: 420px; top: 0;
    width: 960px;
    height: 400px;

    margin: 0 auto;
}
#full-slideshow .editable-loop-move {
    display: none;
}

#full-slideshow .editable-loop-add {
    position: absolute !important;
    left: 400px !important; top: 10px !important;
    z-index: 1000 !important;
}


/* ==========================================================================
   Body block
   ========================================================================== */

#body {
    margin-top: 45px;
}


/* ==========================================================================
   Index layout
   ========================================================================== */

.index-1-2 {
    margin-right: 600px;
}
.index-1-2 p {
    font-size: 16px;
}

.index-2-2 {
    float: right;
    width: 570px;
}
.index-2-2 .left {
    width: 250px;
}
.index-2-2 img {
    margin-bottom: 20px;
}
.index-2-2 .right {
    width: 285px;
}


/* ==========================================================================
   Rows
   ========================================================================== */

.row {
    padding: 25px 0;
    border-bottom: #FAAD16 solid 1px;
}

/* Image + Text block */
.row.it .container {
    position: relative;
    min-height: 265px;
}
.row.it .image {
    position: absolute;
    left: 30px; top: 0;
}
.row.it .text {
    padding-left: 310px;
}

.row img {
    max-width: 100%;
    height: auto;
}


/* ==========================================================================
   Back to top
   ========================================================================== */

#backtotop {
    display: none;
    position: fixed;
    right: 20px; bottom: 0;
    z-index: 1000;
}
#backtotop a {
    display: block;
    width: 48px;
    height: 48px;

    border: 0 none;

    text-decoration: none;
}
#backtotop a:hover {
    opacity:.8;
}


/* ==========================================================================
   Isotope gallery
   ========================================================================== */

/* Clearfix */
.isotope:after {
    content: '';
    display: block;
    clear: both;
}

/* Basics */
.isotope .loading {
    padding-left: 18px;
    font-size: 13px;
    font-style: italic;
}
.isotope .item img {
    width: 100%;
    height: auto;
}

/* Grid sizes */
.isotope .grid-size,
.isotope .item {
    display: none;
    width: 23.5%;
    margin-bottom: 2%;
}
.isotope .item.w2 {
    width: 49%;
}

/* Gutters */
.isotope .gutter-size {
    width: 2%;
}


/* ==========================================================================
   Form
   ========================================================================== */

.form table td {
    padding: 6px;

    color: #777;
    font-size: 14px;
    line-height: 20px;
}

/*
 * Field styling
 */
.form input {
    width: 230px;

    padding: 5px;

    border: #C5C5C5 solid 1px;
    font-size: 12px;

    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}
.form select {
    width: 337px;
}
.form .checkbox {
    width: auto;
}
.form textarea {
    overflow: auto;
    width: 330px;
    padding: 5px;
    border: #C5C5C5 solid 1px;

    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}

/*
 * Buttons
 */
button {
    overflow: visible;

    padding:3px 7px 3px 7px;

    background: #C4C6C7;
    border: 1px solid #C3C3C2;

    color: #555;
    font-size: 100%;
    font-weight: bold;

    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}
button:hover {
    cursor: pointer;
    background: #6D6E71;
    border-color: #6D6E71;

    color: #FFF;
}

/* Firefox & Safari Fixes */
.form button[type] {
    padding:3px 7px 3px 7px;
    line-height:17px;
}
/* IE7 Fixes */
.form *:first-child+html button[type] {
    padding:4px 7px 3px 7px;
}

/*
 * Thank you box
 */
div.thankyou-message {
    clear: both;

    padding: 12px 0 12px 40px;
    margin-top: 14px;
    margin-bottom: 8px;

    border: #1C9640 solid 1px;
    border-width: 1px 0 1px 0;

    background: url(../images/icons/tick.png) no-repeat 10px 11px #ECF7ED;

    color: #1C9640;
}

/*
 * Errors
 */
div.error-message {
    clear: both;

    padding: 8px 0 8px 35px;
    margin-bottom: 14px;

    border: #C1272D solid;
    border-width: 1px 0 1px 0;

    background: url(../images/icons/alert.png) no-repeat 10px 9px #FFFFFF;

    color: #C1272D;
}

/* Field error */
tr.field-error td,
tr.field-error .label,
td.field-error {
    color: #C1272D !important;
}
.field-error input,
.field-error textarea {
    border: #C1272D solid 1px;
}


/* ==========================================================================
   Form groups
   ========================================================================== */

.form-group {
    clear: both;
}
.form-group.hr {
    padding-bottom: 10px;
    margin-bottom: 25px;
    border-bottom: #FAAD16 dashed 1px;
}

/* 2 column layout */
.form-col-1-2 {
    float: left;
    width: 50%;
}
.form-col-2-2 {
    float: right;
    width: 50%;
}

/* Multi field container */
.form-group .form-fields {
    clear: both;
    float: left;
    width: 100%;
}

/* Input containers */
.form-group .form-input {
    width: 96%;
    padding: 5px;
}
.form-group .form-input-half {
    float: left;
    width: 47%;
    padding: 5px;
}
.form-group .form-input-thirds {
    float: left;
    width: 30%;
    padding: 5px;
}

.form-input.agree {
    margin: 10px 0;
    padding: 8px;
    background: #F8F8F8;
}

/* Label */
.form-group label {
    display: block;
}
.form-group label.section {
    padding: 10px 0 5px 0;
    font-weight: bold;
}
.form-group label.small {
    color: #888;
    font-size: 12px;
}

/* Fields */
.form-group input {
    width: 100%;
    padding: 8px;

    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}
.form-group button {
    padding: 10px 15px !important;

    -webkit-transition: all 80ms ease-in;
    -moz-transition: all 80ms ease-in;
    -ms-transition: all 80ms ease-in;
    -o-transition: all 80ms ease-in;
    transition: all 80ms ease-in;
}
.form-group .error input,
.form-group .error textarea {
    border-color: #C1272D;
}
.form-group .error {
    color: #C1272D;
}
.form-group .error input.checkbox {
    border: #C1272D solid 1px !important;
}

/* Custom */
.form-group ol {
    margin-left: 30px;
    font-size: 13px;
}
.form-group ol li {
    padding-bottom: 8px;
}
.form-group .form-required {
    color: #C1272D;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.wrapper {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto -183px; /* = footer_height */
}
.push {
    clear: both;
    height: 230px; /* padding = footer_height + X */
}

#footer {
    height: 183px;
    
    background: url(../images/backgrounds/ngati-pukenga-footer.png) #FAAD16 center 20px no-repeat;
    
    color: #43525A;
    font-size: 12px;
}
#footer .left,
#footer .right {
    margin-top: 30px;
}

#footer a {
    color: #43525A;
    padding: 0 6px;
    text-decoration: none;
}
#footer a:hover {
    text-decoration: underline;
}

#footer ul {
    list-style: none;
}
#footer li {
    float: left;
}
#footer li a {
    display: block;
    
    padding: 0 10px;
    border-right: #FFF solid 2px;
    
    color: #FFF;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
}

#footer li.current a,
#footer li a:hover {
    color: #43525A;
}
#footer li.current a {
    cursor: default;
    text-decoration: underline;
}

#footer li:first-child a {
    padding-left: 0;
}
#footer li:last-child a {
    border-right: 0;
}


/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media only screen and (max-width: 1100px) {
    #top .logo {
        width: 115px;
    }
    #top ul.nav {
        left: 30px; right: 0;
        font-size: 80%;
    }
}