/**********************************
 *                                *
 *    	CARDS FOR SERVICES        *
 *                                *
 **********************************/

.block-cards {
	display: flex;
	flex-direction: row;
	align-items: start;
	justify-content: space-between;
	width: max-content;
	gap: 40px;
	padding-top: 30px;
}

.empty-card {
	width: 460px;
	height: 500px;
}

.single-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	width: 460px;
	min-height: 500px;
	box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
	border-radius: 10px;
}

.card-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #fff;
	background-color: #b59175;
	border-radius: 0 0 10px 10px;
}

.card-button a {
	border-radius: 0 0 10px 10px;
    color: #fff;
}

.card-button:hover a {
	border-radius: 0 0 10px 10px;
    background-color: #444;
}

.card-area-item img {
	width: 100%;
	height: auto;
	display: block;
}


.card-area:nth-child(1) .card-area-item:nth-child(1) { /* Layer with background preview */
	position: relative;
	width: 100%;
	height: auto;
}

.single-card .card-area:nth-child(1) { /* Top of the map with preview and text */
    height: 100%;
	padding: 30px;
}

.card-area-item .card-preview-shadow { /* Shadow over preview */
	position: absolute;
	bottom: 0;
	left: 0;
	height: 60%;
	width: 100%;
	z-index: 10;
	background: linear-gradient(
        to top,
		rgba(0, 0, 0, 0.6) 50%,
        transparent 100%
    );
}

.card-preview-title { /* Header block above preview */
	position: absolute;
	bottom: 10px;
	left: 10px;
	z-index: 11;
	width: 70%;
}

.card-preview-title h3 { /* Title above preview */
	font-family: 'Manrope';
	font-weight: 800;
	font-size: 26px;
	color: #fff;
	text-transform: uppercase;
	cursor: default;
	margin: auto 0;
}

.card-preview-readmore a { /* Button READ MORE */
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;	
}

.card-area-item:nth-child(2) p{
	font-family: 'Manrope';
	font-weight: 200;
	font-size: 15px;
	line-height: 25px;
	letter-spacing: 0.02em;
}

.card-area-item .card-preview-readmore { /* READ MORE button block above preview */
	position: absolute;
	bottom: 10px;
	right: 5px;
	width: 25%;
	color: #fff;
	z-index: 11;
	text-wrap: nowrap;
	transition: background-color 0.3s ease;
}

.card-area-item .card-preview-item:nth-child(3):hover a {
	color: #ffb982;	
}

.single-card .card-area:nth-child(1) .card-area-item:nth-child(2) { /* Card text */
	font-family: 'Manrope';
	font-weight: 400;
	font-size: 16px;
	color: #444;
	padding: 10px 0;
}

.single-card .card-area:nth-child(2) { /* Button alignment block */
	display: flex;
	flex-direction: row;
    justify-content: center;
    align-items: center;
	width: 100%;
}

.single-card .card-area:nth-child(2) .card-area-item { /* Buttons */
    height: 100%;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.single-card .card-area:nth-child(2) .card-area-item:nth-child(1),
.single-card .card-area:nth-child(2) .card-area-item:nth-child(1) a { /* Left button text color */
	color: #fff;
	background-color: #b59175;
	border-radius: 0 0 0 10px; /* Rounding the left button */
}

.single-card .card-area:nth-child(2) .card-area-item:nth-child(1):hover a{ /* Left button text color (active) */
	background-color: #444;
}

.single-card .card-area:nth-child(2) .card-area-item:nth-child(2),
.single-card .card-area:nth-child(2) .card-area-item:nth-child(2) a { /* Right click text color */
	color: #444;
    background-color: #dfd5cd;
	border-radius: 0 0 10px 0; /* Rounding the right button */
}

.single-card .card-area:nth-child(2) .card-area-item:nth-child(2):hover a { /* Right click text color (active) */
    background-color: #f8f4f0;
}

.button-card {
    font-family: 'Manrope';
    font-weight: 600;
    font-size: 16px;
    font-style: normal;
    cursor: pointer;
    text-decoration: none;
    display: block; 
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 60px;
	text-transform: uppercase;
    transition: background-color 0.3s ease;
}


@media (max-width: 640px) {
	
	.block-center {
		padding: 0;
	}
	
	.block-cards {
		flex-direction: column;
		justify-content: center;
		width: 100%;
	}
	
	.single-card {
		width: 100%;
		min-height: 500px;
		border-radius: 0;
	}
	
	.empty-card { 
		width: 0;
		height: 0;
	}
	
	.card-button {
		border-radius: 0;
	}
	
	.card-area-item .card-preview-readmore { /* READ MORE button block above preview */
		bottom: 10px;
		right: 20px;
	}
	
	.single-card .card-area:nth-child(2) .card-area-item:nth-child(1),
	.single-card .card-area:nth-child(2) .card-area-item:nth-child(1) a { /* Left button text color */
		border-radius: 0; /* Rounding the left button */
	}

	.single-card .card-area:nth-child(2) .card-area-item:nth-child(2),
	.single-card .card-area:nth-child(2) .card-area-item:nth-child(2) a { /* Right click text color */
		border-radius: 0; /* Rounding the right button */
	}
}

@media (max-width: 400px) {

	.card-preview-title { /* Header block above preview */
		bottom: 10px;
		left: 10px;
		z-index: 15;
	}
	
	.card-area-item .card-preview-readmore { /* READ MORE button block above preview */
		bottom: 10px;
		right: 25px;
	}
	
	.single-card .card-area:nth-child(2) { /* Button alignment block */
		display: flex;
		flex-direction: column;
		flex-wrap: wrap;
	}
	
	.single-card .card-area:nth-child(2) .card-area-item { /* Buttons */
		width: 100%;
	}
}

