/* ==========================================================================
   MT Blog Templates — styling for the standard blog (loop + single post).
   Matches mariatelidou.gr: Source Sans Pro, magenta #E30080 / #D00276 / #BA0069,
   violet #4C3A7C, grey #f7f7f7, text #666, headings #333.
   Loaded only on post single + blog listings (via mu-plugin).
   ========================================================================== */

:root {
	--mt-magenta:      #E30080;
	--mt-magenta-link: #D00276;
	--mt-magenta-deep: #BA0069;
	--mt-violet:       #4C3A7C;
	--mt-grey:         #f7f7f7;
	--mt-text:         #666;
	--mt-heading:      #333;
}

/* ---------- Shared title band (violet, echoes the homepage hero) ---------- */
.mt-blog-titleband {
	background: #E30080;
	padding: 58px 20px;
	text-align: center;
}
.mt-blog-titleband__title {
	color: #fff;
	font-size: 34px;
	font-weight: 500;
	margin: 0;
	line-height: 1.2;
}

/* ========================================================================
   LOOP — list with thumbnails
   ===================================================================== */
.mt-blog-section.et_pb_section { padding: 50px 0; background: #fff; }

.mt-blog-list { margin: 0; }

.mt-blog-item {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	padding: 30px 0;
	border-bottom: 1px solid #ececec;
	transition: background-color .2s ease;
}
.mt-blog-item:first-child { padding-top: 0; }
.mt-blog-item:hover { background: var(--mt-grey); }

.mt-blog-item__thumb {
	flex: 0 0 300px;
	max-width: 300px;
	display: block;
	overflow: hidden;
	border-radius: 4px;
	line-height: 0;
}
.mt-blog-item__thumb img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.mt-blog-item:hover .mt-blog-item__thumb img { transform: scale(1.04); }

.mt-blog-item__body { flex: 1 1 auto; min-width: 0; }

.mt-blog-item__title {
	font-size: 24px;
	line-height: 1.25;
	font-weight: 500;
	margin: 0 0 8px;
}
.mt-blog-item__title a { color: var(--mt-heading); text-decoration: none; transition: color .2s ease; }
.mt-blog-item__title a:hover { color: var(--mt-magenta-link); }

.mt-blog-item__meta {
	font-size: 14px;
	color: #999;
	margin-bottom: 12px;
}
.mt-blog-item__meta .mt-sep { margin: 0 6px; }
.mt-blog-item__cats a { color: var(--mt-magenta-link); text-decoration: none; }
.mt-blog-item__cats a:hover { color: var(--mt-magenta-deep); }

.mt-blog-item__excerpt {
	color: var(--mt-text);
	font-size: 17px;
	line-height: 1.7;
	margin-bottom: 14px;
}

.mt-readmore {
	display: inline-block;
	color: var(--mt-magenta-link);
	font-weight: 600;
	text-decoration: none;
	transition: color .2s ease;
}
.mt-readmore:hover { color: var(--mt-magenta-deep); }
.mt-readmore span { transition: transform .2s ease; display: inline-block; }
.mt-readmore:hover span { transform: translateX(4px); }

.mt-blog-empty {
	text-align: center;
	color: var(--mt-text);
	font-size: 18px;
	padding: 40px 0;
}

/* ========================================================================
   SINGLE POST
   ===================================================================== */

/* ---------- Hero ---------- */
.mt-post-hero {
	position: relative;
	background-size: cover;
	background-position: center;
	background-color: var(--mt-violet);
	padding: 90px 20px;
	text-align: center;
	overflow: hidden;
}
.mt-post-hero.no-thumb { padding: 70px 20px; }
.mt-post-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( 135deg, rgba(76,58,124,.85) 0%, rgba(186,0,105,.78) 100% );
}
.mt-post-hero.no-thumb .mt-post-hero__overlay {
	background: linear-gradient( 135deg, rgba(76,58,124,.97) 0%, rgba(186,0,105,.92) 100% );
}
.mt-post-hero__inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.mt-post-hero__title {
	color: #fff;
	font-size: 40px;
	line-height: 1.15;
	font-weight: 500;
	margin: 0 0 16px;
}

