/* pw-education.css — blocks for /industries/education (built from the Figma design).
   Values (type scale, colours, spacing) are taken from the design; the brand red,
   grey band tone and card border follow the existing site so the page matches the
   rest of the Industries section. Breakpoints mirror the Tilda ones: 1200/960/640/480. */

.pw-edu {
  --pw-red: #e62e45;
  --pw-ink: #141414;
  --pw-ink-soft: #11112a;
  --pw-grey: #757575;
  --pw-band: #f4f4f4;
  --pw-border: #e1e1e1;
  font-family: var(--t-text-font, Arial), sans-serif;
  color: var(--pw-ink);
}

.pw-edu__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.pw-edu__section { padding: 90px 0; }
.pw-edu__section--band { background: var(--pw-band); }
.pw-edu__section--tight { padding-top: 0; }
/* used where a Tilda record (carousel, FAQ accordion) follows straight after a heading.
   The heading's own bottom margin is dropped: with zero bottom padding it would collapse
   out of the section and tear a white gap between two same-coloured blocks. */
.pw-edu__section--nobottom { padding-bottom: 56px; }
.pw-edu__section--nobottom .pw-edu-head { margin-bottom: 0; }

/* ---------- buttons ---------- */
.pw-edu .pw-edu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
#allrecords .pw-edu .pw-edu-btn--primary { background: var(--pw-red); color: #fff; border: 1px solid var(--pw-red); }
#allrecords .pw-edu .pw-edu-btn--primary:hover { background: #c92339; border-color: #c92339; color: #fff; }
#allrecords .pw-edu .pw-edu-btn--light { background: #fff; color: var(--pw-ink); border: 1px solid #fff; }
#allrecords .pw-edu .pw-edu-btn--light:hover { background: #f0f0f0; border-color: #f0f0f0; color: var(--pw-ink); }
#allrecords .pw-edu .pw-edu-btn--outline { background: #fff; color: var(--pw-red); border: 1px solid var(--pw-red); }
#allrecords .pw-edu .pw-edu-btn--outline:hover { background: var(--pw-red); color: #fff; }

/* ---------- hero ---------- */
.pw-edu-hero {
  position: relative;
  min-height: 525px;
  display: flex;
  align-items: center;
  background: #1b1b1b center/cover no-repeat;
  overflow: hidden;
}
.pw-edu-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .62) 38%, rgba(0, 0, 0, .12) 72%, rgba(0, 0, 0, 0) 100%);
}
.pw-edu-hero__inner { position: relative; z-index: 2; width: 100%; }
.pw-edu-hero__crumbs {
  margin: 0 0 34px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  color: #fff;
}
#allrecords .pw-edu .pw-edu-hero__crumbs a { color: #fff; text-decoration: none; }
#allrecords .pw-edu .pw-edu-hero__crumbs a:hover { color: #fff; text-decoration: underline; }
.pw-edu-hero__crumbs span[aria-current] { color: #fff; }
.pw-edu-hero__sep { padding: 0 6px; }
.pw-edu-hero__title {
  margin: 0 0 24px;
  max-width: 760px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.55;
  text-transform: uppercase;
  color: #fff;
}
.pw-edu-hero__sub {
  margin: 0 0 34px;
  max-width: 620px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
}
.pw-edu-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- section heading (h2 + red rule + lead) ---------- */
.pw-edu-head { margin: 0 0 56px; }
.pw-edu-head__title {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--pw-ink);
}
.pw-edu-head__rule { width: 59px; height: 2px; margin: 8px 0 0; background: var(--pw-red); }
.pw-edu-head__lead {
  margin: 28px 0 0;
  max-width: 1220px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--pw-ink-soft);
}
.pw-edu-head--center { text-align: center; }
.pw-edu-head--center .pw-edu-head__rule { margin-left: auto; margin-right: auto; }
.pw-edu-head--center .pw-edu-head__lead { margin-left: auto; margin-right: auto; }

