/*
 * Variables
 */

:root {
	--news01_background-color: #a09d76;
	--news02_background-color: #406867;
}

/*
 * News
 */

/* Sticky news */

#body_sticky {
	width: 100%;
	background-color: #d2d2c8;
	overflow: hidden;
	color: #505050;
	position: relative;
}

#body_sticky > #slider {
	position: absolute;
	display: flex;
	overflow: auto;
	width: 50000px;
	height: 100%;
	justify-content: flex-start;
}

#body_sticky > #slider > .slide {
	overflow: hidden;
	width: 100%;
	display: flex;
}

#body_sticky > #slider > .slide > img {
	width: 50%;
}

#body_sticky > #slider > .slide > img.image_link {		/* if there's a link in the image */
	cursor: pointer;
}

#body_sticky > #slider > .slide > div {
	width: 50%;
	display: flex;
	flex-direction: column;
}

#body_sticky > #slider > .slide > div > h1 {
	display: block;
	font-family: Merriweather, serif;
	font-size: 15px;
	font-weight: bold;
	text-transform: uppercase;
	text-align: center;
	padding: 40px 20px 10px 20px;
	white-space: nowrap;
	box-sizing: border-box;
	max-width: 620px;
	align-self: center;
}

#body_sticky > #slider > .slide > div > h2 {
	display: block;
	font-family: OpenSans, sans-serif;
	font-size: 37px;
	font-weight: 900;	/* extra bold */
	text-transform: uppercase;
	color: var(--news01_background-color);
	text-align: center;
	padding: 10px 20px 20px 20px;
	box-sizing: border-box;
	max-width: 620px;
	align-self: center;
	line-height: 1.1;
}

#body_sticky > #slider > .slide .text {
	display: block;
	font-family: Merriweather, serif;
	font-size: 15px;
	line-height: 23px;
	overflow: hidden;
	text-align: center;
	flex-grow: 1;
	padding: 0 20px;
	box-sizing: border-box;
	max-width: 620px;
	align-self: center;
}

#body_sticky > #slider > .slide .text p {
	font-family: Merriweather, serif;
	font-size: 15px;
	line-height: 23px;
	text-align: center;
	overflow: hidden;
	margin-bottom: 10px;
}
#body_sticky > #slider > .slide .text p:last-of-type {
	margin-bottom: 0;
}

#body_sticky > #slider > .slide .text p em {
	font-family: Merriweather, serif;
	font-size: 15px;
	line-height: 23px;
	font-style: italic;
}

#body_sticky > #slider .text a,
#body_sticky > #slider .text a:active,
#body_sticky > #slider .text a:link {
	color: var(--news01_background-color);
}
#body_sticky > #slider .text a:hover {
	color: var(--news02_background-color);
}

#body_sticky > #slider > .slide .date {
	font-family: Merriweather, serif;
	font-size: 12px;
	overflow: hidden;
	text-align: center;
	padding: 10px 20px;
	box-sizing: border-box;
	white-space: nowrap;
	max-width: 620px;
	align-self: center;
}

#body_sticky > #slider > .slide .arrows {
	color: #fff;
	text-align: center;
	padding: 20px 0;
}

#body_sticky > #slider > .slide .arrows img {
	cursor: pointer;
	width: 40px;
}
#body_sticky > #slider > .slide .arrows img:first-of-type {
	margin-right: 20px;
}

@media (max-width: 710px) {
	
	#body_sticky > #slider > .slide {
		flex-direction: column;
	}
	
	#body_sticky > #slider > .slide > img,
	#body_sticky > #slider > .slide > div {
		width: 100%;
	}
	
	#body_sticky > #slider > .slide .text {
		display: none;
	}
	
}

/* Normal news */

#body_news {
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
	padding: 70px 0;
	position: relative;
}

#body_news .newsblock {
	width: 32%;
	min-width: 360px;
	overflow: auto;
	margin-bottom: 10px;
	background-color: #f0f0f0;
	color: #323232;
	position: absolute;
}

#body_news .newsblock > img {
	display: block;
}

#body_news .newsblock > img:first-of-type {
	width: 100%;
	height: auto;
}

#body_news .newsblock h1,
#newsdetail h1 {
	font-family: Merriweather, serif;
	font-size: 12px;
	color: var(--news01_background-color);
	text-transform: uppercase;
	padding: 20px 20px 24px 20px;
	line-height: 20px;
}