.mt-post-meta {
	color: rgba(255,255,255,.92);
	font-size: 15px;
}
.mt-post-meta__sep { margin: 0 8px; opacity: .7; }
.mt-post-meta__cats a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Body ---------- */
.mt-post-body.et_pb_section,
.mt-post-body .et_pb_section { padding: 54px 0; background: #fff; }

.mt-post-content {
	color: var(--mt-text);
	font-size: 17px;
	line-height: 1.8;
}
.mt-post-content a { color: var(--mt-magenta-link); }
.mt-post-content a:hover { color: var(--mt-magenta-deep); }
.mt-post-content h2,
.mt-post-content h3,
.mt-post-content h4 { color: var(--mt-heading); font-weight: 500; }
.mt-post-content blockquote {
	border-left: 4px solid var(--mt-magenta);
	background: var(--mt-grey);
	margin: 24px 0;
	padding: 16px 24px;
	font-style: italic;
}
.mt-post-content img { max-width: 100%; height: auto; }

.mt-page-links { margin-top: 20px; font-weight: 600; }
.mt-page-links a { color: var(--mt-magenta-link); }

/* ---------- Share ---------- */
.mt-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 40px 0 10px;
	padding-top: 24px;
	border-top: 1px solid #ececec;
}
.mt-share__label { font-weight: 600; color: var(--mt-heading); margin-right: 4px; }
.mt-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 4px;
	background: var(--mt-magenta);
	color: #fff !important;
	transition: background-color .2s ease, transform .2s ease;
}
.mt-share__btn:hover { background: var(--mt-magenta-deep); transform: translateY(-2px); }
.mt-share__btn svg { display: block; }

/* ---------- Prev / next ---------- */
.mt-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid #ececec;
}
.mt-post-nav__cell { flex: 1 1 50%; }
.mt-post-nav__next { text-align: right; }
.mt-post-nav__cell a { text-decoration: none; display: inline-block; }
.mt-post-nav__dir {
	display: block;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--mt-magenta-link);
	font-weight: 700;
	margin-bottom: 4px;
}
.mt-post-nav__ttl { color: var(--mt-heading); font-weight: 500; }
.mt-post-nav__cell a:hover .mt-post-nav__ttl { color: var(--mt-magenta-link); }

/* ========================================================================
   Pagination (wp-pagenavi + core fallback)
   ===================================================================== */
.mt-pagination { margin-top: 40px; text-align: center; }
.mt-pagination .wp-pagenavi,
.mt-pagination .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	align-items: center;
}
.mt-pagination .wp-pagenavi a,
.mt-pagination .wp-pagenavi span,
.mt-pagination .nav-links .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
	color: var(--mt-magenta-link);
	text-decoration: none;
	font-weight: 600;
	background: #fff;
	transition: all .2s ease;
}
.mt-pagination .wp-pagenavi a:hover,
.mt-pagination .nav-links .page-numbers:hover {
	background: var(--mt-magenta);
	border-color: var(--mt-magenta);
	color: #fff;
}
.mt-pagination .wp-pagenavi span.current,
.mt-pagination .nav-links .page-numbers.current {
	background: var(--mt-magenta);
	border-color: var(--mt-magenta);
	color: #fff;
}

/* ========================================================================
   Responsive
   ===================================================================== */
@media (max-width: 980px) {
	.mt-post-hero__title { font-size: 32px; }
	.mt-blog-titleband__title { font-size: 28px; }
}
@media (max-width: 767px) {
	.mt-blog-item { flex-direction: column; gap: 14px; }
	.mt-blog-item__thumb { flex-basis: auto; max-width: 100%; width: 100%; }
	.mt-blog-item__thumb img { height: 220px; }
	.mt-blog-item__title { font-size: 21px; }
	.mt-post-hero { padding: 60px 20px; }
	.mt-post-hero__title { font-size: 26px; }
	.mt-post-nav { flex-direction: column; }
	.mt-post-nav__next { text-align: left; }
}
