@import url(//fonts.googleapis.com/css?family=Open+Sans:300,700&subset=latin,latin-ext);

/*********

 Continuing Education CSS

*********/

body {
    background: url(gfx/background.png) center 0px repeat-x;
    text-rendering: optimizeLegibility;
}
#wrapper {
	background: url(gfx/banner.jpg) center 0px no-repeat;
}
.titleinner {
	padding-top: 266px;
	margin-top: 0px;
    background: url(gfx/title.png) 214px 28px no-repeat;
}
#title h1 {
	padding: 5px 0 0px 0px;
	font-size: 34px;
	line-height: 1.2;
	margin: 0 0 0 23px;
	background: none;
    color: #00b0eb;
    font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
	font-weight: 300;
    -webkit-font-smoothing: antialiased;
    position: relative;
    opacity: 1;
}
#title h1.notopimage {
    padding-right: 165px;
    max-width: 100%;
    margin-bottom: 21px;
}
#title img {
	display: none;
}
#content h2 {
	margin: 35px 0 14px 0;
    border-bottom: none;
    color: #00b0eb;
    font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
	font-weight: 300;
    -webkit-font-smoothing: antialiased;
}
#content  h2:first-of-type {
    margin-top: 0;
}
#content p + h2:first-of-type {
	margin-top: 35px;
}
#right {
	background-image: none;
}






/* ////////////


Frontpage styles


/////////////// */


body.frontpage {
    background: url(gfx/background-frontpage.png) center 0px repeat-x;
}
body.frontpage #wrapper {
	background: url(gfx/banner-frontpage.jpg) center 0px no-repeat;
}
body.frontpage .titleinner {
    padding-top: 300px;
    background: url(gfx/title.png) 214px 52px no-repeat;
}
body.frontpage #title h1 {
	line-height: 1.4;
}
body.frontpage #title h1.notopimage {
	max-width: 800px;
    font-size: 40px;
    padding-right: 0;
    margin-bottom: 0px; 
}
body.frontpage #content {
    margin-top: 0;
    margin-bottom: 70px;
    padding-top: 0;
    padding-bottom: 0px;
    min-height: 250px;
	width: 882px;
	margin-right: 0;
}
body.frontpage #content hr {
	margin: 28px 0 14px 0;
    padding: 0;
	border-top: 1px solid #e4e4e4;
}
body.frontpage #content h2 {
	font-weight: 300;
    font-size: 22px;
    line-height: 1.3;
    color: #222222;
	padding-top: 0px;
	padding-bottom: 0px;
	margin: 21px 0 14px 0;
    -webkit-font-smoothing: antialiased;
}
body.frontpage #content h2 span {    
}
body.frontpage #content h3 {
    font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
	font-weight: 700;
    color: #333333;
    padding: 21px 0 14px 0;
    margin-top: 14px;
    font-size: 18px;
	clear: left;
	border-top: 1px solid #e4e4e4;
}
body.frontpage #content .grid2 {
    min-height: 10px;
    margin-top: 28px;
    margin-bottom: 28px;
}
body.frontpage #content .grid1:nth-of-type(4n) {
    margin-right: 0;
}
body.frontpage #content .grid2:nth-of-type(2n) {
    margin-right: 0;
}
.introduction {
	padding-right: 0;	
}
.registration-box {
	background: url(gfx/continuing-education-identifier.png) right 0 no-repeat;
	text-align: center;
	padding-top: 157px;
}
#content .registration-box p {
	font-size: 13px;
}
#content .register-button a,
#right .register-button a {
	background: #009fe3 url(/_assets/_gfx/button-sprite.png) no-repeat -57px -243px;
	padding: 4px 16px;
	border-radius: 16px;
	width: 130px;
	display: inline-block;
	font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
	font-weight: 700;
	color: #ffffff;
	text-align: center;
	border-bottom: 3px solid #0089c4;
}
#right .register-button a {
	width: 154px;
}
#right p.register-button {
	border-bottom: none;
}
#content .register-button a:hover,
#right .register-button a:hover {
	background: #0089c4 url(/_assets/_gfx/button-sprite.png) no-repeat -57px -243px;
	border-bottom: 3px solid #007aae;
}
body.OTAGO080293 #right p.register-button,
body.OTAGO080295 #right p.register-button {
    display: none;
}
.shadowbox {
    background: url(gfx/background-shadow.png) no-repeat center top;
    overflow: hidden;
	clear: left;
    padding-bottom: 21px;
    margin-bottom: 14px;
}
body.frontpage #content article {
	width: 186px;
	margin-right: 46px;
	float: left;
    margin-bottom: 21px;
}
body.frontpage #content article p:last-of-type {
	display: none;
}
body.frontpage #content article:nth-of-type(4n) {
	margin-right: 0;
}
body.frontpage #content .shadowbox article h3 {
	font-size: 14px;
	line-height: 1.5;
	font-weight: normal;
	margin: 0;
	padding: 0 0 0 0;
	border-top: none;
    font-family: Helvetica, Arial, Geneva, sans-serif;
}
body.frontpage #content .shadowbox article img {
	display: none;
}
body.frontpage #content p.clearall {
    line-height: 0;
    margin-bottom: 0;
}
body.frontpage #content .smalltag {
	color: #999999;
	font-family: 'Gill sans', 'Gill sans MT', Helvetica, Arial, Geneva, sans-serif;
    font-size: 11px;
    line-height: 1.4;
	text-transform: uppercase;
	font-style: normal;
	background: url(gfx/calendar-icon.png) no-repeat 0 center;
    padding: 6px 0 1px 24px;
}
body.frontpage #right {
	background-image: none;
	clear: both;
	margin: -250px 0 0 0;
	padding: 0;
}