#body_news .newsblock h1 em,
#newsdetail h1 em {
	font-family: Merriweather, serif;
	font-size: 12px;
	color: var(--news01_background-color);
	text-transform: uppercase;
	font-style: italic;
}

#body_news .event h1 {
	color: var(--news02_background-color) !important;
}

#body_news .newsblock h2,
#newsdetail h2 {
	font-family: OpenSans, sans-serif;
	font-size: 22px;
	font-weight: bold;
	color: #323232;
	padding: 0 20px 24px 20px;
	text-transform: capitalize;
	line-height: 26px;
}

#body_news .newsblock h2 em,
#newsdetail h2 em {
	font-family: OpenSans, sans-serif;
	font-size: 22px;
	font-weight: bold;
	color: #323232;
	font-style: italic;
}

#body_news .newsblock .text {
	padding: 0 20px 24px 20px;
}

#body_news .newsblock .text a,
#body_news .newsblock .text a:active,
#body_news .newsblock .text a:link,
#newsdetail .text a,
#newsdetail .text a:active,
#newsdetail .text a:link {
	color: var(--news01_background-color);
}
#body_news .newsblock .text a:hover,
#newsdetail .text a:hover {
	color: var(--news02_background-color);
}

#body_news .newsblock .text,
#body_news .newsblock .text p,
#body_news .newsblock .text em,
#body_news .newsblock .text a,
#body_news .newsblock .text li,
#body_news .newsblock .date,
#newsdetail .text,
#newsdetail .text p,
#newsdetail .text em,
#newsdetail .text a,
#newsdetail .text li,
#newsdetail .date,
#newsdetail > .summary,
#newsdetail > .summary p {
	font-family: Merriweather, serif;
	font-size: 15px;
	line-height: 23px;
}

#body_news .newsblock .text em,
#newsdetail .text em,
#newsdetail > .summary em {
	font-style: italic;
}

#body_news .newsblock .text p,
#body_news .newsblock .text ul,
#body_news .newsblock .text ol,
#newsdetail .text p,
#newsdetail .text ul,
#newsdetail .text ol {
	margin-bottom: 15px;
}
#body_news .newsblock .text p:last-child,
#body_news .newsblock .text ul:last-child,
#body_news .newsblock .text ol:last-child,
#newsdetail .text p:last-child,
#newsdetail .text ul:last-child,
#newsdetail .text ol:last-child {
	margin-bottom: 0;
}

#body_news .newsblock .date {
	padding: 0 20px 24px 20px;
}

#body_news .newsblock .footer {
	background-color: var(--news01_background-color);
	color: #ffffff;
	padding: 10px 20px;
	font-family: Merriweather, serif;
	font-size: 12px;
	font-style: italic;
	position: relative;
}

#body_news .newsblock .footer > div:nth-of-type(2) {
	position: absolute;
	right: 20px;
	top: 5px;
	width: 26px;
	height: 29px;
	overflow: hidden;
}

#body_news .newsblock .footer a, #body_news .newsblock .footer a:visited, #body_news .newsblock .footer a:active, #body_news .newsblock .footer a:hover {
	color: #fff;
}

#body_news .newsblock .attachments_icon:hover {
	cursor: pointer;
}

#body_news .newsblock .attachments_panel {
	display: none;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 10;
	background-color: rgba(20, 20, 20, .90);
	color: #fff;
}

#body_news .newsblock .attachments_panel > div {
	overflow: auto;
}

#body_news .newsblock .attachments_panel > div > h1 {
	display: block;
	float: left;
}

#body_news .newsblock .attachments_panel > div > h2 {
	display: block;
	float: right;
	cursor: pointer;
	color: #fff;
	padding: 20px 20px 24px 20px;
	font-size: 12px;
	line-height: 20px;
}

#body_news .newsblock .attachments_panel > a {
	display: block;
	height: 31px;
	padding: 2px 20px;
	overflow: hidden;
	color: #fff;
}
#body_news .newsblock .attachments_panel > a:hover {
	background-color: #800;
	color: #fff;
}
#body_news .newsblock .attachments_panel > a:active, #body_news .newsblock .attachments_panel > a:visited {
	color: #fff;
}

#body_news .newsblock .attachments_panel > a > div:first-of-type {
	font-size: 12px;
	font-family: monospace;
	line-height: 18px;
}

#body_news .newsblock .attachments_panel > a > div:nth-of-type(2) {
	font-size: 9px;
	line-height: 11px;
	float: left;
}

