/* Heritage Education page. Uses the kit in pages.css; only page-specific pieces live here. */
.pg-word { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }

/* Heritage Classrooms catalogue */
.he-room__n { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; color: var(--m); }
.he-room__go { position: absolute; top: 1.1rem; right: 1.1rem; font-size: 1.2rem !important; color: var(--p); opacity: 0.45; transition: transform 0.4s var(--ease), opacity 0.3s; }
.he-room:hover .he-room__go { opacity: 1; transform: translate(3px, -3px); }

/* Learning modules */
.he-slider > div, .he-aspect, .he-aspect-wide { border-radius: 1.6rem; overflow: hidden; }
.he-slider > div { box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 255, 255, 0.14); }
.he-aspect { aspect-ratio: 4 / 3; }
.he-aspect-wide { aspect-ratio: 4 / 3; }
@media (min-width: 768px) { .he-aspect-wide { aspect-ratio: 21 / 9; } }
.he-slider--wide { margin-bottom: 3rem; }
.he-keepers { margin: 0 0 4.5rem; padding: 2rem; border-radius: 1.8rem; }
.he-keepers p { font-size: 1rem; line-height: 1.7; }
.he-h3 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }
.he-pills { display: grid; gap: 0.6rem; }
.he-pill { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1rem; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.07); font-size: 0.92rem; font-weight: 600; }
.he-pill .material-symbols-outlined { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: linear-gradient(135deg, var(--m), var(--p)); font-size: 1.1rem; }
.he-block { margin-top: 4.5rem; align-items: center; }
.he-block--rule { padding-top: 4.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }

/* Summer courses */
.he-project { gap: 1rem; padding: 1.1rem 1.1rem 1.6rem; }
.he-project__img { box-shadow: none; border-radius: 1.1rem; }
.he-project__n { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; color: var(--m); padding: 0 0.4rem; }
.he-project h3 { padding: 0 0.4rem; font-size: 1.1rem; letter-spacing: 0.01em; line-height: 1.35; }
.he-project p { padding: 0 0.4rem; }

/* Teachers */

@media (max-width: 639px) {

  .he-keepers { padding: 1.2rem; margin-bottom: 3rem; }
  .he-block { margin-top: 3rem; }
  .he-block--rule { padding-top: 3rem; }

}
.he-teachers__img { aspect-ratio: 21 / 9; }
@media (max-width: 767px) { .he-teachers__img { aspect-ratio: 4 / 3; } }

