/* Description: Master CSS file */

/*****************************************
Table Of Contents:
- General Styles
- Navigation
- Footer
- Media Queries
******************************************/


/**************************/
/*     General Styles     */
/**************************/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* Colors */
:root {
	--color1: #333333; /* body text */
  --color2: #111111; /* heading text */
  --color3: #888888; /* footer text */
	--color4: #f6f6f6; /* section background */
	--color5: #ffffff; /* element background */
	--color6: #d6d6d6; /* footer lines, nav border */
	--color7: #666666; /* cover text, category links, nav links */
}
/* end of colors */

body,
html {
  width: 100%;
	height: 100%;
}

body {
	background-color: var(--color4);
}

body, p {
	color: var(--color1); 
	font: 400 1rem/1.625rem "Inter", sans-serif;
	font-optical-sizing: auto;
}

p {
	margin-bottom: 20px;
}

.p-large {
	color: var(--color3);
	font-size: 1.25rem;
	line-height: 1.875rem;
}

.p-small {
	font-size: 0.875rem;
	line-height: 1.375rem;
}

h1 {
	margin-bottom: 14px;
	color: var(--color2);
	font-weight: 600;
	font-size: 2.25rem;
	line-height: 2.625rem;
	letter-spacing: -0.6px;
}

h2 {
	margin-bottom: 10px;
	color: var(--color2);
	font-weight: 600;
	font-size: 1.5rem;
	line-height: 2.125rem;
	letter-spacing: -0.3px;
}

h3 {
	margin-bottom: 8px;
	color: var(--color2);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.75rem;
}

h4 {
	margin-bottom: 3px;
	color: var(--color2);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.625rem;
}

a {
	color: var(--color1);
}

b,
strong {
	font-weight: 600;
}

.text-center {
	text-align: center;
}

.container-prim,
.container-sec {
	margin: 0 auto;
  padding: 0 20px;
}

.grid {
  display: grid;
  gap: 20px;
  justify-content: center;
  align-items: start;
  height: 100%;
}

img {
	max-width: 100%;
	vertical-align: middle; /* solves a gap when inside image-container */
}

.logo-image img {
	width: 105px;
}

ul {
    list-style-type: none;
}

.li-space li {
	margin-bottom: 9px;
}

.list-bullets li {
	display: flex;
}

.list-bullets li .fas {
	margin-right: 8px;
	font-size: 0.375rem;
	line-height: 1.625rem;
}

.btn {
	display: inline-block;
	padding: 20px;
	border: 1px solid var(--color2);
	border-radius: 4px;
	background-color: var(--color2);
	color: #ffffff;
	font-weight: 400;
	font-size: 1rem;
	line-height: 0;
	text-decoration: none;
	transition: all 0.2s;
}

.btn:hover {
	background-color: transparent;
	color: var(--color2); /* needs to stay here because of the color property of a tag */
	text-decoration: none;
}

.btn-lg {
	padding: 26px 32px 26px 32px;
}

.btn-sm {
	padding: 16px 18px 16px 18px;
}

.btn-outline {
	border-color: var(--color2);
	background-color: transparent;
	color: var(--color2);
}

.btn-outline:hover {
	background-color: var(--color2);
	color: #ffffff; /* needs to stay here because of the color property of a tag */
}

input,
textarea {
	width: 100%;
	margin-bottom: 22px;
	padding-top: 1rem;
	padding-bottom: 1rem;
	padding-left: 1.25rem;
	border: 1px solid var(--color6);
	border-radius: 4px;
	background-color: var(--color5);
	color: var(--color1);
	font-size: 1rem;
	line-height: 1.5rem;
	font-family: "Inter"; /* overrides default browser settings */
	appearance: none; /* removes inner shadow on form inputs on ios safari */
	-webkit-appearance: none; /* removes inner shadow on form inputs on ios safari */
}

::placeholder {
	color: var(--color3);
	opacity: 1; /* Firefox */
}

textarea {
	display: block;
	height: 14rem; /* used instead of html rows to normalize height between Chrome and IE/FF */
}

input:hover,
input:focus,
textarea:hover,
textarea:focus {
	border-color: var(--color2);
	outline: none; /* Removes blue border on focus */
}

.btn-submit {
	display: inline-block;
	width: 100%;
	height: 3.75rem;
	border: 1px solid var(--color2);
	border-radius: 4px;
	background-color: var(--color2);
	color: #ffffff;
	font-size: 1rem;
	line-height: 0;
	font-family: "Inter"; /* overrides default browser settings */
	cursor: pointer;
	transition: all 0.2s;
}

.btn-submit:hover {
	color: var(--color2);
}

.alert,
.success {
	margin-bottom: 15px;
	color: #ff0000;
	font-weight: 600;
	text-align: center;
}

