/*main css file for homepage */

/*
 The design should be mobile first to render page faster.
 This is to make small devices' design first before scaling up to bigger screens
*/

/*General element styles*/


.homepage-container {
	position: relative;
	display: block;
	width: 100%;
	max-width: 1250px;
	height: auto;
	padding: 0;
	margin: 0 auto;
	background: transparent;
}

.homepage-nav-n-slider-container {
	position: relative;
	display: block;
	width: 100%;
	height: 300px;
	padding: 0;
	margin: 10px 0;
	background:  #FFFFFF;
}

.homepage-left-nav-container,
.homepage-right-nav-container {
	position: absolute;
	top: 0;
	left: 0;
	display: none;
	width: 220px;
	height: 100%;
	padding: 0;
	margin: 0;
	border-radius: 10px 0 0 10px;
	overflow: hidden;
}

.homepage-left-nav-container > h2 {
	display: block;
	height: 45px;
	padding-left: 15px;
	margin-top: 20px;
	margin-left: 10px;
	color: #36454F;
	font-size: 1.2em;
	font-weight: bold;
}

.homepage-left-nav-item-content {
	position: relative;
	display: flex;
	align-items: center;
	flex-flow: column nowrap;
	width: 100%;
	height: calc(100% - 60px);

	list-style: none;
	padding: 5px;
	margin: 0;
}

.homepage-left-nav-item-content > li {
	display: block;
	width: 100%;
	height: auto;
	padding: 0;
	margin: 0;
	font-size: 1.05em;
	border-bottom: 2px solid #DCDCDC;
}

.homepage-left-nav-item-content > li:first-child {
	border-top: 2px solid #DCDCDC;
}

.homepage-left-nav-item-content > li:last-child {
	border-bottom: none;
}

.homepage-left-nav-item-content > li > a {
	display: block;
	width: 100%;
	height: auto;
	padding: 10px 5px;
	margin: 0;
}

.homepage-left-nav-item-content > li > a > img {
	display: inline-block;
	width: 30px;
	height: auto;
}

.homepage-left-nav-item-content > li > a > i {
	padding: 10px 7px;
	font-size: 1.1em;
}

.homepage-right-nav-container {
	left: auto;
	right: 0;
	border-radius: 0 10px 10px 0;
}

.homepage-right-nav-title {
	display: block;
	width: auto;
	height: 30px;
	padding: 0 5px;
	margin: 10px 5px;
	text-align: center;
	font-size: 1.3em;
	color: white;
	background: #36454F;
	border: 1px solid #FFA500;
	border-radius: 5px; 
}

.homepage-right-nav-content {
	display: flex;
	align-items: center;
	flex-flow: column nowrap;
	width: 100%;
	height: calc(100% - 60px);
	padding: 5px;
	margin: 10px 0;
}

.homepage-right-nav-item {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 5px;
	margin: 0;
	border-bottom: 1px solid #DCDCDC;
}

.homepage-right-nav-item > h3 {
	display: block;
	padding: 10px 5px;
	margin: 0;
	font-size: 1.4em;
	z-index: 5;
}

.homepage-right-nav-item > p {
	display: inline-block;
	height: 25px;
	padding: 2px 7px;
	color: snow;
	background: #FFA500;
	border-radius: 20px;
	z-index: 5;
}

.homepage-right-nav-item > img {
	position: absolute;
	right: 5px;
	bottom: 5px;
	width: 60px;
	height: 90px;
	z-index: 0;
	border-radius: 3px;
}


.homepage-slider-container {
	position: absolute;
	top: 0;
	left: 5px;
	display: block;
	width: calc(100% - 10px);
	height: auto;
	white-space: nowrap;
	overflow: hidden;
}

.homepage-slider-container a {
	display: block;
	margin: auto;
}

.homepage-slider-content {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
}

.homepage-slider-item {
	float: left;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	text-align: center;

	-webkit-transition: transform 0.3s; /* Safari */
  transition: transform 0.3s;
}

.homepage-slider-item > a {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
}

.homepage-slider-item-loading {
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-flow: row nowrap;
	width: 100%;
	height: 100%;
	font-size: 2em;
}

.homepage-slider-item > a > img {
	display: inline-block;
	width: 100%;
	height: 100%;
	margin: 5px auto;
	visibility: hidden;
}

.homepage-slider-dot-content {
	position: absolute;
	bottom: 5px;
	display: block;
	width: 100%;
	text-align: center;
	z-index: 2;
}

.homepage-slider-dot-content > span {
	display: inline-block;
	width: 20px;
	height: 20px;
	padding: 0;
	margin: 5px;
	background: #36454F;
	border-radius: 50%;
	opacity: 0.8;
}

.homepage-slider-dot-content > span.active,
.homepage-slider-dot-content > span:hover {
	background: #FFA500;
	opacity: 1;
}

.homepage-slider-arrow-prev,
.homepage-slider-arrow-next {
	position: absolute;
	top: calc(50% - 20px);
	left: 0;
	display: block;
	padding: 3px 4px;
	margin: 0;
	background: #36454F;
	font-size: 2em;
	font-weight: bold;
	color: white;
	opacity: 0.7;
	cursor: pointer;
	border-radius: 0 5px 5px 0;
	z-index: 2;
}

.homepage-slider-arrow-next {
	left: auto;
	right: 0;
	border-radius: 5px 0 0 5px;
}

.homepage-slider-arrow-prev:hover,
.homepage-slider-arrow-next:hover {
	background: #FFA500;
	color: #FFFFFF
;
	opacity: 1;
}