/* Heritage Classrooms: photo on the left, the ten programmes as small boxes on the right */
.he-feature { align-items: stretch; }
.he-feature__img { aspect-ratio: 16 / 10; min-height: 16rem; }
.he-feature__img > img { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 1024px) { .he-feature__img { aspect-ratio: auto; min-height: 28rem; } }
.he-feature__list { display: flex; flex-direction: column; justify-content: center; }
.he-rooms { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
@media (min-width: 480px) { .he-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.he-room { justify-content: space-between; min-height: 5.8rem; padding: 0.95rem 1.1rem; gap: 0.5rem; text-decoration: none; border-radius: 1.1rem; }
.he-room h3 { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.35; text-transform: uppercase; }
.he-room .pg-tag { align-self: flex-start; }
.he-room__go { top: 0.8rem; right: 0.9rem; font-size: 1.05rem !important; }
.he-more { display: flex; justify-content: center; margin: 1.6rem 0 0; }
.he-feature { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .he-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* tighter spacing + colourful boxes */
.he-feature__img { width: 100%; min-height: 0; }
@media (min-width: 1024px) { .he-feature__img { min-height: 28rem; } }
.he-rooms { gap: 0.7rem; }
.he-room { min-height: 5.8rem; padding: 0.95rem 1.1rem; border: 0; border-radius: 1.1rem; box-shadow: 0 12px 22px -16px rgba(116, 21, 143, 0.55); }
.he-room__go { top: 0.8rem; right: 0.9rem; }
.he-more { margin-top: 1.6rem; }
.he-room:nth-child(4n+1) { background: linear-gradient(135deg, #fde3f1, #f6d3ff); }
.he-room:nth-child(4n+2) { background: linear-gradient(135deg, var(--m), var(--p)); }
.he-room:nth-child(4n+3) { background: linear-gradient(135deg, var(--p), #3b0a49); }
.he-room:nth-child(4n) { background: linear-gradient(135deg, #ecdcf8, #d9c2f0); }
.he-room:nth-child(4n+2) h3, .he-room:nth-child(4n+3) h3 { color: #fff; }
.he-room:nth-child(4n+2) .he-room__n, .he-room:nth-child(4n+3) .he-room__n { color: var(--tint); }
.he-room:nth-child(4n+2) .he-room__go, .he-room:nth-child(4n+3) .he-room__go { color: #fff; opacity: 0.7; }
.he-room:nth-child(4n+2) .pg-tag, .he-room:nth-child(4n+3) .pg-tag { background: rgba(255, 255, 255, 0.2); color: #fff; }
.he-room:hover { transform: translateY(-3px); box-shadow: 0 18px 28px -14px rgba(116, 21, 143, 0.7); }
#ilm, #heritage-classrooms, #summer-courses, #outstations, #mera-sheher, #teacher-capacity { scroll-margin-top: 7rem; }

/* ================= Colourful page ================= */
/* section headings: pink-to-purple gradient (a lighter gradient on the dark sections) */
/* tinted section backgrounds */
.he-classrooms { background: linear-gradient(180deg, #fff3fa 0%, #f5e9ff 100%); }
.he-summer { background: linear-gradient(180deg, #f3e6ff 0%, #ffe8f4 100%); }
.he-mera { background: linear-gradient(180deg, #fff1f8 0%, #efe3ff 100%); }
.he-teachers { background: radial-gradient(60% 50% at 100% 0%, rgba(254, 79, 161, 0.35), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgba(143, 53, 169, 0.45), transparent 70%), linear-gradient(180deg, #2c0b36 0%, #1c101d 100%); }
.he-outstations { background: radial-gradient(55% 60% at 0% 0%, rgba(194, 24, 115, 0.45), transparent 70%), linear-gradient(165deg, #55006c 0%, #2c0b36 100%); }
/* colourful cards: the same four-colour cycle as the programme boxes */
.he-project { border: 0; box-shadow: 0 22px 36px -24px rgba(116, 21, 143, 0.6); }
.he-project:nth-child(4n+1) { background: linear-gradient(145deg, #fde3f1, #f6d3ff); }
.he-project:nth-child(4n+2) { background: linear-gradient(145deg, var(--m), var(--p)); }
.he-project:nth-child(4n+3) { background: linear-gradient(145deg, var(--p), #3b0a49); }
.he-project:nth-child(4n) { background: linear-gradient(145deg, #ecdcf8, #d9c2f0); }
.he-project:nth-child(4n+2) h3, .he-project:nth-child(4n+3) h3 { color: #fff; }
.he-project:nth-child(4n+2) p, .he-project:nth-child(4n+3) p { color: rgba(255, 255, 255, 0.86); }
.he-project:nth-child(4n+2) .he-project__n, .he-project:nth-child(4n+3) .he-project__n { color: var(--tint); }
.he-project h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 700; line-height: 1.25; }

/* Heritage Classrooms photo: carousel fills the same rounded frame (arrows + dots come from photo-slider) */
.he-feature__img > .he-feature__slider { position: absolute !important; inset: 0; width: 100%; height: 100%; box-shadow: none; border-radius: inherit; }
.he-feature__img .slider-slide img { position: static; display: block; width: 100%; height: 100%; object-fit: cover; transition: none; }
.he-feature__img:hover .slider-slide img { transform: none; }

/* ================= Image title on hover ================= */
.img-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 2.6rem 1.3rem 1.1rem; background: linear-gradient(to top, rgba(28, 16, 29, 0.88) 0%, rgba(28, 16, 29, 0.5) 55%, transparent 100%); color: #fff; font-size: 0.86rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.01em; text-align: left; opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.45s var(--ease); pointer-events: none; }
[data-slider] .img-cap { padding-bottom: 2.2rem; }
.pg-media:hover .img-cap, .slider-slide:hover .img-cap, [data-slider]:focus-within .img-cap { opacity: 1; transform: none; }
/* Touch screens have no hover: keep the title visible. */
@media (hover: none) { .img-cap { opacity: 1; transform: none; } }

/* Summer Heritage Courses: "Reach Out to Us" call-to-action box at the end of the project cards.
   Light card with a purple-to-pink gradient border, a dashed inner frame, a small highlighted tag and marked key words. */
.he-cta { position: relative; display: flex; padding: 0.9rem; border: 2px solid transparent; border-radius: 1.75rem; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #74158f, #c21873 55%, #f472b6) border-box; box-shadow: 0 26px 50px -32px rgba(116, 21, 143, 0.6); }
.he-cta--wide { grid-column: 1 / -1; }
.he-cta__in { position: relative; overflow: hidden; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; min-height: 17rem; padding: 2.4rem 1.8rem; border: 1.5px dashed rgba(156, 26, 138, 0.38); border-radius: 1.2rem; text-align: center; background: radial-gradient(60% 55% at 100% 0%, rgba(244, 114, 182, 0.2), transparent 70%), radial-gradient(55% 55% at 0% 100%, rgba(154, 63, 208, 0.16), transparent 70%), #fdf5fb; }
.he-cta--wide .he-cta__in { min-height: 0; padding: 2.6rem 1.8rem; }
.he-cta__tag { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem 0.5rem 0.8rem; border-radius: 999px; background: linear-gradient(110deg, #74158f, #c21873); color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; box-shadow: 0 10px 22px -12px rgba(194, 24, 115, 0.8); }
.he-cta__text { margin: 0; max-width: 30rem; font-size: clamp(1.3rem, 2.1vw, 1.8rem); font-weight: 500; line-height: 1.5; letter-spacing: -0.01em; color: #2a1230; }
.he-cta--wide .he-cta__text { max-width: 44rem; }
.he-cta__text mark { padding: 0.05em 0.35em; border-radius: 0.4em; background: linear-gradient(110deg, rgba(154, 63, 208, 0.18), rgba(244, 114, 182, 0.3)); color: #8a1680; font-weight: 700; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Colourful version of the box: vivid purple-to-pink fill inside the framed card, white text, light highlights. */
.he-cta { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #9a3fd0, #c21873 50%, #f472b6) border-box; }
.he-cta__in { border: 1.5px dashed rgba(255, 255, 255, 0.55); background: radial-gradient(60% 60% at 100% 0%, rgba(244, 114, 182, 0.75), transparent 70%), radial-gradient(55% 60% at 0% 100%, rgba(154, 63, 208, 0.85), transparent 70%), radial-gradient(40% 40% at 15% 10%, rgba(255, 255, 255, 0.14), transparent 70%), linear-gradient(135deg, #74158f 0%, #a01c8c 50%, #d0227a 100%); }
.he-cta__tag { background: #fff; color: #8a1680; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.55); }
.he-cta__text { color: #fff; }
.he-cta__text { font-weight: 600; }
.he-cta__text mark { padding: 0; border-radius: 0; background: none; color: #fff; font-weight: 800; }
.he-cta .he-cta__btn { min-height: 3.6rem; padding: 0 2.2rem !important; font-size: 0.84rem !important; }
.he-cta .he-cta__btn { background: #fff; color: #74158f; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6); }
.he-cta .he-cta__btn:hover { background: #fdeef5; color: #9c1a8a; }

/* Dark purple shade added to the box: deep plum in the top-left, running into the purple and pink. */
.he-cta__in { background: radial-gradient(60% 60% at 100% 0%, rgba(244, 114, 182, 0.7), transparent 70%), radial-gradient(60% 65% at 0% 0%, rgba(38, 6, 52, 0.9), transparent 72%), radial-gradient(45% 50% at 0% 100%, rgba(154, 63, 208, 0.7), transparent 70%), linear-gradient(135deg, #2e0a3d 0%, #5a1178 30%, #a01c8c 62%, #d0227a 100%); }
