:root {
	/* Colors */
	--main-red: #c72727;
	--secondary-color: #f99500;

	--tech-label-color: #009cff;
	--sport-label-color: #f99500;
	--entertainment-label-color: #a66bbe;

	--background-light: #ece6e6;
	--background-dark: #333;
	--background-red: #c72727;

	/* width value */
	--max-width: 1100px;
}

* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

/* main tags */
body {
	line-height: 1.5;
	font-family: 'Lato', sans-serif;
	background: var(--background-light);
}

a {
	text-decoration: none;
	color: #333;
}

ul {
	list-style: none;
}

img {
	width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'staatliches', cursive;
	margin-bottom: 0.55rem;
	line-height: 1.3;
}

/* general utility classes */

/* background */
.dark-back {
	background: var(--background-dark);
}

.light-back {
	background: var(--background-light);
}

.white-back {
	background: #fff;
}

.red-back,
.main-back {
	background: var(--background-red);
}

.blue-back,
.tech-back {
	background: var(--tech-label-color);
}
.orange-back,
.sports-back {
	background: var(--sport-label-color);
}
.violet-back,
.entertainment-back {
	background: var(--entertainment-label-color);
}

/* padding */
.p1 {
	padding: 1rem;
}
.p2 {
	padding: 2rem;
}
.p3 {
	padding: 3rem;
}

.p1-x {
	padding: 0 1rem;
}
.p2-x {
	padding: 0 2rem;
}
.p3-x {
	padding: 0 3rem;
}

.p1-y {
	padding: 1rem 0;
}
.p2-y {
	padding: 2rem 0;
}

.p3-y {
	padding: 3rem 0;
}

/* specific utility classes*/
.container {
	max-width: var(--max-width);
	margin: auto;
	padding: 0 2rem;
	overflow: hidden;
}

.category {
	display: inline-block;
	font-size: 0.75rem;
	padding: .2rem .5rem;
	border-radius: 20px;
	margin-bottom: 0.55rem;
	text-transform: uppercase;
	color: #fff;
}

.btn {
	display: inline-block;
	border: none;
	font-size: 1rem;
	color: #fff;
	padding: 0.5rem 1.5rem;
}

.btn:hover {
	opacity: 0.85;
}

/* Styling */

/* navbar */

#main-nav {
	background: #fff;
	/* padding: 1rem 2rem; */
	position: sticky;
	top: 0;
	z-index: 2;
}

#main-nav .container {
	display: grid;
	grid-template-columns: 6fr 3fr 2fr;
	padding: 1rem;
	align-items: center;
}

#main-nav .container .logo {
	width: 200px;
}

#main-nav .social {
	justify-self: center;
}

#main-nav .social a {
	color: #777;
	margin: 0.5rem;
}

#main-nav .container #navigation {
	justify-self: end;
	display: flex;
}

#main-nav .container #navigation a {
	padding: 0.75rem;
	font-weight: bold;
}

#main-nav .container #navigation a.current {
	background: var(--background-red);
	color: #fff;
}

#main-nav .container #navigation a:hover {
	background: var(--background-light);
	color: #333;
}

/* showcase */
#showcase {
	color: #fff;
	background: var(--background-dark);
	padding: 3rem;
	position: relative;
}

#showcase:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('../Images/featured.jpg') no-repeat center center/cover;
	opacity: 0.4;
}

#showcase .showcase-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	justify-content: center;
	align-items: center;
	height: 50vh;
}

#showcase .showcase-content {
	z-index: 1;
}

#showcase .showcase-content p {
	margin-bottom: 2rem;
}

.articles-container {
	display: grid;
	grid-gap: 1rem;
	grid-template-areas: 'article1 article1 article2' 'article3 article4 article5' 'article6 article7 article7';
}

/* article types display */
.article {
	display: grid;
	padding: 1rem;
	grid-gap: 1rem;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	color: #333;
	border-radius: 10px;
	/* border: 1px solid #000; */
	/* height: 200px; */
}

.article img {
	border-radius: 5px;
}

.articles-container .article:first-child {
	grid-template-columns: 1fr 1fr;
	grid-area: article1;
}

