/* EdTech page (template-edtech-v2.php). Builds on cpd-v2 + home-v2 + lms-v2; only page-specific pieces live here. */

/* Hero: longer title and lead than the other pages */
.ed2 .ed2-hero__title { max-width: 1000px; }
.ed2 .ed2-hero__lead { max-width: 760px; }
.ed2-proof .home2-proof__logos { border-top: 0; background: var(--cpd-white); }

/* Headings: single column, lead under the title */
.ed2-band-head, .ed2-head { max-width: 1040px; }
.ed2 .ed2-head + .ed2-solutions,
.ed2 .ed2-head + .ed2-alts,
.ed2 .ed2-head + .ed2-steps,
.ed2 .ed2-head + .ed2-principles { margin-top: 40px; }

/* Limits: problem -> solution rows on the red band */
.ed2-limits { display: flex; flex-direction: column; gap: 12px; }
.ed2-limit { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); align-items: stretch; gap: 0; }
.ed2-limit__problem, .ed2-limit__solution { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px; border-radius: 12px; }
.ed2-limit__problem { background: rgba(0, 0, 0, .16); border: 1px solid rgba(255, 255, 255, .18); color: var(--cpd-white); }
.ed2-limit__solution { background: linear-gradient(180deg, #FFFDF8 0%, #FFF5E7 100%); color: var(--cpd-ink); }
.ed2-limit__arrow { display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--cpd-white); }
.ed2-limit__tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--cpd-white); }
.ed2-limit__tag svg { width: 14px; height: 14px; }
.ed2-limit__tag--ok { background: rgba(212, 16, 40, .08); color: var(--cpd-red); }
.ed2 .ed2-limit__title { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; font-weight: 500; letter-spacing: -.02em; color: inherit; }
.ed2 .ed2-limit__problem p { font-size: 15px; line-height: 23px; color: rgba(255, 255, 255, .85); }
.ed2 .ed2-limit__solution p { font-size: 15px; line-height: 23px; color: var(--cpd-muted); }