#body_news .newsblock .attachments_panel > a > div:nth-of-type(3) {
	font-size: 9px;
	line-height: 11px;
	float: right;
}

/* News list footer */

#news_list {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
}

#news_list a, #news_list a:visited, #news_list a:active, #news_list a:link, #news_list a:hover {
	color: #00bcbd;
	font-size: 12px;
	text-align: center;
	font-weight: normal;
	font-family: Opensans, sans-serif;
	line-height: 36px;
}

/* Events */

#body_news .event h1 {
	color: var(--news02_background-color) !important;
}

#body_news .event .footer {
	background-color: var(--news02_background-color) !important;
}

/* News Detail */

.newstitle {
	font-family: Merriweather, serif;
	font-size: 12px;
	color: var(--news01_background-color);
	text-transform: uppercase;
	padding: 20px 20px 24px 20px;
	line-height: 20px;
	text-align: center;
}

#newsdetail h2 {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

#newsdetail > h1, #newsdetail > h2, #newsdetail > .date, #newsdetail > img, #newsdetail > .summary, #newsdetail > .text {
	display: block;
	width: 100%;
	max-width: 800px;
}

#newsdetail > .date {
	margin: 20px auto;
	text-align: center;
}

#newsdetail > img {
	margin: 10px auto;
}

#newsdetail > .summary {
	margin: 40px auto;
	text-align: center;
}

#newsdetail > .text {
	margin: 20px auto;
}

#newsdetail > .text p, #newsdetail > .text ul, #newsdetail > .text ol, #newsdetail > .text table {
	margin-bottom: 1ex;
}

#newsdetail table {
	border-collapse: collapse;
	border: 1px solid #909090;
}

#newsdetail table th {
	text-transform: uppercase;
}

#newsdetail table th, #newsdetail table td {
	border: 1px solid #909090;
}

#newsdetail table > tr:nth-of-type(odd), #newsdetail table > tbody > tr:nth-of-type(odd) {
	background-color: #fff;
}

#newsdetail table > tr:nth-of-type(even), #newsdetail table > tbody > tr:nth-of-type(even) {
	background-color: #f7f7f7;
}

#newsdetail > .attachments_panel {
	width: 100%;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 40px;
}

#newsdetail > .attachments_panel > h1 {
	display: block;
	width: 100%;
	max-width: 800px;
	font-size: 18px;
	margin: 10px auto;
	text-align: center;
}

#newsdetail > .attachments_panel > a {
	display: block;
	width: 100%;
	max-width: 800px;
	overflow: auto;
	padding-top: 2px;
	padding-bottom: 2px;
	border-bottom: 1px solid #d0d0d0;
	color: #323232;
	height: 30px;
}

#newsdetail > .attachments_panel > a:first-of-type {
	border-top: 1px solid #d0d0d0;
}

#newsdetail > .attachments_panel > a, #newsdetail > .attachments_panel > a:visited, #newsdetail > .attachments_panel > a:active {
	color: #323232;
}

#newsdetail > .attachments_panel > a:hover {
	background-color: var(--news01_background-color) !important;
}

#newsdetail > .attachments_panel > a:nth-of-type(odd) {
	background-color: #fff;
}
#newsdetail > .attachments_panel > a:nth-of-type(even) {
	background-color: #f0f0f0;
}

#newsdetail > .attachments_panel > a > div:first-of-type {
	font-size: 12px;
	font-family: monospace;
	line-height: 18px;
}

#newsdetail > .attachments_panel > a > div:nth-of-type(2) {
	font-size: 9px;
	line-height: 11px;
	float: left;
}

#newsdetail > .attachments_panel > a > div:nth-of-type(3) {
	font-size: 9px;
	line-height: 11px;
	float: right;
}

/* Related news */

#related_news {
	width: 100%;
	display: flex;
	justify-content: space-between;
	margin-top: 60px;
}

.related_news_item {
	display: block;
	width: 32%;
	background-color: #f0f0f0;
}

.related_news_item > h2 {
	padding-top: 20px !important;
}

.related_news_item > img {
	width: 100%;
}

@media (max-width: 700px) {
	
	#related_news {
		flex-direction: column;
	}
	
	.related_news_item {
		width: 100%;
		margin-bottom: 10px;
	}
	.related_news_item:last-of-type {
		margin-bottom: 0;
	}
	
}
