/* ==========================================================================
   BeThree Child – Κατηγορία Παθήσεων (one category: Ρινός, Ωτός, …)
   Composed from the Παθήσεις page layout (Figma 68:1791) and the homepage
   condition cards (1:737); no dedicated Figma frame.
   Loaded only on pages using templates/page-pathiseis-katigoria.php
   (key "page-pathiseis-katigoria"). Sticky index and .be_icard live in main.css.
   ========================================================================== */

/* --- Section (same as the Παθήσεις page) --------------------------------- */
.be_pathiseis {
	position: relative;
	overflow: hidden;
	overflow: clip;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 60px;
	padding: 100px 100px 120px;
	background: var(--be-color-white);
	color: var(--be-color-dark);
}

.be_pathiseis::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -180px;
	width: max(2249px, 117.15vw);
	height: 243px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: var(--be-color-cream);
	pointer-events: none;
}

.be_pathiseis > * {
	position: relative;
	width: 100%;
}

/* --- Intro: icon box, H1, text ------------------------------------------- */
.be_pathiseis-intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
}

.be_pathiseis-intro-icon {
	margin-bottom: -8px;
}

.be_katigoria-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100px;
	height: 96px;
	overflow: hidden;
	background: var(--be-color-cream);
	border-radius: 5px;
}

.be_katigoria-icon img {
	display: block;
	width: 86px;
	height: 83px;
	max-width: none;
	object-fit: contain;
}

.be_pathiseis-title {
	font: var(--be-h1);
}

.be_pathiseis-text {
	font: 400 24px/32px var(--be-font-primary);
	color: #666666;
}

.be_pathiseis-text p {
	margin: 0;
}

.be_pathiseis-text p + p {
	margin-top: 32px;
}

/* --- Conditions: three columns of icon cards ------------------------------ */
.be_katigoria-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.be_katigoria-item {
	justify-content: flex-end; /* cards without icon/text keep the button at the same place */
}

.be_katigoria-item .be_btn {
	white-space: normal;
	text-align: center;
}

/* A condition's featured image (photo) fills the card top, unlike the line-art icons */
.be_katigoria-item .be_icard-icon {
	width: 100%;
	height: 160px;
}

.be_katigoria-item .be_icard-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1440px) {
	.be_katigoria-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1100px) {
	.be_pathiseis {
		gap: 48px;
		padding: 80px 60px 100px;
	}
}

@media (max-width: 700px) {
	.be_pathiseis {
		gap: 32px;
		padding: 60px 20px 32px;
	}

	.be_pathiseis::before {
		top: -29px;
		width: 492px;
		height: 53px;
	}

	.be_pathiseis .be_side-content,
	.be_pathiseis-intro {
		gap: 24px;
	}

	.be_katigoria-icon {
		width: 80px;
		height: 76.8px;
	}

	.be_pathiseis-text {
		font-size: 20px;
		line-height: 24px;
	}

	.be_pathiseis-text p + p {
		margin-top: 24px;
	}

	.be_katigoria-list {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.be_katigoria-item .be_btn {
		font-size: 18px;
	}
}