/* CTA under the band: red card with the site's square motif */
.ed2-cta { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: clamp(32px, 4.4vw, 64px); border-radius: 24px; background: linear-gradient(135deg, #EE1837 0%, #D41027 60%, #B80E22 100%); color: var(--cpd-white); overflow: hidden; box-shadow: 0 30px 60px -36px rgba(212, 16, 40, .7); }
.ed2-cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent 0%, #000 55%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); pointer-events: none; }
.ed2-cta__squares { position: absolute; right: 0; top: 0; width: 240px; height: 144px; pointer-events: none; }
.ed2-cta__squares i { position: absolute; width: 48px; height: 48px; background: rgba(255, 255, 255, .14); }
.ed2-cta__squares i:nth-child(1) { right: 0; top: 0; background: rgba(255, 255, 255, .22); }
.ed2-cta__squares i:nth-child(2) { right: 48px; top: 0; background: rgba(28, 28, 28, .25); }
.ed2-cta__squares i:nth-child(3) { right: 0; top: 48px; background: rgba(255, 255, 255, .1); }
.ed2-cta__squares i:nth-child(4) { right: 96px; top: 0; background: rgba(255, 255, 255, .08); }
.ed2-cta__squares i:nth-child(5) { right: 48px; top: 96px; background: rgba(255, 255, 255, .12); }
.ed2-cta__copy, .ed2-cta__action { position: relative; z-index: 1; }
.ed2-cta__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ed2-cta__label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.ed2-cta__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cpd-white); box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.ed2 .ed2-cta__title { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; font-weight: 400; letter-spacing: -.025em; color: var(--cpd-white); text-wrap: balance; }
.ed2 .ed2-cta__text { font-size: 17px; line-height: 26px; color: rgba(255, 255, 255, .88); max-width: 620px; }
.ed2-cta__action { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.ed2-cta__action .primary-button { justify-content: space-between; }

/* Featured case study */
.ed2-case-band { margin-top: var(--cpd-section); }
.ed2 .ed2-case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.ed2-case__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.ed2-case__stats { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.ed2-case__stat { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-size: 16px; line-height: 22px; color: var(--cpd-white); }
.ed2-case__stat-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--cpd-white); }
.ed2 .ed2-case__stat-icon img { width: 18px; height: 18px; }
.ed2-case__quote { margin: 0; padding: 20px 22px; border-left: 3px solid var(--cpd-red); background: rgba(255, 255, 255, .04); border-radius: 0 12px 12px 0; display: flex; flex-direction: column; gap: 16px; }
.ed2-case__quote blockquote { margin: 0; font-size: 17px; line-height: 26px; color: #E5E7EB; }
.ed2-case__quote figcaption { display: flex; align-items: center; gap: 12px; }
.ed2 .ed2-case__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ed2-case__quote figcaption > span { display: flex; flex-direction: column; flex: 1; }
.ed2-case__quote strong { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--cpd-white); }
.ed2-case__quote figcaption > span > span { font-size: 13px; line-height: 18px; color: #B2B5BC; }
.ed2 .ed2-case__logo { height: 32px; width: auto; opacity: .85; }
.ed2-case__media { display: block; border-radius: 16px; overflow: hidden; background: #2A2A2A; }
.ed2 .ed2-case__media img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.ed2-case__media:hover img { transform: scale(1.02); }

/* Capabilities */
.ed2-cap-head__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.ed2 .ed2-cap-head + .ed2-cap { padding-top: 40px; }
.ed2 .ed2-cap__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ed2-shot { border-radius: 12px; overflow: hidden; background: #F4F4F4; border: 1px solid var(--cpd-line); }
.ed2 .ed2-shot img { display: block; width: 100%; height: auto; }

/* Solutions: 4 x 3 tiles, two highlighted */
.ed2-solutions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ed2-solution { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 150px; padding: 20px; border-radius: 16px; background: var(--cpd-white); border: 1px solid var(--cpd-line); transition: border-color .2s, transform .3s cubic-bezier(.16, 1, .3, 1); }
.ed2-solution:hover { border-color: rgba(212, 16, 40, .45); transform: translateY(-2px); }
.ed2 .ed2-solution__icon { width: 40px; height: 40px; display: block; }
.ed2 .ed2-solution__title { font-size: 17px; line-height: 23px; font-weight: 500; letter-spacing: -.02em; color: var(--cpd-ink); }
.ed2-solution--accent { background: var(--cpd-red); border-color: var(--cpd-red); }
.ed2 .ed2-solution--accent .ed2-solution__title { color: var(--cpd-white); }
.ed2-solution__icon--star { border-radius: 10px; display: flex !important; align-items: center; justify-content: center; background: rgba(255, 255, 255, .16); color: var(--cpd-white); }

/* Alternatives: one icon per option, with a red "not this" badge */
.ed2-alts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ed2-alt { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 16px; background: var(--cpd-white); border: 1px solid var(--cpd-line); transition: border-color .2s, transform .3s cubic-bezier(.16, 1, .3, 1); }
.ed2-alt:hover { border-color: rgba(212, 16, 40, .3); transform: translateY(-2px); }
.ed2-alt__icon { position: relative; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #F4F4F5; color: var(--cpd-ink-2); margin-bottom: 12px; }
.ed2-alt__no { position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--cpd-red); color: var(--cpd-white); box-shadow: 0 0 0 3px var(--cpd-white); }
.ed2-alt__no svg { width: 12px; height: 12px; }
.ed2 .ed2-alt__title { font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -.02em; color: var(--cpd-ink); }
.ed2 .ed2-alt p { font-size: 15px; line-height: 23px; color: var(--cpd-muted); }

/* Why us: head + six numbered reasons */
.ed2-why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.ed2-why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--cpd-line); border: 1px solid var(--cpd-line); border-radius: 22px; overflow: hidden; }
.ed2-why__list li { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--cpd-white); font-size: 17px; line-height: 25px; color: var(--cpd-ink); letter-spacing: -.01em; }
.ed2-why__num { font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .08em; color: var(--cpd-red); }

/* Process: six steps with checklists, 3 x 2 */
.ed2 .ed2-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.ed2 .ed2-steps .cpdv2-step { padding-right: 0; }
.ed2 .ed2-step__text { font-size: 15px; line-height: 23px; color: var(--cpd-muted); }
.ed2-step__list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--cpd-line); }
.ed2-step__list-title { font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--cpd-ink); }
.ed2-step__list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ed2-step__list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--cpd-ink-2); }
.ed2-step__list li svg { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--cpd-red); }

