/* =========================================================================
 * EduFunny Kids — page styles (loaded ONLY on /edufunny-kids/)
 * Builds on the base design tokens + components from main.css.
 *
 *   1. Accent helper classes
 *   2. Kids hero
 *   3. About panel
 *   4. Services grid
 *   5. Activities pills
 *   6. Mini Play Zone (game)
 *   7. Gallery placeholders
 *   8. Contact CTA
 *   9. Responsive
 * ====================================================================== */

/* -------------------------------------------------------------------------
 * 1. ACCENT HELPERS — set the shared --ef-accent vars on any element so
 *    .ef-btn--accent, icons and tints follow the chosen pastel.
 * ---------------------------------------------------------------------- */
.ef-accent-pink     { --ef-accent: var(--ef-pink);     --ef-accent-2: var(--ef-pink-2);     --ef-accent-ink: var(--ef-pink-ink); }
.ef-accent-blue     { --ef-accent: var(--ef-blue);     --ef-accent-2: var(--ef-blue-2);     --ef-accent-ink: var(--ef-blue-ink); }
.ef-accent-mint     { --ef-accent: var(--ef-mint);     --ef-accent-2: var(--ef-mint-2);     --ef-accent-ink: var(--ef-mint-ink); }
.ef-accent-orange   { --ef-accent: var(--ef-orange);   --ef-accent-2: var(--ef-orange-2);   --ef-accent-ink: var(--ef-orange-ink); }
.ef-accent-lavender { --ef-accent: var(--ef-lavender); --ef-accent-2: var(--ef-lavender-2); --ef-accent-ink: var(--ef-lavender-ink); }

/* -------------------------------------------------------------------------
 * 2. KIDS HERO
 * ---------------------------------------------------------------------- */
.ef-kids-hero {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
	background:
		radial-gradient(900px 420px at 50% -10%, var(--ef-pink-2) 0%, transparent 60%),
		radial-gradient(700px 420px at 100% 10%, var(--ef-orange-2) 0%, transparent 55%);
}
.ef-kids-hero__inner {
	position: relative;
	z-index: var(--ef-z-content);
	max-width: 880px;
}
.ef-kids-hero__eyebrow {
	background: var(--ef-cream-2);
	padding: 0.5rem 1rem;
	border-radius: var(--ef-pill);
	box-shadow: var(--ef-shadow-soft);
	justify-content: center;
}
.ef-kids-hero__title {
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 800;
	margin-bottom: 1rem;
}
.ef-kids-hero__subtitle {
	font-size: clamp(1.05rem, 2.2vw, 1.25rem);
	color: var(--ef-ink-soft);
	max-width: 640px;
	margin: 0 auto 2rem;
}
.ef-kids-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	justify-content: center;
}
.ef-kids-ig-btn {
	--btn-bg: linear-gradient(120deg, var(--ef-pink) 0%, var(--ef-orange) 60%, var(--ef-lavender) 100%);
	--btn-fg: var(--ef-ink-strong);
}

/* -------------------------------------------------------------------------
 * 3. ABOUT PANEL
 * ---------------------------------------------------------------------- */
.ef-kids-about__panel {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(1.25rem, 3vw, 2.4rem);
	align-items: center;
	padding: clamp(1.8rem, 4vw, 3rem);
	background: linear-gradient(150deg, var(--ef-lavender-2), var(--ef-cream-2) 65%);
}
.ef-kids-about__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	border-radius: 26px;
	color: var(--ef-accent-ink);
}
.ef-kids-about__icon .ef-icon { width: 2.4rem; height: 2.4rem; }
.ef-kids-about__title { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.6rem; }
.ef-kids-about__text { color: var(--ef-ink-soft); margin: 0; }

/* -------------------------------------------------------------------------
 * 4. SERVICES GRID (reuses .ef-card component)
 * ---------------------------------------------------------------------- */
.ef-kids-services__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1.1rem, 2.4vw, 1.8rem);
	align-items: stretch;
}

/* -------------------------------------------------------------------------
 * 5. ACTIVITIES PILLS
 * ---------------------------------------------------------------------- */
.ef-kids-activities__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: clamp(0.7rem, 1.6vw, 1rem);
	justify-content: center;
}
.ef-kids-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.7rem 1.2rem 0.7rem 0.7rem;
	border-radius: var(--ef-pill);
	font-family: var(--ef-font-head);
	font-weight: 600;
	color: var(--ef-ink-strong);
	transition: transform 0.22s var(--ef-ease), box-shadow 0.22s var(--ef-ease);
}
.ef-kids-pill:hover { transform: translateY(-3px); box-shadow: var(--ef-shadow); }
.ef-kids-pill__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex: none;
	border-radius: 50%;
	background: var(--ef-accent-2);
	color: var(--ef-accent-ink);
	box-shadow: var(--ef-shadow-inset);
}
.ef-kids-pill__icon .ef-icon { width: 1.2rem; height: 1.2rem; }