.success {
	color: #139213;
}

.mt-4 {
	margin-top: 40px;
}

.mt-10 {
	margin-top: 100px;
}

.mb-0 {
	margin-bottom: 0;
}

.mb-2 {
	margin-bottom: 20px;
}

.mb-3 {
	margin-bottom: 30px;
}

.mb-4 {
	margin-bottom: 40px;
}

.mb-6 {
	margin-bottom: 60px;
}

.mb-8 {
	margin-bottom: 80px;
}

.mb-10 {
	margin-bottom: 100px;
}

.pt-2 {
	padding-top: 20px;
}

.pt-3 {
	padding-top: 30px;
}

.pt-4 {
	padding-top: 40px;
}

.pt-5 {
	padding-top: 50px;
}

.pt-6 {
	padding-top: 60px;
}

.pt-8 {
	padding-top: 80px;
}

.pt-12 {
	padding-top: 120px;
}

.pt-14 {
	padding-top: 140px;
}

.pb-3 {
	padding-bottom: 30px;
}

.pb-4 {
	padding-bottom: 40px;
}

.pb-5 {
	padding-bottom: 50px;
}

.pb-6 {
	padding-bottom: 60px;
}

.pb-8 {
	padding-bottom: 80px;
}

.pb-12 {
	padding-bottom: 120px;
}

.pb-14 {
	padding-bottom: 140px;
}


/******************/
/*     Header     */
/******************/
.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 20px;
	background-color: var(--color5);
	line-height: 1rem;
}

.header .logo-image {
	line-height: 0;
}

/* Hamburger */
.header .hamburger {
  transition: opacity .3s;
}

.header .hamburger:hover {
  cursor: pointer;
  opacity: .5;
}

.header .hamburger .line {
  margin: 5px auto;
	width: 26px;
  height: 2px;
  border-radius: 5px;
  background: var(--color2);
  transition: all 0.3s ease-in-out;
}

.header .hamburger .line:first-of-type {
	margin-top: 0;
}

.header .hamburger .line:last-of-type {
	margin-bottom: 0;
}
/* end of hamburger */


/*******************/
/*     Sidebar     */
/*******************/
.sidebar {
	display: none;
	overflow: auto; /* adds the scroll bar */
	height: 100vh;
	padding: 20px 22px 20px 22px;
	background-color: var(--color5);
}

@-webkit-keyframes slideIn {
	from { 
		transform: translateX(-100%); 
	}
	to { 
		transform: translateX(0); 
	}
}
@keyframes slideIn {
	from { 
		transform: translateX(-100%); 
	}
	to { 
		transform: translateX(0); 
	}
}

.sidebar.active {
  position: absolute;
	display: inline !important;
	animation: slideIn 0.1s;
}

.sidebar .logo-image {
	display: none;
}

.sidebar p a {
	color: var(--color7);
	font-size: 0.875rem;
	text-decoration: none;
}

.sidebar p a:hover {
	color: var(--color2);
}

.sidebar hr {
	height: 1px;
	margin-bottom: 25px;
	border: none;
	background-color: var(--color6);
}

.sidebar nav {
	width: 160px;
}

.sidebar nav ul {
	display: flex;
	flex-direction: column;
}

.sidebar nav ul li {
	border-radius: 6px;
}

.sidebar nav ul li a {
	display: block;
	margin-top: 0;
	margin-bottom: 0;
	padding: 5px 8px;
	color: var(--color7);
	font-size: 0.875rem;
	text-decoration: none;
}

.sidebar nav ul li a:hover {
	color: #000000;
}

.sidebar nav ul li:hover {
	background-color: var(--color4);
}

.sidebar nav ul li i {
	width: 20px;
	margin-right: 4px;
	font-size: 15px;
	text-align: center;
}


/*****************/
/*     Title     */
/*****************/
.title.hero {
	margin-top: 75px;
	margin-bottom: 70px;
}

.title.top {
	margin-top: 65px;
	margin-bottom: 20px;
}

.title h1 {
	margin-bottom: 6px;
}

.title h2 {
	margin-bottom: 4px;
}

.title h2 a {
	color: unset;
	text-decoration: none;
}

.title hr {
	height: 1px;
	margin-bottom: 16px;
	border: none;
	background-color: var(--color6);
}


/******************/
/*     Covers     */
/******************/
.cards-1 {
	margin-bottom: 60px;
}

.cards-1:last-of-type {
	margin-bottom: 120px;
}

.cards-1 .card {
	align-self: stretch; /* makes the content fill the row height */
	border-radius: 10px;
	background-color: var(--color5);
	box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.13) 0px 0px 0px 1px;
}