.homepage-cat-content {
	min-height: 350px;
	padding: 10px;
	margin: 0;
	overflow: hidden;
}

.homepage-cat-content div.col-lg-3 {
	padding: 5px 10px;
}

.homepage-cat-content div.col-lg-3 > a {
	display: none;
}

.homepage-cat-content-title {
	position: relative;
	width: 100%;
	height: 50px;
	margin: 0;
	color: white;
	background-image: linear-gradient(to right, #FFA500, #f9e3ba);
	border-radius: 10px 10px 0 0;
	overflow: hidden;
}

.homepage-cat-content-title > h1 {
	position: absolute;
	left: 0;
	width: 100%;
	padding: 15px 10px;
	font-weight: bold;
	font-size: 1.02em;
}

.homepage-cat-content-title > a {
	position: absolute;
	right: 0;
	padding: 15px 10px;
	font-weight: bold;
}

.homepage-cat-content-title > a:hover {
	color: #2d3e50;
}

.homepage-cat-content .col-lg-9 {
	margin: 0 8px;
}

.homepage-cat-content div.col { 
	position: relative;
	height: 150px;
	margin: 2px;
	overflow: hidden;
	background-color: white;
}

.homepage-cat-content .col > a > img {
	display: block;
	width: 100%;
	height: auto;
	margin: auto;
	transition: transform 0.4s;
}

.homepage-cat-content .col > a:hover > img {
	transform: scale(1.15, 1.15);
}

.homepage-cat-content .col > a > span {
	position: absolute;
	bottom: 0px;
	left: 0;
	display: block;
	height: 40px;
	padding: 5px 10px;
	line-height: 30px;
	font-weight: bold;
	background-color: white;
	overflow: hidden;
}

.homepage-cat-content .col:nth-child(3),
.homepage-cat-content .col:nth-child(4) {
	display: none;
}



/* Small devices (portrait phones, 481px and up) */
@media only screen and (min-width: 480px) {
	.homepage-nav-n-slider-container {
		height: 400px;
	}

	.homepage-slider-item > a > img {
		height: 380px;
		margin: 10px auto;
	}

	.homepage-cat-content div.col {
		height: 200px;
	}
}

/* Small devices (portrait tablets and large phones, 601px and up) */
@media only screen and (min-width: 600px) {
	.homepage-nav-n-slider-container {
		height: 450px;
	}
	
	.homepage-slider-item > a > img {
		height: 430px;
		margin: 10px auto;
	}

	.homepage-cat-content .col:nth-child(3) {
		display: block;
	}

	.homepage-cat-content div.col {
		margin: 5px;
	}
	
} 

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
	.homepage-nav-n-slider-container {
		border-radius: 10px;
	}

	.homepage-left-nav-container {
		display: block;
	}

	.homepage-slider-container {
		left: 230px;
		width: calc(100% - 240px);
	}

	.homepage-cat-content div.col {
		height: 200px;
	}

	.homepage-cat-content .col:nth-child(4) {
		display: block;
	}

}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
	.homepage-nav-n-slider-container {
		height: 500px;
		border-radius: 10px;
	}

	.homepage-slider-container {
		left: 280px;
		width: calc(100% - 300px);
	}

	.homepage-slider-item > a > img {
		height: 480px;
		margin: 10px auto;
	}

	.homepage-slider-dot-content,
	.homepage-slider-arrow-prev,
	.homepage-slider-arrow-next {
		opacity: 0;
		-webkit-transition: opacity 0.5s; /* Safari */
 		transition: opacity 0.5s;
	}

	.homepage-slider-container:hover > .homepage-slider-dot-content,
	.homepage-slider-container:hover > .homepage-slider-arrow-prev,
	.homepage-slider-container:hover > .homepage-slider-arrow-next {
		opacity: 0.8;
	}

	.homepage-cat-content {
		padding: 10px;
	}

	.homepage-cat-content div.col-lg-3 {
		padding: 5px;
		padding-left: 10px;
	}

	.homepage-cat-content div.col-lg-3 > a {
		position: relative;
		display: block;
		width: 100%;
		height: 100%;
		overflow: hidden;
		border-radius: 10px 0 0 10px;
		/*background-image: linear-gradient(#968863, #948A8B);*/
	}

	.homepage-cat-content div.col-lg-3 > a > img {
		position: absolute;
		bottom: 40px;
		left: calc(50% - 150px);
		display: block;
		width: auto;
		height: 300px;
	}

	.homepage-cat-content div.col-lg-3 > a > h1 {
		position: absolute;
		top: 0;
		padding: 20px;
		margin-top: 10px;
		line-height: 28px;
		font-size: 1.3em;
		font-weight: bold;
		color: white;
		text-transform: uppercase;
	}

	.homepage-cat-content div.col-lg-3 > a > span {
		position: absolute;
		bottom: 0;
		display: block;
		padding: 10px 20px;
		margin: 50px;
		margin-right: 20px;
		font-size: 1em;
		font-weight: bold;
		border-radius: 50px;
		color: #2a80b9;
		background-color: white;
	}

	.homepage-cat-content-title {
		display: none;
	}

	.homepage-cat-content .col-lg-9 {
		margin: 0;
	}

	.homepage-cat-content div.col {
		height: 200px;
	}
	
} 

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
	

	.homepage-right-nav-container {
		display: block;
	}
	
	.homepage-slider-container {
		left: 240px;
		width: calc(100% - 480px);
	}


}

/* Check for device orientation in protrait mode */
@media only screen and (orientation: portrait){
	
}

