/*
Theme Name: Blue Source Initiative
Theme URI: https://bluesourceinitiative.com/;
Author: Adrian Deaconu
Author URI: https://adriandeaconu.com/
Description: Theme for Programming Coaching
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/glp-2.0.html
Tags: coaching, mobile first, responsive, programming
Text Domain: bluesource
*/

html {
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

/* HTML5 display-role reset for older browsers */
address, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, nav, menu, nav, section, summary {
	display: block;
}

body {
  margin: 0;
  background: url(img/subtle_freckles.png);
}

*, *:before, *:after {
  box-sizing: inherit;
}

h1, h2, h3, h4, h5 {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
}

h1 {
  font-size: 42px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 28px;
}

h4 {
  font-size: 24px;
}

p {
  line-height: 28px;
}

.clear,
.clear::after {
  content:'';
  clear: both;
  display: block;
}

/* ===== Image alignment ===== */

.alignleft {
    display: inline;
    float: left;
    margin-right: 1.2em;
    margin-bottom: 1em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.2em;
    margin-bottom: 1em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

img {
	border: none;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
	-ms-interpolation-mode: bicubic;
}

span.sr-text {
  display: none;
}

/* ===== Header Styles ===== */

header.site-header {
	background: #fff;
}

.top-header {
	height: auto;
	overflow: hidden;
	padding: 7px 0;
}

div.site-logo {
	text-align: center;
}

div.login-widget a:link, div.login-widget a:visited {
	font-size: 15px;
	color: #000;
	text-decoration: none;
}

div.login-widget {
	text-align: center;
}

div.login-widget a:first-child {
	border-right: 1px solid #000;
	padding-right: 10px;
}

div.login-widget a:last-child {
	padding: 5px;
	margin-left: 5px;
	background: #27b1c2;
	color: #fff;
}

div.login-widget a:last-child:hover {
	background: #ff901f;
}

@media only screen and (min-width: 768px) {
  div.site-logo {
    float: left;
    margin-top: 7px;
  }

  div.login-widget {
	float: right;
}
}

.header-image {
	text-align: center;
	background: url(img/crossed_stripes.png);
	padding: 24px 0;
}

/* ===== Main Menu Styles =====*/

nav.site-nav {
  display: none;
  background: #1989a6;
  
}

@media only screen and (min-width: 768px) {
  nav.site-nav {
    display: block;
  }
}

nav.site-nav ul {
  list-style: none;
  padding: 0;
  display: table;
  margin: 0 auto;
}

@media only screen and (min-width: 768px) {
  nav.site-nav ul li {
    display: inline-block;
    
  }


}

nav.site-nav ul li a:link, nav.site-nav ul li a:visited {
  text-align: center;
  display: block;
  text-decoration: none;
  text-transform: uppercase;
  color: white;
  font-family: 'Ubuntu', sans-serif;
  padding: 15px 10px;

}

nav.site-nav ul li a:hover, nav.site-nav ul li a:active {
	text-decoration: underline;
}

/** Responsive Menu Button **/

@media only screen and (max-width: 767px) {
  .mobile-menu a {
    height: 40px;
    line-height: 40px;
    text-decoration: none;
    font-size: 24px;
    text-transform: uppercase;
    background-color: #ff901f;
    width: 100%;
    display: block;
    color: white;
    text-align: center;
    font-family: 'Ubuntu', sans-serif;
  }
}

@media only screen and (min-width: 768px) {
    .mobile-menu a {
      display: none;
    }
}

/* ===== Front-Page Styles===== */



.home-content h1 {
  text-align: center;
  margin-top: 0;
}

.home-main-content {
  background: #fff;
  padding: 20px;
}

.home-content .latest-posts h2 {
  text-align: center;
} 

.home-content .post-thumb {
  text-align: center;
}

.home-content .latest-posts h3 {
  text-align: center;
}

.home-content .latest-posts h3 a:link, .home-content .latest-posts h3 a:visited {
  text-decoration: none;
  color: #1989a6;
}

.home-content div.post {
  margin-bottom: 50px;
  background: #fff;
  padding: 35px 20px 20px 20px;
}


.home-content .more-link {
  background: #1989a6;
  text-decoration: none;
  color: #fff;
  display: block;
  width: 170px;
  text-align: center;
  padding: 10px 5px;
  margin: 25px auto 0 auto;
}

.home-content .more-link:hover {
  background: #ff901f;
}

@media only screen and (min-width: 768px) {

  .home-content div.post {
    width: 45%;
    min-height: 560px;
    float: left;
  }

  .home-content div.post.even {
    float: right;
  }


}

@media only screen and (max-width: 767px) {
  .home-content .container {
    padding: 0 20px;
  }

  .home-content p {
    text-align: center;
  }
}

/* ===== Custom Templates Styles===== */

.custom-template-main {
  background: #fff;
  padding: 20px;
}

.custom-template-main h1 {
  margin-top: 0;
  text-align: center;
}

.custom-template h2 {
  text-align: center;
}

.inner-content {
  background: #fff;
  padding: 20px;
}

.inner-content h1 {
  margin-top: 0;
  text-align: center;
}

.custom-template .post-thumb {
  text-align: center;
}

.custom-template .latest-posts h3 {
  text-align: center;
}

.custom-template .latest-posts h3 a:link, .home-content .latest-posts h3 a:visited {
  text-decoration: none;
  color: #1989a6;
}

.custom-template div.post {
  margin-bottom: 50px;
  background: #fff;
  padding: 35px 20px 20px 20px;
}


.custom-template .more-link {
  background: #1989a6;
  text-decoration: none;
  color: #fff;
  display: block;
  width: 170px;
  text-align: center;
  padding: 10px 5px;
  margin: 25px auto 0 auto;
}

.custom-template .more-link:hover {
  background: #ff901f;
}

@media only screen and (min-width: 768px) {
  .custom-template div.post {
    width: 45%;
    min-height: 560px;
    float: left;
  }

  .custom-template div.post.even {
    float: right;
  }
}

@media only screen and (max-width: 767px) {

}

/* ===== Default-page =====*/

.default-page-content {
  background: #fff;
  padding: 20px;
}

.default-page-content h1 {
  margin-top: 0;
  text-align: center;
}

.contact-form-message {
  width: 100%;
  max-width: 634px;
}

div.wpforms-container-full .wpforms-form button[type=submit] {
  background-color: #1989a6;
  color: #fff;
  border: 0;
}

/* ===== Single Post Template =====*/

aside#secondary {
  background: #1989a6;
  padding: 20px;
  color: #fff;
}

aside#secondary a:link, aside#secondary a:visited {
  color: #fff;
  text-decoration: none;
}

