/* 
Theme Name:    Momstribe
Description:   Momstribe is a custom child theme based on Astra
Author:      Elena Tutescu
Template:    astra
Version:     1.0.0
Text Domain:   momstribe
*/

.main-header-menu > .menu-item > .menu-link {
	text-transform: uppercase;
}

.hero-section {
	background-image: url('../momstribe/images/hero-img.webp');
  	background-repeat: no-repeat;
  	background-size: cover;	
  	/*padding: 300px 0 250px;*/
  	width: 100%;
  	/*height: 100%;
  	max-height: 600px;*/
  	position: relative;
  	background-attachment: fixed;
  	background-position: center center;
}

.hero-content {
	background-color: rgba(0, 0, 0, 0.3);
	width: 100%;
	/*float: left;*/
	padding: 20% 10%;
}

.hero-content-container {
	width: 50%;
}

.hero-content h1 {
  color: #fff;
  font-weight: 500;
}

.hero-content p {
  color: #fff;
  font-size: 21px;
  line-height: 1.5;
  margin-bottom: 0;
  padding-top: 25px;
}

.overlay {
	background-color: rgba(0, 0, 0, 0.6);
  	/*background-attachment: fixed;
  	background-position: center center;*/
  	/*background-repeat: no-repeat;
  	background-size: cover;*/
  	/*position: relative;
  	z-index: 1;*/
}

#random_articles {
	max-width: 100%;
	background-color: #efefef;
}

.random-container {
	width: 80%;
	margin: 0 auto;
	padding: 70px 0 50px;
}

.random-container:after {
  	content: "";
  	display: table;
  	clear: both;
}

.random-article {
	width: 33.3333%;
	float: left;
	padding: 15px;
}

.text-wrap {
	text-align: center;
	padding-top: 20px;
}

.rand-link {
	text-align: center;
	display: block;
	padding-bottom: 70px;
}

#about-us {
	width: 80%;
	max-width: 1200px;
	margin: 70px auto;
	display: grid;
	grid-template-columns: 50% 1fr;
	grid-template-rows: auto;
}

.about-us-img {

}

.about-us-text {
	align-self: center;
	padding: 0 8%;
}

.about-us-text h2 {
	padding-bottom: 15px;
}

#latest-articles {
	width: 80%;
	max-width: 1200px;
	margin: 70px auto;
}

.latest-container {
	display: grid;
	grid-template-columns: auto auto auto;
	grid-template-rows: auto;
	margin-right: -15px;
	margin-left: -15px;
}

.latest-article {
	padding: 15px;	
}

.latest-img-wrap {
	max-width: 100%;
}

.latest-text-wrap h3 {
	padding: 20px 0;
}

.footer-widget-area[data-section="section-footer-menu"] .astra-footer-horizontal-menu {
  justify-content: left;
}

.ast-footer-copyright {
  text-align: right;
}

/* === RESPONSIVE DESIGN === */
@media only screen and (max-width: 600px) {
	
	.hero-content-container {
	  width: 100%;
	}	

	.random-article {
	  width: 100%;
	}

	#about-us {
	  grid-template-columns: 100%;
	}

	.about-us-text h2 {
		padding-top: 15px;
	}

	.about-us-text {
	  text-align: center;
	}

	.latest-container {
	  grid-template-columns: auto;
	}

	.latest-article {
	  position: relative;
	}

	.latest-text-wrap {
		position: absolute;
		top: 29%;
		text-align: center;
		background: rgba(255,255,255,0.7);
		width: calc(100% - 30px);
		left: 16px;
		padding: 15px;
	}

	/*.latest-text-wrap a:hover, a:focus {
		color: #fff;
	}*/

	.latest-text-wrap .post-excerpt {
		display: none;
	}

}