/* BODY */
/* ---------------------------------------------------- */
html, body {
	height: 100%;
}

body {
	font-family: "Roboto", sans-serif;
	color: #555;
	background-color: #fff;
}

/* TYPOGRAPHY */
/* ---------------------------------------------------- */
a:link,
a:visited,
a:hover,
a:active {
	color: #0266c2;
	text-decoration: underline;
}

a:hover,
a:active,
a:focus {
	color: #0092ff;
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.4em;
	font-weight: bold;
	color: #333;
}

h1 {
	font-size: 1.55rem;
	margin: 0 0 1em 0;
}

h2 {
	font-size: 1.3rem;
	margin: 0 0 0.6em 0;
}

h3 {
	font-size: 1.1rem;
	margin: 0 0 0.6em 0;
}

h4 {
	font-size: 1rem;
	margin: 0 0 0.5em 0;
}

p {
	font-size: 1rem;
	line-height: 1.4rem;
}

ul {
	list-style-position: inside;
}

ul li {
	line-height: 1.6rem;
}

/* PAGE CONTAINER */
/* -------------------------------------------------------------- */
.page-container {
	box-sizing: border-box;
	width: 92%;
	margin: 40px auto 60px auto;
}

.page-container p {
	margin: 0 0 7px 0;
}

/* CONTAINER MEDIA QUERIES */
/* -------------------------------------------------------------- */
@media only screen and (min-width: 960px) {
	.page-container {
		width: 900px;
	}
}

/* HEADER */
/* -------------------------------------------------------------- */
header {
	display: flex;
	align-items: center;
	padding: 10px;
	background-color: #111;
  }

  .header-logo a {
	display: block;
	margin: 0 20px 0 0;
  }

  .header-logo img {
	display: block;
	width: auto;
	height: 17px;
  }
  
  .header-search {
	flex-grow: 1;
  }
  
  .header-nav {
	display: flex;
  }
  
  .header-nav ul {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
  }
  
  .header-nav li {
	padding: 0 15px;
	border-right: 1px solid #555;
  }

  .header-nav li:last-child {
	border: none;
  }
  
  .header-nav li a {
	color: #fff;
	text-decoration: none;
	font-size: 0.8em;
	text-transform: uppercase;
  }
  
  .header-nav a:hover {
	text-decoration: underline;
  }

/* HEADER MEDIA QUERIES */
/* -------------------------------------------------------------- */
@media only screen and (min-width: 960px) {
}

.header-nav-hamburger {
	box-sizing: border-box;
    width: 26px;
    height: 26px;
    margin: 0x;
	padding: 0;
    background-color: transparent;
    cursor: pointer;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/theme/images/icons/icon-hamburger-light.svg');
}

/* FOOTER */
/* -------------------------------------------------------------- */
footer {
	box-sizing: border-box;
	width: 100%;
	height: auto;
	margin: 0 auto 0 auto;
	padding: 20px 0 30px 0;
	border-top: none;
	text-align: center;
	background-color: #111;
}

.footer-links {
	list-style-type: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0 auto;
	padding: 0;
}

.footer-links li {
	flex-basis: 100%;
	margin: 0;
	padding: 0 0.8em;
	border-right: none;
	border-bottom: 1px solid #ccc;
}

.footer-links li:last-child {
	border-bottom: none;
}

.footer-links li a:link,
.footer-links li a:visited,
.footer-links li a:hover,
.footer-links li a:active,
.footer-links li a:hover,
.footer-links li a:active {
	padding: 0;
	margin: 0;
	color: #dadada;
	font-size: 0.85rem;
	line-height: 1rem;
	text-decoration: none;
}

.footer-links li a:hover,
.footer-links li a:active,
.footer-links li a:focus {
	color: #ccc;
}

.footer-legal-copy {
	margin: 20px 0 0 0;
	color: #555;
	font-size: 0.75rem;
}

/* FOOTER MEDIA QUERIES */
/* -------------------------------------------------------------- */
@media only screen and (min-width: 600px) {
	.footer-links {
		flex-wrap: nowrap;
		justify-content: center;
		margin: 0 auto;
	}

	.footer-links li {
		flex-basis: auto;
		margin: 0;
		padding: 0 0.8em;
		border-right: 1px solid #ccc;
		border-bottom: none;
	}

	.footer-links li:last-child {
		border-right: none;
	}
}

