/* 
 * Style dla kart konsultacji - shortcode [karty_konsultacji]
 * Design KWADRATOWY, PIONOWY - beżowo-bordowy
 * RÓŻNY od kart kursów - minimalistyczny, elegancki
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
	--konsult-bg: transparent;
	--konsult-card: #ffffff;
	--konsult-accent: #a67c52;
	--konsult-burgundy: #8b6f5f;
	--konsult-text: #3d3d3d;
	--konsult-border: #ded4c8;
	--konsult-shadow: rgba(0, 0, 0, 0.08);
	--konsult-badge-bg: #f0ebe4;
}

.ew-konsultacje-wrapper {
	background: var(--konsult-bg);
	padding: 0;
	font-family: "DM Sans", sans-serif;
}

.ew-konsultacje-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.no-konsultacje {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px;
	color: var(--konsult-text);
	font-style: italic;
}

/* KARTA - kwadratowa, pionowa, bez border-radius */
.karta-konsultacji {
	background: var(--konsult-card);
	border-radius: 0;
	overflow: visible;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 8px var(--konsult-shadow);
	border: 1px solid var(--konsult-border);
	transition: all 0.3s ease;
	text-decoration: none;
	position: relative;
}

.karta-konsultacji:hover {
	box-shadow: 0 6px 16px rgba(139, 111, 95, 0.15);
	transform: translateY(-3px);
}

/* Górna sekcja - miniatura z avatarem */
.konsultacja-top {
	position: relative;
	height: 180px;
	background: linear-gradient(135deg, var(--konsult-burgundy), var(--konsult-accent));
	/* overflow: hidden usunięte, aby avatar mógł wystawać poza sekcję */
}

.konsultacja-miniatura {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	opacity: 0.7;
}

.konsultacja-mentor-avatar {
	position: absolute;
	bottom: -30px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 3px solid white;
	object-fit: cover;
	z-index: 10;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.konsultacja-top.no-image::before {
	content: "💬";
	font-size: 48px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0.25;
}

/* Content */
.konsultacja-content {
	flex: 1;
	padding: 40px 20px 20px 20px;
	display: flex;
	flex-direction: column;
}

.konsultacja-mentor-name {
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--konsult-burgundy);
	margin-bottom: 4px;
}

.konsultacja-mentor-role {
	text-align: center;
	font-size: 11px;
	color: #888;
	font-style: italic;
	margin-bottom: 10px;
}

/* Tytuł - ZMNIEJSZONY */
.konsultacja-title {
	font-size: 20px !important;
	font-weight: 700;
	color: var(--konsult-text);
	margin: 0 0 8px 0;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-family: "Playfair Display", serif;
	text-align: center;
	min-height: 40px;
}

.konsultacja-title a {
	color: var(--konsult-text);
	text-decoration: none;
}

.konsultacja-title a:hover {
	color: var(--konsult-burgundy);
}

/* Badges */
.konsultacja-badges {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 10px;
}

.konsultacja-badge {
	font-size: 10px;
	padding: 4px 10px;
	border-radius: 0;
	background: var(--konsult-badge-bg);
	color: var(--konsult-text);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 500;
	border: 1px solid var(--konsult-border);
}

.konsultacja-badge.format {
	background: #f5efe8;
	color: var(--konsult-burgundy);
	border-color: var(--konsult-accent);
}

.konsultacja-badge.tryb {
	background: #e8f0ef;
	color: #4a7271;
	border-color: #9dbdbc;
}

/* Statystyki */
.konsultacja-stats {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12px;
	color: var(--konsult-text);
	margin: 8px 0;
}

.konsultacja-stats span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

/* Footer */
.konsultacja-footer {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--konsult-border);
}

.konsultacja-price {
	font-size: 18px;
	font-weight: 700;
	color: var(--konsult-burgundy);
	font-family: "Playfair Display", serif;
}

.konsultacja-cta {
	display: inline-block;
	width: 100%;
	padding: 10px 20px;
	background: var(--konsult-burgundy);
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 0;
	font-size: 12px;
	font-weight: 600;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	text-align: center;
	border: 2px solid var(--konsult-burgundy);
}

.konsultacja-cta:hover {
	background: transparent;
	color: var(--konsult-burgundy) !important;
}

.konsultacja-availability {
	font-size: 11px;
	color: #999;
	font-style: italic;
	text-align: center;
}

.konsultacja-availability.limited {
	color: #c85a54;
	font-weight: 600;
}

/* Warianty */
.karta-konsultacji.masterclass .konsultacja-top {
	background: linear-gradient(135deg, #8b5a9c, #a67c8f);
}

.karta-konsultacji.grupowa .konsultacja-top {
	background: linear-gradient(135deg, #5a7b7a, #7a9a99);
}

/* Responsywność */
@media (max-width: 1024px) {
	.ew-konsultacje-grid {
		s: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.ew-konsultacje-grid {
		s: 1fr;
	}

	.konsultacja-top {
		160px;
	}

	.konsultacja-mentor-avatar {
		50px;
		50px;
		-25px;
	}

	.konsultacja-content {
		g: 35px 15px 15px 15px;
	}

	.konsultacja-title {
		t-size: 14px;
		-height: 38px;
	}
}