.articles-container .article:nth-child(2),
.articles-container .article:nth-child(2) a {
	grid-area: article2;
	color: #fff;
}
.articles-container .article:nth-child(3) {
	grid-area: article3;
}
.articles-container .article:nth-child(4) {
	display: flex;
	flex-direction: column-reverse;
	grid-area: article4;
}
.articles-container .article:nth-child(5) {
	grid-area: article5;
}
.articles-container .article:nth-child(6),
.articles-container .article:nth-child(6) a {
	grid-area: article6;
	color: #fff;
}

.articles-container .article:last-child {
	grid-template-columns: 1fr 1fr;
	grid-gap: 1rem;
	grid-template-areas: 'div img';
	grid-area: article7;
}

.articles-container .article:last-child div {
	grid-area: div;
}

.articles-container .article:last-child img {
	grid-area: img;
}

/* Footer */
footer.footer {
	color: #fff;
}

.footer .container .footer-content {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 2rem;
}

.footer .footer-content .footer-segments {
	padding: 2rem 0;
}

/* info */
.footer #site-short-info {
	display: flex;
	flex-direction: column;
	grid-gap: 1rem;
}

.footer #site-short-info img {
	width: 150px;
}

/* Newsletter */
.footer #newsletter {
	display: flex;
	flex-direction: column;
	/* grid-gap: 0.25rem; */
}

.footer #newsletter form {
	display: flex;
	flex-direction: column;
	/* grid-gap: 0.25rem; */
}

.footer #newsletter * {
	margin-bottom: 0.5rem;
}

.footer #newsletter #email {
	height: 32px;
	margin-bottom: 0.5rem;
}

.footer #newsletter .btn {
	padding: 0.5rem 0;
	display: inline-block;
	font-size: 0.85rem;
}

/* link sites */
.footer #site-links ul li {
	border-bottom: 1px #777 dotted;
	padding: 0.5rem 0;
}

.footer #site-links ul li a {
	color: #fff;
	cursor: pointer;
}

.footer #site-links ul li a:hover {
	color: var(--main-red);
}
/* join */
.footer #join p {
	margin-bottom: 1rem;
}

/* copyright */
#copyright {
	font-size: 0.8rem;
	grid-column: span 4;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: #444;
	padding: 1rem;
	margin-bottom: 2rem;
}

/* About Page */

.about-content {
	/* margin: 2rem 0; */
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr;
	grid-gap: 2rem;
}

.about-content #about-text {
	grid-column: span 2;
	grid-row: span 3;
	border-radius: 10px;
}

.about-content #about-text h1 {
	font-size: 3rem;
}

.about-content .aside div {
	color: #fff;
	padding: 1rem 0.75rem;
	border-radius: 5px;
}

.about-content .aside p {
	margin-bottom: 1rem;
}

.about-content .aside .btn {
	display: block;
	text-align: center;
}

/* article1 page */

.article-content {
	/* margin: 2rem 0; */
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	grid-gap: 1rem;
}

.article-content > div {
	grid-column: span 2;
	grid-row: span 2;
}

#article-text > * {
	margin-bottom: 1rem;
}

.article-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0.5rem;
	margin: 0.25rem 0;
	border-radius: 5px;
}

.article-info * {
	margin: 0;
}

.article-content #article-text h1 {
	font-size: 3rem;
}

.article-content .aside {
	display: flex;
	/* grid-template-columns: 1fr; */
	flex-direction: column;
	padding: 0;
	/* justify-content: flex-start; */
	/* justify-content: space-around; */
	/* grid-gap: 1rem; */
}

.article-content .aside > div > div {
	color: #fff;
	padding: 01rem 0.5rem;
	margin: 0rem 0rem 1rem 0;
	border-radius: 5px;
}

.article-content .aside p {
	margin-bottom: 1rem;
}

.article-content .aside .btn {
	display: block;
	text-align: center;
}

.categories-aside {
	border-radius: 5px;
}

.categories-aside h2 {
	color: #000;
}

.categories-aside ul li {
	border-bottom: 1px #777 dotted;
	padding: 0.5rem 0;
}

.categories-aside ul li a,
.categories-aside ul li i {
	/* color: #fff; */
	cursor: pointer;
	color: #000;
}

.categories-aside ul li a:hover {
	color: var(--main-red);
}
