/* Define a few common properties for the entire container */
.res-container {
    font-family: Montserrat, sans-serif;
    font-style: normal;
    color: #000000;
}

/* Container div for the title, description and button */
.res-li-container {
    margin: 0px 10px;
}

.res-logo img {
    width: 85px;
    height: 85px;
    margin-bottom: 6px;
}

.res-title {
    font-weight: 500;
    margin-bottom: 5px;
    text-align: center;
}

ul.res-ul li:nth-child(odd) .res-title {
    font-size: 18px;
    line-height: 22px;
}

ul.res-ul li:nth-child(even) .res-title {
    font-size: 20px;
    line-height: 24px;
}

.res-description {
    font-size: 10px;
    line-height: 13px;
    font-weight: 300;
    margin: 0 10px 10px 10px;
    text-align: center;
}

.res-button {
    font-weight: 500 /* medium */;
    font-size: 12px;
    line-height: 30px;
    text-transform: uppercase;
    padding: initial;
    width: 160px;
    height: 30px;
    border: 1px solid #FDA100;
    border-radius: 10px;
    margin: 0 auto 30px;
}

.res-button a span {
    display: inline-block;	
	text-align: center;
	width: 100%;
}

ul.res-ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
	margin-bottom: 15px;
}

ul.res-ul:last-of-type {
	margin-bottom: 0;
}

ul.res-ul li {
    text-align: center;
    border-bottom: 1px dashed #CBCBCB;
    margin: auto;
    width: 320px;
}

ul.res-ul li:first-child {
    margin-bottom: 0px;
}

/* No horizontal line after the last item */
ul.res-ul:nth-child(2) li:last-child {
    border-bottom: none;
}

ul.res-ul li:nth-child(1) {
	margin-bottom: 20px;
}

ul.res-ul li a {
    text-decoration: none;
}

ul.res-ul li .res-title,
ul.res-ul li .res-title a,
ul.res-ul li .res-button,
ul.res-ul li .res-button a {
    color: #FDA100;
}

/* The "Conversor do AO" tile is blue */
ul.res-ul li.conversor-acordo .res-title,
ul.res-ul li.conversor-acordo .res-title a,
ul.res-ul li.conversor-acordo .res-button,
ul.res-ul li.conversor-acordo .res-button a {
    color: #049DE0;
    border-color: #049DE0;
}

@media (min-width: 992px) {
	/* Container div for the title, description and button */
	.res-li-container {
		display: inline-flex;
		flex-direction: column;
		/*
		 * The container position is set to "relative" to
		 * allow the button to be "glued" to the bottom edge.
		 */
		position: relative;
	}

	.res-logo img {
		width: 100px;
		height: 100px;
		margin-bottom: auto;
	}

	.res-title {
		font-weight: 500;
		margin-left: 10px;
	    text-align: left;
    }

    ul.res-ul li:nth-child(odd) .res-title,
	ul.res-ul li:nth-child(even) .res-title {
		font-size: 18px;    /* 26px */
		line-height: 22px;  /* 30px */
	}

	.res-description {
		margin: 0px 0px 10px 10px;
		font-size: 13px;    /* 14px */
		line-height: 16px;  /* 20px */
	    text-align: left;
	}

	.res-button {
		margin-bottom: 0px;
		position: absolute;
		left: 10px;
		bottom: 0;
	}

	ul.res-ul {
		flex-direction: row;
		justify-content: left;
		padding-bottom: 30px;
		border-bottom: 1px dashed #CBCBCB;
		margin-bottom: 30px;
	}

	ul.res-ul:last-of-type {
		border-bottom: none;
		margin-bottom: 0;
	}

	ul.res-ul li {
		flex-basis: 50%;
		display: inline-flex;
		text-align: left;
		border-bottom: none;
        width: 50%;
		min-height: 230px;
	}

	ul.res-ul li:nth-child(1) {
		margin-bottom: auto;
	}

	/* Push the content down and away from the horizontal line */
	ul.res-ul li:nth-child(2) {
		padding-top: 0;
		padding-left: 25px;
	}

	ul.res-ul li:nth-child(odd) {
		border-right: 1px dashed #CBCBCB;
	}
}

@media (min-width: 1152px) {
	.res-logo img {
		width: 110px;
		height: 110px;
	}

    ul.res-ul li:nth-child(odd) .res-title,
	ul.res-ul li:nth-child(even) .res-title {
		font-size: 25px;
		line-height: 30px;
	}

	.res-description {
		font-size: 14px;
		line-height: 20px;
	}

}

@media (min-width: 1200px) {
	.res-logo img {
		width: 130px;
		height: 130px;
	}
    ul.res-ul li:nth-child(odd) .res-title,
	ul.res-ul li:nth-child(even) .res-title {
		font-size: 26px;
		line-height: 30px;
	}
}

@media (min-width: 1800px) {

}
