/*
Theme Name: CICP
Theme URI: http://www.cicp.org.kh/
Author: k4media
Author URI: https://k4media.com/
Description: Wordpress theme for CICP
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cicp
*/

*, *:before, *:after {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
*:focus {
    outline: none;
}
html, body {
	background-color: #ffffff;
	background-color: rgba(245, 237, 233, .01);
	color: #6D7D93;
	font-family: "Chivo", sans-serif;
	font-size: 18px ;
	font-weight: 400 ;
	line-height: 27px;
	margin: 0;
	overflow-x: hidden;
	padding: 0;
}
body.no-scroll {
	overflow: hidden;
	overflow-y: hidden;
	position: fixed;
	width: 100%;
}
img {
	display: block;
	height: auto;
	max-width: 100%;
	width: 100%;
}
h2, h4, h5 {
	color: #993300;
	font-weight: 400;
}
h3 {
	color: #8497b0;
	font-weight: 400;
}
h4 {
	color: #000033;
	font-weight: 600;
}
.silo {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 1180px;
	width: 100%;
}
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px); 
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.search-form label .search-field {
	background-color: #f8f8f8;
	border: 0;	
}
.search-form:after {
	color: #EE4360;
	font-size: 21px;
	font-style: normal;
	font-weight: normal;
	right: 5px;
	top: 9px;
}
.hamburger {display: none }
#secondary-stage {
	overflow: hidden;
}
#secondary {
	border-top: solid 8px #fff;
	float: right;
	margin: 0;
	max-width: 300px;
	padding: 1em 0 0 0 ;
	width: 100%;
}
#secondary li {
	display: inline;
	list-style-type: none;
	margin-right: 1.5em;
}
#secondary a {
	color: #fff;
	font-size: .85em;
	text-decoration: none;
}
#secondary a:hover {
	text-decoration: underline;
}
#header {
	background-color: #00367d;
	height: 190px;
	overflow: hidden;
}
#header > .silo {
	background: url(media/header-bg.png) no-repeat top left;
	background-size: 80%;
}
#header .flag {
	height: auto;
	margin-bottom: 3.5em;
	max-width: 650px;
	width: 100%;
}
#masthead {
	clear: both;
	overflow: hidden;
}
#masthead .english {
	color: #993300;
	font-size: 2.1em;
	letter-spacing: -.01em;
}
.primary-stage {
	background-color: rgba(0, 0, 51, 1);
	border-bottom: solid 1px rgba(255,255,255,.2);
}
#primary {
	margin: 0;
	padding: 0;
	position: relative;
}
#primary li {
	display: inline;
	list-style-type: none;
	margin-right: 1.25em;
	position: relative;
}
#primary a {
	color: #fff;
	display: inline-block;
	font-weight: 700;
	padding: .7em;
	text-decoration: none;
	text-transform: uppercase;
}
#primary .sub-menu {
	background-color: rgba(0, 0, 51, 1);
	color: #fff;
	left: -9999px;
	opacity: 0;
	padding: 1em;
	position: absolute;
	width: 16em;
	transition: .25s opacity;
	z-index: 9999;
}
#primary .sub-menu li {
	display: block;	
}
#primary .sub-menu a { 
	color: #fff;
	line-height: 1em;
    padding: .5em 0 .5em 0;
}
#primary .sub-menu a:hover { 
	color: #6D7D93;
}
#primary li:hover a {
	background-color: rgba(0, 0, 51, 1);
	color: #fff;
	transition: .25s all;
}
#primary li:hover > .sub-menu {
	left: 0;
	opacity: 1;
}
.jgms-hero a, .pub a {
	text-decoration: none;
}
#message-from-director  {
	background-color: #eeee;
	color: #555;
	padding: 1em 0 1em 0;
}
#message-from-director h2 {
	color: #000033;
	margin: 0 0 .5em 0
}
#message-from-director a {
	border-bottom: solid 1px rgba(0,0,0,.25);
	color: #555;
	text-decoration: none;	
}
#message-from-director a:hover {
	color: #000;
	border-bottom: solid 1px rgba(0,0,0,1);
}
#message-from-director p {
	margin-bottom: 0;	
}
#message-from-director .silo {
	align-items: center;
	display: flex;	
}
#message-from-director img {
	float: left;
	margin-right: 2em;
	width: 140px;	
}
#message-from-director .copy-stage {
	width: 60%;	
}
#homepage-hero {
	background: rgb(240,240,240);
	background-image:url(media/bg-right-triangle.svg);
	background-image:url(media/bg-right-triangle.svg), linear-gradient(45deg, rgba(240,240,240,1) 0%, rgba(255,255,255,1) 100%);
	background-repeat: no-repeat;
	background-position: bottom left;
	border-bottom: solid 1px #ccc;
	padding-bottom: 1em;
}
#homepage-hero > .silo {
	display: flex;
	justify-content: space-between
}
#hero-news .news-title {
	line-height: 24px;
}

