/*
 * Φροντιστήριο Γνώση: the pupil's notebook. Squared paper, the indigo of a
 * school pen, a yellow highlighter and sticky notes, a coral pen for the marks.
 */
body.dx-education {
	--indigo: #2f2a8f;
	--indigo-2: #463fc4;
	--paper: #fbfcff;
	--sq: #dfe6f6;
	--yellow: #ffd94a;
	--coral: #ff6a55;
	--mint: #3ec7a1;
	--ink: #17183a;
	--muted: #5b5e7d;
	--bg: var(--paper);
	--accent: var(--indigo);
	--font-text: 'Manrope', system-ui, sans-serif;
	--font-display: 'Sofia Sans', system-ui, sans-serif;
	--step-head: clamp(2.2rem, 1.3rem + 3vw, 4rem);
	--step-lead: clamp(1.1rem, 1rem + .35vw, 1.28rem);
}
.dx-education .ed-w { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.dx-education section { padding-block: clamp(80px, 9vw, 140px); scroll-margin-top: 70px; }
.dx-education .ed-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.dx-education .ed-kick { display: inline-block; margin-bottom: 16px; padding: 4px 10px; background: var(--yellow); transform: rotate(-1deg); font: 800 13px/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.dx-education .ed-h2 { font: 900 var(--step-head)/1 var(--font-display); letter-spacing: -.03em; text-wrap: balance; color: var(--indigo); }
.dx-education .ed-lead { margin-top: 18px; font-size: var(--step-lead); line-height: 1.6; color: var(--muted); max-width: 56ch; }
.dx-education .ed-hl { background: linear-gradient(100deg, transparent 2%, var(--yellow) 3% 96%, transparent 97%) 0 70% / 100% 45% no-repeat; }
.dx-education .ed-btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--indigo); color: #fff; font: 800 16px/1 var(--font-display); text-decoration: none; box-shadow: 0 6px 0 #1d1966; transition: transform .15s var(--ease), box-shadow .15s; }
.dx-education .ed-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #1d1966; }
.dx-education .ed-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #1d1966; }
.dx-education .ed-btn--s { min-height: 40px; padding: 0 16px; box-shadow: 0 4px 0 #b8941f; background: var(--yellow); color: var(--ink); }
.dx-education .ed-link { color: var(--indigo); font-weight: 800; text-decoration: none; border-bottom: 3px solid var(--coral); }

.dx-education .ed-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 12px var(--gutter); background: #fff; border-bottom: 2px solid var(--sq); font: 700 15px/1 var(--font-display); }
.dx-education .ed-brand { display: inline-flex; align-items: center; gap: 10px; font: 900 22px/1 var(--font-display); color: var(--indigo); text-decoration: none; }
.dx-education .ed-brand span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--indigo); color: var(--yellow); transform: rotate(-6deg); }
.dx-education .ed-menu { display: flex; gap: 22px; margin-left: auto; }
.dx-education .ed-menu a { text-decoration: none; color: var(--muted); }
.dx-education .ed-menu a:hover { color: var(--indigo); }
.dx-education .ed-burger { display: none; color: inherit; }