/* ---------- three icon cards (Enrich / Engage / Control) ---------- */
.pw-edu-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pw-edu-cards3__item {
  background: #fff;
  border: 1px solid var(--pw-border);
  border-radius: 5px;
  padding: 26px 26px 30px;
  box-sizing: border-box;
}
.pw-edu-cards3__icon { height: 36px; display: flex; align-items: flex-end; }
.pw-edu-cards3__icon img { max-height: 40px; width: auto; display: block; }
.pw-edu-cards3__rule {
  height: 1px;
  margin: 18px 0 22px;
  /* the design fades this rule out to the right */
  background: linear-gradient(90deg, var(--pw-red) 0%, rgba(230, 46, 69, 0) 100%);
}
.pw-edu-cards3__title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--pw-ink-soft);
}
.pw-edu-cards3__text { margin: 0; font-size: 18px; line-height: 1.5; color: var(--pw-grey); }

/* ---------- feature rows ---------- */
.pw-edu-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 74px;
}
.pw-edu-feature:first-of-type { margin-top: 0; }
.pw-edu-feature--flip .pw-edu-feature__media { order: -1; }
.pw-edu-feature__badge {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 24px;
  border-radius: 6px;
  background: var(--pw-red);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}
.pw-edu-feature__title {
  margin: 0 0 14px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--pw-ink);
}
.pw-edu-feature__eyebrow {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--pw-red);
}
.pw-edu-feature__text { margin: 0 0 26px; font-size: 18px; line-height: 1.5; color: var(--pw-grey); }
.pw-edu-feature__list { margin: 0; padding: 0; list-style: none; }
.pw-edu-feature__list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 37px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--pw-grey);
}
.pw-edu-feature__list li:last-child { margin-bottom: 0; }
.pw-edu-feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background: url("/images/education/check-bullet.png") no-repeat center/contain;
}
.pw-edu-feature__media img { display: block; width: 100%; height: auto; border-radius: 2px; }

/* ---------- four numbered cards ---------- */
.pw-edu-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pw-edu-steps__item {
  background: var(--pw-band);
  border-radius: 5px;
  padding: 28px 24px 34px;
  box-sizing: border-box;
}
.pw-edu-steps__num { width: 22px; height: 22px; margin: 0 0 34px; }
.pw-edu-steps__num img { display: block; width: 100%; height: auto; }
.pw-edu-steps__title {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--pw-ink-soft);
}
.pw-edu-steps__text { margin: 0; font-size: 18px; line-height: 1.5; color: var(--pw-grey); }

/* ---------- comparison (Traditional AV vs Polywall) ---------- */
.pw-edu-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.pw-edu-compare__panel {
  border-radius: 5px;
  padding: 34px 34px 30px;
  box-sizing: border-box;
}
.pw-edu-compare__panel--old { background: var(--pw-band); border: 1px solid var(--pw-border); }
.pw-edu-compare__panel--new { background: #fff; border: 1px solid var(--pw-red); margin-top: 61px; }
.pw-edu-compare__panel--new .pw-edu-compare__list li { border-bottom-color: #fce7ea; }
.pw-edu-compare__head { display: flex; align-items: center; gap: 14px; margin: 0 0 30px; }
.pw-edu-compare__dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.pw-edu-compare__panel--old .pw-edu-compare__dot { background: #9e9e9e; }
.pw-edu-compare__panel--new .pw-edu-compare__dot { background: var(--pw-red); }
.pw-edu-compare__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--pw-ink-soft);
}
.pw-edu-compare__list { margin: 0; padding: 0; list-style: none; }
.pw-edu-compare__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #e6e6e6;
  font-size: 20px;
  line-height: 1.2;
  color: var(--pw-ink-soft);
}
.pw-edu-compare__list img { width: 20px; height: 20px; flex: 0 0 auto; }
.pw-edu-compare__note { margin: 26px 0 0; font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--pw-ink-soft); }
.pw-edu-compare__panel--new .pw-edu-compare__note { color: var(--pw-red); }

