// Info Boxes

// # Contents
// 1. Info Box Container
// 2. Info Box Base
// 2.1) Icon
// 2.2) Title
// 2.3) Description
// 3. Info Box Types
// 3.1) Icon Top
// 4. Responsive

// # Variables
@include set-default(
	(
		info-box: (
			icon: (
				size: 3.7rem,
				space: 1.5rem
			),

			title: (
				size: 1.4rem,
				weight: 700,
				transform: uppercase,
				margin-bottom: 0
			)
		)
	)
);

// 1. Info Box Container
// 2. Info Box Base
.info-box {
	display: flex;
	align-items: center;
	width: 100%;
	color: $primary-color-dark;

	// 2.1) Icon
	i {
		color: inherit;
		@include css( font-size, info-box, icon, size );
		text-align: center;

		&:before {
			width: auto;
			margin: 0 .1em;
		}
	}

	// 2.2) Title
	h4 {
		color: inherit;
		@include css( margin-bottom, info-box, title, margin-bottom );
		@include css( font-size, info-box, title, size);
		@include css( font-weight, info-box, title, weight);
		@include css( text-transform, info-box, title, transform);
		line-height: 1.1;
	}

	// 2.3) Description
	p {
		margin-bottom: 0;
		font-size: 1.3rem;
		line-height: 1.6;
	}

	.porto-info {
		font-size: 1.6rem;
		display: flex;
		align-items: center;
		color: #2f6473;
	}
}

.info-box.with-icon p:before{
	float: left;
	content: '\f05a';
	color: #5bc0de;
	font-family: "Font Awesome 5 Free";
	font-size: 2rem;
	font-weight: 900;
	line-height: 1;
	margin-right: 5px;
    margin-top: 3px;
}

.info-box-icon-left {
	justify-content: center;

	i {
		line-height: 0;
		@include css( margin-right, info-box, icon, space );
	}
}
.info-box-icon-right {
	justify-content: center;

	.info-box-content {
		text-align: right;
	}
	i {
		line-height: 0;
		@include css( margin-left, info-box, icon, space );
	}
}
.info-box-icon-top {
	flex-direction: column;
	align-items: unset;
	justify-content: center;
	.info-box-content {
		text-align: center;
	}
	i {
		line-height: 0;
		@include css( margin-bottom, info-box, icon, space );
	}
}
.info-box-img {
	flex-direction: column;
	.info-desc {
		font-size: 1.6rem;
		color: #777;
	}
}