#cicp-feature-briefings .pub-row {
	display: block;
}
#hero-publications {
	width: 66.6%;
}
#hero-news {
	width: 30%;
}
#cicp-feature-briefings .pub-title {
	font-size: 1.8em;
	padding: .25em 0 .25em 0;
}
#cicp-feature-journal .jgms-hero {
	background: rgb(240,240,240);
	background-image:url(media/bg-right-triangle.svg);
	background-image:url(media/bg-right-triangle.svg), linear-gradient(45deg, rgba(240,240,240,1) 0%, rgba(255,255,255,1) 100%);
	background-repeat: no-repeat;
	background-position: bottom left;
	border-top: solid 1px #eeeeef;	
	overflow: hidden;
	padding-bottom: 3em;
}
#cicp-feature-journal.archive {
	margin-bottom: 3em;	
}
.feature h2, .jgms-hero h2 {
	color: #6D7D93;
	font-weight: 400;
	padding: .7em 0 .7em 0;
	text-transform: lowercase;
}
/*
.jgms-hero h2 {
	text-transform: uppercase;
}*/
.archive .jgms-hero h2 {
	text-transform: none;
}

#cicp-feature-journal .jgms-hero .stage .pub {
	display: flex;	
}
.jgms-hero .pub-thumb {
	flex: 1 0 33%;
	/*margin-right: 20px*/
}
.jgms-hero .pub-copy {
	flex: 3 0 66%;
	/*max-width: 780px;
	 width: 100%; */
}
.jgms-hero .pub-category {
	color: #333f50;
	font-size: 1.11111em;
}
.jgms-hero .pub-title {
	color: #000033;
	font-size: 2.25em;
	font-weight: 600;
	line-height: 1.1em;
	margin: .5em 0 .5em 0;
}
.jgms-hero .pub-volume a {
	color: #8497b0;
	font-size: .95em;
	font-weight: 100;
	text-transform: uppercase;
}
.pub-volume, .pub-row .pub-volume a {
	color: #8497b0;
	font-size: .8rem;
	text-transform: uppercase;
}
.jgms-hero .pub-pdf {
	display: inline-block;
	text-decoration: underline;
}
.single-cicp_pubs #content,
.single-post .site-content {
	border-top: solid 1px #ccc;
	padding-top: 3em;
}
.jgms-recent {
	background-color: rgb(235,235,235);
	border-bottom: solid 1px #e3e3e3;	
	border-top: solid 1px #e3e3e3;
	overflow: hidden;
	padding-bottom: .5em;
}
#cicp-feature-journal h3 {
	color: #6D7D93;
	font-weight: 400;
	padding: .25em 0 .25em 0
}
.pub-row {
	display: flex;	
}
.pub-row .pub {
	display: flex;
}
.jgms-recent .stage, .pubs-category .stage {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 1em;
}
.jgms-recent .stage > div, .pubs-category .stage > div {
	display: flex;
	flex: 0 33%;
}

.tax-cicp_pub_cats .pubs-category .stage > div {
	display: flex;
	flex: 0 50%;
	margin-bottom: 2em;
}
.tax-cicp_pub_cats .pubs-category .pub-thumb {
	flex: none;
}

