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

/*********

ASIAN MIGRATION RESEARCH THEMES CSS

*********/

body {
    background: url(gfx/background.png) center 0px repeat-x #ffffff;
    text-rendering: optimizeLegibility;
}
#wrapper {
	background: url(gfx/banner.jpg) center 0px no-repeat;
}
.titleinner {
	padding-top: 280px;
	margin-top: 0px;
    background: url(gfx/title.png) 220px 70px no-repeat;
}
#title h1 {
	padding: 14px 0 14px 0px;
	font-size: 34px;
	line-height: 1.2;
	margin: 0 0 0 23px;
	background: none;
    color: #5b5966;
    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: 650px;
    margin-bottom: 7px;
}
#title img {
	display: none;
}
#content h2 {
	margin: 35px 0 14px 0;
    text-rendering: optimizeLegibility;
    border-bottom: none;
    color: #8e9688;
    font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
	font-weight: 700;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-size: 26px;
    line-height: 1.3;
}
#content p {
    line-height: 1.5;
}
#content  h2:first-of-type {
    margin-top: 0;
}
#content p + h2:first-of-type {
	margin-top: 35px;
}
#content h3 {
}
#right {
	background-image: none;
    padding: 0 0 0 43px;
}





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


Frontpage styles


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


body.frontpage {
    background: url(gfx/background-frontpage.png) center 0px repeat-x #ffffff;
}
body.frontpage #wrapper {
    background: url(gfx/banner-frontpage.jpg) center 0px no-repeat;
}
body.frontpage .titleinner {
	padding-top: 310px;
	padding-bottom: 35px;
    background: url(gfx/title.png) 232px 91px no-repeat;
	
}
body.frontpage #title h1 {
    -webkit-font-smoothing: antialiased;
}
body.frontpage #title h1.notopimage {
    font-size: 30px;
    line-height: 1.4;
    margin-bottom: 0px;
    padding-right: 0px;
	color: #ffffff;
	border-top: 1px solid #ceb884;
	padding-top: 21px;
    max-width: 882px;
}
body.frontpage #content hr {
	margin: 0px 0 14px 0;
    padding: 0;
	border-top: 1px solid #e4e4e4;
}
body.frontpage #content {
    margin-top: 0;
    padding-top: 0;
    min-height: 250px;
}
body.frontpage #content h2 {
    color: #8e9688;
    font-weight: 300;
    font-size: 22px;
}
body.frontpage #content h3 {
    font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
	font-weight: 300;
}
body.frontpage #content.otgx {
    width: 882px;
}
body.frontpage #content.otgx .introductionbox p {
    font-size: 17px;
    font-family: 'Open sans', Helvetica, Arial, Geneva, sans-serif;
    font-weight: 300;
}
body.frontpage #content.otgx .grid1 img {
    padding: 0 0 0 0px;
    margin: 0;
    max-width: 100%;
}
body.frontpage #content .grid_third {
    margin-top: 21px;
    width: 263px;
}
body.frontpage #content .grid_third:nth-of-type(3n+1) {
    margin-right: 0;
}
body.frontpage #content .grid_third img {
    border: 1px solid #e4e4e4;
    margin: 0;
}
body.frontpage #content .grid_third ul {
    margin-left: 16px;
}
body.frontpage #content p.clearall {
    line-height: 0;
    margin-bottom: 0;
}
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 {
    }
    body.frontpage #wrapper {
        background: url(gfx/banner-frontpage.jpg) -600px 0px no-repeat;
    }
    body.frontpage .titleinner {
    	padding-bottom: 21px;
        background: url(gfx/title.png) 232px 84px no-repeat;
        max-width: 100%;
        padding-top: 300px;
    }
    #title h1.notopimage {
        max-width: 100%;
        padding-right: 0;
    }
    #contentwrapper {
        width: 879px;
    }
	body.frontpage #title h1.notopimage {
		max-width: 650px;
        font-size: 26px;
	}
    body.frontpage #content.otgx {
        width: 650px;
    }
    body.frontpage #content .grid1 img {
        max-width: 100%;
    }
    body.frontpage #content .grid_third {
        width: 30%;
        margin-right: 5%;
    }
    body.frontpage #content .grid_third img {
        max-width: 100%;
    }
}






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

Portrait tablet ^

*******/

@media only screen and (max-width: 768px) {
    #wrapper {
        background-position: -280px 0;
    }
    body.frontpage #wrapper {
		background-position: -800px 0;
    }
    #wrapper {
        width: 753px;
        background-position: -750px 0;
    }
    body.frontpage .titleinner {
		padding-top: 280px;
		padding-bottom: 35px;
    	background: url(gfx/title.png) 232px 52px no-repeat;
	}
    body.frontpage #title h1 {
		width: auto;
        padding-bottom: 7px;
        background: none;
	}
    #title h1.notopimage {
        max-width: 100%;
        padding-right: 0;
        line-height: 1.2;
        font-size: 32px;
    }  
    body.frontpage .titleinner h1 {
		max-width: 100% !important;
    }
    body.frontpage #title h1 {
        line-height: 1.3;
        background: none;
        opacity: 1.0;
        margin-right: 0;
        max-width: 100%;
        width: 418px;
        position: relative;
    }
	body.frontpage #title h1.notopimage {
        line-height: 1.3;
        font-size: 24px;
	}
	body.frontpage #content {
        padding-top: 0;
        padding-bottom: 42px;
    }
    body.frontpage #content.otgx {
        width: 418px;
    }
    body.frontpage #content.otgx .grid_third {
        width: 100%;
        margin-right: 0;
    }
	body.frontpage #right {
		margin-top: 0px;
	}
	body.frontpage #right {
		border-top: none;
		width: 186px;
        padding: 0 0 0 232px;
	}
    body.frontpage #right .relatedinfo {
        width: 186px;
    }
}







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

Mobile styles (phone and small tablet) media query

*******/

@media only screen and (max-width: 700px) {                         
    body,
    body.frontpage {
        background: none;
    }
    #wrapper {
        background-position: right 0px;
        width: 100%;
		background-size: 1500px;
	}
    body.frontpage #wrapper {
        background-position: right 0px;
        width: 100%;
        background-size: 800px;
    }
    body.frontpage .titleinner,
    .titleinner {
	    padding-top: 230px;
        padding-bottom: 14px;
        width: 92%;
        background-size: 280px;
        background-position: 0px 91px;
    }
    body.frontpage .titleinner {
        padding-bottom: 0px;
    }
    #content {
        padding-top: 0;
    }
    #title h1 {
        font-size: 32px;
        margin-left: 0;
        width: 100%;
    }
    #title h1.notopimage {
        font-size: 32px;
    }
    .titleinner h1 {
        max-width: 100% !important;
        min-width: 186px !important;
    }
    body.frontpage #title h1 {
        margin-left: 0;
        width: 100%;
    }
	body.frontpage #title h1.notopimage {
		color: #8e9688;
		border-top: none;
		line-height: 1.3;
        font-size: 23px;
        padding: 14px 0;
	}
	body.frontpage #content h2 {	
		margin-top: 14px;
	}
    body.frontpage #content.otgx {
        width: 96%;
    }
    body.frontpage #content.otgx .grid_third img {
        float: none;
    }
    body.frontpage #content .grid1 p img {
        width: 100%;
        max-width: 100%;
        float: none;
    }
    body.frontpage #right {
		width: 100%;
        padding: 0;
	}
}