/* ============================================================
 * Kidsa — Custom Category Page Styling
 * ============================================================
 * משתמש במשתני הצבע הקיימים של התמה:
 *   --theme   = כתום
 *   --theme2  = טורקיז
 *   --header  = כחול כהה (כותרות)
 *   --text    = טקסט
 *   --bg      = רקע קרם
 *   --bg2     = רקע תכלת
 *   --white   = לבן
 * ============================================================ */

/* Page wrapper */
.kcc-page {
	padding-bottom: 100px;
}

/* ============== CATEGORY DESCRIPTION BOX ============== */

.kcc-desc {
	padding: 40px 0 30px;
}

.kcc-desc__box {
	position: relative;
	max-width: 820px;
	margin: 0 auto;
	padding: 56px 50px 44px;
	background:
		linear-gradient(135deg, #ffffff 0%, var(--bg, #F4EEE5) 100%);
	border-radius: 24px;
	box-shadow: 0 10px 35px rgba(56, 84, 105, 0.08);
	border: 1px solid rgba(243, 159, 95, 0.18);
	overflow: hidden;
}

.kcc-desc__box::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100px;
	height: 6px;
	background: linear-gradient(90deg, var(--theme, #F39F5F) 0%, var(--theme2, #70A6B1) 50%, #F5C748 100%);
	border-radius: 0 0 8px 8px;
}

.kcc-desc__box::after {
	content: '';
	position: absolute;
	inset: 14px;
	border: 1px dashed rgba(243, 159, 95, 0.25);
	border-radius: 16px;
	pointer-events: none;
}

.kcc-desc__quote {
	position: absolute;
	top: 16px;
	right: 28px;
	font-size: 110px;
	line-height: 1;
	color: var(--theme, #F39F5F);
	opacity: 0.12;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	pointer-events: none;
}

.rtl .kcc-desc__quote,
[dir="rtl"] .kcc-desc__quote {
	right: auto;
	left: 28px;
}

.kcc-desc__inner {
	position: relative;
	z-index: 2;
	text-align: center;
	font-size: 18px;
	line-height: 1.85;
	color: var(--header, #385469);
	font-weight: 500;
}

.kcc-desc__inner p { margin: 0 0 14px; }
.kcc-desc__inner p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
	.kcc-desc__box {
		padding: 44px 28px 32px;
		border-radius: 18px;
	}
	.kcc-desc__inner { font-size: 16px; line-height: 1.75; }
	.kcc-desc__quote { font-size: 80px; top: 8px; }
}

/* ============== HERO (קטגוריה: שם + תיאור) ============== */

.kcc-hero {
	position: relative;
	margin: 0 0 60px;
	padding: 70px 0 60px;
	background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%);
	border-radius: 0 0 32px 32px;
	overflow: hidden;
}

.kcc-hero .container {
	position: relative;
}

.kcc-hero__inner {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 760px;
	margin: 0 auto;
}

.kcc-hero__eyebrow {
	display: inline-block;
	padding: 6px 18px;
	margin-bottom: 18px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	color: var(--white);
	background: var(--theme);
	border-radius: 999px;
}

.kcc-hero__title {
	font-size: clamp(30px, 5vw, 52px);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 18px;
	color: var(--header, #385469);
}

.kcc-hero__desc {
	font-size: 17px;
	line-height: 1.75;
	color: var(--text, #5C707E);
}

.kcc-hero__desc p:last-child { margin-bottom: 0; }

/* צורות דקורטיביות ברקע */
.kcc-hero__shape {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 1;
}
.kcc-hero__shape--1 {
	width: 160px; height: 160px;
	background: var(--theme);
	top: -50px; right: -50px;
	opacity: .12;
}
.kcc-hero__shape--2 {
	width: 110px; height: 110px;
	background: var(--theme2);
	bottom: -30px; left: 10%;
	opacity: .18;
}
.kcc-hero__shape--3 {
	width: 60px; height: 60px;
	background: #F5C748;
	top: 20px; left: 12%;
	opacity: .35;
}

/* ============== GRID (רשת 3 עמודות) ============== */

.kcc-grid-wrap { padding: 0 0 20px; }

.kcc-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

@media (max-width: 991px) {
	.kcc-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 575px) {
	.kcc-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ============== CARD (כרטיס פוסט) ============== */

.kcc-card {
	background: var(--white, #fff);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(56, 84, 105, 0.08);
	transition: transform .35s ease, box-shadow .35s ease;
	display: flex;
	flex-direction: column;
}

.kcc-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(56, 84, 105, 0.15);
}

.kcc-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.kcc-card__link:hover,
.kcc-card__link:focus {
	color: inherit;
	text-decoration: none;
}

/* תמונה */
.kcc-card__thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--bg2, #EFF5F6);
}

.kcc-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}

.kcc-card:hover .kcc-card__img {
	transform: scale(1.06);
}

.kcc-card__img--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 56px;
	color: var(--theme2, #70A6B1);
	background: var(--bg, #F4EEE5);
}

/* גוף הכרטיס */
.kcc-card__body {
	padding: 22px 24px 26px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.kcc-card__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 12px;
	color: var(--header, #385469);
	transition: color .25s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.kcc-card:hover .kcc-card__title {
	color: var(--theme, #F39F5F);
}

.kcc-card__excerpt {
	font-size: 15px;
	line-height: 1.65;
	color: var(--text, #5C707E);
	margin: 0 0 18px;
	flex: 1 1 auto;
}

.kcc-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--theme, #F39F5F);
	margin-top: auto;
}

.kcc-card__more i {
	transition: transform .25s ease;
}

.kcc-card:hover .kcc-card__more i {
	transform: translateX(-4px);
}

/* ============== PAGINATION ============== */

.kcc-pagination {
	margin-top: 40px;
	text-align: center;
}

/* ============== EMPTY STATE ============== */

.kcc-empty {
	text-align: center;
	font-size: 18px;
	color: var(--text, #5C707E);
	padding: 60px 20px;
}

/* ============== RESPONSIVE ============== */

@media (max-width: 991px) {
	.kcc-hero {
		padding: 50px 0 44px;
		margin-bottom: 44px;
	}
	.kcc-card__body { padding: 20px; }
	.kcc-card__title { font-size: 18px; }
}

@media (max-width: 575px) {
	.kcc-hero {
		padding: 40px 0 36px;
		border-radius: 0 0 22px 22px;
		margin-bottom: 32px;
	}
	.kcc-hero__desc { font-size: 15px; }
	.kcc-card { border-radius: 16px; }
}

/* ============== RTL fine-tuning ============== */
/* התמה תומכת RTL דרך אופציה — הקטעים הבאים ידאגו שכיווניות RTL תעבוד יפה */

.rtl .kcc-hero__shape--1 { right: auto; left: -50px; }
.rtl .kcc-hero__shape--2 { left: auto; right: 10%; }
.rtl .kcc-hero__shape--3 { left: auto; right: 12%; }
.rtl .kcc-card:hover .kcc-card__more i { transform: translateX(4px); }
