/* Estudia theme, blog articles and author pages only: byline, author box and page, teasers between paragraphs, Read next. Loaded after style.css by functions.php. */
/* ─── Blog articles (plugin: Frontend/Blog.php, BlogAuthors.php) ─────────────────────────── */
/* Byline on the photo header: author, date, reading time. */
.ee-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.6rem;
	margin: 0.5rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: #fff;
}

.ee-byline a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.ee-byline a:hover span {
	text-decoration: underline;
}

.ee-byline .ee-author__photo {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.ee-byline__dot {
	opacity: 0.7;
}

/* Author photo, or a round badge with the initial. */
.ee-author__photo {
	display: block;
	flex: none;
	border-radius: 50%;
	object-fit: cover;
}

.ee-author__photo--initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--accent-7, #b8492a);
	color: #fff;
	font-weight: 700;
	font-size: 1.1em;
	line-height: 1;
}

.ee-author--box .ee-author__photo--initial {
	font-size: 2.4rem;
}

.ee-author--page .ee-author__photo--initial {
	font-size: 5rem;
}

/* Box under an article. */
.ee-author--box {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	margin: var(--wp--preset--spacing--60) auto 0;
	max-width: var(--wp--style--global--content-size, 760px);
	padding: 1.5rem;
	border-radius: 18px;
	background: color-mix(in srgb, var(--wp--preset--color--accent-1) 40%, #fff);
}

.ee-author--box p {
	margin: 0;
}

.ee-author__kicker {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-7, #b8492a);
}

.ee-author__name {
	font-size: 1.25rem;
	font-weight: 700;
}

.ee-author__name a {
	color: inherit;
	text-decoration: none;
}

.ee-author__role {
	font-weight: 400;
	font-size: 0.9rem;
	opacity: 0.75;
}

.ee-author__bio {
	margin-top: 0.4rem !important;
	line-height: 1.55;
}

.ee-author__more {
	margin-top: 0.6rem !important;
	font-weight: 600;
}

@media (max-width: 599px) {
	.ee-author--box {
		flex-direction: column;
	}
}

/* Author page. */
.ee-author--page {
	max-width: var(--wp--style--global--wide-size, 1240px);
	margin-inline: auto !important;
}

.ee-author__head {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	align-items: center;
	margin-bottom: var(--wp--preset--spacing--50);
}

.ee-author__head > div {
	flex: 1 1 20rem;
}

.ee-author__head .ee-author__photo {
	width: 220px;
	height: 220px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ee-author__title {
	margin: 0;
}

.ee-author__head .ee-author__role {
	margin: 0.25rem 0 0;
	font-size: 1rem;
	font-weight: 600;
	opacity: 1;
	color: var(--wp--preset--color--accent-7, #b8492a);
}

.ee-author__head .ee-author__bio {
	font-size: 1.1rem;
}

.ee-author__about {
	max-width: var(--wp--style--global--content-size, 760px);
	padding: 2rem;
	border-radius: 18px;
	background: color-mix(in srgb, var(--wp--preset--color--accent-1) 30%, #fff);
}

.ee-author__about h2 {
	margin-top: 0;
}

.ee-author__about h3 {
	margin: 1.6rem 0 0.4rem;
	font-size: 1.1rem;
	color: var(--wp--preset--color--accent-7, #b8492a);
}

.ee-author__about p {
	margin: 0;
}

.ee-author__articles {
	margin-top: var(--wp--preset--spacing--60);
}

/* Article text: a larger first paragraph, headings with an accent line, rounded photos. */
.estudia-article .wp-block-post-content > p:first-child {
	font-size: 1.2em;
	line-height: 1.6;
}

.estudia-article .wp-block-post-content > h2 {
	position: relative;
	margin-top: 2.5rem;
	padding-top: 0.9rem;
}

.estudia-article .wp-block-post-content > h2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 3rem;
	height: 4px;
	border-radius: 2px;
	background: var(--wp--preset--color--accent-7, #b8492a);
}

.estudia-article .wp-block-post-content .wp-block-image img {
	border-radius: 14px;
}

/* Teasers between paragraphs. */
.ee-teaser {
	margin-block: 2.25rem !important;
}

.ee-teaser a {
	display: flex;
	color: inherit;
	text-decoration: none;
	border-radius: 16px;
	overflow: hidden;
	transition: box-shadow 0.2s, transform 0.2s;
}

.ee-teaser a:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.ee-teaser__body {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 1.1rem 1.4rem;
}

.ee-teaser__kicker {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-7, #b8492a);
}

.ee-teaser__title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.ee-teaser__place {
	font-weight: 400;
	opacity: 0.7;
}

/* Destination: a wide photo with the text on it. */
.ee-teaser--city a {
	position: relative;
	min-height: 240px;
	align-items: flex-end;
	background: var(--wp--preset--color--accent-4);
}

.ee-teaser--city .ee-teaser__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ee-teaser--city a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgb(10 25 35 / 0.85), rgb(10 25 35 / 0.2) 65%, rgb(10 25 35 / 0));
}

.ee-teaser--city .ee-teaser__body {
	position: relative;
	z-index: 1;
	color: #fff;
	padding: 1.4rem 1.6rem;
}

.ee-teaser--city .ee-teaser__kicker {
	color: #ffd9c9;
}

.ee-teaser--city .ee-teaser__title {
	font-size: 1.8rem;
}

.ee-teaser--city .ee-teaser__link {
	margin-top: 0.3rem;
	font-weight: 600;
}

/* "Also read": a slim card with a small photo. */
.ee-teaser--read a {
	align-items: center;
	border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
	border-left: 4px solid var(--wp--preset--color--accent-7, #b8492a);
	background: var(--wp--preset--color--base, #fff);
}

.ee-teaser--read .ee-teaser__thumb {
	flex: none;
	width: 120px;
	height: 90px;
	object-fit: cover;
}

.ee-teaser--read .ee-teaser__title {
	font-size: 1.05rem;
}

/* School offer: photo beside the offer. */
.ee-teaser--school a {
	align-items: stretch;
	border: 2px solid var(--wp--preset--color--accent-3, #2f8f6b);
	background: color-mix(in srgb, var(--wp--preset--color--accent-3, #2f8f6b) 6%, #fff);
}

.ee-teaser--school .ee-teaser__thumb {
	flex: 0 0 38%;
	width: 38%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.ee-teaser--school .ee-teaser__body {
	justify-content: center;
}

.ee-teaser__badge {
	align-self: flex-start;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
	background: var(--wp--preset--color--accent-3, #2f8f6b);
	color: #fff;
}

.ee-teaser__price {
	font-size: 0.95rem;
	opacity: 0.85;
}

.ee-teaser__button {
	align-self: flex-start;
	margin-top: 0.4rem;
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	font-weight: 600;
	background: var(--wp--preset--color--accent-3, #2f8f6b);
	color: #fff;
}

@media (max-width: 599px) {
	.ee-teaser--school a {
		flex-direction: column;
	}
	.ee-teaser--school .ee-teaser__thumb {
		flex-basis: auto;
		width: 100%;
		aspect-ratio: 16 / 9;
	}
	.ee-teaser--read .ee-teaser__thumb {
		width: 90px;
		height: 80px;
	}
	.ee-teaser--city .ee-teaser__title {
		font-size: 1.45rem;
	}
}

/* More articles under the article. */
.ee-read-next {
	max-width: var(--wp--style--global--wide-size, 1240px);
	margin: var(--wp--preset--spacing--60) auto 0 !important;
}

.ee-read-next h2 {
	margin-bottom: 1.25rem;
}