/* ---------- centred CTA band ---------- */
.pw-edu-cta { text-align: center; }
.pw-edu-cta__title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--pw-ink);
}
.pw-edu-cta__rule { width: 59px; height: 2px; margin: 26px auto 0; background: var(--pw-red); }
.pw-edu-cta__lead { margin: 26px 0 0; font-size: 18px; line-height: 1.5; color: var(--pw-ink-soft); }
.pw-edu-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* ---------- three stages ---------- */
.pw-edu-stages { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0 20px; align-items: center; }
.pw-edu-stages__item {
  background: var(--pw-band);
  border-radius: 5px;
  padding: 30px 26px 36px;
  box-sizing: border-box;
  align-self: stretch;
}
.pw-edu-stages__step { margin: 0 0 22px; font-size: 18px; font-weight: 700; line-height: 1.2; text-transform: uppercase; color: var(--pw-red); }
.pw-edu-stages__title { margin: 0 0 14px; font-size: 20px; font-weight: 700; line-height: 1.2; text-transform: uppercase; color: var(--pw-ink-soft); }
.pw-edu-stages__sub { margin: 0; font-size: 18px; line-height: 1.5; color: var(--pw-red); }
.pw-edu-stages__rule { width: 42px; height: 2px; margin: 12px 0 22px; background: var(--pw-red); }
.pw-edu-stages__text { margin: 0; font-size: 18px; line-height: 1.5; color: var(--pw-grey); }
.pw-edu-stages__arrow { width: 40px; display: flex; justify-content: center; }
.pw-edu-stages__arrow img { width: 40px; height: 40px; }

/* ---------- tabs ---------- */
.pw-edu-tabs { background: #fff; border-radius: 5px; }
.pw-edu-tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0 44px;
  padding: 0 34px;
  border-bottom: 1px solid var(--pw-border);
}
.pw-edu-tabs__tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  padding: 22px 0 16px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--pw-ink-soft);
  cursor: pointer;
}
.pw-edu-tabs__tab:hover { color: var(--pw-red); }
.pw-edu-tabs__tab[aria-selected="true"] { color: var(--pw-red); border-bottom-color: var(--pw-red); }
.pw-edu-tabs__panel { display: none; padding: 44px 34px 50px; }
.pw-edu-tabs__panel.is-active { display: grid; grid-template-columns: 386px 1fr; gap: 48px; align-items: start; }
.pw-edu-tabs__panel img { display: block; width: 100%; height: auto; border-radius: 2px; }
.pw-edu-tabs__title { margin: 0 0 18px; font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--pw-ink); }
.pw-edu-tabs__text { margin: 0 0 24px; font-size: 18px; line-height: 1.5; color: var(--pw-grey); }
.pw-edu-tabs__note { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.2; text-transform: uppercase; color: var(--pw-red); }

/* ---------- six reason cards ---------- */
.pw-edu-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pw-edu-why__item { background: var(--pw-band); border-radius: 5px; padding: 30px 26px 36px; box-sizing: border-box; }
.pw-edu-why__icon { height: 40px; margin: 0 0 26px; display: flex; align-items: center; }
.pw-edu-why__icon img { max-height: 40px; width: auto; display: block; }
.pw-edu-why__title { margin: 0 0 26px; font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--pw-ink-soft); }
.pw-edu-why__text { margin: 0; font-size: 18px; line-height: 1.5; color: var(--pw-grey); }