/* ---- the hero on squared paper */
.dx-education .ed-hero { background: linear-gradient(var(--sq) 1px, transparent 1px) 0 0 / 26px 26px, linear-gradient(90deg, var(--sq) 1px, transparent 1px) 0 0 / 26px 26px, var(--paper); }
.dx-education .ed-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; min-height: calc(100svh - 230px); }
.dx-education .ed-hero h1 { font: 900 clamp(2.8rem, 1.6rem + 4vw, 5.4rem)/.98 var(--font-display); letter-spacing: -.04em; color: var(--indigo); text-wrap: balance; }
.dx-education .ed-hero__say { margin-top: 24px; font-size: var(--step-lead); color: var(--muted); max-width: 48ch; }
.dx-education .ed-hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.dx-education .ed-hero__pic { position: relative; }
.dx-education .ed-hero__pic figure { margin: 0; padding: 12px 12px 54px; background: #fff; box-shadow: 0 30px 60px -30px rgba(47, 42, 143, .45); transform: rotate(2deg); }
.dx-education .ed-hero__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dx-education .ed-sticky { position: absolute; top: -24px; left: -30px; width: 150px; padding: 18px 16px; background: var(--yellow); transform: rotate(-6deg); font: 700 15px/1.25 var(--font-display); box-shadow: 0 14px 24px -14px rgba(0, 0, 0, .4); }
.dx-education .ed-sticky b { font-size: 26px; color: var(--indigo); }
.dx-education .ed-hero__chips { position: absolute; right: 16px; bottom: -6px; left: 24px; display: flex; flex-wrap: wrap; gap: 6px; transform: rotate(2deg); }
.dx-education .ed-hero__chips li { padding: 6px 10px; border-radius: 999px; background: var(--indigo); color: #fff; font: 700 13px/1 var(--font-display); }

/* ---- classes as index cards */
.dx-education .ed-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dx-education .ed-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px 26px 26px; border-radius: 16px; background: #fff; border: 2px solid var(--sq); border-top: 10px solid var(--c, var(--indigo)); transition: transform .25s var(--ease); }
.dx-education .ed-card:hover { transform: rotate(-1deg) translateY(-6px); }
.dx-education .ed-card--1 { --c: var(--coral); }
.dx-education .ed-card--2 { --c: var(--mint); }
.dx-education .ed-card__n { position: absolute; top: 18px; right: 22px; font: 900 48px/1 var(--font-display); color: var(--sq); }
.dx-education .ed-card h3 { font: 900 26px/1.1 var(--font-display); color: var(--ink); }
.dx-education .ed-card p { color: var(--muted); }
.dx-education .ed-card__p { margin-top: auto; padding-top: 12px; font: 800 18px/1 var(--font-display); color: var(--indigo) !important; }

/* ---- the timetable builder */
.dx-education .ed-plan { background: var(--indigo); color: #fff; }
.dx-education .ed-plan .ed-h2 { color: #fff; }
.dx-education .ed-plan .ed-lead { color: rgba(255, 255, 255, .75); }
.dx-education .ed-plan__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.dx-education .ed-pick { padding: clamp(22px, 3vw, 34px); border-radius: 18px; background: rgba(255, 255, 255, .08); }
.dx-education .ed-pick fieldset { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.dx-education .ed-pick legend { margin-bottom: 12px; font: 800 14px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.dx-education .ed-pick legend small { text-transform: none; letter-spacing: 0; font-weight: 600; color: rgba(255, 255, 255, .6); }
.dx-education .ed-opts, .dx-education .ed-subjects { display: flex; flex-wrap: wrap; gap: 8px; }
.dx-education .ed-opts input, .dx-education .ed-subjects input { position: absolute; opacity: 0; pointer-events: none; }
.dx-education .ed-opts span, .dx-education .ed-subjects span { display: inline-block; padding: 11px 16px; border-radius: 12px; background: rgba(255, 255, 255, .1); font: 700 15px/1 var(--font-display); cursor: pointer; transition: background .2s, color .2s; }
.dx-education .ed-opts input:checked + span { background: var(--yellow); color: var(--ink); }
.dx-education .ed-subjects input:checked + span { background: #fff; color: var(--indigo); box-shadow: inset 4px 0 0 var(--c, var(--coral)); }
.dx-education .ed-opts input:focus-visible + span, .dx-education .ed-subjects input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.dx-education .ed-page { padding: clamp(18px, 2.4vw, 30px); border-radius: 18px; background: linear-gradient(var(--sq) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, var(--sq) 1px, transparent 1px) 0 0 / 22px 22px, #fff; color: var(--ink); }
.dx-education .ed-tt { display: grid; grid-template-columns: 54px repeat(5, minmax(0, 1fr)); grid-auto-rows: 38px; gap: 3px; }
.dx-education .ed-tt > b { display: grid; place-items: center; font: 900 15px/1 var(--font-display); color: var(--indigo); }
.dx-education .ed-tt > i { display: grid; place-items: center; font: 700 12px/1 var(--font-display); font-style: normal; color: var(--muted); }
.dx-education .ed-slot { display: flex; align-items: center; padding: 0 8px; border-radius: 8px; background: var(--c, var(--coral)); color: #fff; font: 800 12.5px/1.1 var(--font-display); overflow: hidden; animation: ed-pop .35s var(--ease); }
@keyframes ed-pop { from { transform: scale(.8); opacity: 0; } }
.dx-education .ed-sum { display: grid; gap: 6px; margin-top: 20px; padding-top: 18px; border-top: 3px dashed var(--sq); }
.dx-education .ed-sum p { font-weight: 700; color: var(--muted); }
.dx-education .ed-sum__fee b { font: 900 clamp(2.2rem, 1.6rem + 1.8vw, 3.2rem)/1 var(--font-display); color: var(--indigo); background: linear-gradient(transparent 60%, var(--yellow) 60%); }
.dx-education .ed-sum__note { font-size: 13.5px; font-weight: 500 !important; }
.dx-education .ed-sum .ed-btn { justify-self: start; margin-top: 10px; }

/* ---- how we work */
.dx-education .ed-how__grid, .dx-education .ed-report__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.dx-education .ed-how__pic { margin: 0; padding: 10px; background: #fff; box-shadow: 0 30px 60px -30px rgba(47, 42, 143, .4); transform: rotate(-2deg); }
.dx-education .ed-how__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dx-education .ed-ticks { display: grid; gap: 10px; margin-top: 24px; }
.dx-education .ed-ticks li { position: relative; padding-left: 34px; font-weight: 700; }
.dx-education .ed-ticks li::before { content: "✓"; position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--mint); color: #fff; font-weight: 900; }

/* ---- the monthly report */
.dx-education .ed-report { background: #f1f3fc; }
.dx-education .ed-card-report { padding: clamp(24px, 3vw, 36px); border-radius: 16px; background: #fff; box-shadow: 0 30px 60px -36px rgba(47, 42, 143, .45); }
.dx-education .ed-card-report__h { margin-bottom: 18px; color: var(--muted); }
.dx-education .ed-card-report__h b { color: var(--ink); }
.dx-education .ed-card-report dl { display: grid; gap: 14px; }
.dx-education .ed-card-report dl div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 14px; }
.dx-education .ed-card-report dt { font-weight: 800; }
.dx-education .ed-card-report dd { margin: 0; display: grid; grid-template-columns: 1fr 64px; align-items: center; gap: 12px; font: 900 18px/1 var(--font-display); color: var(--indigo); }
.dx-education .ed-card-report dd span { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--mint) calc(var(--v) * 100%), var(--sq) 0); }
.dx-education .ed-card-report__note { margin-top: 20px; padding: 14px 16px; border-left: 4px solid var(--coral); background: #fff5f3; font-style: italic; }

/* ---- what parents say, on sticky notes */
.dx-education .ed-say .ed-h2 { margin-bottom: 40px; }
.dx-education .ed-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dx-education .ed-note { margin: 0; padding: 28px 24px; background: var(--yellow); box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .4); transform: rotate(-2deg); }
.dx-education .ed-note--1 { background: #ffb4a8; transform: rotate(1.5deg); }
.dx-education .ed-note--2 { background: #a8ecd8; transform: rotate(-1deg); }
.dx-education .ed-note p { font: 800 20px/1.35 var(--font-display); }
.dx-education .ed-note footer { margin-top: 14px; font-weight: 700; font-size: 14px; }

/* ---- questions */
.dx-education .ed-faq { background: #f1f3fc; }
.dx-education .ed-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); }
.dx-education .ed-faq__list details { margin-bottom: 8px; border-radius: 14px; background: #fff; border: 2px solid var(--sq); }
.dx-education .ed-faq__list summary { cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; font: 800 18px/1.3 var(--font-display); list-style: none; color: var(--indigo); }
.dx-education .ed-faq__list summary::-webkit-details-marker { display: none; }
.dx-education .ed-faq__list summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--yellow); color: var(--ink); transition: transform .25s var(--ease); }
.dx-education .ed-faq__list details[open] summary::after { transform: rotate(45deg); }
.dx-education .ed-faq__list p { padding: 0 20px 18px; color: var(--muted); }

/* ---- contact */
.dx-education .ed-contact { background: var(--indigo); color: #fff; }
.dx-education .ed-contact .ed-h2 { color: #fff; }
.dx-education .ed-contact .ed-lead { color: rgba(255, 255, 255, .75); }
.dx-education .ed-contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.dx-education .ed-contact__tel a { display: inline-block; margin-top: 24px; font: 900 clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem)/1 var(--font-display); color: var(--yellow); text-decoration: none; }
.dx-education .ed-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(22px, 3vw, 36px); border-radius: 18px; background: #fff; color: var(--ink); }
.dx-education .ed-form label { display: grid; gap: 6px; font-weight: 800; font-size: 14px; }
.dx-education .ed-form__wide { grid-column: 1 / -1; }
.dx-education .ed-form input, .dx-education .ed-form textarea { width: 100%; min-height: 50px; padding: 10px 12px; border: 2px solid var(--sq); border-radius: 12px; font: 500 16px var(--font-text); }
.dx-education .ed-form input:focus, .dx-education .ed-form textarea:focus { outline: none; border-color: var(--indigo); }
.dx-education .ed-form .ed-btn { justify-self: start; }
.dx-education .ed-form .dx-note { grid-column: 1 / -1; }

.dx-education .ed-foot { padding: clamp(44px, 5vw, 72px) 0 32px; background: #1d1966; color: rgba(255, 255, 255, .75); }
.dx-education .ed-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; align-items: end; }
.dx-education .ed-foot__name { font: 900 clamp(2rem, 1.3rem + 2vw, 3.4rem)/1 var(--font-display); color: var(--yellow); }
.dx-education .ed-foot a { color: var(--yellow); text-decoration: none; font-weight: 800; }

@media (max-width: 960px) {
	.dx-education .ed-menu, .dx-education .ed-nav .ed-btn--s { display: none; }
	.dx-education .ed-burger { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; }
	.dx-education .ed-burger span, .dx-education .ed-burger span::before, .dx-education .ed-burger span::after { display: block; width: 22px; height: 2px; background: currentColor; }
	.dx-education .ed-burger span { position: relative; }
	.dx-education .ed-burger span::before, .dx-education .ed-burger span::after { content: ""; position: absolute; left: 0; }
	.dx-education .ed-burger span::before { top: -7px; }
	.dx-education .ed-burger span::after { top: 7px; }
	.dx-education .ed-nav.is-open .ed-menu { display: grid; position: absolute; top: 100%; left: 0; right: 0; padding: 8px var(--gutter) 20px; background: #fff; }
	.dx-education .ed-nav.is-open .ed-menu a { padding: 12px 0; font-size: 20px; }
	.dx-education .ed-hero__grid, .dx-education .ed-plan__grid, .dx-education .ed-how__grid, .dx-education .ed-report__grid, .dx-education .ed-faq__grid, .dx-education .ed-contact__grid { grid-template-columns: minmax(0, 1fr); }
	.dx-education .ed-sticky { left: 0; }
	.dx-education .ed-cards, .dx-education .ed-quotes, .dx-education .ed-form { grid-template-columns: minmax(0, 1fr); }
	.dx-education .ed-tt { grid-template-columns: 40px repeat(5, minmax(0, 1fr)); grid-auto-rows: 34px; }
	.dx-education .ed-slot { font-size: 10px; padding: 0 4px; }
	.dx-education .ed-foot__grid { grid-template-columns: minmax(0, 1fr); }
}