.pubs-category .pub-thumb {
	flex:  1 0 20%;
}
.pubs-category .pub-thumb img {
	width: 90px;
}
.pubs-category .pub-copy {
	flex:  1 0 66%;
}
.pub-thumb {
	margin-right: 20px;
	margin-bottom: 2em;
}
#cicp-feature-briefings .pub-row .pub:first-child {
	border-bottom: solid 1px #e7e7e7;
	margin-bottom: 2em;	
}
#cicp-feature-briefings .pub-row .pub-thumb img {
	width: auto;
}
.pub-row .pub-thumb img {
	height: auto;
	max-width: inherit;
	width: 90px;	
}
.pub-copy {
	padding-right: 1em;
}
.pub-title {
	padding-right: 2em;
}
.pub-title a {
	color: #000033;
	font-size: 1em;
	font-weight: 600;
	line-height: 1.25em;
}
.jgms-volume {
	font-size: .8em;
}
.pub-pdf {
	background-image:url(media/icon-pdf.svg);
	background-position: center left;
	background-repeat: no-repeat;
	display: inline-block;
	font-size: .8rem;
	margin-top: 2em;
	max-height: 25px;
	text-indent: 30px;
}
.pub-excerpt {
	color: #003;
	font-size: 1.35em;
	line-height: 1.5em;
	margin-top: 1em;
}
.pub-abstract {
	margin-top: 2em;	
}
#main {
	color: #444;
	display: flex;
	overflow: hidden;
	padding-bottom: 3em;
}
#main.publications, #main.news {
	display: block;
}
#main .news, #main.single article {
	padding-right: 4em;	
}
#main.single .pub {
	display: flex;
}
#main.sidebar-left  {
	flex-direction: row-reverse;	
}
#main article {
	max-width: 780px;
	width: 100%
}
.news article {
	border-bottom: solid 1px #e9e9e9;
	margin-bottom: 1.5em;
}
.news article > img {
	margin-top: 1.5em;	
}
.news article h2 {
	margin: .35em 0 .5em 0;	
}
.news article h2 + p {
	margin-top: 0;	
}
#content {
	background-color: rgba(132, 131, 106, .05);
}
#sidebar {
	font-size: smaller;
	max-width: 400px;
	padding-left: 4em;
	width: 100%;
}
#sidebar .wp-caption {
	width: 100% !important;
}
.sidebar-left #sidebar {
	padding: 0 4em 0 0 ;
}
.full-width .entry-content {
	width: 100%;	
}
.post h1 {
	color: #000033;
	font-weight: 400;
	font-size: 2.25em;
	line-height: 1.3em;
	margin: 0;
}
.post h2 a {
	color: #000033;
	font-size: 1.25em;
	line-height: 1em;
	text-decoration: none;
}
.title-bar {
	font-size: 1.5em;
	line-height: 3em;
	margin-bottom: 1em;
}
.title-bar h1 {
	font-size: 1.35em;
	font-weight: 100;
	margin: 0;
}
.title-bar.gray {
	background-color: #e9e9e9;
}
.title-bar.gray h1 {
	color: #ccc;
}
.title-bar.blue {
	background-color: #8497b0;
	color: #003;
}
.title-bar.orange {
	background-color: #993300;
}
.title-bar.orange h1 {
	color: #fff;
}
.title-bar.feature-image {
	align-items: center;
	background-color: #003;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: cover;
	display: flex;
	height: 420px;
	justify-content: flex-start;
}
.title-bar.feature-image h1 {
	color: #fff;
	font-weight: 400;
	text-shadow: 0 0 12px rgba(0,0,0,1);
	text-align: center;
}
#sidebar h2 {
    color: #8497b0;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 2px;	
	text-transform: uppercase;
}
#sidebar ul {
	margin: 0;
	padding: 0;
}
#sidebar ul li {
	line-height: 1.2em;
	list-style-type: none;
	padding: .35em 0 .35em 0;
}
#sidebar a {
	color: #444;
	text-decoration: none;
}
#sidebar a:hover {
	border-bottom: dotted 1px #999;	
}
.news article a {
	display: inline;
	line-height: 1.35em;
}
.news article a:hover {
	border-bottom: dotted 1px #999	
}
.news article a:hover img {
	border: none !important;
}
#main .news, #main.single article {
    padding-right: 0;
}
.single .feature-image {
	margin-bottom: 1em;
}
#menu-overlay {
	background-color: #003;
	bottom: 0;
	color: #fff;
	display: none;
	height: 100vh;
	left: 0;
	overflow: hidden;
	position: absolute;
	right: 0;
	top: 0; 
	z-index: 100000;
}
#menu-overlay.show {
	display: block;
}
#menu-overlay li {
	padding: .2em 0 .2em 0;	
}
#menu-overlay a {
	color: #fff;
	text-decoration: none;
	line-height: 1em;
}
#menu-overlay a:hover {
	border-bottom: dotted 1px #666;	
}
#mobile {
	margin-bottom: 6em;	
}
#mobile-stage {
	align-items: center;
	display: flex;
	justify-content: center;
	width: 100%;
}
.news-row .news {
	margin-bottom: 2em;	
}
.news-row .news-thumb {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: cover;
	height: 140px;
	margin-bottom: .5em;
}
.news-row a {
	color: #000033;
	font-size: .9em;
	font-weight: bold;
	line-height: 1.2em;
	text-decoration: none;
}
@media screen and ( max-width: 1220px ) {
	#header {
		height: auto;	
	}
	#header > .silo{
		background-position: top left;
		background-size: contain;
	}
	.silo {
		width: 95%;
		transition: all .35s
	}
}
@media screen and ( max-width: 1100px ) {
	.jgms-recent .pub-row .pub-thumb,
	#cicp-feature-publications .pub-row .pub-thumb {
		margin-bottom: .5em;
	}
	#cicp-feature-briefings .pub-row .pub-thumb img {
		width: 135px;	
	}
	.jgms-recent .pub-row .pub-thumb img {
		display: block;	
	}
	.pub-row .pub-title {
		padding-right: 1em;
	}
	.pub-row .pub-pdf {
		margin-top: 0;
		margin-bottom: 2em;
	}
}
@media screen and ( max-width: 900px ) {
	.pubs-category .pub-title {
		padding-right: 1em;	
	}
	#header > .silo {
		background-size: cover;
	}
}
@media screen and ( max-width: 800px ) {
	#main, .hamburger {display: block }
	#sidebar {
		border-top: solid 1px #ccc;
		margin-top: 2em;
		max-width: 100%;
		padding-left: 0;
		padding-top: 2em;
	}
	#primary.menu, #secondary.menu {
		display: none;	
	}
	#masthead {
		margin: 1em 0 0 0 ;	
	}
	#header .flag {
		margin: 2em 0 1.5em 0;
	}
	.foto-feature {
		display: block;
		padding-bottom: 2em;
		padding-top: 2em;
	}
	#cicp-feature-briefings .pub-row .pub {
		display: flex;
		width: 100%;
	}
	.pub-row .pub {
		display: block;
		width: 33%;
	}
	.pubs-category .pub-thumb {
		flex: none;
	}
	.jgms-recent .pub-row .pub-thumb,
	#cicp-feature-publications .pub-row .pub-thumb {
		max-width: 85%;	
	}
	.jgms-recent .pub-row .pub-thumb img,
	#cicp-feature-publications .pub-row .pub-thumb img {
		margin: 0;	
	}
	.pubs-category .stage > .pub,
	.tax-cicp_pub_cats .pubs-category .stage > div {
		border-bottom: dotted 1px #ccc;
		flex: 0 100%;
		margin-bottom: 1em;
		padding-bottom: 1em;
	}
	.jgms-recent .stage, .pubs-category .stage  {
		margin-bottom: 0;	
	}
	.pubs-category .stage > .pub:last-child {
		border-bottom: 0;
		margin-bottom: 0;
	}
	.pubs-category .pub-thumb {
		margin-bottom: 0;
		max-width: 120px;
	}
	.jgms-hero .pub-title, #main.single .pub-title {
		font-size: 2em;
		padding-right: 0;
	}
	.title-bar h1 {
		text-align: center;	
	}
	#message-from-director img {
		margin: 0 1em 0 0;	
	}
	#message-from-director .copy-stage {
		width: 100%;	
	}
	#homepage-hero {
		font-size: smaller;	
	}
}
@media screen and ( max-width: 600px ) {
	#cicp-feature-journal {
		font-size: smaller;
	}
	#homepage-hero > .silo {
 		display: block;
	}
	#hero-publications {
		width: 100%;	
	}
	#hero-news {
		width: 100%;	
	}
	.pub-row {
		display: block;	
	}
	.pub-row .pub {
		display: flex;
		margin-bottom: 1em;
		max-width: 100%;
		width: 100%;
	}
	.pub-row .pub:last-child {
		margin-bottom: 0;	
	}
	.jgms-recent .pub-row .pub-thumb,
	#cicp-feature-publications .pub-row .pub-thumb {
		border: 0;
		margin-bottom: 1em;
		margin-right: 1em;
		max-width: 100%;
		padding: 0;
		width: auto;
	}
	.jgms-hero .pub-category,
	.jgms-hero .pub-volume {
		line-height: 1.2em;	
	}
	.pubs-category .pub {
		border-bottom: dotted 1px #ccc;
		margin-bottom: 1em;
		padding-bottom: 1em;
	}
	.jgms-hero .pub-copy {
		padding-right: 2em;
	}
	.pub-copy {
		padding-right: 0;	 
	}
	.single-cicp_pubs #content, .single-post .site-content {
		padding-top: 1.5em;	
	}
	#message-from-director .silo {
		align-items: flex-start;
	}
	#message-from-director {
		padding: 2em 0 .5em 0 ;	
	}
}
@media screen and ( max-width: 420px ) {
	.pub-row .pub {
		margin-bottom: 1em;	
	}
	.pub-row .pub-title {
		line-height: 1.75em;
	}
	#cicp-feature-journal .jgms-hero .stage .pub,
	#main.single .pub {
		flex-direction: column;
	}
	.pubs-category .pub-thumb {
		width: 90px;
	}
	.jgms-recent .pub-row .pub-thumb,
	#cicp-feature-publications .pub-row .pub-thumb{
		border: 0;
		padding: 0;
	}
	.pub-copy {
		padding-right: 0;	
	}
	#colophon .stage {
		flex-direction: column-reverse;
	}
	.title-bar h1 {
		font-size: 1em;
		text-align: left;	
	}
	.jgms-hero .pub-thumb {
		margin-bottom: 1em;
		margin-right: 0;	
	}
	.single-cicp_pubs #content, .single-post .site-content {
		padding-top: 1em;	
	}
}