/* ---------- pilot classroom configuration ---------- */
.pw-edu-pilot {
  background: var(--pw-band);
  border-radius: 5px;
  padding: 46px 44px 52px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  box-sizing: border-box;
}
.pw-edu-pilot__title { margin: 0 0 26px; font-size: 40px; font-weight: 700; line-height: 1.15; text-transform: uppercase; color: var(--pw-ink); }
.pw-edu-pilot__text { margin: 0 0 32px; font-size: 18px; line-height: 1.5; color: var(--pw-grey); }
.pw-edu-pilot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.pw-edu-pilot__tile { background: #fff; border: 1px solid var(--pw-border); border-radius: 5px; padding: 18px 20px 20px; box-sizing: border-box; }
.pw-edu-pilot__tile img { width: 30px; height: 30px; display: block; margin: 0 0 12px; }
.pw-edu-pilot__name { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.2; text-transform: uppercase; color: var(--pw-ink-soft); }
/* the design applies a capitalize transform to these captions */
.pw-edu-pilot__meta { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.3; text-transform: capitalize; color: var(--pw-red); }

/* ================= responsive ================= */
@media screen and (max-width: 1199px) {
  .pw-edu__wrap { max-width: 960px; }
  .pw-edu-head__title { font-size: 44px; }
  .pw-edu-feature__title, .pw-edu-pilot__title { font-size: 36px; }
  .pw-edu-tabs__panel.is-active { grid-template-columns: 320px 1fr; gap: 36px; }
  .pw-edu-pilot { grid-template-columns: 300px 1fr; gap: 32px; }
  .pw-edu-steps { gap: 16px; }
  .pw-edu-compare { gap: 32px; }
}

@media screen and (max-width: 959px) {
  .pw-edu__wrap { max-width: 640px; }
  .pw-edu__section { padding: 70px 0; }
  .pw-edu-head { margin-bottom: 44px; }
  .pw-edu-head__title { font-size: 40px; }
  .pw-edu-cta__title { font-size: 32px; }
  .pw-edu-feature__title, .pw-edu-pilot__title { font-size: 32px; }
  .pw-edu-hero { min-height: 465px; }
  .pw-edu-hero__title { font-size: 36px; line-height: 1.3; }
  .pw-edu-cards3 { grid-template-columns: 1fr 1fr; }
  .pw-edu-steps { grid-template-columns: 1fr 1fr; gap: 20px; }
  .pw-edu-why { grid-template-columns: 1fr 1fr; }
  .pw-edu-feature { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .pw-edu-feature--flip .pw-edu-feature__media { order: 0; }
  .pw-edu-compare { grid-template-columns: 1fr; gap: 24px; }
  .pw-edu-compare__panel--new { margin-top: 0; }
  .pw-edu-stages { grid-template-columns: 1fr; gap: 20px; }
  .pw-edu-stages__arrow { display: none; }
  .pw-edu-tabs__panel.is-active { grid-template-columns: 1fr; gap: 26px; }
  .pw-edu-tabs__bar { gap: 0 28px; padding: 0 24px; }
  .pw-edu-pilot { grid-template-columns: 1fr; padding: 34px 28px 40px; }
}

@media screen and (max-width: 639px) {
  .pw-edu__wrap { max-width: 480px; }
  .pw-edu__section { padding: 56px 0; }
  .pw-edu-head__title { font-size: 30px; }
  .pw-edu-head__lead, .pw-edu-cards3__text, .pw-edu-steps__text, .pw-edu-why__text,
  .pw-edu-feature__text, .pw-edu-feature__list li, .pw-edu-tabs__text, .pw-edu-pilot__text,
  .pw-edu-cta__lead, .pw-edu-stages__text, .pw-edu-stages__sub, .pw-edu-hero__sub { font-size: 16px; }
  .pw-edu-cta__title { font-size: 28px; }
  .pw-edu-feature__title, .pw-edu-pilot__title { font-size: 26px; }
  .pw-edu-hero { min-height: 423px; }
  .pw-edu-hero__title { font-size: 30px; }
  .pw-edu-hero__crumbs { font-size: 16px; }
  .pw-edu-cards3, .pw-edu-steps, .pw-edu-why { grid-template-columns: 1fr; }
  .pw-edu-compare__list li { font-size: 18px; }
  .pw-edu-pilot__grid { grid-template-columns: 1fr; }
  .pw-edu-tabs__bar { gap: 0 20px; }
  .pw-edu-tabs__tab { font-size: 16px; padding: 16px 0 12px; }
  .pw-edu-tabs__panel { padding: 30px 22px 36px; }
}

@media screen and (max-width: 479px) {
  .pw-edu__wrap { max-width: 320px; padding: 0 20px; }
  .pw-edu-hero { min-height: 440px; }
  .pw-edu-hero__title { font-size: 26px; }
  .pw-edu-hero__actions .pw-edu-btn, .pw-edu-cta__actions .pw-edu-btn { width: 100%; }
  .pw-edu-head__title { font-size: 30px; }
  .pw-edu-feature__badge { font-size: 17px; padding: 7px 20px; }
}
