/* ===== Εντυπώσεις — masonry card grid ===================================
   Section + heading restyle (the Divi section that contains the grid).   */
/* `body` prefix + !important to outrank Divi's per-section scoped rules
   (`.et_pb_section_N.et_pb_section { ... !important }`). */
body .et_pb_section:has(.mt-testimonials) {
	background-color: #fdf3f9 !important;
}
body .et_pb_section:has(.mt-testimonials) h2 {
	color: #3d2b36 !important;
}

/* The grid's Divi row must span a usable width. Inserting the section via
   the DB can collide with Divi's per-row scoped rules (e.g. a stray
   max-width:150px), so force a sane width on the row/column that holds us. */
body .et_pb_section:has(.mt-testimonials) .et_pb_row {
	width: 90% !important;
	max-width: 1200px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
body .et_pb_section:has(.mt-testimonials) .et_pb_column {
	width: 100% !important;
}

/* --- heading rendered inside the shortcode ---------------------------- */
body .et_pb_section:has(.mt-heading) { background-color: #fdf3f9 !important; }
.mt-heading {
	text-align: center;
	color: #3d2b36 !important;
	font-size: 27px;
	font-weight: 700;
	margin: 0 0 30px;
	padding-top: 10px;
}

/* --- grid: real rows, 3 per row (2 on tablet, 1 on mobile) ------------- */
.mt-testimonials { padding: 10px 0 30px; }
.mt-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 1023px) { .mt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .mt-grid { grid-template-columns: 1fr; } }

/* --- card (flex column so the footer aligns at the bottom of the row) -- */
.mt-card {
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 28px 26px 22px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 18px rgba(61, 43, 54, 0.08);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mt-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 26px rgba(61, 43, 54, 0.13);
}
.mt-quote {
	display: block;
	font-size: 52px;
	line-height: 0.6;
	font-weight: 700;
	color: #e30080;
	margin-bottom: 14px;
	font-family: Georgia, serif;
}
.mt-excerpt {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.65;
	color: #4a4a4a;
}
.mt-full { font-size: 15.5px; line-height: 1.65; color: #4a4a4a; }
.mt-full b, .mt-full strong { color: #3d2b36; }
.mt-more {
	background: none;
	border: none;
	padding: 0;
	margin: 0 0 14px;
	color: #e30080;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.mt-more:hover { text-decoration: underline; }
.mt-meta {
	margin-top: auto;          /* push name/badge to the bottom of the card */
	border-top: 1px solid #f3dcea;
	padding-top: 14px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	align-items: flex-start;
}
.mt-name { font-weight: 700; color: #3d2b36; font-size: 15.5px; }
.mt-badge {
	display: inline-block;
	background: #fbe3f1;
	color: #ba0069;
	border-radius: 999px;
	padding: 3px 12px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.5;
}

/* --- no-JS default: full text, no controls, everything visible --------- */
.mt-testimonials:not(.mt-js) .mt-excerpt,
.mt-testimonials:not(.mt-js) .mt-more,
.mt-testimonials:not(.mt-js) .mt-show-more-wrap { display: none; }
/* JS mode: excerpts only */
.mt-js .mt-full { display: none; }
.mt-js .mt-card.mt-hidden { display: none; }

/* --- show more button --------------------------------------------------- */
.mt-show-more-wrap { text-align: center; margin-top: 8px; }
.mt-show-more {
	background: #e30080;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px 34px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s ease;
}
.mt-show-more:hover { background: #ba0069; }

/* --- modal -------------------------------------------------------------- */
.mt-modal[hidden] { display: none; }
.mt-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.mt-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(61, 43, 54, 0.55);
}
.mt-modal-dialog {
	position: relative;
	background: #fff;
	border-radius: 14px;
	max-width: 680px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	padding: 40px 38px 32px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.mt-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 30px;
	line-height: 1;
	color: #ba0069;
	cursor: pointer;
	padding: 6px;
}
.mt-modal-body { font-size: 16px; line-height: 1.7; color: #4a4a4a; }
.mt-modal-body b, .mt-modal-body strong { color: #3d2b36; }
.mt-modal-body .mt-modal-meta {
	margin-top: 22px;
	border-top: 1px solid #f3dcea;
	padding-top: 14px;
}
body.mt-modal-open { overflow: hidden; }
@media (max-width: 639px) {
	.mt-modal-dialog { padding: 32px 22px 24px; max-height: 92vh; }
}