/* MEDIA QUERIES ***************************************/


/*******

iPad landscape >

*******/

@media only screen and (min-width: 769px) and (max-width: 1024px) {
	#wrapper {
        background: url(gfx/banner.jpg) -350px 0px no-repeat;
    }
    #title h1.notopimage {
        max-width: 100%;
        padding-right: 0;
    }
    #contentwrapper {
        width: 882px;
    }
	body.frontpage #title h1.notopimage {
		max-width: 650px;
	}
    body.frontpage #content {
        width: 650px;
    }
	body.frontpage #content .grid2 {
        width: 302px;
    }
	body.frontpage #content .grid2 img {
		max-width: 302px;
	}
    body.frontpage #content .grid4 .grid_third {
        width: 186px;
    }
    body.frontpage #content .grid4 .grid_third img {
        max-width: 100%;
    }
    body.frontpage #content .grid4 .shadowbox {
        background-size: 100%;
    }
    body.frontpage #content .grid4 .shadowbox .grid1 {
        width: 150px;
        margin-right: 16px;
    }
    body.frontpage #content .grid4 .shadowbox .grid1:nth-of-type(4n) {
        margin-right: 0;
    }
    body.frontpage #content article {
        width: 145px;
        margin-right: 23px;
    }
    body.frontpage #content .smalltag {
        background: url(gfx/calendar-icon.png) no-repeat 0 top;
    }
    body.frontpage #content .grid4 .grid1 img {
        max-width: 100%;
    }
    body.frontpage #content .grid3 {
        margin-right: 46px;
    }
}




/******

Portrait tablet ^

*******/

@media only screen and (max-width: 768px) {
    body.frontpage {
        background-position: 0 -45px;
    }
    #wrapper,
    body.frontpage #wrapper {
        background-position: -500px 0;
    }
    #wrapper {
        width: 753px;
    }
    .titleinner {
	    padding-top: 260px;
        padding-bottom: 0;
        background: url(gfx/title.png) 221px 28px no-repeat;
    }
    body.frontpage #title h1 {
		width: auto;
        padding-bottom: 7px;
	}
    #title h1.notopimage {
        max-width: 100%;
        padding-right: 0;
        line-height: 1.2;
    }
	body.frontpage #wrapper {
        background: url(gfx/banner.jpg) center 0px no-repeat;
    }
    body.frontpage .titleinner {
        padding-top: 260px;
        background: url(gfx/title.png) 220px 28px no-repeat;
    }
    body.frontpage #title h1.notopimage {
        line-height: 1.2;
        font-size: 36px;
    }
	body.frontpage #content {
        padding-top: 0;
        padding-bottom: 42px;
        width: 418px;
    }
    body.frontpage #content .grid2 {
        margin-top: 14px;
        margin-bottom: 7px;
    }
    body.frontpage #content article:nth-of-type(2n) {
        margin-right: 0;
    }
    body.frontpage #content .grid2:nth-of-type(2n) {
        margin-bottom: 28px;
    }
    body.frontpage #content .grid4 .grid_third {
        width: 100%;
    }
    body.frontpage #content .grid1 {
        width: 44.5%;
        min-height: 0;
        padding-top: 0;                                
    }
    body.frontpage .registration-box {
        background: none;
    }
    .introduction {
        background: none;
        padding-right: 0;	
    }
    .shadowbox {
        background-size: 100%;
    }
    body.frontpage #content .grid4 .shadowbox {
        background-size: 100%;
    }
    body.frontpage #content p.bordertop {
        border-top: none;
    }
	#right {
		border-top: 1px solid #e4e4e4;
		margin-top: 0px;
	}
	body.frontpage #right {
		border-top: none;
		width: 186px;
	}
    #right .rightwidget {
        padding-right: 0;
    }
}



/*******

Mobile styles (phone and small tablet) media query

*******/

@media only screen and (max-width: 700px) {                         
    body,
    body.frontpage {
        background: none;
    }
    #wrapper,
    body.frontpage #wrapper {
        background-size: 1050px;
        width: 100%;
        background-position: -350px 18px;
    }
    .titleinner,
    body.frontpage .titleinner {
	    padding-top: 173px;
        padding-bottom: 0px;
        width: 94%;
        background-size: 190px;
        background-position: 0 28px;
    }
    #content {
        padding-top: 0;
    }
    #title h1 {
        font-size: 28px;
        margin-left: 0;
        width: 100%;
        text-shadow: 1px 1px 0px #ffffff;
    }
    .titleinner h1 {
        max-width: 100% !important;
        min-width: 186px !important;
    }
    body.frontpage #title h1 {
        margin-left: 0;
        width: 100%;
        text-shadow: 1px 1px 0px #ffffff;
    }
    body.frontpage #title h1.notopimage {
        line-height: 1.3;
        font-size: 30px;
        margin-top: 7px;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    body.frontpage #content {
		width: 97%;
        margin-bottom: 21px;
	}
    body.frontpage #content h2 {
        font-size: 20px;
        text-align: left;
    }
    body.frontpage #content .grid1 {
        width: 44%;
        margin-right: 12%;
        margin-bottom: 0;
    }
    body.frontpage #content .grid2 {
        width: 100%;
        float: none;
    }
    body.frontpage #content .grid4 .grid_third img {
        width: 100%;
        max-width: 100%;
        float: none;
    }
    body.frontpage #content .grid1 p img {
        width: 100%;
        max-width: 100%;
        float: none;
    }
    body.frontpage .registration-box {
        background: none;
    }
    body.frontpage #content article {
		width: 48%;
		margin-right: 4%;
	}
	body.frontpage #content article:nth-of-type(2n+1) {
		clear: left;
	}
    body.frontpage #right {
        margin: 0 0 0 0;
    }
}