/* -------------------------------------------------------------------------
 * 6. MINI PLAY ZONE (game)
 * ---------------------------------------------------------------------- */
.ef-kids-game__frame {
	padding: clamp(0.9rem, 2.2vw, 1.4rem);
	background: linear-gradient(160deg, var(--ef-blue-2), var(--ef-cream-2) 70%);
}
.ef-kids-game__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--ef-r-md);
	overflow: hidden;
	box-shadow: var(--ef-shadow-inset);
	background: linear-gradient(180deg, var(--ef-blue) 0%, var(--ef-mint-2) 100%);
	touch-action: manipulation; /* avoid double-tap zoom on the play area */
}
.ef-kids-game__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	cursor: pointer;
}
.ef-kids-game__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	text-align: center;
	padding: 1rem;
	background: rgba(255, 253, 250, 0.55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	transition: opacity 0.25s var(--ef-ease);
}
.ef-kids-game__overlay[hidden] { display: none; }
.ef-kids-game__msg {
	margin: 0;
	font-family: var(--ef-font-head);
	font-weight: 700;
	font-size: clamp(1.05rem, 2.4vw, 1.4rem);
	color: var(--ef-ink-strong);
}
.ef-kids-game__buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.ef-kids-game__hud {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 0.9rem;
	padding-inline: 0.3rem;
}
.ef-kids-game__score {
	font-family: var(--ef-font-head);
	font-weight: 700;
	color: var(--ef-ink-strong);
}
.ef-kids-game__score strong { color: var(--ef-blue-ink); }
.ef-kids-game__hint { color: var(--ef-ink-soft); font-size: 0.9rem; }

/* -------------------------------------------------------------------------
 * 7. GALLERY PLACEHOLDERS
 * ---------------------------------------------------------------------- */
.ef-kids-gallery__grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1rem, 2.4vw, 1.6rem);
}
.ef-kids-gallery__tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.6rem;
	padding: clamp(1.1rem, 2.4vw, 1.6rem);
	transition: transform 0.25s var(--ef-ease), box-shadow 0.25s var(--ef-ease);
}
.ef-kids-gallery__tile:hover { transform: translateY(-4px); box-shadow: var(--ef-shadow); }
.ef-kids-gallery__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--ef-r-sm);
	color: var(--ef-accent-ink);
	margin-bottom: 0.2rem;
}
.ef-kids-gallery__media .ef-icon { width: 2.4rem; height: 2.4rem; }
.ef-kids-gallery__label { font-family: var(--ef-font-head); font-weight: 700; color: var(--ef-ink-strong); }
.ef-kids-gallery__tag {
	font-family: var(--ef-font-head);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ef-accent-ink);
}

/* -------------------------------------------------------------------------
 * 8. CONTACT CTA
 * ---------------------------------------------------------------------- */
.ef-kids-cta__panel {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: clamp(2rem, 5vw, 3.4rem);
	background: linear-gradient(150deg, var(--ef-pink-2), var(--ef-cream-2) 60%, var(--ef-blue-2));
}
.ef-kids-cta__content { position: relative; z-index: var(--ef-z-content); max-width: 640px; margin-inline: auto; }
.ef-kids-cta__title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.ef-kids-cta__text { color: var(--ef-ink-soft); margin: 0 auto 1.8rem; }
.ef-kids-cta__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* -------------------------------------------------------------------------
 * 9. RESPONSIVE
 * ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.ef-kids-services__grid { grid-template-columns: repeat(2, 1fr); }
	.ef-kids-gallery__grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
	.ef-kids-about__panel { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.ef-kids-game__stage  { aspect-ratio: 4 / 3; }   /* taller play area on phones */
}
@media (max-width: 540px) {
	.ef-kids-services__grid { grid-template-columns: 1fr; }
	.ef-kids-gallery__grid  { grid-template-columns: 1fr; }
	.ef-kids-hero__actions .ef-btn,
	.ef-kids-cta__actions .ef-btn { flex: 1 1 100%; }
	.ef-kids-game__hud { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

/* -------------------------------------------------------------------------
 * 10. BLOG CARDS (clickable, directly under the Kids hero)
 * ---------------------------------------------------------------------- */
.ef-kids-blog__grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1rem, 2.4vw, 1.6rem);
}
.ef-kids-blogcard {
	border-radius: var(--ef-r-lg);
	transition: transform 0.25s var(--ef-ease), box-shadow 0.25s var(--ef-ease);
}
.ef-kids-blogcard:hover,
.ef-kids-blogcard:focus-within { transform: translateY(-5px); box-shadow: var(--ef-shadow); }
.ef-kids-blogcard__link {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	height: 100%;
	padding: clamp(1.1rem, 2.4vw, 1.5rem);
	color: inherit;
}
.ef-kids-blogcard__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--ef-r-sm);
	color: var(--ef-accent-ink);
	margin-bottom: 0.3rem;
}
.ef-kids-blogcard__media .ef-icon { width: 2.3rem; height: 2.3rem; }
.ef-kids-blogcard__media--img { padding: 0; overflow: hidden; }
.ef-kids-blogcard__media--img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.ef-article__media--img { padding: 0; overflow: hidden; }
.ef-article__media--img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.ef-kids-blogcard__cat {
	font-family: var(--ef-font-head);
	font-size: 0.76rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--ef-accent-ink);
}
.ef-kids-blogcard__title { font-family: var(--ef-font-head); font-weight: 700; font-size: 1.15rem; color: var(--ef-ink-strong); }
.ef-kids-blogcard__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: auto;
	font-family: var(--ef-font-head);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--ef-accent-ink);
}
.ef-kids-blogcard__more .ef-icon { width: 1rem; height: 1rem; transition: transform 0.22s var(--ef-ease); }
.ef-kids-blogcard:hover .ef-kids-blogcard__more .ef-icon { transform: translateX(4px); }