aside#secondary p {
  line-height: 25px;
}

aside#secondary ul li {
  margin-top: 12px;
}

aside#secondary h3:first-child {
  margin-top: 0;
}

 aside#secondary {
    margin-bottom: 30px;
}

 .individual-post {
  background: #fff;
  padding: 20px;
 }

 .individual-post h1 {
    margin-top: 0;
   }

@media only screen and (max-width: 767px) {
  .main-content .container {
    padding: 0 15px;
  }

   .individual-post h1 {
    text-align: center;
   }

   aside#secondary h3 {
    text-align: center;
   }

}

@media only screen and (min-width: 768px) {
  .individual-post {
    width: 65%;
    float: left;
    margin-top: 40px;
  }

  aside#secondary {
    width: 30%;
    float: right;
    margin-top: 40px;
  }
}


/* ===== Index Styles =====*/

@media only screen and (min-width: 768px) {
  .main-post {
    width: 65%;
    float: left;
    margin-top: 40px;
  }
}

@media only screen and (max-width: 767px) {
  aside#secondary {
    margin-top: 30px;
  }

  .main-post h1 {
    text-align: center;
  }

  .main-post a.more-link {
    margin: 0 auto;
  }
}

.main-post {
  background: #fff;
  padding: 20px;
}

.main-post h1 {
    margin-top: 0;
}

.main-post a.more-link {
      background: #1989a6;
    text-decoration: none;
    color: #fff;
    display: block;
    width: 170px;
    text-align: center;
    padding: 10px 5px;
    margin-top: 25px;
}



/* ===== Site Footer Styles =====*/

.site-footer {
	background: #2c353a;
	color: #cccccc;
	padding-top: 20px;
}

.site-footer h3 {
	font-size: 18px;
	text-transform: uppercase;
	color: #fff;
	font-weight: normal;
	margin-bottom: 25px;
}

div.copyright a:link, div.copyright a:visited {
	color: #fff;
	text-decoration: none;
}

div.copyright {
	text-align: center;
}

.bottom-footer {
	background: #2f333b;
}


@media only screen and (min-width: 768px) {
	.footer-widget {
		width: 25%;
		float: left;
	}

	.footer-widgets {
		border-bottom: 1px solid #cccccc;
		height: auto;
		overflow: hidden;
		padding-bottom: 20px;
	}

	div.copyright {
		
		float: left;
	}

	div.footer-social-menu {
		float: right;
	}
}

@media only screen and (max-width: 767px) {
	.footer-widget {
		width: 100%;
		max-width: 300px;
		margin: 25px auto 25px auto;
		text-align: center;
		border-bottom: 1px solid #cccccc;
	}

	.site-footer {
		padding-bottom: 5px;
	}
}

/* Footer Social Menu */

nav.socials ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

nav.socials ul li {
  position: relative;
  display: inline-block;
}

nav.socials ul li a:before {
  font-family: 'FontAwesome';
  display: inline-block;
  vertical-align: top;
  padding: 0 5px;
  content: '\f08e';
  font-size: 30px;
  color: #27b1c2;
  -webkit-font-smoothing: antialiazed;
}

nav.socials li a[href*="facebook.com"]::before {
  content: '\f09a';
}

nav.socials li a[href*="twitter.com"]::before {
  content: '\f099';
}

nav.socials li a[href*="youtube.com"]::before {
  content: '\f16a';
}

@media only screen and (max-width:480px) {
	/*disable text sizing on orientation change*/

	html, body, div, section, article, aside, header, hgroup, footer, nav, h1, h2, h3, h4, h5, h6, p, blockquote, address, time, span, em, strong, img, ol, ul, li, figure, canvas, video, th, td, tr {
    -webkit-text-size-adjust:none;
	}
}