/* ========== CSS Reset ==========*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: separate;
	border-spacing: 0;
}


/* ========== My CSS ==========*/

@font-face {
	font-family: Roboto;
	src: url('../fonts/Roboto-Regular.woff') format('woff'),
		 url('../fonts/Roboto-Regular.ttf') format('truetype');
}

@font-face {
    font-family: Roboto;
    src: url('../fonts/Roboto-Light.woff') format('woff'),
         url('../fonts/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Proxima-Lt';
    src: url('../fonts/ProximaNova-Light.woff') format('woff'),
    	 url('../fonts/ProximaNova-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Proxima-Rg';
    src: url('../fonts/ProximaNova-Regular.woff') format('woff'),
    	 url('../fonts/ProximaNova-Reg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Proxima-Rg';
    src: url('../fonts/ProximaNova-Bold.woff') format('woff'),
         url('../fonts/ProximaNova-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


body {
	font-size: 16px;
	font-family: Roboto;
}


/* ========== Header ==========*/

.page-header, .page-footer {
	min-height: 67px;
	width: 100%;
	background-color: #f7c61d;
}
.page-header {
	display: flex;
	align-items: center;
}
.page-footer {
	display: flex;
	align-items: center;
}
.wrapper {
	width: 1170px;
	/* height: 100%; */
	margin: 0 auto;
}

.page-header .wrapper, .page-footer .wrapper {
	display: flex;
	justify-content: space-around;
	align-items: center;
}

nav ul {
	display: flex;
	justify-content: space-between;
}

.page-header nav a {
	font-family: 'Proxima-Rg';
	color: #000;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0 35px;
}
.toggle-line {
	display: block;
	width: 100%;
	height: 6px;
	background-color: #000;
	border-radius: 4px;
	margin: 2px 0;
}
.nav-toggle {
	width: 50px;
	background: none;
	border: none;
	display: none;
}

/* ========== Main ==========*/

.main>.wrapper {
	display: flex;
}

main {
	width: 77%;
}

.right-sidebar {
	width: 23%;
}

img {
	width: 100%;
}

article {
	display: flex;
	margin-bottom: 50px;
}

h2 {
	font-family: Proxima-Rg;
	font-weight: bold;
	font-size: 24px;
	margin: 40px 0 15px;
}

article h3 {
	font-family: Proxima-Rg;
	font-weight: 300;
	font-size: 30px;
}

.meta {
	font-family: Roboto;
	font-weight: 300;
	color: #999;
	font-size: 13px;
}

.meta span::after {
	display: inline-block;
	content: '|';
	color: #999;
	font-size: 13px;
	margin: 0 10px;
}

.meta span:last-child::after {
	display: none;
}

.category {
	color: #e3b002;
}

.description {
	color: #555;
	font-size: 16px;
	font-family: Proxima-Lt;
	font-weight: 300;
	line-height: 1.2;
}

.description::after {
	content: '>';
	color: #e3b002;
}

.additional {
	color: #999;
	font-family: Roboto;
	font-weight: 300;
	font-size: 13px;
}

.views::after {
	content: '|';
	margin: 0 10px;
}

.comments {
	color: #e3b002;
}

.views::before, .comments::before {
	content: '\f06e';
	font-family: 'Font Awesome 5 free';
	font-size: 16px;
	margin-right: 10px;
}

.comments::before {
	content: '\f075';
	font-family: 'Font Awesome 5 free';
	font-size: 16px;
	color: #999;
}

/*.meta span:not(:last-child)::after {
	content: '|';
	color: #999;
	margin: 0 10px;
}*/

.article-left {
	width: 30%;
}

.article-left img {
	border-radius: 3px;
}

.article-right {
	width: 70%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-left: 25px;
}

.article-right .meta {
	margin: 18px 0;
}

.article-right .additional {
	margin-top: 18px;
}

.more {
	width: 170px;
	height: 42px;
	background-color: transparent;
	color: #000;
	font-size: 12px;
	font-family: Roboto;
	border: 1px solid #f8cc38;
	border-radius: 5px;
	text-transform: uppercase;
	outline: none;
	text-align: center;
	display: block;
	margin: 0 auto;
}


/* ========== Aside ==========*/

aside.right-sidebar {
	padding-top: 78px;
	padding-left: 65px;
}

.search-box {
	width: 100%;
	position: relative;
}

.search-box label {
	position: absolute;
	left: 10px;
	top: 8px;
	z-index: 100;
}

.search-box input {
	width: 100%;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 8px 10px 8px 30px;
	outline: none;
	color: #999;
	font-family: Roboto;
	font-size: 14px;
	box-sizing: border-box;
}

.calendar-widget {
	border: 1px solid #e5e5e5;
	width: 100%;
	border-radius: 10px;
	margin-top: 38px;
}

.calendar-widget .calendar-top {
	display: flex;
	justify-content: space-around;
	align-items: center;
	height: 30px;
	width: 100%;
	border-radius: 10px 10px 0 0;
}

.calendar-prev, .calendar-next {
	color: #a6a6a6;
}

.calendar-widget table {
	width: calc(100% + 2px);
	margin-left: -1px;
	border-radius: 0 0 10px 10px;
}

.calendar-widget table th {
	height: 26px;
	color: #888;
	vertical-align: middle;
	border: 1px solid #e5e5e5;
	background-color: #e7e7e7;
}

.calendar-widget table th:not(:last-child) {
	border-right: 1px solid #fff;
}

.calendar-widget table td {
	height: 33px;
	text-align: center;
	vertical-align: middle;
	border: 1px solid #e5e5e5;
	color: #e5e5e5;
}

.calendar-widget table tr:last-child td:first-child {
	border-radius: 0 0 0 10px;
}

.calendar-widget table tr:last-child td:last-child {
	border-radius: 0 0 10px 0;
}

.calendar-widget .current-month {
	color: #4d4d4d;
}

.calendar-widget .current-day {
	background-color: #f7c61d;
	color: #fff;
}

.popular-news article {
	flex-direction: column;
	margin-bottom: 20px;
}

.popular-news article h3 {
	font-size: 16px;
	font-family: Roboto;
	font-weight: 500;
	line-height: 1.2;
	margin-top: 10px;
}

.popular-news h2 {
	font-family: Proxima-Rg;
	font-size: 18px;
	font-weight: bold;
	display: flex;
	white-space: nowrap;
	align-items: center;
}

.popular-news h2::after {
	content: '.';
	font-size: 0;
	display: block;
	width: 100%;
	height: 1px;
	border-top: 1px solid #e5e5e5;
	margin: 4px 0 0 20px;
}


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

.page-footer {
	margin: 100px 0 0;
}

.page-footer>.wrapper>* {
	width: 33.33%;
}

.copy {
	font-family: Proxima-Rg;
	font-weight: 300;
	font-size: 13px;
	color: #a78613;
}

.socials {
	display: flex;
	justify-content: flex-end;
}

.socials a {
	display: block;
	width: 45px;
	height: 45px;
	background-color: #fff;
	border-radius: 50%;
	color: #f7c61d;
	font-size: 24px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none;
	margin-left: 10px;
}

.footer-nav a {
	text-decoration: none;
	color: #000;
	padding: 0 18px;
}


/* ========== Media Queries ==========*/

@media (max-width: 75em) {
	.page-header {
		position: relative;
	}
	.nav-toggle {
		display: block;
		order: 1;
	}
	nav {
		position: absolute;
		top: 100%;
		z-index: 10;
	}
	nav ul {
		flex-direction: column;
	}
	.left-nav, .right-nav {
		display: none;
	}
	.open .left-nav, .open .right-nav {
		display: block;
	}
	.left-nav {
		left: 15px;
	}
	.right-nav {
		right: 15px;
	}
	nav li {
		margin: 15px 0;
	}
	.open::after {
		content: '';
		display: block;
		width: 100%;
		height: 150px;
		background: #f7c61d;
		position: absolute;
		top: 100%;
	}
	.page-header .wrapper {
		justify-content: space-between;
	}
	.wrapper {
		width: 100%;
		padding: 0 15px;
		box-sizing: border-box;
	}
	.main>.wrapper {
		flex-direction: column;
	}
	main, .right-sidebar {
		width: 100%;
	}
	article {
		flex-direction: column;
		width: calc(50% - 15px);
		margin-right: 15px;
	}
	.article-left {
		width: 100%;
		margin-bottom: 15px;
	}
	.article-right {
		padding-left: 0;
		width: 100%;
	}
	.articles {
		display: flex;
		flex-wrap: wrap;
	}
	aside.right-sidebar {
		padding-left: 0;
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
	}
	.calendar-widget {
		width: calc(50% - 15px);
		margin-right: 15px;
		box-sizing: border-box;
	}
	.popular-news {
		width: 50%;
	}
	.popular-news article {
		width: 100%;
	}
	.page-footer .wrapper {
		flex-wrap: wrap;
		padding: 20px 15px;
	}
	.page-footer>.wrapper>.copy {
		width: 100%;
		order: 1;
	}
	.page-footer>.wrapper>.footer-nav {
		width: 70%;
		position: static;
	}
	.footer-nav ul {
		flex-direction: row;
	}
	.page-footer>.wrapper>.socials {
		width: 30%;
	}
}

@media (max-width: 36.125em) {
	article {
		width: 100%;
	}
	.calendar-widget, .popular-news {
		width: 100%;
	}
	.footer-nav a {
		padding: 0;
	}
	.page-footer>.wrapper>.footer-nav {
		width: 100%;
	}
	.page-footer>.wrapper>.socials {
		width: 100%;
		justify-content: left;
		margin: 15px 0;
	}
}