/* Tighten ONLY the gap between the blog cards and the intro (about) section —
   trims their facing edges; every other section edge keeps its normal spacing. */
.ef-kids-blog  { padding-bottom: clamp(1.5rem, 3vw, 2.75rem); }
.ef-kids-about { padding-top:    clamp(1.5rem, 3vw, 2.75rem); }

/* Balanced, tighter spacing between the LOWER Kids sections (~35% less than the
   global .ef-section). Scoped to kids.css so the homepage is unaffected, and the
   blog→intro gap above (its own overrides) is preserved.
   NOTE: .ef-kids-about sets ONLY padding-bottom here so its tightened top stays. */
.ef-kids-about      { padding-bottom: clamp(2.25rem, 5vw, 4.5rem); }
.ef-kids-playzone,
.ef-kids-game,
.ef-kids-services,
.ef-kids-activities,
.ef-kids-cta        { padding-block: clamp(2.25rem, 5vw, 4.5rem); }

/* -------------------------------------------------------------------------
 * 13. PLAY ZONE — Mini Play Zone (left) + Activity categories (right)
 * ---------------------------------------------------------------------- */
.ef-kids-playzone__grid {
	display: grid;
	grid-template-columns: 1.2fr 0.9fr;   /* game gets more visual weight */
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}
.ef-kids-playzone__game,
.ef-kids-playzone__cats { min-width: 0; } /* let grid children shrink, no overflow */
.ef-kids-playzone .ef-section-header { margin-bottom: clamp(1.1rem, 2.4vw, 1.6rem); max-width: none; }
.ef-kids-playzone__catgrid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 per row */
	gap: clamp(0.6rem, 1.5vw, 0.9rem) clamp(0.7rem, 1.6vw, 1.1rem);
}
.ef-kids-playzone__catgrid .ef-kids-pill { width: 100%; }