/* Pricing: principles as a connected sequence (no cards), then the price cards */
.ed2-principles { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 4px; }
.ed2-principles::before { content: ""; position: absolute; left: 22px; right: 22px; top: 26px; height: 2px; background: repeating-linear-gradient(90deg, var(--cpd-line-2) 0 8px, transparent 8px 14px); }
.ed2-principle { position: relative; display: flex; flex-direction: column; gap: 10px; padding-right: 12px; }
.ed2-principle__dot { position: relative; z-index: 1; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--cpd-red); color: var(--cpd-white); font-size: 18px; line-height: 1; font-weight: 500; box-shadow: 0 0 0 6px var(--cpd-bg); }
.ed2 .ed2-principle__title { font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -.02em; color: var(--cpd-ink); }
.ed2 .ed2-principle p { font-size: 16px; line-height: 24px; color: var(--cpd-muted); max-width: 360px; }
.ed2-ranges { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--cpd-line-2); }
.ed2-ranges__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.ed2 .ed2-ranges__title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; font-weight: 400; letter-spacing: -.02em; color: var(--cpd-ink); }
.ed2-ranges__head .cpdv2-currency { margin-left: 0; background: var(--cpd-white); }
.ed2-ranges__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ed2-range { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 2.6vw, 32px); border-radius: 22px; background: var(--cpd-white); border: 1px solid var(--cpd-line); }
.ed2 .ed2-range__name { font-size: 20px; line-height: 26px; font-weight: 400; letter-spacing: -.02em; color: var(--cpd-ink); }
.ed2-range__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
/* Rising bars: relative project size, small -> large */
.ed2-range__scale { flex: none; display: flex; align-items: flex-end; gap: 4px; height: 28px; }
.ed2-range__scale i { width: 8px; border-radius: 2px; background: var(--cpd-line-2); }
.ed2-range__scale i:nth-child(1) { height: 10px; } .ed2-range__scale i:nth-child(2) { height: 18px; } .ed2-range__scale i:nth-child(3) { height: 28px; }
.ed2-range__scale i.is-on { background: var(--cpd-red); }
.ed2-range--dark .ed2-range__scale i { background: rgba(255, 255, 255, .2); }
.ed2-range--dark .ed2-range__scale i.is-on { background: var(--cpd-red-soft); }
.ed2-range__price { font-size: clamp(36px, 3.4vw, 48px); line-height: 1; font-weight: 500; letter-spacing: -.03em; color: var(--cpd-ink); }
.ed2-range .primary-button { margin-top: auto; }
.ed2-range--dark { background: var(--cpd-ink); border-color: var(--cpd-ink); }
.ed2 .ed2-range--dark .ed2-range__name, .ed2-range--dark .ed2-range__price { color: var(--cpd-white); }
/* White buttons (dark card, case study, red CTA): their arrow tile is dark, so draw the arrow in white */
.ed2 .primary-button-white .icon { background: var(--cpd-ink); }
.ed2 .primary-button-white .icon svg path { fill: #FFFFFF; }

@media (max-width: 1100px) {
    .ed2-limit { grid-template-columns: 1fr; }
    .ed2-limit__arrow { transform: rotate(90deg); height: 36px; }
    .ed2 .ed2-case { grid-template-columns: 1fr; }
    .ed2-case__media { order: -1; }
    .ed2-solutions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ed2-alts { grid-template-columns: 1fr; }
    .ed2-why { grid-template-columns: 1fr; }
    .ed2 .ed2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ed2-ranges__grid { grid-template-columns: 1fr; }
    /* Principles: vertical sequence, line down the left */
    .ed2-principles { grid-template-columns: 1fr; gap: 24px; }
    .ed2-principles::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--cpd-line-2) 0 8px, transparent 8px 14px); }
    .ed2-principle { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; row-gap: 6px; padding-right: 0; }
    .ed2-principle__dot { grid-row: span 2; margin-bottom: 0; }
    /* Tabs stack above the window here, so the window's chips would repeat the tab's list */
    .ed2-cap .cpdv2-window .cpdv2-chips { display: none; }
}
@media (max-width: 768px) {
    .ed2-limit__problem, .ed2-limit__solution { padding: 20px; }
    .ed2-cta { grid-template-columns: 1fr; padding: 28px 22px; }
    .ed2-cta__squares { width: 144px; height: 96px; }
    .ed2-cta__squares i { width: 32px; height: 32px; }
    .ed2-cta__squares i:nth-child(2) { right: 32px; } .ed2-cta__squares i:nth-child(3) { top: 32px; } .ed2-cta__squares i:nth-child(4) { right: 64px; } .ed2-cta__squares i:nth-child(5) { right: 32px; top: 64px; }
    .ed2-solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ed2-solution { min-height: 0; gap: 18px; padding: 16px; }
    .ed2 .ed2-solution__title { font-size: 15px; line-height: 20px; }
    .ed2-why__list { grid-template-columns: 1fr; }
    .ed2 .ed2-steps { grid-template-columns: 1fr; row-gap: 0; }
    .ed2-alt { padding: 22px; }
    .ed2-case__quote figcaption { flex-wrap: wrap; }
}
