/* Govlab – Studie (odkazy) – karty 1:1 podle Avada Post Cards na govlab.cz */

.gl-studie-wrap {
	width: 100%;
}

.gl-studie {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	list-style: none;
	margin: -20px -26px 0;
	padding: 0;
}

.gl-studie__item {
	display: flex;
	box-sizing: border-box;
	width: 33.3333%;
	padding: 20px 26px;
	margin: 0;
}

.gl-studie--cols-1 .gl-studie__item { width: 100%; }
.gl-studie--cols-2 .gl-studie__item { width: 50%; }
.gl-studie--cols-3 .gl-studie__item { width: 33.3333%; }
.gl-studie--cols-4 .gl-studie__item { width: 25%; }

.gl-studie__empty {
	width: 100%;
	padding: 20px 26px;
	list-style: none;
}

.gl-studie__card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 1px;
	background-color: #286340;
	border: 1px solid #f0f1dc;
	border-radius: 50px;
	overflow: hidden;
	color: #f0f1dc;
}

/* Obrázek */
.gl-studie__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	text-decoration: none;
	border: 0;
}

.gl-studie__media .gl-studie__img,
.gl-studie__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	border-radius: 0;
	margin: 0;
}

.gl-studie__img--empty {
	background: #1f4d32;
}

/* Štítek kategorie – vlevo dole na fotce */
.gl-studie__tag {
	position: absolute;
	left: 20px;
	bottom: 20px;
	display: inline-block;
	padding: 8px 14px;
	background-color: #f0f1dc;
	border: 1px solid #9f9b40;
	border-radius: 8px;
	color: #9f9b40;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.72;
	letter-spacing: 0.015em;
	max-width: calc(100% - 40px);
	text-decoration: none;
}

/* Text */
.gl-studie__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 155px;
	padding: 20px 35px 40px;
	box-sizing: border-box;
}

.fusion-body .gl-studie__title,
.gl-studie__title {
	margin: 10px 0 15px;
	padding: 0;
	color: #f0f1dc !important;
	font-size: 23px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.015em;
	text-align: left;
}

.fusion-body .gl-studie__title a,
.gl-studie__title a,
.gl-studie__title a:hover,
.gl-studie__title a:focus {
	color: #f0f1dc !important;
	text-decoration: none;
	border: 0;
	box-shadow: none;
}

.fusion-body .gl-studie__text,
.gl-studie__text {
	margin: 0 0 40px;
	color: #f0f1dc !important;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.72;
	letter-spacing: 0.015em;
}

.gl-studie__text p {
	margin: 0 0 1em;
}

.gl-studie__text p:last-child {
	margin-bottom: 0;
}

/* Tlačítko „Čtěte více“ */
.fusion-body .gl-studie__btn,
.gl-studie__btn {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
	border-radius: 7px;
	color: #f0f1dc !important;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.015em;
	text-decoration: none;
	transition: color 0.2s ease;
}

.fusion-body .gl-studie__btn:hover,
.gl-studie__btn:hover,
.gl-studie__btn:focus {
	color: #ffffff !important;
	text-decoration: none;
}

.gl-studie__btn-text {
	position: relative;
	display: block;
	white-space: nowrap;
}

.gl-studie__btn-text::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 0;
	border-bottom: 1px solid currentColor;
}

.gl-studie__btn-icon {
	width: 0.85em;
	height: 0.85em;
	margin-left: 0.7em;
	fill: currentColor;
	flex: 0 0 auto;
	transition: transform 0.2s ease;
}

.gl-studie__btn:hover .gl-studie__btn-icon {
	transform: translateX(3px);
}

/* Tlačítko „Zobrazit další“ – stejný styl jako červená tlačítka na webu */
.gl-studie-more {
	margin-top: 40px;
}

.gl-studie-more__btn {
	display: inline-block;
	padding: 18px 35px;
	background-color: #dc4d33;
	border: 0;
	border-radius: 7px;
	color: #ffffff;
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.015em;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.gl-studie-more__btn:hover,
.gl-studie-more__btn:focus {
	background-color: #c4402a;
	color: #ffffff;
}

.gl-studie-more__btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* Responsivita */
@media (max-width: 1024px) {
	.gl-studie--cols-3 .gl-studie__item,
	.gl-studie--cols-4 .gl-studie__item {
		width: 50%;
	}
}

@media (max-width: 640px) {
	.gl-studie {
		margin: -15px 0 0;
	}
	.gl-studie__item,
	.gl-studie--cols-2 .gl-studie__item,
	.gl-studie--cols-3 .gl-studie__item,
	.gl-studie--cols-4 .gl-studie__item {
		width: 100%;
		padding: 15px 0;
	}
	.gl-studie__body {
		padding: 20px 28px 35px;
	}
	.gl-studie__card {
		border-radius: 40px;
	}
}