.cards-1 .grid {
	gap: 16px;
	row-gap: 36px;
}

.cards-1 img {
	width: 100%;
	border-radius: 10px;
}

.cards-1 .card-text {
	padding: 14px 18px 16px 18px;
}

.cards-1 h3 {
	margin-bottom: 3px;
	font-size: 1rem;
	line-height: 1.5rem;
}

.cards-1 p {
	margin-bottom: 0;
	color: var(--color7);
	font-size: 0.875rem;
	line-height: 1.25rem;
}


/*******************/
/*     Details     */
/*******************/
.text-3 {
	margin-bottom: 100px;
}

.text-3 h2 a {
	text-decoration: none;
	color: var(--color2);
}

.text-3 ul {
	padding-left: 15px;
	list-style: disc;
}

.text-3 ul li {
	margin-bottom: 8px;
}


/**********************/
/*     Pagination     */
/**********************/
.pagination {
	margin-bottom: 120px;
	text-align: center;
}

.pagination a {
	margin-right: 10px;
	margin-left: 10px;
}


/******************/
/*     Footer     */
/******************/
footer {
	padding-bottom: 3px;
	text-align: center;
}

footer hr {
	height: 1px;
	border: none;
	background-color: var(--color6);
}

footer hr.top {
	margin-bottom: 55px;
}

footer hr.bottom {
	margin-bottom: 20px;
}

footer ul {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
}

footer ul li {
	margin-right: 10px;
	margin-left: 10px;
}

footer p,
footer p a,
footer ul li a {
	color: var(--color3);
	text-decoration: none;
}

footer .socials {
	margin-bottom: 55px;
}

footer .socials img {
	width: 23px;
}

footer .socials .icon {
	margin-left: 5px;
	margin-right: 5px;
	filter: brightness(0) saturate(100%) invert(58%) sepia(34%) saturate(39%) hue-rotate(331deg) brightness(87%) contrast(80%);
}

footer .socials .icon.bluesky {
	width: 19px;
}


/******************************/
/*     Back To Top Button     */
/******************************/
#myBtn {
	position: fixed; 
 	z-index: 99; 
	bottom: 20px; 
	right: 20px; 
	display: none; 
	width: 52px;
	height: 52px;
	border: none; 
	border-radius: 50%; 
	outline: none; 
	background-color: var(--color2); 
	cursor: pointer; 
}

#myBtn:hover {
	background-color: var(--color1);
}

#myBtn img {
	margin-bottom: 0.25rem;
	width: 18px;
}


/*************************/
/*     Media Queries     */
/*************************/	
/* Min-width 768px */
@media (min-width: 768px) {
	/* General Styles */
	.container-sec {
		max-width: 740px;
		padding-right: 30px;
		padding-left: 30px;
	}

	.grid {
		grid-template-columns: repeat(2, 1fr);
	}
	/* end of general styles */
}
/* end of min-width 768px */


/* Min-width 992px */
@media (min-width: 992px) {
	/* General Styles */
	.h1-large {
		font-size: 3.25rem;
		line-height: 3.75rem;
		letter-spacing: -1.6px;
	}

	.grid {
		grid-template-columns: repeat(4, 1fr);
	}
	/* end of general styles */


	/* Covers */
	.cards-1 h3 { /* all lines are for truncating the text to 1 line */
		-webkit-box-orient: vertical;
		display: -webkit-box;
		-webkit-line-clamp: 1;
		line-clamp: 1;
		overflow: hidden;
	}
	
	.cards-1 p { /* all lines are for truncating the text to 2 lines */
		-webkit-box-orient: vertical;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		overflow: hidden;
	}
	/* end of covers */
}
/* end of min-width 992px */


/* Min-width 1200px */
@media (min-width: 1200px) {
	/* General Styles */
	.container-prim {
		max-width: 1660px;
		padding-right: 35px;
		padding-left: 35px;
	}
	/* end of general styles */


	/* Wrapper */
	.wrapper {
		display: flex;
	}
	/* end of wrapper */


	/* Header */
	.header {
		display: none;
	}
	/* end of header */


	/* Sidebar */
	.sidebar {
		position: fixed;
		display: block;
	}

	.sidebar .logo-image {
		display: block;
		margin-bottom: 8px;
	}
	
	.sidebar p {
		margin-bottom: 25px;
	}
	/* end of sidebar */

	
	/* Main */
	.main {
		width: 100%;
		margin-left: 215px;
	}
	/* end of main */
}
/* end of min-width 1200px */


/* Min-width 1600px */
@media (min-width: 1600px) {
	/* Covers */
	.cards-1 .grid {
		gap: 26px;
		row-gap: 36px;
	}
	/* end of covers */
}
/* end of min-width 1600px */