/* FOOTER DISCLAIMER */
/* -------------------------------------------------------------- */
.footer-disclaimer {
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 20px 0;
	font-size: 0.75rem;
	line-height: 1.2rem;
	text-align: left;
}

/* STANDARD AND STRUCTURAL ELEMENTS */
/* -------------------------------------------------------------- */
hr {
	display: block;
	margin: 20px 0;
	border: 0;
	height: 0;
	border-top: 1px solid #dadada;
}

/* PROGRAM PAGE */
/* -------------------------------------------------------------- */
.program-content {
	box-sizing: border-box;
	width: 92%;
	max-width: 1024px;
	margin: 30px auto 60px auto;
}

/* COURSE PAGE */
/* -------------------------------------------------------------- */
.course-main {
	display: flex;
	flex-direction: column; /* Default to column layout for small screens */
	height: 100vh;
}

.course-content {
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 0;
	padding: 0;
	overflow-y: auto;
}

.course-content-included {
	margin: 20px 0 0 0;
}

.course-notes {
	padding: 30px;
}

.course-sidebar {
	display: none;
	flex-basis: 100%;
	padding: 15px 25px 50px 25px;
	overflow-y: auto;
	background-color: #f2f2f2;
	border-left: 1px solid #dadada;
}

.course-sidebar-items {
	list-style: none;
	margin: 0;
}

.course-sidebar-items-module-heading {
	margin: 20px 0 5px 0;
	line-height: 1.5rem;
}

.course-sidebar-items-module-heading:first-child {
	margin: 0 0 5px 0;
}

.course-sidebar-items-link {
	border-top: 1px solid #dadada;
}

.course-sidebar-items-module-heading + .course-sidebar-items-link {
	border: none;
}

.course-sidebar-items-link a {
	line-height: 2rem;
	text-decoration: none;
}

/* Course sidebar controls */
/* -------------------------------------------------------------- */
.course-sidebar-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.course-sidebar-button {
	box-sizing: border-box;
    width: 28px;
    height: 28px;
    margin: 0 0 0 8px;
	padding: 0;
    background-color: transparent;
    cursor: pointer;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}

.course-sidebar-button:hover,
.course-sidebar-button:focus {
    outline: none;
	background-color: #02cfc0;
}

.course-sidebar-button-close {
    background-image: url('/theme/images/icons/icon-x-dark.svg');
}

.course-sidebar-button-close:hover,
.course-sidebar-button-close:focus {
    background-image: url('/theme/images/icons/icon-x-light.svg');
}

.course-sidebar-trigger {
	position: absolute;
	display: block;
	top: 50px;
	right: 0;
    width: 40px;
    height: 40px;
	padding: 0;
	border-radius: 5px 0 0 5px;
	background-color: #dadada;
    background-size: 55%;
    background-repeat: no-repeat;
    background-position: center;
	background-image: url('/theme/images/icons/icon-hamburger-dark.svg');
	cursor: pointer;
}

/* COURSE PAGE MEDIA QUERIES */
/* -------------------------------------------------------------- */
@media only screen and (min-width: 960px) {
	.course-main {
		flex-direction: row;
	}

	.course-content {
		flex-basis: auto;
	}

	.course-sidebar {
		flex-basis: 400px;
		flex-grow: 0;
		flex-shrink: 0;
		display: block;
	}

	.course-sidebar-trigger {
		display: none;
	}
}

/* When .show-course-sidebar is added */
.course-main.hide-course-sidebar .course-sidebar {
	display: none;
}

.course-main.show-course-sidebar .course-sidebar {
	display: block;
}

.course-main.hide-course-sidebar .course-sidebar-trigger {
	display: block;
}

.course-main.show-course-sidebar .course-sidebar-trigger {
	display: none;
}

/* MY COURSES PAGE */
/* -------------------------------------------------------------- */
.user-programs {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.user-program-unit {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.user-program-image {
    width: 100px;
    height: auto;
    margin: 0;
}

.user-program-info {
    flex: 1;
    text-decoration: none;
    color: inherit;
	margin: 0 0 0 20px;
}

.user-program-info h2 {
    margin: 0;
    font-size: 1.3em;
}

.user-program-info p {
    margin: 2px 0 0 0;
    font-size: 1em;
}

.user-program-unit a {
    text-decoration: none;
    color: inherit;
}