/* ==========================================================================
   Κατηγορία – templates/page-katigoria.php
   The conditions hub and the Ισχίο / Γόνατο / Αθλητικές κακώσεις pages.
   The hero panel (.be_pghero) lives in main.css.

    1. Hero (image or call card)
    2. Intro + symptoms
    3. Card groups (procedures / conditions)
    4. Feature groups (the hub's category cards)
   ========================================================================== */


/* 1. Hero ------------------------------------------------------------------- */
.be_kat-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 4px;
}

.be_kat-media {
	position: relative;
	margin: 0;
	border-radius: var(--be-r-img);
	overflow: hidden;
	background: #0b1416;
	box-shadow: 0 30px 60px rgba(16, 38, 43, 0.2);
}

.be_kat-media .be_img,
.be_kat-media .be_ph {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
}

.be_kat-tag {
	position: absolute;
	left: 16px;
	bottom: 16px;
	padding: 8px 14px;
	border-radius: var(--be-r-pill);
	background: rgba(16, 42, 47, 0.78);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: var(--be-on-dark);
	font-size: 13px;
	font-weight: 600;
}

/* The class is doubled: the inlined reset's a[href^="tel"] { color: inherit }
   outranks a single class. */
.be_kat-callcard.be_kat-callcard {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: clamp(28px, 3vw, 44px);
	border-radius: var(--be-r-card-lg);
	background: var(--be-petrol);
	color: var(--be-on-dark);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.be_kat-callcard:hover {
	transform: translateY(-3px);
	box-shadow: var(--be-shadow-float);
}

.be_kat-callcard-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: var(--be-copper);
	color: var(--be-ink);
}

.be_kat-callcard-text {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--be-on-dark-soft);
}

.be_kat-callcard-number {
	font-size: clamp(30px, 2.8vw, 42px);
	font-weight: 700;
	letter-spacing: -0.01em;
}

@media (max-width: 600px) {
	.be_kat-actions .be_btn {
		width: 100%;
	}
}


/* 2. Intro + symptoms -------------------------------------------------------- */
.be_kat-intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 96px);
	align-items: start;
}

.be_kat-intro-text {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.be_kat-symptoms {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: clamp(24px, 2.6vw, 36px);
	border-radius: var(--be-r-card-lg);
	background: var(--be-white);
	border: 1px solid var(--be-line);
	box-shadow: var(--be-shadow-card);
	position: sticky;
	top: 120px;
}

.be_kat-symptoms-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--be-petrol);
}

.be_kat-symptoms ul {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.be_kat-symptoms li {
	display: flex;
	gap: 12px;
	line-height: 1.5;
	color: var(--be-text);
}

.be_kat-symptoms li svg {
	flex: none;
	margin-top: 3px;
	color: var(--be-copper-ink);
}

.be_kat-urgent {
	display: flex;
	gap: 10px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--be-warn-bg);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--be-warn);
}

.be_kat-urgent svg {
	flex: none;
	margin-top: 2px;
}

@media (max-width: 960px) {
	.be_kat-intro-grid {
		grid-template-columns: 1fr;
	}

	.be_kat-symptoms {
		position: static;
	}
}


/* 3. Card groups -------------------------------------------------------------- */
.be_kat-group + .be_kat-group {
	padding-top: 0;
}

.be_kat-cards {
	display: grid;
	/* At most four per row; fewer cards stretch across the row instead of
	   leaving a gap on a wide screen. */
	grid-template-columns: repeat(auto-fit, minmax(min(100%, max(280px, calc((100% - 48px) / 4))), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.be_kat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 26px 26px 64px;
	border-radius: var(--be-r-card);
	background: var(--be-white);
	border: 1px solid var(--be-line);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.be_kat-card:hover {
	transform: translateY(-3px);
	border-color: var(--be-copper);
	box-shadow: var(--be-shadow-card);
}

.be_kat-card-tag {
	align-self: flex-start;
	padding: 5px 12px;
	border-radius: var(--be-r-pill);
	background: var(--be-tint);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--be-copper-ink);
}

.be_kat-card-title {
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--be-petrol);
}

.be_kat-card-text {
	line-height: 1.6;
	color: var(--be-text);
}

.be_kat-card-go {
	position: absolute;
	left: 26px;
	bottom: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--be-tint);
	color: var(--be-petrol);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.be_kat-card:hover .be_kat-card-go {
	background: var(--be-petrol);
	color: var(--be-white);
	transform: translateX(3px);
}


/* 4. Feature groups (hub) -------------------------------------------------------- */
.be_kat-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: 20px;
}

.be_kat-feature {
	display: flex;
	flex-direction: column;
	border-radius: var(--be-r-card-lg);
	background: var(--be-white);
	border: 1px solid var(--be-line);
	overflow: hidden;
}

.be_kat-feature-media {
	display: block;
	background: #0b1416;
}

.be_kat-feature-media .be_img,
.be_kat-feature-media .be_ph {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.4s ease;
}

.be_kat-feature-media--blank {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	aspect-ratio: 16 / 10;
	padding: 26px 28px;
	overflow: hidden;
	background:
		radial-gradient(circle at 100% 100%, rgba(217, 168, 119, 0.3), rgba(217, 168, 119, 0) 55%),
		var(--be-petrol);
	color: var(--be-copper);
}

.be_kat-feature-word {
	font-size: clamp(30px, 3vw, 46px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--be-on-dark);
}

.be_kat-feature:hover .be_kat-feature-media .be_img {
	transform: scale(1.03);
}

.be_kat-feature-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 26px 28px 30px;
	flex: 1;
}

.be_kat-feature-title {
	font-size: 26px;
	font-weight: 700;
	color: var(--be-petrol);
}

.be_kat-feature-title a:hover {
	color: var(--be-copper-ink);
}

.be_kat-feature-text {
	line-height: 1.6;
	color: var(--be-text);
}

.be_kat-feature-links {
	display: flex;
	flex-direction: column;
	margin: 0 0 6px;
	padding: 0;
	list-style: none;
}

.be_kat-feature-links a {
	display: block;
	padding: 9px 0;
	border-bottom: 1px dashed var(--be-line-2);
	font-size: 15.5px;
	font-weight: 600;
	color: var(--be-ink);
	transition: color 0.15s ease;
}

.be_kat-feature-links a:hover {
	color: var(--be-copper-ink);
}

.be_kat-feature .be_linkline {
	margin-top: auto;
}