/* Tablet / small: stack the two columns cleanly (game on top). */
@media (max-width: 880px) {
	.ef-kids-playzone__grid { grid-template-columns: 1fr; gap: clamp(1.8rem, 5vw, 2.6rem); }
}
/* Phones: one category per row stays cleanest. */
@media (max-width: 540px) {
	.ef-kids-playzone__catgrid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
 * 11. BLOG ARTICLE PAGES (workshop-moment, kids-club-setup, …)
 * ---------------------------------------------------------------------- */
.ef-article-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
	background:
		radial-gradient(800px 400px at 12% -10%, var(--ef-accent-2) 0%, transparent 60%),
		radial-gradient(700px 380px at 100% 0%, var(--ef-cream-2) 0%, transparent 55%);
}
.ef-article-hero__inner { position: relative; z-index: var(--ef-z-content); }
.ef-article__back {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-family: var(--ef-font-head);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--ef-ink-strong);
	background: var(--ef-cream-2);
	padding: 0.5rem 1rem;
	border-radius: var(--ef-pill);
	box-shadow: var(--ef-shadow-soft);
	transition: transform 0.2s var(--ef-ease), box-shadow 0.2s var(--ef-ease);
}
.ef-article__back:hover { transform: translateX(-3px); box-shadow: var(--ef-shadow); color: var(--ef-ink-strong); }
.ef-article__meta {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 1.4rem 0 0.6rem;
	font-family: var(--ef-font-head);
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--ef-ink-soft);
}
.ef-article__cat {
	color: var(--ef-accent-ink);
	background: var(--ef-accent-2);
	padding: 0.25rem 0.7rem;
	border-radius: var(--ef-pill);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-size: 0.74rem;
}
.ef-article__title { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.6rem; }
.ef-article__intro { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--ef-ink-soft); max-width: 60ch; }
.ef-article__media {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-top: 1.8rem;
	border-radius: var(--ef-r-lg);
	color: var(--ef-accent-ink);
}
.ef-article__media-icon .ef-icon { width: 3rem; height: 3rem; }
.ef-article__media-note {
	font-family: var(--ef-font-head);
	font-weight: 600;
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ef-accent-ink);
}
.ef-article-body { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.ef-article__prose { padding: clamp(1.6rem, 4vw, 2.8rem); }
.ef-article__prose p { margin: 0 0 1.1rem; }
.ef-article__prose p:last-child { margin-bottom: 0; }
.ef-article-cta { padding-top: 0; }

/* -------------------------------------------------------------------------
 * 12. BLOG RESPONSIVE
 * ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.ef-kids-blog__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
	.ef-kids-blog__grid { grid-template-columns: 1fr; }
	.ef-article__media { aspect-ratio: 4 / 3; }
}


/* =========================================================================
 * 13. Activity programmes showcase (brand identity) — circular image cards
 * ====================================================================== */
.ef-kids-programs .ef-progcat { margin-top: clamp(2rem, 5vw, 3.6rem); }
.ef-progcat__head { max-width: 60ch; margin: 0 auto clamp(1.1rem, 2.5vw, 1.6rem); text-align: center; }
.ef-progcat__title { font-family: var(--ef-font-head); font-weight: 800; font-size: clamp(1.35rem, 3.2vw, 1.9rem); color: var(--ef-accent-ink); margin: 0 0 0.35rem; }
.ef-progcat__intro { color: var(--ef-ink-soft); margin: 0; font-size: 0.98rem; }
.ef-progcat__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(0.8rem, 2vw, 1.4rem); }
.ef-progcard { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.7rem; }
.ef-progcard__media { display: block; width: 100%; max-width: 168px; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: #F3E9DA; border: 4px solid #FFFFFF; box-shadow: 0 12px 26px rgba(74, 60, 44, 0.16), 0 0 0 3px var(--ef-accent, #E9C6B0); transition: transform 0.35s var(--ef-ease, ease), box-shadow 0.35s var(--ef-ease, ease); will-change: transform; }
.ef-progcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
/* Transparent cut-out subjects (black bg removed) — centered, not cropped. */
.ef-progcard__media--cut { background: radial-gradient(circle at 50% 44%, #FFFFFF 0%, #F5ECDD 72%); }
.ef-progcard__media--cut img { object-fit: contain; padding: 15%; }
.ef-progcard__name { font-family: var(--ef-font-head); font-weight: 700; font-size: 0.98rem; color: var(--ef-ink); line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
/* Premium hover: image frame grows noticeably with more depth; lifts above
   neighbours via z-index so nothing looks clipped. Transform-only = no reflow. */
@media (hover: hover) and (pointer: fine) {
	.ef-progcard:hover { z-index: 5; }
	.ef-progcard:hover .ef-progcard__media { transform: scale(1.1); box-shadow: 0 26px 48px rgba(74, 60, 44, 0.30), 0 0 0 3px var(--ef-accent, #E9C6B0); }
}
/* --- Section polish / decoration (soft, premium, not overdone) --- */
.ef-kids-programs { position: relative; }
.ef-kids-programs > .ef-container { position: relative; z-index: 1; }
.ef-programs-decor { position: absolute; border-radius: 50%; filter: blur(48px); opacity: 0.55; z-index: 0; pointer-events: none; }
.ef-programs-decor--a { width: 320px; height: 320px; background: radial-gradient(circle, var(--ef-orange, #FFE3C7) 0%, transparent 70%); top: 30px; left: -90px; }
.ef-programs-decor--b { width: 380px; height: 380px; background: radial-gradient(circle, var(--ef-blue, #D4E8FF) 0%, transparent 70%); bottom: 60px; right: -110px; }
.ef-progcat__head { position: relative; }
.ef-progcat__spark { display: inline-block; width: 20px; height: 20px; margin-bottom: 0.35rem; background: var(--ef-accent-ink, #C97A38); opacity: 0.9; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
@media (max-width: 900px) { .ef-progcat__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .ef-progcat__grid { grid-template-columns: repeat(2, 1fr); } .ef-progcard__media { max-width: 150px; } }
